/*! HAON HUB :: BUILD:hh-202606011953 :: REV:1 :: LICENSE:haonhub-proprietary-2026 :: CH:prod :: FP_INJECTION_V1_20260601 */
/* ════════════════════════════════════════════════════════════════
   HAON LIVE — v5 "Refined Surfaces"
   Diferencial visual:
   • Sombras em camadas com gloss interno (inner-glow)
   • Separadores que fadeiam nas bordas (gradient hr)
   • Stripe de marca no topo dos widgets (brand accent bar)
   • Left-accent nos cards hover (2px indigo)
   • Sombra colorida com tint da marca no hover
   • Profile cover aurora mesh
   • Gradient borders nos trending tags
   ════════════════════════════════════════════════════════════════ */

:root {
  /* ── Backgrounds ──────────────────────────────────────────── */
  --bg-app:    #0F172A;
  --bg-card:   #1E293B;
  --bg-card-2: #243147;
  --bg-soft:   #131C2E;
  --bg-hover:  #2D3F55;
  --bg-elev:   #475569;

  /* ── Brand ────────────────────────────────────────────────── */
  --brand-1:        #6366F1;
  --brand-2:        #06B6D4;
  --brand-grad:     linear-gradient(135deg, #6366F1, #06B6D4);
  --brand-grad-r:   linear-gradient(135deg, #06B6D4, #6366F1);
  --brand-grad-soft:linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.10));
  --brand-glow:     0 0 0 3px rgba(99,102,241,0.22);

  /* ── Lines ────────────────────────────────────────────────── */
  --line:         rgba(255,255,255,0.07);   /* default separator */
  --line-2:       rgba(255,255,255,0.12);   /* emphasis */
  --line-brand:   rgba(99,102,241,0.24);    /* interactive border */

  /* Gradient separators — fading into transparency at edges */
  --sep-h: linear-gradient(90deg,  transparent, rgba(255,255,255,0.10) 20%, rgba(255,255,255,0.10) 80%, transparent);
  --sep-v: linear-gradient(180deg, transparent, rgba(255,255,255,0.10) 20%, rgba(255,255,255,0.10) 80%, transparent);

  /* ── Text ─────────────────────────────────────────────────── */
  --text:   #F8FAFC;
  --text-2: #CBD5E1;
  --muted:  #94A3B8;
  --dim:    #64748B;

  /* ── States ───────────────────────────────────────────────── */
  --like:  #F43F5E;
  --green: #10B981;
  --warn:  #F59E0B;

  /* ── Shadow system (tiered) ───────────────────────────────── */
  /* xs   — subtle lift for small elements */
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.18);

  /* card — resting state; inner gloss simulates glass elevation */
  --shadow-card:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 2px 6px  rgba(0,0,0,0.24),
    0 1px 2px  rgba(0,0,0,0.16);

  /* hover — deeper + brand color tint */
  --shadow-hover:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 24px rgba(0,0,0,0.30),
    0 3px 8px  rgba(99,102,241,0.10);

  /* pop — modals, popovers, dropdowns */
  --shadow-pop:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 24px 56px rgba(0,0,0,0.52),
    0 8px 24px  rgba(0,0,0,0.30),
    0 0   0 1px rgba(255,255,255,0.06);

  /* brand — CTAs, send button, badges */
  --shadow-brand:
    0 4px 16px rgba(99,102,241,0.32),
    0 2px 6px  rgba(99,102,241,0.20);

  /* auth card outer glow */
  --shadow-auth:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 32px 80px rgba(0,0,0,0.56),
    0 8px 24px  rgba(0,0,0,0.32),
    0 0   0 1px rgba(255,255,255,0.06),
    0 0  80px  rgba(99,102,241,0.07);

  /* ── Layout ───────────────────────────────────────────────── */
  --feed-w:    640px;
  --left-w:    260px;
  --right-w:   320px;
  --gap:       24px;
  --header-h:  60px;

  /* ── Fonts ────────────────────────────────────────────────── */
  --ui: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ── Radii ────────────────────────────────────────────────── */
  --radius:    16px;
  --radius-sm: 10px;
  --pill:      999px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--bg-app);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* Ambient bg radials — barely-there atmospheric depth */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vw 50vh at 80%  -10%, rgba(99,102,241,0.08), transparent 60%),
    radial-gradient(60vw 40vh at -10% 100%, rgba(6,182,212,0.06),  transparent 60%);
}

/* ── Round avatar ──────────────────────────────────────────────── */
.av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-grad);
  font-family: var(--ui);
  font-weight: 700; font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  user-select: none;
  position: relative;
  /* subtle ring to separate from background */
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.08);
  transition: box-shadow .18s ease, transform .18s ease;
}
.av:hover { box-shadow: 0 0 0 2px var(--brand-1), 0 0 0 4px rgba(99,102,241,0.18); transform: scale(1.04); }
.av--xs { width: 24px; height: 24px; font-size: 10px; }
.av--sm { width: 32px; height: 32px; font-size: 12px; }
.av--lg { width: 56px; height: 56px; font-size: 18px; }
.av--xl { width: 96px; height: 96px; font-size: 32px; box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px rgba(99,102,241,0.22); }
.av--xs:hover, .av--sm:hover { box-shadow: 0 0 0 1.5px var(--brand-1); }

/* Compat */
.hex { border-radius: 50% !important; clip-path: none !important; }
.hex-inner { font-family: var(--ui) !important; font-weight: 700 !important; }

/* ── Brand wordmark ─────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand--small { gap: 10px; }
.brand-title, .brand-name {
  font-family: var(--display);
  font-weight: 600; letter-spacing: -0.02em; font-size: 22px;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name { font-size: 17px; }
.brand-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ── Auth screen ────────────────────────────────────────────────── */
.screen-auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-auth);
  /* very subtle brand tint on top edge */
  position: relative;
  overflow: hidden;
}
/* Brand accent bar — top edge gradient stripe */
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
  border-radius: var(--radius) var(--radius) 0 0;
}

.tabs {
  display: flex; gap: 4px;
  margin: 24px 0 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 4px;
}
.tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 13px;
  color: var(--muted);
  transition: all .15s ease;
}
.tab.is-active {
  background: var(--bg-card-2);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.24);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.14);
}
textarea { border-radius: var(--radius-sm); }
input:focus, textarea:focus {
  border-color: var(--brand-2);
  box-shadow: var(--brand-glow), inset 0 1px 0 rgba(0,0,0,0.14);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  transition: all .15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text);
  color: var(--bg-app);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover { background: #E2E8F0; box-shadow: var(--shadow-card); }
.btn-primary:active { transform: scale(0.98); }
.btn-brand {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover { box-shadow: 0 8px 24px rgba(99,102,241,0.42); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--text-2); }
.btn-glow {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.42); }
.btn-dm {
  background: rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.28);
  color: var(--text);
  margin-right: 8px;
}
.btn-dm:hover { background: rgba(99,102,241,0.20); border-color: var(--brand-1); }
.btn-danger {
  background: rgba(244,63,94,0.10);
  border-color: rgba(244,63,94,0.28);
  color: var(--like);
}
.btn-danger:hover { background: rgba(244,63,94,0.18); }

.form-msg { font-size: 13px; color: var(--like); min-height: 18px; text-align: center; }
.form-msg.is-success { color: var(--green); }

/* ── Topbar (sticky glass) ──────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* gradient fade — no harsh edge */
  border-bottom: none;
  position: sticky;
}
/* Gradient separator instead of hard border */
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sep-h);
  pointer-events: none;
}
.nav-desktop { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 14px;
  color: var(--muted);
  transition: all .15s ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.is-active { color: var(--text); background: var(--bg-card-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.topbar-right { display: flex; gap: 8px; align-items: center; }

/* ── Search bar ─────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  flex: 1; max-width: 320px;
}
.search-input {
  width: 100%;
  padding: 9px 14px 9px 44px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 14px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.12);
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--brand-2); box-shadow: var(--brand-glow), inset 0 1px 0 rgba(0,0,0,0.12); outline: none; }
.search-ico {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  max-height: 60vh; overflow-y: auto;
  z-index: 60;
  box-shadow: var(--shadow-pop);
}
.search-section { padding: 8px 0; }
/* gradient separator between search sections */
.search-section + .search-section {
  border-top: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.search-section + .search-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--sep-h);
}
.search-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  padding: 4px 16px 6px;
}
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  cursor: pointer; transition: background .12s ease;
}
.search-item:hover { background: var(--bg-hover); }
.search-item-name { font-size: 14px; font-weight: 600; }
.search-item-sub { font-size: 12px; color: var(--muted); }

/* ── Topbar icon buttons ─────────────────────────────────────────── */
.btn-icon {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand-grad);
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: var(--pill);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-app), 0 2px 6px rgba(99,102,241,0.30);
}

/* ── Layout 3 columns ──────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: calc(var(--feed-w) + var(--left-w) + var(--right-w) + 64px);
  margin: 0 auto;
  padding: 0 16px 100px;
}
@media (min-width: 880px) {
  .layout { grid-template-columns: var(--left-w) 1fr; gap: var(--gap); padding: 24px 24px 60px; }
}
@media (min-width: 1240px) {
  .layout { grid-template-columns: var(--left-w) minmax(0, var(--feed-w)) var(--right-w); justify-content: center; }
}

.left-rail, .right-rail {
  display: none;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: flex-start;
  height: fit-content;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
@media (min-width: 880px)  { .left-rail  { display: block; } }
@media (min-width: 1240px) { .right-rail { display: block; } }

/* Left rail nav */
.rail-nav { display: flex; flex-direction: column; gap: 4px; }
.rail-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  border-radius: var(--pill);
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
  transition: all .15s ease;
  position: relative;
}
.rail-item:hover { background: var(--bg-hover); color: var(--text); }
.rail-item.is-active {
  background: var(--bg-card-2);
  color: var(--text); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.rail-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.rail-item .badge { position: static; margin-left: auto; }
.rail-cta { margin-top: 12px; }
.rail-cta .btn { width: 100%; padding: 12px; font-size: 15px; }

.rail-me {
  margin-top: 18px; padding: 10px 12px;
  border-radius: var(--pill);
  display: flex; align-items: center; gap: 10px;
  background: transparent;
  transition: background .15s ease;
}
.rail-me:hover { background: var(--bg-hover); }
.rail-me-info { flex: 1; min-width: 0; overflow: hidden; }
.rail-me-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-me-handle { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Right rail widgets — brand accent bar at top */
.rail-widget {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
/* ★ THE SIGNATURE: 2px brand gradient stripe on top */
.rail-widget::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--brand-grad);
  z-index: 1;
}
.rail-widget-head {
  padding: 14px 18px;
  font-family: var(--display); font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
  /* gradient separator instead of hard border */
  position: relative;
  padding-bottom: 14px;
}
.rail-widget-head::after {
  content: '';
  position: absolute; bottom: 0; left: 18px; right: 18px; height: 1px;
  background: var(--sep-h);
}
.rail-tag {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px;
  transition: background .15s ease;
  cursor: pointer;
  position: relative;
}
/* gradient separator between rail items */
.rail-tag + .rail-tag::before {
  content: '';
  position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: var(--sep-h);
}
.rail-tag:hover { background: var(--bg-card-2); }
.rail-tag-cat { font-size: 12px; color: var(--muted); }
.rail-tag-name { font-weight: 700; font-size: 15px; }
.rail-tag-uses { font-size: 12px; color: var(--muted); }

.rail-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  position: relative;
}
.rail-user + .rail-user::before {
  content: '';
  position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: var(--sep-h);
}
.rail-user-info { flex: 1; min-width: 0; }
.rail-user-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-user-handle { font-size: 12px; color: var(--muted); }

/* ── TikTok / Amazon widget accent stripes ────────────────────── */
.rail-widget--tiktok::before  { background: linear-gradient(90deg, #ff2d55, #ff6b81); }
.rail-widget--amazon::before  { background: linear-gradient(90deg, #ff9900, #e47911); }
.rail-widget-head--tiktok  { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.rail-widget-head--amazon  { font-size: 14px; font-weight: 700; letter-spacing: 0; }

/* Rank items (TikTok hashtags + Amazon products) */
.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  text-decoration: none; color: var(--text);
  transition: background .15s ease;
  position: relative;
}
.rank-item + .rank-item::before {
  content: '';
  position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: var(--sep-h);
}
.rank-item:hover { background: var(--bg-card-2); }
.rank-pos {
  min-width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  background: var(--bg-card-2);
  color: var(--muted);
  flex-shrink: 0;
}
.rank-pos--top { background: var(--brand); color: #fff; }
.rank-label {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-meta { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.rank-thumb {
  width: 40px; height: 40px;
  object-fit: cover; border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-card-2);
}
/* Separador de seção dentro do widget */
.rank-section-divider {
  padding: 8px 16px 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  background: var(--bg-card-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Item de produto TikTok Shop — badge leve */
.rank-item--shop .rank-thumb {
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ── Feed center ────────────────────────────────────────────────── */
.feed {
  width: 100%; max-width: var(--feed-w);
  display: flex; flex-direction: column; gap: 12px;
  margin: 0 auto;
  padding-top: 16px;
}
@media (min-width: 880px) { .feed { padding-top: 0; } }

.feed-head {
  position: sticky;
  top: var(--header-h); z-index: 40;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 4px;
  box-shadow: var(--shadow-card);
  /* left accent — brand identity on section headers */
  border-left: 3px solid var(--brand-1);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.feed-head-title {
  font-family: var(--display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}
.feed-head-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ── Post card ──────────────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;   /* space reserved for hover accent */
  border-radius: var(--radius);
  padding: 18px 20px 14px;
  box-shadow: var(--shadow-card);
  transition: background .15s ease, border-color .18s ease, box-shadow .2s ease, transform .18s ease;
  position: relative;
}
.post-card:hover {
  background: var(--bg-card-2);
  border-left-color: var(--brand-1);
  box-shadow: var(--shadow-hover);
}
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-author { flex: 1; min-width: 0; }
.post-author-name { font-weight: 600; font-size: 15px; color: var(--text); }
.post-author-name:hover { text-decoration: underline; }
.post-author-handle, .post-time { font-size: 13px; color: var(--muted); }
.post-content {
  white-space: pre-wrap; word-break: break-word;
  font-size: 15px; line-height: 1.55; color: var(--text);
}
.post-content a.hashtag, .post-content a.mention { color: var(--brand-2); font-weight: 500; }
.post-content a.hashtag:hover, .post-content a.mention:hover { text-decoration: underline; }
.post-image {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.post-image img { display: block; width: 100%; max-height: 600px; object-fit: cover; }

.image-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out;
}
.image-overlay img { max-width: 95vw; max-height: 95vh; border-radius: 8px; box-shadow: var(--shadow-pop); }

/* Post actions — gradient fade separator */
.post-actions {
  display: flex; align-items: center; gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  position: relative;
}
/* Replace hard border with gradient fade */
.post-actions::before {
  content: '';
  position: absolute; top: 0; left: -4px; right: -4px; height: 1px;
  background: var(--sep-h);
}
.post-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pill);
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  transition: all .15s ease;
}
.post-action:hover { background: rgba(99,102,241,0.10); color: var(--brand-2); }
.post-action.js-like:hover { background: rgba(244,63,94,0.10); color: var(--like); }
.post-action.is-liked { color: var(--like); }
.post-action.is-liked svg { fill: var(--like); stroke: var(--like); }
.post-action svg { stroke-width: 2; }
.post-action--delete { margin-left: auto; color: var(--dim); }
.post-action--delete:hover { background: rgba(244,63,94,0.10); color: var(--like); }

/* ── Comments ────────────────────────────────────────────────────── */
.comments-list {
  margin-top: 12px; padding-top: 12px;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
}
.comments-list::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--sep-h);
}
.comment { display: flex; gap: 10px; padding: 4px 0; }
.comment-body {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px var(--radius-sm) var(--radius-sm) var(--radius-sm); /* bubble tail */
  padding: 8px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.comment-head { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 2px; }
.comment-author { font-weight: 600; color: var(--text); }
.comment-author:hover { text-decoration: underline; }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input {
  flex: 1; padding: 8px 14px; font-size: 13px;
  background: var(--bg-soft); border-radius: var(--pill);
}
.comment-form button {
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--brand-grad);
  color: #fff; font-weight: 600; font-size: 13px;
  box-shadow: var(--shadow-brand);
}

/* ── Profile ─────────────────────────────────────────────────────── */
.profile-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
/* Aurora mesh cover — unique HAON signature */
.profile-cover {
  height: 180px;
  background:
    radial-gradient(ellipse 60% 90% at 20% 50%,  rgba(99,102,241,0.75), transparent 65%),
    radial-gradient(ellipse 55% 80% at 80% 55%,  rgba(6,182,212,0.60),  transparent 65%),
    radial-gradient(ellipse 40% 60% at 50% 100%, rgba(99,102,241,0.30), transparent 60%),
    linear-gradient(160deg, #1a2340, #0d1826);
  position: relative;
}
/* subtle mesh overlay — faint grid texture */
.profile-cover::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.profile-body { padding: 0 20px 20px; position: relative; }
.profile-avatar-wrap { position: absolute; top: -48px; left: 20px; }
.profile-row {
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding-top: 14px; min-height: 60px; gap: 8px;
}
.profile-info { margin-top: 56px; }
.profile-name {
  font-family: var(--display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text);
}
.profile-handle { font-size: 14px; color: var(--muted); margin-top: 2px; }
.profile-bio { margin-top: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.profile-stats { display: flex; gap: 22px; margin-top: 14px; }
.profile-stat { display: flex; gap: 5px; font-size: 14px; color: var(--muted); }
.profile-stat-num { font-weight: 700; color: var(--text); }

/* ── Discover (people grid) ─────────────────────────────────────── */
.discover-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.discover-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-card);
  transition: all .18s ease;
}
.discover-card:hover {
  background: var(--bg-card-2);
  border-color: var(--line-brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.discover-head { display: flex; align-items: center; gap: 12px; }
.discover-name { font-weight: 600; }
.discover-handle { font-size: 12px; color: var(--muted); }
.discover-bio { font-size: 13px; color: var(--text-2); min-height: 38px; }
.discover-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }

/* ── Composer modal ──────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
}
.modal-card {
  width: 100%; max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  position: relative;
}
/* Brand stripe at top of modal */
.modal-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--brand-grad); z-index: 1;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  position: relative;
}
.modal-head::after {
  content: '';
  position: absolute; bottom: 0; left: 20px; right: 20px; height: 1px;
  background: var(--sep-h);
}
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 22px; color: var(--muted);
  transition: all .15s ease;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }

.composer-body { padding: 16px 20px 20px; }
#composer-text {
  width: 100%; min-height: 120px; resize: vertical;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.12);
}
.composer-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.char-count { font-size: 12px; color: var(--muted); margin-right: auto; }
.composer-image-preview {
  position: relative; margin-top: 10px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line);
}
.composer-image-preview img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.img-remove {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 18px; line-height: 1;
}
.img-attach {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(99,102,241,0.10);
  color: var(--brand-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s ease;
}
.img-attach:hover { background: rgba(99,102,241,0.20); }

/* ── Color picker ────────────────────────────────────────────────── */
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.color-dot {
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.24);
  transition: all .15s ease;
}
.color-dot:hover { transform: scale(1.12); box-shadow: 0 4px 12px rgba(0,0,0,0.30); }
.color-dot.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.40), 0 4px 12px rgba(0,0,0,0.30);
}

/* ── Notifications drawer ────────────────────────────────────────── */
.notif-list { max-height: 70vh; overflow-y: auto; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  cursor: pointer; transition: background .12s ease;
  position: relative;
  /* Left accent for unread state */
  border-left: 3px solid transparent;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item + .notif-item::before {
  content: '';
  position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: var(--sep-h);
}
.notif-item.unread {
  background: rgba(99,102,241,0.04);
  border-left-color: var(--brand-2);
}
.notif-item.unread::after {
  content: '';
  position: absolute; top: 22px; right: 18px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 6px rgba(6,182,212,0.50);
}
.notif-text { flex: 1; font-size: 14px; line-height: 1.4; }
.notif-text strong { font-weight: 600; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; display: block; }

/* ── Trending screen ─────────────────────────────────────────────── */
.trending-section { margin-bottom: 18px; }
.trending-title {
  font-family: var(--display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trending-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: all .18s ease;
}
/* Gradient border on hover — the "padding-box trick" */
.trending-tag:hover {
  background:
    linear-gradient(var(--bg-card-2), var(--bg-card-2)) padding-box,
    var(--brand-grad) border-box;
  border-color: transparent;
  color: var(--brand-2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.trending-tag .uses { font-size: 11px; color: var(--muted); }

/* ── Hashtag header ──────────────────────────────────────────────── */
.tag-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.tag-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.tag-name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.tag-meta { font-size: 13px; color: var(--muted); }

/* ── Inbox ───────────────────────────────────────────────────────── */
.inbox-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.inbox-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  cursor: pointer; transition: background .12s ease;
  position: relative;
  border-left: 3px solid transparent;
}
.inbox-item + .inbox-item::before {
  content: '';
  position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: var(--sep-h);
}
.inbox-item:hover { background: var(--bg-card-2); }
.inbox-item.unread {
  background: rgba(99,102,241,0.04);
  border-left-color: var(--brand-1);
}
.inbox-main { flex: 1; min-width: 0; }
.inbox-name {
  font-weight: 600; font-size: 15px; color: var(--text);
  display: flex; align-items: baseline; gap: 8px;
}
.inbox-time { font-size: 12px; color: var(--muted); margin-left: auto; }
.inbox-handle { font-size: 13px; color: var(--muted); }
.inbox-preview {
  font-size: 13.5px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
}
.inbox-preview.from-me { color: var(--muted); }
.inbox-preview.from-me::before { content: "Você: "; }
.inbox-unread-dot {
  position: absolute; top: 50%; right: 18px; transform: translateY(-50%);
  background: var(--brand-grad); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: var(--pill);
  padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
}

/* ── Chat (DM thread) ────────────────────────────────────────────── */
.chat-screen {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  /* Desktop: contained, centered, scrollable inside */
  height: min(720px, calc(100vh - var(--header-h) - 96px));
  max-height: calc(100vh - var(--header-h) - 96px);
  min-height: 480px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
/* Brand stripe on top of chat */
.chat-screen::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--brand-grad); z-index: 1;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(15,23,42,0.50);
  position: relative;
}
.chat-header::after {
  content: '';
  position: absolute; bottom: 0; left: 16px; right: 16px; height: 1px;
  background: var(--sep-h);
}
.chat-back {
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s ease;
}
.chat-back:hover { background: var(--bg-hover); color: var(--text); }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-weight: 600; font-size: 15px; }
.chat-header-handle { font-size: 12px; color: var(--muted); }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 18px 16px 12px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-app);
}
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px; line-height: 1.4;
  word-wrap: break-word; white-space: pre-wrap;
  position: relative;
  animation: msgPop 0.18s ease-out;
}
@keyframes msgPop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.msg-bubble.me {
  align-self: flex-end;
  background: var(--brand-grad);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.22), inset 0 1px 0 rgba(255,255,255,0.15);
}
.msg-bubble.them {
  align-self: flex-start;
  background: var(--bg-hover);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.18);
}
.msg-meta {
  font-size: 11px; color: var(--muted);
  margin: 0 6px 4px;
  display: flex; align-items: center; gap: 4px;
}
.msg-meta.me   { align-self: flex-end; }
.msg-meta.them { align-self: flex-start; }
.msg-day {
  align-self: center;
  margin: 12px 0 4px;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.04em;
  box-shadow: var(--shadow-xs);
}
.chat-composer {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg-card);
  position: relative;
}
.chat-composer::before {
  content: '';
  position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: var(--sep-h);
}
.chat-input {
  flex: 1; resize: none; max-height: 120px;
  padding: 11px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  font-size: 14px; font-family: inherit; line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.14);
}
.chat-input:focus { border-color: var(--brand-2); box-shadow: var(--brand-glow), inset 0 1px 0 rgba(0,0,0,0.14); outline: none; }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  box-shadow: var(--shadow-brand);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chat-send:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.40); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.chat-empty {
  align-self: center; margin: auto;
  text-align: center; color: var(--muted); padding: 24px;
}

/* ── Empty + loading ─────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 56px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-2);
  box-shadow: var(--shadow-card);
}
.empty-title { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-sub { font-size: 14px; color: var(--muted); }
.loading { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 10px 18px;
  background: var(--bg-card-2);
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  font-size: 13.5px; font-weight: 500;
  z-index: 200;
  opacity: 0; transition: all .25s ease;
  pointer-events: none; max-width: 90vw;
  box-shadow: var(--shadow-pop);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error   { border-color: rgba(244,63,94,0.42);   color: var(--like); }
.toast.success { border-color: rgba(16,185,129,0.42);  color: var(--green); }

/* ── Bottom nav (mobile) ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none;
  align-items: center; justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(15,23,42,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: none;
  position: fixed;
}
.bottom-nav::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--sep-h);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; font-size: 10px; font-weight: 600;
  color: var(--muted); transition: color .15s ease;
  position: relative;
}
.bn-item.is-active { color: var(--brand-2); }
.bn-item svg { width: 22px; height: 22px; }
.bn-fab {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  transform: translateY(-12px);
}
.bn-fab svg { width: 22px; height: 22px; stroke-width: 2.6; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 879px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .nav-desktop { display: none; }
  .search-wrap { display: none; }
  .topbar-right .btn-glow span { display: none; }
  .topbar-right .btn-glow { padding: 8px 12px; }
  .bottom-nav { display: flex; }
  .layout { padding: 16px 12px 100px; }
  .feed { gap: 8px; padding-top: 0; }
  .feed-head { border-radius: var(--radius); }
  .post-card { padding: 14px 16px 12px; }
  .auth-card { padding: 24px 18px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .profile-cover { height: 140px; }
  .profile-avatar-wrap { top: -42px; }
  .av--xl { width: 88px; height: 88px; font-size: 28px; }
  .profile-info { margin-top: 50px; }
  .discover-card:hover { transform: none; } /* disable lift on touch */
  .trending-tag:hover { transform: none; }
}


/* ═══════════════════════════════════════════════════════════════
   Stage 2 — Tools, Pricing, Subscription pages
   ═══════════════════════════════════════════════════════════════ */

/* Desktop nav tools link */
.nav-link--tools { color: var(--cyan); font-weight: 600; }
.nav-link--tools.is-active { color: var(--green); }

/* Rail tools item */
.rail-item--tools { color: var(--cyan); }

/* Quick access rail widget */
.rail-quick-access { padding: 0; margin-top: 14px; }
.rail-tool-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13px; color: var(--text);
  text-decoration: none; border-radius: 8px;
  transition: background .15s;
}
.rail-tool-item:hover { background: var(--surface2); }
.rail-tool-icon { font-size: 18px; width: 24px; text-align: center; }
.rail-tool-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Tools grid ── */
.tools-page { max-width: 860px; margin: 0 auto; padding: 20px 0; }
.tools-header { margin-bottom: 28px; }
.tools-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.tools-sub { color: var(--dim); font-size: 15px; }
.tools-section { margin-bottom: 32px; }
.tools-section-title {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.tool-card {
  background: var(--surface1); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  cursor: pointer; position: relative; overflow: hidden; text-decoration: none;
  color: var(--text);
}
.tool-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.12); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.tool-card--locked { opacity: .72; }
.tool-card--locked:hover { opacity: 1; }
.tool-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.tool-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .2s ease; color: #fff;
  position: relative;
}
.tool-icon::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.14) 0%, transparent 55%);
  pointer-events: none;
}
.tool-card:hover .tool-icon { transform: scale(1.09); }
.tool-icon--tiktok   { background: linear-gradient(135deg,#ff2d55,#ff6b6b); box-shadow: 0 4px 14px rgba(255,45,85,.32); }
.tool-icon--amazon   { background: linear-gradient(135deg,#c2410c,#ff9900); box-shadow: 0 4px 14px rgba(255,153,0,.32); }
.tool-icon--insights { background: linear-gradient(135deg,#0369a1,#22d3ee); box-shadow: 0 4px 14px rgba(14,165,233,.32); }
.tool-icon--copy     { background: linear-gradient(135deg,#047857,#0ea5e9); box-shadow: 0 4px 14px rgba(16,185,129,.32); }
.tool-icon--vsl      { background: linear-gradient(135deg,#6d28d9,#ec4899); box-shadow: 0 4px 14px rgba(139,92,246,.32); }
.tool-icon--chain    { background: linear-gradient(135deg,#0891b2,#6366f1); box-shadow: 0 4px 14px rgba(34,211,238,.25); }
.tool-icon--ranks    { background: linear-gradient(135deg,#b45309,#f59e0b); box-shadow: 0 4px 14px rgba(245,158,11,.3); }
.tool-card-meta { flex: 1; }
.tool-card-name { font-weight: 700; font-size: 0.95rem; color: var(--text); margin: 0 0 4px; line-height: 1.3; }
.tool-card-desc { font-size: 0.8rem; color: var(--dim); line-height: 1.5; margin: 0; }
.pro-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.3);
  color: #c4b5fd; font-size: 0.68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  white-space: nowrap;
}
.free-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25);
  color: #67e8f9; font-size: 0.68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
}
.active-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25);
  color: #34d399; font-size: 0.68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
}
.tool-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; gap: 10px;
}
.tool-card-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; padding: 7px 14px;
  border-radius: 8px; border: none; cursor: pointer;
  transition: background .15s, transform .1s; text-decoration: none;
}
.tool-card-action--open { background: rgba(34,211,238,.12); color: #22d3ee; border: 1px solid rgba(34,211,238,.2); }
.tool-card-action--open:hover { background: rgba(34,211,238,.22); transform: translateX(2px); }
.tool-card-action--upgrade {
  background: linear-gradient(135deg,rgba(59,130,246,.15),rgba(139,92,246,.15));
  color: #a78bfa; border: 1px solid rgba(139,92,246,.25);
}
.tool-card-action--upgrade:hover {
  background: linear-gradient(135deg,rgba(59,130,246,.25),rgba(139,92,246,.25));
}
/* ── Section heads ─── */
.tools-section-head { display: flex; align-items: center; gap: 10px; margin: 32px 0 16px; }
.tools-section-head-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.tools-section-head--pro .tools-section-head-icon { background: rgba(139,92,246,.15); color: #a78bfa; }
.tools-section-head--free .tools-section-head-icon { background: rgba(34,211,238,.12); color: #22d3ee; }
.tools-section-head-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tools-section-head--pro .tools-section-head-label { color: #a78bfa; }
.tools-section-head--free .tools-section-head-label { color: #22d3ee; }
.tools-section-line { flex: 1; height: 1px; border-radius: 1px; }
.tools-section-head--pro .tools-section-line { background: rgba(139,92,246,.2); }
.tools-section-head--free .tools-section-line { background: rgba(34,211,238,.15); }
/* ── Amazon Ranks Page ─── */
.amazon-ranks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.amazon-rank-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; transition: border-color .15s, transform .15s; }
.amazon-rank-card:hover { border-color: rgba(255,153,0,.35); transform: translateY(-2px); }
.amazon-rank-pos { font-size: 1.4rem; font-weight: 800; color: #ff9900; min-width: 40px; line-height: 1; }
.amazon-rank-img { width: 68px; height: 68px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.05); flex-shrink: 0; }
.amazon-rank-info { flex: 1; min-width: 0; }
.amazon-rank-title { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.amazon-rank-cat { font-size: .72rem; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.amazon-rank-link { font-size: .78rem; color: #ff9900; text-decoration: none; font-weight: 600; }
.amazon-rank-link:hover { text-decoration: underline; }

/* ── Pricing page ── */
.pricing-page { max-width: 520px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.pricing-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.pricing-sub { color: var(--dim); font-size: 16px; margin-bottom: 28px; }
.pricing-badge { color: var(--green); font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.pricing-card {
  background: var(--surface1); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.pricing-price { font-size: 48px; font-weight: 800; color: var(--cyan); }
.pricing-period { font-size: 20px; font-weight: 400; color: var(--dim); }
.pricing-features {
  list-style: none; padding: 0; margin: 24px 0; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
}
.pricing-features li { font-size: 14px; color: var(--text); }
.pricing-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ── Subscription page ── */
.sub-page { max-width: 480px; margin: 0 auto; padding: 40px 20px; }
.sub-page h1 { font-size: 26px; font-weight: 700; margin: 12px 0 20px; }
.sub-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 6px 14px;
  border-radius: 8px;
}
.sub-badge--pro { background: rgba(34,211,238,.15); color: var(--cyan); }
.sub-badge--free { background: var(--surface2); color: var(--dim); }
.sub-info { background: var(--surface1); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sub-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.sub-row:last-child { border-bottom: none; }
.sub-row span { color: var(--dim); }


/* ════════════════════════════════════════════════════════
   Brand icon micro-animations
   ════════════════════════════════════════════════════════ */

/* — TikTok glow pulse — */
@keyframes tk-glow {
  0%,100% { box-shadow: 0 4px 14px rgba(255,45,85,.32); filter: brightness(1); }
  50%     { box-shadow: 0 4px 24px rgba(255,45,85,.58), 0 0 0 3px rgba(255,45,85,.07); filter: brightness(1.06); }
}
/* — TikTok shimmer — */
@keyframes tk-shimmer {
  0%       { left: -90%; opacity: 0; }
  8%       { opacity: 1; }
  52%,100% { left: 145%; opacity: 0; }
}

/* — Amazon glow pulse — */
@keyframes az-glow {
  0%,100% { box-shadow: 0 4px 14px rgba(255,153,0,.28); filter: brightness(1); }
  50%     { box-shadow: 0 4px 22px rgba(255,153,0,.52), 0 0 0 3px rgba(255,153,0,.07); filter: brightness(1.06); }
}
/* — Amazon shimmer — */
@keyframes az-shimmer {
  0%       { left: -90%; opacity: 0; }
  8%       { opacity: 1; }
  52%,100% { left: 145%; opacity: 0; }
}

/* — Insights brain-scan expanding ring — */
@keyframes brain-scan {
  0%   { transform: translate(-50%,-50%) scale(.1);  opacity: .7; }
  65%  { transform: translate(-50%,-50%) scale(1.4); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(.1);  opacity: 0; }
}
/* — Insights cycling icon in/out — */
@keyframes ic-show {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.65) rotate(-8deg); filter: blur(1.5px); }
  8%   { opacity: 1; transform: translate(-50%,-50%) scale(1)   rotate(0deg);  filter: blur(0); }
  26%  { opacity: 1; }
  34%  { opacity: 0; transform: translate(-50%,-50%) scale(.88) rotate(5deg); }
  100% { opacity: 0; }
}

/* — Apply to TikTok icon — */
.tool-icon--tiktok {
  animation: tk-glow 3.4s ease-in-out infinite;
  overflow: hidden;
  position: relative;
}
.tool-icon--tiktok::before {
  content: '';
  position: absolute;
  top: 0; left: -90%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transform: skewX(-15deg);
  pointer-events: none;
  animation: tk-shimmer 4.4s ease-in-out infinite;
  z-index: 2;
}

/* — Apply to Amazon icon — */
.tool-icon--amazon {
  animation: az-glow 3.9s ease-in-out 1.2s infinite;
  overflow: hidden;
  position: relative;
}
.tool-icon--amazon::before {
  content: '';
  position: absolute;
  top: 0; left: -90%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.20) 50%, transparent 100%);
  transform: skewX(-15deg);
  pointer-events: none;
  animation: az-shimmer 5.1s ease-in-out 2.2s infinite;
  z-index: 2;
}

/* — Insights BI icon — */
.tool-icon--insights {
  overflow: hidden;
  position: relative;
}
/* brain-scan ring */
.tool-icon--insights::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 88%; aspect-ratio: 1;
  border: 2px solid rgba(99,102,241,.55);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(.1);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: brain-scan 2.8s ease-out infinite;
}

/* — Cycling reel — */
.insights-cycle {
  position: relative;
  width: 100%; height: 100%;
  display: block;
}
.insights-cycle .ic {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.65);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  width: 62%; height: 62%;
  animation: ic-show 3.2s ease-in-out infinite;
  z-index: 2;
}
.insights-cycle .ic svg { width: 100%; height: 100%; }
.insights-cycle .ic--tk { animation-delay: 0s;   color: #fe2c55; }
.insights-cycle .ic--az { animation-delay: .8s;  color: #ff9900; }
.insights-cycle .ic--fb { animation-delay: 1.6s; color: #1877F2; }
.insights-cycle .ic--ml { animation-delay: 2.4s; color: #F59E0B; }

/* ═══════════════════════════════════════════════════════════════
   Mobile layout fixes
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 879px) {

  /* Prevent any horizontal overflow */
  body { overflow-x: hidden; max-width: 100vw; }

  /* Chat screen: escape layout padding, fill from header to bottom-nav */
  .chat-screen {
    height: calc(100dvh - var(--header-h) - 68px);
    max-height: none;
    min-height: 0;
    max-width: none;
    width: auto;
    margin: -16px -12px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  /* Remove bottom padding from layout when chat is present (no extra scroll) */
  .layout:has(.chat-screen) {
    padding-bottom: 0;
  }

  /* Bottom nav: fixed height so our dvh math is exact */
  .bottom-nav {
    height: 68px;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  /* FAB centered vertically; float it a bit above for the design */
  .bn-fab {
    transform: translateY(-10px);
    flex-shrink: 0;
    align-self: center;
  }

  /* Nav items equal flex share */
  .bn-item {
    flex: 1;
    min-width: 0;
  }

  /* Topbar: contained width */
  .topbar { max-width: 100vw; box-sizing: border-box; }
}

/* ── Bottom nav: bn-post button styled as bn-item ─────────────────── */
#bn-post {
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; font-size: 10px; font-weight: 600;
  color: var(--muted); transition: color .15s ease;
  flex: 1;
}
#bn-post.is-active { color: var(--brand-2); }
#bn-post svg { width: 22px; height: 22px; }

/* ── Tools page: 3 cards fit on mobile without scroll ─────────────── */
@media (max-width: 879px) {
  .tools-page {
    padding: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }
  .tools-header {
    padding: 14px 16px 8px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .tools-header h1 { font-size: 18px; margin-bottom: 2px; }
  .tools-sub { font-size: 12px; }
  .tools-header > .btn { margin-top: 8px; padding: 8px 14px; font-size: 13px; }
  .tools-section {
    margin-bottom: 0;
    padding: 0 12px 8px;
  }
  .tools-section-head {
    margin: 10px 0 8px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tool-card {
    padding: 11px 14px;
    flex-direction: row;
    align-items: center;
    gap: 0;
    border-radius: 12px;
  }
  .tool-card:hover { transform: none; }
  .tool-card-top {
    margin-bottom: 0;
    flex: 1;
    align-items: center;
  }
  .tool-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
  }
  .tool-card-footer {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 10px;
  }
  .tool-card-action {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* ═══════════════════════════════════════════════════════
   Rail carousels — Amazon marquee + TikTok cycling
   ═══════════════════════════════════════════════════════ */
.rh-suffix { font-weight:400; font-size:.68rem; opacity:.7; letter-spacing:.02em; }

/* Amazon marquee */
.az-marquee { overflow:hidden; width:100%; padding:6px 0; }
.az-track { display:flex; gap:10px; animation: az-scroll 28s linear infinite; width:max-content; }
.az-marquee:hover .az-track { animation-play-state: paused; }
@keyframes az-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.az-card { flex:0 0 100px; display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:8px 6px; border-radius:10px; background:rgba(255,153,0,.06); border:1px solid rgba(255,153,0,.12);
  text-decoration:none; transition:background .15s; }
.az-card:hover { background:rgba(255,153,0,.12); }
.az-card-img { width:72px; height:72px; object-fit:contain; border-radius:6px; }
.az-card-title { font-size:.62rem; color:var(--text); line-height:1.3; text-align:center; max-width:96px; }
.az-card-price { font-size:.65rem; color:#ff9900; font-weight:600; }
.az-card-rank { font-size:.58rem; color:var(--muted); }

/* TikTok slide-in */
.rank-slide-in { animation: slideUp .35s ease; }
@keyframes slideUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.rail-empty { padding:12px 16px; color:var(--muted); font-size:13px; }

/* Friends list */
.rail-friends { margin-top: 8px; }
.rail-friend { display:flex; align-items:center; gap:9px; padding:7px 16px; text-decoration:none;
  transition:background .15s; border-radius:8px; margin:0 4px; }
.rail-friend:hover { background: var(--surface2); }
.rail-friend-info { display:flex; flex-direction:column; gap:1px; min-width:0; }
.rail-friend-name { font-size:.8rem; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rail-friend-handle { font-size:.7rem; color:var(--muted); }

/* ── Post dropdown menu ─────────────────────────────────────── */
.post-dropdown { position: relative; }
.post-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 -8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  opacity: 0;
  transform: translateY(6px) scale(.97);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 200;
}
.post-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.post-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text, #E2E8F0);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .13s;
}
.post-menu-item:hover { background: var(--bg-hover); }
.post-menu-item svg { flex-shrink: 0; }
.post-menu-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--brand-grad);
  color: #fff;
  letter-spacing: .02em;
}
.post-menu-item--haon svg { color: var(--brand-1); }
.post-menu-item--meta svg { color: #1877F2; }
.post-menu-item--tiktok svg { color: #fe2c55; }
.post-menu-item--youtube svg { color: #FF0000; }
.post-menu-item--google svg { color: #4285F4; }
.post-dropdown-trigger { display: flex; align-items: center; gap: 8px; width: 100%; }
.post-chevron { margin-left: auto; transition: transform .2s ease; flex-shrink: 0; }
.post-dropdown-trigger[aria-expanded="true"] .post-chevron { transform: rotate(180deg); }

/* ── Social Hub pages ────────────────────────────────────────── */
.social-hub-page { max-width: 680px; margin: 0 auto; padding: 28px 0; }
.social-hub-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; border-radius: 16px; margin-bottom: 24px;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
}
.social-hub-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-hub-hero h1 { font-size: 1.3rem; margin: 0 0 4px; }
.social-hub-hero p { font-size: .85rem; color: var(--muted, #64748B); margin: 0; }
.social-hub-connect {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 20px; margin-bottom: 18px;
}
.social-hub-connect h2 { font-size: 1rem; margin: 0 0 14px; }
.social-hub-account-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px; border: 1.5px dashed rgba(255,255,255,.1);
  border-radius: 12px; text-align: center;
  font-size: .84rem; color: var(--muted, #64748B);
}
.social-hub-btn-connect {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: none;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s, transform .12s;
}
.social-hub-btn-connect:hover { opacity: .88; transform: translateY(-1px); }
.social-hub-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px;
}
.social-hub-feature {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 16px;
}
.social-hub-feature-icon { font-size: 1.3rem; margin-bottom: 8px; }
.social-hub-feature h3 { font-size: .85rem; margin: 0 0 4px; }
.social-hub-feature p { font-size: .76rem; color: var(--muted, #64748B); margin: 0; }
.social-hub-coming {
  text-align: center; font-size: .76rem; color: var(--muted, #64748B);
  padding: 12px; background: var(--bg-soft); border-radius: 10px;
}


/* ── Tool-card 2-icon cycling (TikTok Shop + Amazon) ────────────── */
@keyframes tic-show-a {
  0%,  42% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg);    filter: blur(0); }
  48%, 94% { opacity: 0; transform: translate(-50%,-50%) scale(.68) rotate(-5deg); filter: blur(1px); }
  100%     { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg);    filter: blur(0); }
}
@keyframes tic-show-b {
  0%,  46% { opacity: 0; transform: translate(-50%,-50%) scale(.68) rotate(5deg);  filter: blur(1px); }
  52%, 90% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg);    filter: blur(0); }
  96%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.68) rotate(-5deg); filter: blur(1px); }
}

.tool-icon-cycle {
  position: relative;
  width: 100%; height: 100%;
  display: block;
}
.tic {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.68);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  width: 64%; height: 64%;
  pointer-events: none;
}
.tic svg { width: 100%; height: 100%; }

.tic--a          { animation: tic-show-a 6.4s ease-in-out infinite; }
.tic--b          { animation: tic-show-b 6.4s ease-in-out infinite; }

/* Amazon card starts mid-cycle so the two cards are out of phase */
.tic--az-delay   { animation-delay: 3.2s; }

/* Brand logo colours */
.tic--tk-logo  { color: #fe2c55; }
.tic--az-logo  { color: #ff9900; }


/* ══ Mobile Post Bottom Sheet (.mps-*) ══════════════════════ */
#mobile-post-sheet {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
}
#mobile-post-sheet.active {
  visibility: visible;
  pointer-events: auto;
}
.mps-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
#mobile-post-sheet.active .mps-overlay { opacity: 1; }

.mps-panel {
  position: relative;
  background: var(--bg-card, #1e293b);
  border-radius: 20px 20px 0 0;
  padding: 10px 16px 40px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,0,.15,1);
  border-top: 1px solid rgba(255,255,255,.08);
}
#mobile-post-sheet.active .mps-panel { transform: translateY(0); }

.mps-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.mps-title {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.mps-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 10px;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--text, #f1f5f9);
  font-size: .95rem;
  font-weight: 500;
  background: transparent;
  border: none;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.mps-item:active { background: rgba(255,255,255,.07); }
.mps-item-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.mps-item--haon .mps-item-icon  { background: rgba(99,102,241,.18); color: var(--brand-1,#6366f1); }
.mps-item--meta .mps-item-icon  { background: rgba(24,119,242,.15); }
.mps-item--tiktok .mps-item-icon{ background: rgba(254,44,85,.12); }
.mps-item--youtube .mps-item-icon{ background: rgba(255,0,0,.12); }
.mps-item--google .mps-item-icon{ background: rgba(66,133,244,.12); }
.mps-badge {
  margin-left: auto;
  background: var(--brand-1,#6366f1);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: .02em;
}
.mps-arrow {
  margin-left: auto;
  opacity: .35;
  flex-shrink: 0;
}


/* ── Em Alta cycling ────────────────────────── */
#rail-trending { transition: opacity .28s ease, transform .28s ease; }
#rail-trending.trend-out {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.trend-dots {
  display: flex; gap: 5px; padding: 6px 18px 10px;
}
.trend-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sep-h, rgba(255,255,255,.12));
  transition: background .3s, width .3s;
  cursor: pointer;
}
.trend-dot.active {
  background: var(--brand-1, #6366f1);
  width: 14px; border-radius: 3px;
}


/* ══════════════════════════════════════════════════════════
   LANDING PAGE  (#screen-landing  .lp-*)
   ══════════════════════════════════════════════════════════ */

#screen-landing {
  min-height: 100vh;
  background: #050b18;
  color: #f1f5f9;
  font-family: var(--body, system-ui, sans-serif);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* NAV */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(5,11,24,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .04em;
  color: #fff;
}
.lp-nav-actions { display: flex; align-items: center; gap: 8px; }
.lp-nav-link {
  color: rgba(255,255,255,.6); font-size: .88rem; text-decoration: none;
  padding: 6px 14px; border-radius: 8px; transition: color .15s;
}
.lp-nav-link:hover { color: #fff; }
.lp-btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 8px; padding: 7px 18px;
  font-size: .88rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.lp-btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.lp-btn-solid {
  background: var(--brand-grad, linear-gradient(135deg,#6366f1,#a855f7));
  border: none; color: #fff; border-radius: 8px; padding: 7px 18px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.lp-btn-solid:hover { opacity: .9; transform: translateY(-1px); }

/* HERO */
.lp-hero {
  min-height: 100vh;
  display: flex; align-items: center; gap: 60px;
  padding: 120px 60px 60px;
  position: relative; overflow: hidden;
}
.lp-hero-glow {
  position: absolute; border-radius: 50%; filter: blur(100px);
  pointer-events: none; animation: lp-pulse 4s ease-in-out infinite;
}
.lp-hero-glow--1 { width: 500px; height: 500px; background: rgba(99,102,241,.18); top: -100px; left: -80px; animation-delay: 0s; }
.lp-hero-glow--2 { width: 400px; height: 400px; background: rgba(168,85,247,.14); bottom: -50px; right: 10%; animation-delay: 2s; }
@keyframes lp-pulse {
  0%,100% { transform: scale(1) translate(0,0); opacity: .8; }
  50% { transform: scale(1.15) translate(20px,-20px); opacity: 1; }
}

.lp-hero-content { flex: 0 0 480px; max-width: 480px; position: relative; z-index: 1; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.35);
  color: #a5b4fc; font-size: .75rem; font-weight: 600;
  border-radius: 100px; padding: 4px 14px; margin-bottom: 22px;
  letter-spacing: .04em;
}
.lp-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6366f1;
  animation: lp-blink 1.4s ease-in-out infinite;
}
@keyframes lp-blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.lp-h1 {
  font-size: clamp(2.2rem,4vw,3.2rem);
  font-weight: 900; line-height: 1.12;
  color: #fff; margin: 0 0 18px; letter-spacing: -.02em;
}
.lp-grad {
  background: linear-gradient(90deg, #818cf8, #c084fc, #fb7185);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lp-grad-shift 4s ease infinite;
  background-size: 200%;
}
@keyframes lp-grad-shift { 0%,100%{background-position:0%} 50%{background-position:100%} }
.lp-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.6); line-height: 1.7;
  margin: 0 0 30px;
}
.lp-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.lp-cta-main {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#6366f1,#a855f7);
  color: #fff; border: none; border-radius: 12px;
  padding: 14px 26px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: opacity .15s, transform .12s, box-shadow .2s;
  box-shadow: 0 4px 30px rgba(99,102,241,.4);
}
.lp-cta-main:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 8px 40px rgba(99,102,241,.5); }
.lp-cta-main--big { font-size: 1.1rem; padding: 16px 32px; }
.lp-cta-sec {
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75); border-radius: 12px;
  padding: 14px 22px; font-size: .95rem; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lp-cta-sec:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.lp-social-proof {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.lp-social-proof span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 3px 10px; font-size: .78rem; color: rgba(255,255,255,.6);
}

/* DASHBOARD (right side hero) */
.lp-dashboard {
  flex: 1; position: relative; z-index: 1;
  min-width: 0;
}
.lp-dash-label {
  font-size: .7rem; color: rgba(255,255,255,.35); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 12px; text-align: right;
}
.lp-country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lp-country-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 14px;
  transition: border-color .3s, box-shadow .4s;
  min-width: 0; overflow: hidden;
}
.lp-country-card.lp-card-pulse {
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 0 20px rgba(99,102,241,.2);
}
.lp-cc-flag { font-size: 1.1rem; }
.lp-cc-name { font-size: .65rem; color: rgba(255,255,255,.45); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.lp-cc-product {
  font-size: .76rem; color: #e2e8f0; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3; opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
  min-height: 1.2em;
}
.lp-cc-product.visible { opacity: 1; transform: translateY(0); }
.lp-cc-rank {
  font-size: .62rem; color: rgba(255,255,255,.3); margin-top: 4px;
}

/* STATS BAR */
.lp-stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 28px 40px;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}
.lp-stat-item { text-align: center; padding: 8px 40px; }
.lp-stat-n { display: block; font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1; }
.lp-stat-l { display: block; font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.lp-stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* SECTIONS */
.lp-section { padding: 100px 0; }
.lp-section--alt { background: rgba(255,255,255,.02); }
.lp-section-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.lp-section-label {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #818cf8; margin-bottom: 14px;
}
.lp-section-h2 {
  font-size: clamp(1.7rem,3vw,2.5rem); font-weight: 900;
  color: #fff; margin: 0 0 14px; letter-spacing: -.02em; line-height: 1.2;
}
.lp-section-sub { font-size: .98rem; color: rgba(255,255,255,.55); max-width: 600px; line-height: 1.7; margin: 0 0 50px; }

/* TOOLS GRID */
.lp-tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lp-tool-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.lp-tool-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.lp-tool-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.lp-tool-card--tiktok .lp-tool-icon { background: rgba(254,44,85,.15); color: #fe2c55; }
.lp-tool-card--amazon .lp-tool-icon { background: rgba(255,153,0,.15); color: #ff9900; }
.lp-tool-card--insights .lp-tool-icon { background: rgba(167,139,250,.15); color: #a78bfa; }
.lp-tool-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 10px; }
.lp-tool-card > p { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.65; margin: 0 0 16px; }
.lp-tool-expand {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: #818cf8; cursor: pointer;
  user-select: none; transition: color .15s;
}
.lp-tool-expand:hover { color: #a5b4fc; }
.lp-tool-expand svg { transition: transform .2s; }
.lp-tool-card.expanded .lp-tool-expand svg { transform: rotate(180deg); }
.lp-tool-details {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  list-style: none; padding: 0; margin: 0;
}
.lp-tool-card.expanded .lp-tool-details { max-height: 300px; margin-top: 14px; }
.lp-tool-details li {
  font-size: .8rem; color: rgba(255,255,255,.6); padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 8px;
}
.lp-tool-details li::before { content: "→"; color: #818cf8; font-size: .7rem; }

/* TWO COLUMN */
.lp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.lp-two-col--rev .lp-two-col-text { order: 2; }
.lp-two-col--rev .lp-two-col-visual { order: 1; }
.lp-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.5; }

/* MOCK POST */
.lp-visual-social { display: flex; flex-direction: column; gap: 12px; }
.lp-mock-post {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 16px; display: flex; gap: 12px;
}
.lp-mock-post--2 { transform: translateX(20px); opacity: .75; }
.lp-mock-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; color: #fff; flex-shrink: 0; }
.lp-mock-name { font-size: .78rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.lp-mock-name span { color: rgba(255,255,255,.4); font-weight: 400; }
.lp-mock-text { font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.5; margin-bottom: 10px; }
.lp-mock-actions { display: flex; gap: 16px; font-size: .72rem; color: rgba(255,255,255,.35); }

/* MULTI-POST VISUAL */
.lp-visual-post { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 32px; }
.lp-post-platforms { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.lp-post-plat--haon { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: #fff; }
.lp-post-arrow { font-size: 1.2rem; color: rgba(255,255,255,.3); }
.lp-post-targets { display: flex; flex-direction: column; gap: 4px; }
.lp-post-target { font-size: .82rem; font-weight: 600; }
.lp-post-desc { font-size: .78rem; color: rgba(255,255,255,.4); text-align: center; }

/* ECOSYSTEM */
.lp-eco-list { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.06); border-radius: 16px; overflow: hidden; }
.lp-eco-item { background: #080f1e; }
.lp-eco-head {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; text-align: left;
  background: transparent; border: none; cursor: pointer;
  color: #fff; font-size: .95rem; font-weight: 600;
  transition: background .15s;
}
.lp-eco-head:hover { background: rgba(255,255,255,.04); }
.lp-eco-num { font-size: .7rem; font-weight: 800; color: #818cf8; letter-spacing: .06em; min-width: 24px; }
.lp-eco-chev { margin-left: auto; opacity: .5; flex-shrink: 0; transition: transform .22s; }
.lp-eco-item.open .lp-eco-chev { transform: rotate(180deg); }
.lp-eco-body {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.7;
  padding: 0 24px 0 64px;
}
.lp-eco-item.open .lp-eco-body { max-height: 200px; padding-bottom: 20px; }

/* FINAL CTA */
.lp-final-cta {
  text-align: center; padding: 120px 40px;
  position: relative; overflow: hidden;
}
.lp-final-cta-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.lp-final-cta h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: #fff; margin: 0 0 16px; }
.lp-final-cta > p { font-size: 1rem; color: rgba(255,255,255,.55); margin: 0 0 36px; }
.lp-final-sub { font-size: .8rem; color: rgba(255,255,255,.3); margin-top: 16px !important; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .lp-hero { flex-direction: column; padding: 100px 24px 40px; }
  .lp-hero-content { max-width: 100%; }
  .lp-dashboard { width: 100%; }
  .lp-tools-grid { grid-template-columns: 1fr; }
  .lp-two-col { grid-template-columns: 1fr; gap: 40px; }
  .lp-two-col--rev .lp-two-col-text { order: 1; }
  .lp-two-col--rev .lp-two-col-visual { order: 2; }
  .lp-section { padding: 60px 0; }
  .lp-nav { padding: 12px 20px; }
  .lp-nav-link { display: none; }
  .lp-stat-item { padding: 8px 20px; }
  .lp-country-grid { grid-template-columns: repeat(2,1fr); }
}

/* ══ AUTH MODAL (improved) ══════════════════════════════════ */
.auth-modal {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-modal.hidden { display: none; }
.auth-modal-bg {
  position: absolute; inset: 0;
  background: rgba(5,11,24,.85);
  backdrop-filter: blur(10px);
}
.auth-card {
  position: relative; z-index: 1;
  background: #111827;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 36px 32px;
  width: 100%; max-width: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
}
.auth-card-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.08); border: none;
  color: rgba(255,255,255,.5); border-radius: 8px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.auth-card-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.auth-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.auth-brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: .04em; }
.auth-brand-sub { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: 2px; }
/* Override old brand/hex styles inside auth-card */
.auth-card .brand { display: none; }


/* ── Language toggle button ─────────────────────────────── */
.lp-lang-toggle {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted, #94a3b8);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: 'JetBrains Mono', monospace;
}
.lp-lang-toggle:hover {
  background: rgba(99,102,241,.2);
  color: var(--brand-1, #6366f1);
  border-color: var(--brand-1, #6366f1);
}


/* ── Real logo PNG assets ───────────────────────────────── */
.lp-nav-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  flex-shrink: 0;
}
.lp-nav-wordmark {
  font-family: var(--display, 'Montserrat', sans-serif);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .08em;
  color: #E6E9FF;
}
.auth-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.topbar-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}


/* ── Tool Icon Badges (.tib) ────────────────────────────── */
.tib {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tib--tiktok {
  background: #010101;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 20px rgba(0,0,0,.6);
}
.tib--amazon {
  background: linear-gradient(145deg, #131921 0%, #232f3e 100%);
  box-shadow: 0 0 0 1px rgba(255,153,0,.18), 0 4px 20px rgba(0,0,0,.6);
}
.tib--bi {
  background: linear-gradient(145deg, #1e3a5f 0%, #1a4a8a 100%);
  box-shadow: 0 0 0 1px rgba(99,102,241,.2), 0 4px 20px rgba(0,0,0,.6);
}

/* ── Rail Tool Icons (.rti) ─────────────────────────────── */
.rti {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.rti--tiktok  { background: #010101; }
.rti--amazon  { background: linear-gradient(135deg, #131921, #232f3e); }
.rti--bi      { background: linear-gradient(135deg, #1e3a5f, #1a4a8a); }
.rti--copy    { background: rgba(99,102,241,.18); }
.rti--chain   { background: rgba(6,182,212,.12); }
.rti--ranks   { background: rgba(245,158,11,.12); }
.rti--default { background: rgba(255,255,255,.08); }

/* Rail item uses flex with gap */
.rail-tool-item { display: flex; align-items: center; gap: 10px; }
.rail-tool-icon { display: none; }

/* ════════════════════════════════════════════════════════════════
   COPYWRITING AI — page styles (append to public/css/style.css)
   ════════════════════════════════════════════════════════════════ */

.copy-page { max-width: 900px; margin: 0 auto; padding: 24px 16px 80px; }

.copy-hero { text-align: center; margin-bottom: 28px; }
.copy-hero h1 {
  font-family: var(--display, inherit);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, #e2e8f0, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 6px;
}
.copy-sub { color: var(--muted, #94a3b8); font-size: .92rem; max-width: 540px; margin: 0 auto 14px; line-height: 1.55; }
.copy-quota {
  display: inline-flex; gap: 14px; align-items: center;
  font-size: .76rem; color: var(--muted, #94a3b8);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  padding: 6px 14px; border-radius: 20px;
}
.copy-quota-pill {
  font-size: .62rem; font-weight: 800;
  padding: 2px 8px; border-radius: 10px;
  letter-spacing: .06em;
}
.copy-quota-pill.pro  { background: rgba(167,139,250,.18); color: #c4b5fd; border: 1px solid rgba(167,139,250,.35); }
.copy-quota-pill.free { background: rgba(148,163,184,.15); color: #cbd5e1; border: 1px solid rgba(148,163,184,.25); }

.copy-keys-card {
  background: rgba(15,23,42,.6); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 22px;
}
.copy-keys-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .92rem; }
.copy-mini-btn {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 5px 12px; color: #e2e8f0;
  font-size: .76rem; cursor: pointer; font-weight: 600;
  transition: background .13s;
}
.copy-mini-btn:hover { background: rgba(255,255,255,.1); }
.copy-keys-body { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.copy-key-row {
  display: grid; grid-template-columns: 130px 1fr auto auto;
  gap: 8px; align-items: center;
}
.copy-key-name { font-size: .8rem; }
.copy-key-name small { color: var(--muted, #64748b); font-size: .65rem; }
.copy-key-input {
  background: #0b0f19; border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; padding: 7px 10px; color: #e2e8f0; font-size: .8rem;
  font-family: monospace;
}
.copy-key-input:focus { outline: none; border-color: #a78bfa; }

.copy-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 0;
}
.copy-tab {
  background: transparent; border: none; padding: 10px 18px;
  color: var(--muted, #94a3b8); font-size: .88rem; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.copy-tab:hover:not(:disabled) { color: #e2e8f0; }
.copy-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; }
.copy-tab:disabled { opacity: .35; cursor: not-allowed; }

.copy-form { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.copy-form label {
  font-size: .72rem; font-weight: 700; color: var(--muted, #94a3b8);
  text-transform: uppercase; letter-spacing: .05em;
}
.copy-form input, .copy-form select, .copy-form textarea {
  background: #0b0f19; border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px; padding: 10px 12px; color: #e2e8f0;
  font-size: .88rem; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.copy-form input:focus, .copy-form select:focus, .copy-form textarea:focus {
  border-color: #a78bfa;
}
.copy-form textarea { resize: vertical; line-height: 1.5; min-height: 120px; }
.copy-hint { font-size: .68rem; color: var(--muted, #64748b); text-align: right; margin-top: -6px; }
.copy-grid-2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .copy-grid-2 { grid-template-columns: 1fr; } .copy-key-row { grid-template-columns: 1fr; } }

.copy-generate-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
  color: #fff; font-weight: 700; font-size: .95rem;
  padding: 13px; border: none; border-radius: 12px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(139,92,246,.35);
  transition: filter .15s, transform .1s;
}
.copy-generate-btn:hover { filter: brightness(1.1); }
.copy-generate-btn:active { transform: scale(.98); }
.copy-generate-btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* COPY_OUTPUT_CINEMA_V1 (2026-05-20) — Palantir + cinema script aesthetic, theme-aware */
.copy-output {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 14px; overflow: hidden;
  color: var(--text);
}
.copy-output-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-soft, rgba(0,0,0,.02));
  border-bottom: 1px solid var(--border, rgba(0,0,0,.06));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2, var(--text));
}
.copy-output-body {
  padding: 24px 26px; max-height: 78vh; overflow-y: auto;
  font-size: .92rem; line-height: 1.7;
  color: var(--text);
}

/* H1 — Roteiros gerados — film slate header */
.copy-output-body h1 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 18px; padding: 8px 0 10px;
  color: var(--text);
  border-bottom: 2px solid var(--text);
  display: inline-block;
}

/* H2 — Roteiro N — header with script slate vibe */
.copy-output-body h2 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem; font-weight: 700; letter-spacing: .08em;
  margin: 28px 0 4px;
  color: var(--text);
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--bg-soft, rgba(123,92,255,.06)) 0%, transparent 100%);
  border-left: 4px solid #7B5CFF;
  border-radius: 0 8px 8px 0;
  position: relative;
}
.copy-output-body h2::before {
  content: '◆';
  color: #7B5CFF;
  margin-right: 10px;
  font-size: .8em;
}

/* H3 — Scene header (operational) */
.copy-output-body h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  margin: 22px 0 10px;
  padding: 6px 12px;
  background: var(--bg-soft, rgba(0,212,255,.06));
  color: var(--text);
  border-left: 3px solid #00D4FF;
  display: inline-block;
  border-radius: 2px;
}
.copy-output-body h3::before {
  content: '▎';
  color: #00D4FF;
  margin-right: 4px;
}

.copy-output-body hr {
  border: none;
  border-top: 1px dashed var(--border, rgba(0,0,0,.12));
  margin: 26px 0 18px;
}

/* Blockquote = DIALOGUE (Fala) — cinema script style */
.copy-output-body blockquote {
  position: relative;
  border-left: 3px solid #7B5CFF;
  padding: 14px 20px 14px 26px;
  background: var(--bg-soft, rgba(123,92,255,.04));
  border-radius: 0 6px 6px 0;
  margin: 10px 0 16px 24px;
  color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 1rem; line-height: 1.65;
  max-width: 640px;
}
.copy-output-body blockquote::before {
  content: 'DIÁLOGO';
  position: absolute;
  top: -8px; left: 16px;
  background: var(--bg-card);
  padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal; font-size: .58rem; font-weight: 700;
  letter-spacing: .18em; color: #7B5CFF;
}

.copy-output-body p { margin: 8px 0; }

/* Production cues — Visual / Movimento / Câmera / Áudio labels */
.copy-output-body p > strong:first-child {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim, #64748b);
  background: var(--bg-soft, rgba(0,0,0,.04));
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 8px;
  min-width: 90px; text-align: center;
  border: 1px solid var(--border, rgba(0,0,0,.06));
  vertical-align: baseline;
}
.copy-output-body strong { color: var(--text); font-weight: 700; }

.copy-output-body code {
  background: var(--bg-soft, rgba(0,0,0,.06));
  color: var(--text);
  padding: 2px 6px; border-radius: 4px; font-size: .82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Light theme override — explicit fallback for missing vars */
html[data-theme="light"] .copy-output { background: #fff; border-color: #e5e7eb; }
html[data-theme="light"] .copy-output-head { background: #f8fafc; border-color: #e5e7eb; color: #475569; }
html[data-theme="light"] .copy-output-body { color: #0f172a; }
html[data-theme="light"] .copy-output-body h1 { color: #0f172a; border-bottom-color: #0f172a; }
html[data-theme="light"] .copy-output-body h2 { color: #0f172a; background: linear-gradient(90deg, rgba(123,92,255,.08) 0%, transparent 100%); }
html[data-theme="light"] .copy-output-body h3 { color: #0f172a; background: rgba(0,212,255,.08); }
html[data-theme="light"] .copy-output-body blockquote { color: #1e293b; background: rgba(123,92,255,.05); }
html[data-theme="light"] .copy-output-body blockquote::before { background: #fff; }
html[data-theme="light"] .copy-output-body p > strong:first-child { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
html[data-theme="light"] .copy-output-body strong { color: #0f172a; }
html[data-theme="light"] .copy-output-body code { background: #f1f5f9; color: #0f172a; }
html[data-theme="light"] .copy-output-body hr { border-top-color: #e2e8f0; }

/* Navy theme tune */
html[data-theme="navy"] .copy-output-body h2 { border-left-color: #38bdf8; }
html[data-theme="navy"] .copy-output-body h2::before { color: #38bdf8; }
html[data-theme="navy"] .copy-output-body h3 { border-left-color: #00D4FF; }
html[data-theme="navy"] .copy-output-body blockquote { border-left-color: #38bdf8; }
html[data-theme="navy"] .copy-output-body blockquote::before { color: #38bdf8; }

/* ════════════════════════════════════════════════════════════════
   COPYWRITING AI v2 — additional styles (animated SVG button + tabs + notes)
   ════════════════════════════════════════════════════════════════ */

.copy-tool { display: none; }
.copy-tool.active { display: block; }

.copy-form input, .copy-form select, .copy-form textarea {
  background: #0b0f19;
}

.copy-note {
  font-size: .76rem; color: var(--muted, #94a3b8);
  background: rgba(167,139,250,.07);
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
}
.copy-note code {
  background: rgba(167,139,250,.18);
  color: #e2e8f0;
  padding: 1px 6px; border-radius: 4px; font-size: .72rem;
}

/* Generate button — animated lightning bolt */
.copy-generate-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; line-height: 1;
}
.copy-bolt {
  filter: drop-shadow(0 0 4px rgba(253,230,138,.65));
  animation: copyBoltPulse 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes copyBoltPulse {
  0%, 100% { transform: rotate(-6deg) scale(1);   filter: drop-shadow(0 0 4px rgba(253,230,138,.55)); }
  50%      { transform: rotate( 6deg) scale(1.12); filter: drop-shadow(0 0 10px rgba(253,230,138,.95)); }
}
.copy-generate-btn.generating .copy-bolt {
  animation: copyBoltSpark .35s ease-in-out infinite;
}
@keyframes copyBoltSpark {
  0%   { transform: rotate(-18deg) scale(0.9); filter: drop-shadow(0 0 12px rgba(253,230,138,1)) drop-shadow(0 0 4px rgba(255,255,255,.8)); }
  50%  { transform: rotate( 18deg) scale(1.25); filter: drop-shadow(0 0 16px rgba(56,189,248,1))  drop-shadow(0 0 6px rgba(255,255,255,1)); }
  100% { transform: rotate(-10deg) scale(1.0); filter: drop-shadow(0 0 8px rgba(253,230,138,.8)); }
}
.copy-generate-btn.generating {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  background-size: 200% 200%;
  animation: copyBtnFlow 1.4s ease infinite;
}
@keyframes copyBtnFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Output: code blocks */
.copy-output-body pre {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 6px 0;
  font-size: .76rem;
  overflow-x: auto;
  line-height: 1.45;
}
.copy-output-body pre code {
  background: transparent;
  padding: 0;
}

/* ═══ Tracker page ═══ */
.tracker-page { max-width: 900px; margin: 0 auto; padding: 20px 16px 80px; }
.tracker-head h1 { font-size: 1.6rem; margin: 0 0 6px; }
.tracker-sub { color: #94a3b8; font-size: .88rem; margin: 0 0 14px; }
.tracker-actions { display: flex; gap: 8px; margin-bottom: 18px; }
.tracker-refresh {
  background: rgba(56,189,248,.12); color: #38bdf8;
  border: 1px solid rgba(56,189,248,.3); border-radius: 8px;
  padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: .82rem;
}
.tracker-refresh:hover { background: rgba(56,189,248,.2); }
.tracker-refresh:disabled { opacity: .55; cursor: wait; }

.tracker-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 700px) { .tracker-sub-grid { grid-template-columns: 1fr; } }

.tk-sub-card {
  display: flex; gap: 10px; padding: 10px;
  background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; position: relative;
}
.tk-sub-img { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.03); }
.tk-sub-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-sub-body { flex: 1; min-width: 0; }
.tk-sub-source { font-size: .68rem; color: #64748b; font-weight: 600; }
.tk-sub-title { font-size: .82rem; color: #e2e8f0; margin: 2px 0 6px; line-height: 1.3; }
.tk-sub-stats { display: flex; gap: 10px; font-size: .7rem; color: #94a3b8; flex-wrap: wrap; }
.tk-sub-stats b { color: #fff; }
.tk-sub-rm {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3);
  color: #fca5a5; cursor: pointer; font-size: .85rem;
}
.tk-sub-rm:hover { background: rgba(248,113,113,.3); }

.tracker-feed { display: flex; flex-direction: column; gap: 8px; }
.tk-feed-card {
  display: flex; gap: 12px; padding: 12px;
  background: rgba(15,23,42,.5); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.tk-feed-img { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.03); }
.tk-feed-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-feed-body { flex: 1; min-width: 0; }
.tk-feed-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.tk-feed-event { font-size: .78rem; font-weight: 700; color: #c4b5fd; }
.tk-feed-time { font-size: .65rem; color: #64748b; margin-left: auto; }
.tk-feed-score {
  font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 10px;
}
.tk-feed-score.good { background: rgba(74,222,128,.15); color: #4ade80; }
.tk-feed-score.bad  { background: rgba(248,113,113,.15); color: #f87171; }
.tk-feed-score.mild { background: rgba(167,139,250,.12); color: #a78bfa; }
.tk-feed-score.neutral { background: rgba(148,163,184,.1); color: #94a3b8; }
.tk-feed-title { font-size: .82rem; color: #e2e8f0; margin-bottom: 2px; }
.tk-feed-source { font-size: .65rem; color: #64748b; margin-bottom: 6px; }
.tk-feed-deltas { display: flex; gap: 6px; flex-wrap: wrap; font-size: .68rem; }
.delta { background: rgba(255,255,255,.05); padding: 2px 7px; border-radius: 8px; }
.delta.up   { background: rgba(74,222,128,.13); color: #4ade80; }
.delta.down { background: rgba(248,113,113,.13); color: #f87171; }

/* Tracker banner inside feed */
.feed-tracker-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(167,139,250,.15), rgba(56,189,248,.12));
  border: 1px solid rgba(167,139,250,.3);
  border-radius: 14px;
  text-decoration: none; color: #e2e8f0;
  transition: transform .12s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.feed-tracker-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(167,139,250,.18), transparent 60%);
  pointer-events: none;
}
.feed-tracker-banner:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(167,139,250,.18); }
.ftb-icon { font-size: 1.6rem; flex-shrink: 0; }
.ftb-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ftb-body b { font-size: .95rem; color: #fff; }
.ftb-body span { font-size: .76rem; color: #94a3b8; }
.ftb-cta {
  font-size: .82rem; font-weight: 700;
  color: #a78bfa; flex-shrink: 0;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(167,139,250,.15); border: 1px solid rgba(167,139,250,.3);
}
@media (max-width: 600px) {
  .feed-tracker-banner { padding: 12px 14px; }
  .ftb-body span:not(b) { font-size: .68rem; }
}

/* Tracker history modal */
.tk-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: tkModalIn .18s ease-out;
}
@keyframes tkModalIn { from { opacity: 0; } to { opacity: 1; } }
.tk-modal-inner {
  background: var(--bg-card, #0F172A); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; max-width: 700px; width: 100%;
  max-height: 85vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,.6);
}
.tk-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700; font-size: .92rem; color: #e2e8f0;
}
.tk-modal-close {
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3);
  color: #fca5a5; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
}
.tk-modal-body { padding: 18px; overflow-y: auto; }

.tk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tk-stat {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  padding: 10px 12px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.tk-stat label { font-size: .65rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.tk-stat b { font-size: 1.05rem; color: #fff; }
.tk-snapshot-list-head { font-size: .72rem; color: #64748b; margin: 14px 0 8px; }
.tk-snapshot-list { display: flex; flex-direction: column; gap: 6px; }
.tk-snap-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 8px;
  padding: 8px 12px; background: rgba(255,255,255,.03);
  border-radius: 8px; font-size: .76rem; align-items: center;
}
.tk-snap-time { color: #94a3b8; font-size: .68rem; }
.tk-snap-cell { color: #e2e8f0; font-size: .78rem; }
.tk-snap-cell label { display: block; font-size: .58rem; color: #64748b; text-transform: uppercase; }
@media (max-width: 600px) {
  .tk-snap-row { grid-template-columns: 1fr 1fr 1fr; }
  .tk-snap-time { grid-column: 1 / -1; }
}

/* Cards clickable affordance */
.tk-sub-card { cursor: pointer; transition: transform .1s, box-shadow .15s; }
.tk-sub-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* Zoom-safe nav: prevent shrinking/wrapping */
.nav-desktop { flex-wrap: nowrap; }
.nav-desktop .nav-link { flex-shrink: 0; white-space: nowrap; }
.rail-nav .rail-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-nav .bn-item, .bottom-nav .bn-fab { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════
   MATTE-BLACK THEME (opt-in via toggle button → localStorage)
   ════════════════════════════════════════════════════════════════ */
body.theme-matte {
  --bg-app:    #0a0a0a;
  --bg-card:   #161616;
  --bg-card-2: #1f1f1f;
  --bg-soft:   #111111;
  --bg-hover:  #242424;
  --bg-elev:   #2a2a2a;
  --line:      rgba(255,255,255,0.06);
  --line-2:    rgba(255,255,255,0.10);
  --text:      #ffffff;
  --text-2:    #e8e8e8;
  --muted:     #a0a0a0;
  --dim:       #707070;
  /* Boost brand a touch on pure black */
  --brand-1:   #8b5cf6;
  --brand-2:   #22d3ee;
  --brand-glow: 0 0 0 3px rgba(139,92,246,0.28);
}
body.theme-matte {
  background: #0a0a0a !important;
  color: #ffffff;
}
/* Targeted overrides where hardcoded colors exist */
body.theme-matte .card,
body.theme-matte .post-card,
body.theme-matte .feed-card,
body.theme-matte .rail-widget,
body.theme-matte .tools-card,
body.theme-matte .tool-card,
body.theme-matte .tk-sub-card,
body.theme-matte .tk-feed-card,
body.theme-matte .copy-keys-card,
body.theme-matte .copy-output {
  background: #161616 !important;
  border-color: rgba(255,255,255,.06) !important;
}
body.theme-matte input,
body.theme-matte textarea,
body.theme-matte select,
body.theme-matte .copy-form input,
body.theme-matte .copy-form textarea,
body.theme-matte .copy-form select,
body.theme-matte .copy-key-input {
  background: #0a0a0a !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #ffffff !important;
}
body.theme-matte .topbar,
body.theme-matte .left-rail,
body.theme-matte .right-rail,
body.theme-matte .bottom-nav {
  background: rgba(10,10,10,0.92) !important;
  border-color: rgba(255,255,255,.04) !important;
}
body.theme-matte .nav-link,
body.theme-matte .rail-item {
  color: #d4d4d4;
}
body.theme-matte .nav-link.active,
body.theme-matte .rail-item.active,
body.theme-matte .rail-item:hover {
  color: #ffffff;
  background: rgba(255,255,255,.04);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed; bottom: 80px; right: 16px; z-index: 9999;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.5);
  color: #fbbf24; transition: transform .15s, background .15s;
  font-size: 18px;
}
.theme-toggle:hover { transform: scale(1.08); }
body.theme-matte .theme-toggle {
  background: linear-gradient(135deg, #2a2a2a, #161616);
  color: #c4b5fd;
}
@media (max-width: 600px) {
  .theme-toggle { bottom: 90px; right: 12px; width: 40px; height: 40px; font-size: 16px; }
}
/* Hide legacy floating theme toggle (moved into Edit Profile) */
.theme-toggle, #theme-toggle-btn { display: none !important; }


/* Theme picker inside Edit Profile modal */
.theme-picker { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.theme-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
  flex: 1; min-width: 180px;
}
.theme-opt:hover { background: rgba(255,255,255,.07); }
.theme-opt input[type="radio"] { accent-color: #8b5cf6; cursor: pointer; }
.theme-opt input[type="radio"]:checked + .theme-swatch {
  box-shadow: 0 0 0 2px #8b5cf6;
}
.theme-swatch {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0; transition: box-shadow .15s;
}
.theme-swatch--default { background: linear-gradient(135deg, #1E293B, #0F172A); }
.theme-swatch--matte   { background: linear-gradient(135deg, #161616, #0a0a0a); }
.theme-name { font-size: .82rem; color: #e2e8f0; line-height: 1.3; }
.theme-name small { display: block; font-size: .65rem; color: #64748b; }

/* ═══ NAVY THEME — explicit opt-in (was the old default) ═══ */
body.theme-navy {
  --bg-app:    #0F172A;
  --bg-card:   #1E293B;
  --bg-card-2: #243147;
  --bg-soft:   #131C2E;
  --bg-hover:  #2D3F55;
  --bg-elev:   #475569;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --text:      #F8FAFC;
  --text-2:    #CBD5E1;
  --muted:     #94A3B8;
  --dim:       #64748B;
  --brand-1:   #6366F1;
  --brand-2:   #06B6D4;
}
body.theme-navy { background: #0F172A !important; color: #F8FAFC; }
body.theme-navy .card,
body.theme-navy .post-card,
body.theme-navy .feed-card,
body.theme-navy .rail-widget,
body.theme-navy .tools-card,
body.theme-navy .tool-card,
body.theme-navy .tk-sub-card,
body.theme-navy .tk-feed-card,
body.theme-navy .copy-keys-card,
body.theme-navy .copy-output {
  background: #1E293B !important;
  border-color: rgba(255,255,255,.07) !important;
}
body.theme-navy input,
body.theme-navy textarea,
body.theme-navy select,
body.theme-navy .copy-form input,
body.theme-navy .copy-form textarea,
body.theme-navy .copy-form select,
body.theme-navy .copy-key-input {
  background: #131C2E !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #F8FAFC !important;
}
body.theme-navy .topbar,
body.theme-navy .left-rail,
body.theme-navy .right-rail,
body.theme-navy .bottom-nav {
  background: rgba(15,23,42,0.92) !important;
}

/* ═══ LIGHT THEME — clean white/grey ═══ */
body.theme-light {
  --bg-app:    #f5f5f7;
  --bg-card:   #ffffff;
  --bg-card-2: #fafafa;
  --bg-soft:   #ececef;
  --bg-hover:  #e4e4e7;
  --bg-elev:   #d4d4d8;
  --line:      rgba(0,0,0,0.08);
  --line-2:    rgba(0,0,0,0.12);
  --text:      #18181b;
  --text-2:    #27272a;
  --muted:     #52525b;
  --dim:       #71717a;
  --brand-1:   #6d28d9;
  --brand-2:   #0891b2;
}
body.theme-light { background: #f5f5f7 !important; color: #18181b; }
body.theme-light .card,
body.theme-light .post-card,
body.theme-light .feed-card,
body.theme-light .rail-widget,
body.theme-light .tools-card,
body.theme-light .tool-card,
body.theme-light .tk-sub-card,
body.theme-light .tk-feed-card,
body.theme-light .copy-keys-card,
body.theme-light .copy-output,
body.theme-light .tk-modal-inner {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
  color: #18181b;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
body.theme-light input,
body.theme-light textarea,
body.theme-light select,
body.theme-light .copy-form input,
body.theme-light .copy-form textarea,
body.theme-light .copy-form select,
body.theme-light .copy-key-input {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.12) !important;
  color: #18181b !important;
}
body.theme-light .topbar,
body.theme-light .left-rail,
body.theme-light .right-rail,
body.theme-light .bottom-nav {
  background: rgba(255,255,255,0.94) !important;
  border-color: rgba(0,0,0,.06) !important;
  color: #18181b;
}
body.theme-light .nav-link,
body.theme-light .rail-item,
body.theme-light .bn-item {
  color: #3f3f46;
}
body.theme-light .nav-link.active,
body.theme-light .rail-item.active,
body.theme-light .rail-item:hover,
body.theme-light .bn-item.active {
  color: #18181b;
  background: rgba(0,0,0,.04);
}
body.theme-light .feed-tracker-banner {
  background: linear-gradient(135deg, rgba(139,92,246,.10), rgba(34,211,238,.08));
  border-color: rgba(139,92,246,.22);
  color: #18181b;
}
body.theme-light .feed-tracker-banner b { color: #18181b; }
body.theme-light .ftb-body span { color: #52525b; }
body.theme-light .empty,
body.theme-light .loading { color: #52525b; }
body.theme-light .delta { background: rgba(0,0,0,.06); color: #18181b; }
body.theme-light .delta.up { background: rgba(16,185,129,.14); color: #047857; }
body.theme-light .delta.down { background: rgba(244,63,94,.12); color: #be123c; }

/* Make sure body without explicit theme class on first paint gets matte (matches JS default) */
body:not(.theme-navy):not(.theme-light) {
  /* implicit matte — applied by class via JS, but fallback if class load is delayed */
}

/* Swatch for navy/light in picker */
.theme-swatch--navy  { background: linear-gradient(135deg, #1E293B, #0F172A); }
.theme-swatch--light { background: linear-gradient(135deg, #ffffff, #e4e4e7); border: 1px solid rgba(0,0,0,.1); }

/* ═══ MATTE — Copywriting + Amazon Movers + Tools page coverage ═══ */
body.theme-matte .copy-page,
body.theme-matte .tools-page { background: transparent; color: #ffffff; }
body.theme-matte .copy-form input,
body.theme-matte .copy-form select,
body.theme-matte .copy-form textarea,
body.theme-matte .copy-key-input {
  background: #0a0a0a !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.10) !important;
}
body.theme-matte .copy-output { background: #0a0a0a !important; border-color: rgba(255,255,255,.08) !important; }
body.theme-matte .copy-output-head { background: rgba(255,255,255,.03) !important; }
body.theme-matte .copy-output-body pre { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.08) !important; }
body.theme-matte .copy-output-body code { background: rgba(255,255,255,.08) !important; color: #ffffff; }
body.theme-matte .copy-output-body h1 { color: #ffffff; }
body.theme-matte .copy-mini-btn { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; color: #ffffff; }
body.theme-matte .copy-tabs { border-bottom-color: rgba(255,255,255,.08) !important; }
body.theme-matte .copy-quota { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.06) !important; }
body.theme-matte .copy-note { background: rgba(167,139,250,.07) !important; border-color: rgba(167,139,250,.18) !important; }
body.theme-matte .amazon-rank-card { background: #161616 !important; border-color: rgba(255,255,255,.06) !important; }

/* ═══ LIGHT — same coverage with light palette ═══ */
body.theme-light .copy-form input,
body.theme-light .copy-form select,
body.theme-light .copy-form textarea,
body.theme-light .copy-key-input {
  background: #ffffff !important;
  color: #18181b !important;
  border-color: rgba(0,0,0,.12) !important;
}
body.theme-light .copy-output { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .copy-output-head { background: rgba(0,0,0,.03) !important; color: #18181b; }
body.theme-light .copy-output-body { color: #18181b; }
body.theme-light .copy-output-body pre { background: rgba(0,0,0,.04) !important; border-color: rgba(0,0,0,.08) !important; color: #18181b; }
body.theme-light .copy-output-body code { background: rgba(0,0,0,.06) !important; color: #18181b; }
body.theme-light .copy-output-body h1 { color: #18181b; }
body.theme-light .copy-output-body h2 { color: #6d28d9; }
body.theme-light .copy-output-body h3 { color: #0891b2; }
body.theme-light .copy-output-body strong { color: #18181b; }
body.theme-light .copy-mini-btn { background: rgba(0,0,0,.05) !important; border-color: rgba(0,0,0,.12) !important; color: #18181b; }
body.theme-light .copy-tab { color: #52525b; }
body.theme-light .copy-tab.active { color: #6d28d9; border-bottom-color: #6d28d9; }
body.theme-light .copy-quota { background: rgba(0,0,0,.04) !important; border-color: rgba(0,0,0,.08) !important; color: #18181b; }
body.theme-light .copy-note { background: rgba(109,40,217,.06) !important; border-color: rgba(109,40,217,.18) !important; color: #18181b; }
body.theme-light .amazon-rank-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; color: #18181b; }
body.theme-light .tools-pro-banner { background: #ffffff; border-color: rgba(0,0,0,.08); color: #18181b; }
body.theme-light .tools-sub { color: #52525b; }

/* ════════════════════════════════════════════════════════════════
   PALANTIR-STYLE TOOLS PAGE
   Sharp edges, monospace tags, thin borders, no bubbly pills
   ════════════════════════════════════════════════════════════════ */
.tool-card {
  border-radius: 4px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.02) !important;
  padding: 16px 18px !important;
  transition: border-color .12s, background .12s !important;
}
.tool-card:hover {
  transform: none !important;
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: none !important;
}
body.theme-matte .tool-card { background: rgba(255,255,255,.015) !important; border-color: rgba(255,255,255,.07) !important; }
body.theme-matte .tool-card:hover { border-color: rgba(255,255,255,.18) !important; background: rgba(255,255,255,.035) !important; }
body.theme-light .tool-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; box-shadow: 0 1px 2px rgba(0,0,0,.04) !important; }
body.theme-light .tool-card:hover { border-color: rgba(0,0,0,.16) !important; }

.tool-icon { border-radius: 4px !important; }

/* Section header: drop the star icon entirely, use a thin uppercase label + line */
.tools-section-head { gap: 10px !important; align-items: center !important; margin-bottom: 14px !important; }
.tools-section-head-icon { display: none !important; }
.tools-section-head-label {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .14em !important;
  color: #a0a0a0 !important;
}
.tools-section-head-label::before { content: '// '; opacity: .55; }
.tools-section-line {
  flex: 1 !important;
  height: 1px !important;
  background: rgba(255,255,255,.10) !important;
  border: none !important;
}
body.theme-light .tools-section-head-label { color: #52525b !important; }
body.theme-light .tools-section-line { background: rgba(0,0,0,.10) !important; }

/* Status badge — monospace tag instead of bubbly pill */
.active-badge, .pro-badge, .free-badge {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace !important;
  font-size: .62rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  padding: 4px 8px !important;
  border-radius: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.active-badge {
  background: transparent !important;
  border: 1px solid rgba(16,185,129,.4) !important;
  color: #10b981 !important;
}
.active-badge::before {
  content: '' !important;
  width: 5px; height: 5px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16,185,129,.7);
}
.pro-badge {
  background: transparent !important;
  border: 1px solid rgba(167,139,250,.4) !important;
  color: #a78bfa !important;
}
.pro-badge::before { content: '◇ '; opacity: .9; }
.free-badge {
  background: transparent !important;
  border: 1px solid rgba(148,163,184,.4) !important;
  color: #94a3b8 !important;
}

/* Action button — thin sharp ghost link */
.tool-card-action {
  border-radius: 2px !important;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  padding: 6px 12px !important;
  background: transparent !important;
  border: 1px solid !important;
  transition: background .12s, color .12s !important;
}
.tool-card-action--open {
  border-color: rgba(34,211,238,.4) !important;
  color: #22d3ee !important;
}
.tool-card-action--open:hover {
  background: rgba(34,211,238,.10) !important;
  color: #67e8f9 !important;
  transform: none !important;
}
.tool-card-action--upgrade {
  border-color: rgba(167,139,250,.4) !important;
  color: #a78bfa !important;
  background: transparent !important;
}
.tool-card-action--upgrade:hover {
  background: rgba(167,139,250,.10) !important;
}

/* Tool card name/desc tighter */
.tool-card-name {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
}
.tool-card-desc {
  font-size: .76rem !important;
  line-height: 1.45 !important;
  color: #888 !important;
}
body.theme-light .tool-card-desc { color: #52525b !important; }

/* Tools page title */
.tools-page h1 {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}

/* ════════════════════════════════════════════════════════════════
   LIGHT THEME — readability + sidebar widgets + search polish
   ════════════════════════════════════════════════════════════════ */

/* Right rail widgets — fix the dark TikTok/Amazon ranking backgrounds */
body.theme-light .rail-widget,
body.theme-light .rail-widget--tiktok,
body.theme-light .rail-widget--amazon {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  color: #18181b;
}
body.theme-light .rail-widget-head { color: #18181b; }
body.theme-light .rail-widget-head--tiktok,
body.theme-light .rail-widget-head--amazon { color: #18181b; }
body.theme-light .rail-widget *:not(svg):not(path):not(rect):not(circle):not(polyline):not(line):not(polygon) {
  color: inherit;
}
/* TikTok ranking row items (background was super dark) */
body.theme-light #rail-tiktok > div,
body.theme-light #rail-amazon > div,
body.theme-light #rail-trending > div {
  background: transparent !important;
  color: #18181b;
}
body.theme-light #rail-tiktok .rti,
body.theme-light .rti--tiktok { background: #18181b !important; color: #fff !important; }
body.theme-light #rail-tiktok span[style*="color"],
body.theme-light #rail-amazon span[style*="color"] {
  color: #52525b !important;
}
/* Numbered #1, #2 boxes — keep dark for contrast on white */
body.theme-light [class*="rank-pos"],
body.theme-light [class*="rti-rank"] {
  background: #1f1f1f !important;
  color: #ffffff !important;
}

/* Tracker — darken text on light */
body.theme-light .tracker-page { color: #18181b; }
body.theme-light .tracker-head h1 { color: #18181b; }
body.theme-light .tracker-sub { color: #52525b; }
body.theme-light .tk-sub-card,
body.theme-light .tk-feed-card { background: #ffffff !important; border-color: rgba(0,0,0,.10) !important; color: #18181b; }
body.theme-light .tk-sub-title,
body.theme-light .tk-feed-title { color: #18181b !important; font-weight: 600; }
body.theme-light .tk-sub-source,
body.theme-light .tk-feed-source { color: #52525b !important; }
body.theme-light .tk-sub-stats { color: #27272a !important; }
body.theme-light .tk-sub-stats b,
body.theme-light .tk-feed-event { color: #18181b !important; }
body.theme-light .tracker-refresh {
  background: rgba(56,189,248,.10) !important;
  color: #0e7490 !important;
  border-color: rgba(56,189,248,.35) !important;
}
body.theme-light .tracker-refresh:hover { background: rgba(56,189,248,.18) !important; }
body.theme-light .tk-feed-time { color: #71717a !important; }

/* Copywriting — darken text */
body.theme-light .copy-hero h1 {
  background: linear-gradient(135deg, #18181b, #6d28d9, #0891b2) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
body.theme-light .copy-sub { color: #3f3f46 !important; }
body.theme-light .copy-form label { color: #27272a !important; font-weight: 700; }
body.theme-light .copy-hint { color: #71717a !important; }
body.theme-light .copy-tab { color: #71717a !important; }
body.theme-light .copy-tab:hover:not(:disabled) { color: #18181b !important; }
body.theme-light .copy-key-row { color: #27272a !important; }
body.theme-light .copy-key-name { color: #18181b !important; }
body.theme-light .copy-key-name small { color: #71717a !important; }
body.theme-light .copy-keys-head { color: #18181b !important; }
body.theme-light .copy-quota-pill.pro { color: #6d28d9 !important; background: rgba(109,40,217,.10) !important; border-color: rgba(109,40,217,.30) !important; }
body.theme-light .copy-quota-pill.free { color: #3f3f46 !important; background: rgba(0,0,0,.05) !important; border-color: rgba(0,0,0,.15) !important; }

/* Inbox / Messages on light */
body.theme-light .feed-card,
body.theme-light .post-card,
body.theme-light .chat-item,
body.theme-light .inbox-item {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
  color: #18181b;
}
body.theme-light .post-author-name,
body.theme-light .chat-name { color: #18181b !important; }
body.theme-light .post-author-handle,
body.theme-light .chat-handle,
body.theme-light .post-time,
body.theme-light .chat-time { color: #71717a !important; }
body.theme-light .post-content,
body.theme-light .chat-snippet { color: #27272a !important; }

/* Search bar — fix icon overlap on light */
.search-input { padding-left: 44px !important; }
body.theme-light .search-input {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.12) !important;
  color: #18181b !important;
}
body.theme-light .search-input::placeholder { color: #a1a1aa !important; }
body.theme-light .search-ico { color: #71717a !important; }
body.theme-light .search-input:focus { border-color: #6d28d9 !important; box-shadow: 0 0 0 3px rgba(109,40,217,.18) !important; }

/* Make sure logo doesnt look weird with default styling on white bg */
body.theme-light .topbar-logo-img,
body.theme-light .lp-nav-logo-img,
body.theme-light .auth-brand-logo {
  filter: none;
  background: transparent;
}

/* Top nav labels darker on light */
body.theme-light .nav-link { color: #3f3f46 !important; }
body.theme-light .nav-link:hover { color: #18181b !important; }
body.theme-light .nav-link.active,
body.theme-light .nav-link[data-route="tools"]:hover { color: #18181b !important; }
body.theme-light .brand--small .logo-text,
body.theme-light .topbar .brand-text { color: #18181b !important; }

/* Empty/loading states */
body.theme-light .empty,
body.theme-light .loading,
body.theme-light .empty-title,
body.theme-light .empty-sub { color: #27272a !important; }

/* The trending / amazon / tiktok ranking IMAGES preserve their backgrounds (logos themselves) */

/* ════ MARKETPLACE ════ */
.mkt-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 80px; }
.mkt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.mkt-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.mkt-sub { color: #94a3b8; font-size: .88rem; margin: 0; max-width: 540px; }
.mkt-new-btn {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: .88rem;
  flex-shrink: 0;
}
.mkt-toolbar { margin-bottom: 16px; }
.mkt-search-input {
  width: 100%; max-width: 360px;
  background: var(--bg-soft, #131C2E); border: 1px solid var(--line, rgba(255,255,255,.1));
  color: var(--text, #fff); border-radius: 9px; padding: 9px 14px; font-size: .88rem; outline: none;
}
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.mkt-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color .12s, transform .1s;
}
.mkt-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.mkt-card-img {
  width: 100%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: rgba(255,255,255,.04);
}
.mkt-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mkt-card-title { font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--text, #fff); }
.mkt-card-desc { font-size: .76rem; color: #94a3b8; line-height: 1.4; }
.mkt-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.mkt-price {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 700; color: #4ade80; font-size: .92rem;
}
.mkt-price--null { color: #94a3b8; font-weight: 600; font-size: .8rem; font-family: inherit; }
.mkt-card-author { font-size: .7rem; color: #94a3b8; text-decoration: none; }
.mkt-card-author:hover { color: #a78bfa; }
.mkt-card-actions { display: flex; gap: 6px; padding: 0 14px 12px; }
.mkt-card-contact, .mkt-card-edit, .mkt-card-del {
  flex: 1; padding: 7px 10px; border-radius: 7px; font-size: .76rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--text, #e2e8f0); cursor: pointer; transition: background .12s;
}
.mkt-card-contact { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.3); color: #38bdf8; }
.mkt-card-contact:hover { background: rgba(56,189,248,.22); }
.mkt-card-del { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: #fca5a5; }
.mkt-card-del:hover { background: rgba(248,113,113,.2); }

/* ── Modal ── */
.mkt-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: mktModalIn .18s ease-out;
}
@keyframes mktModalIn { from { opacity: 0; } to { opacity: 1; } }
.mkt-modal-inner {
  background: var(--bg-card, #0F172A); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; max-width: 560px; width: 100%;
  max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,.6);
}
.mkt-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700; color: #e2e8f0;
}
.mkt-modal-close {
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3);
  color: #fca5a5; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
}
.mkt-modal-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.mkt-field { display: flex; flex-direction: column; gap: 5px; }
.mkt-field > span { font-size: .72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.mkt-field input, .mkt-field textarea, .mkt-field select {
  background: #0b0f19; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 9px 12px; color: #e2e8f0; font-size: .88rem; font-family: inherit; outline: none;
}
.mkt-field input:focus, .mkt-field textarea:focus, .mkt-field select:focus { border-color: #a78bfa; }
.mkt-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .mkt-row { grid-template-columns: 1fr; } }

.mkt-img-uploader {
  border: 2px dashed rgba(255,255,255,.15); border-radius: 9px;
  min-height: 140px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s; overflow: hidden;
}
.mkt-img-uploader:hover { border-color: #a78bfa; }
.mkt-img-uploader img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.mkt-img-empty { color: #64748b; font-size: .82rem; padding: 14px; text-align: center; }

.mkt-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.mkt-mini-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e2e8f0; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .82rem; }
.mkt-submit-btn {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  color: #fff; border: none; padding: 9px 20px; border-radius: 8px;
  font-weight: 700; font-size: .88rem; cursor: pointer;
}
.mkt-msg { color: #f87171; font-size: .8rem; min-height: 1em; }

/* Chat marketplace reference card */
.mkt-chat-ref {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 12px; margin: 4px 0;
  background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.25);
  border-radius: 9px; text-decoration: none; color: inherit;
  max-width: 320px;
}
.mkt-chat-ref:hover { background: rgba(167,139,250,.15); }
.mkt-chat-ref img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.mkt-chat-ref-title { font-size: .82rem; font-weight: 600; color: var(--text, #fff); line-height: 1.2; }
.mkt-chat-ref-price { font-size: .72rem; color: #a78bfa; margin-top: 2px; font-weight: 700; }

/* Profile showcase tabs */
.profile-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin: 20px 0 0; padding: 0 8px;
}
.profile-tab {
  background: transparent; border: none; padding: 10px 18px; cursor: pointer;
  color: #94a3b8; font-weight: 600; font-size: .88rem;
  border-bottom: 2px solid transparent; transition: all .12s;
}
.profile-tab:hover { color: #e2e8f0; }
.profile-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; }
.profile-tab-body { padding: 14px 0; }

/* Light theme overrides */
body.theme-light .mkt-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; color: #18181b; }
body.theme-light .mkt-card-title { color: #18181b !important; }
body.theme-light .mkt-card-desc { color: #52525b !important; }
body.theme-light .mkt-modal-inner { background: #ffffff !important; }
body.theme-light .mkt-field input, body.theme-light .mkt-field textarea, body.theme-light .mkt-field select { background: #f5f5f7 !important; color: #18181b !important; border-color: rgba(0,0,0,.12) !important; }
body.theme-light .mkt-search-input { background-color: #ffffff !important; color: #18181b !important; border-color: rgba(0,0,0,.12) !important; }
body.theme-light .mkt-img-empty { color: #71717a !important; }
body.theme-light .profile-tab { color: #52525b !important; }
body.theme-light .profile-tab.active { color: #6d28d9 !important; border-bottom-color: #6d28d9 !important; }

/* Chat marketplace reference bubble */
.mkt-bubble-ref { margin: 4px 0; }
.mkt-bubble-ref.me { display: flex; justify-content: flex-end; }
.mkt-bubble-ref.them { display: flex; justify-content: flex-start; }

/* Trending: marketplace card */
.trending-mkt-card {
  background: rgba(167,139,250,.05);
  border: 1px solid rgba(167,139,250,.22) !important;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.trending-mkt-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: rgba(167,139,250,.10);
  border-bottom: 1px solid rgba(167,139,250,.18);
  font-size: .76rem;
}
.trending-mkt-tag {
  font-weight: 700; color: #c4b5fd;
  letter-spacing: .03em;
}
.trending-mkt-author {
  color: #94a3b8; text-decoration: none; font-weight: 600;
}
.trending-mkt-author:hover { color: #a78bfa; }
.trending-mkt-grid {
  display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px 14px;
}
.trending-mkt-img {
  width: 100%; aspect-ratio: 1/1; max-height: 160px;
  background-size: cover; background-position: center;
  background-color: rgba(255,255,255,.04);
  border-radius: 8px;
}
.trending-mkt-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.trending-mkt-title { font-weight: 600; font-size: 1rem; color: var(--text, #fff); line-height: 1.3; }
.trending-mkt-desc { color: #94a3b8; font-size: .82rem; line-height: 1.45; }
.trending-mkt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.trending-mkt-foot .mkt-card-contact {
  padding: 7px 14px; border-radius: 7px; font-size: .78rem; font-weight: 600;
  border: 1px solid rgba(56,189,248,.3); background: rgba(56,189,248,.12); color: #38bdf8;
  cursor: pointer;
}
.trending-mkt-foot .mkt-card-contact:hover { background: rgba(56,189,248,.22); }

@media (max-width: 600px) {
  .trending-mkt-grid { grid-template-columns: 1fr; }
  .trending-mkt-img { max-height: 200px; }
}

body.theme-light .trending-mkt-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .trending-mkt-banner { background: rgba(109,40,217,.06); border-color: rgba(109,40,217,.15); }
body.theme-light .trending-mkt-tag { color: #6d28d9; }
body.theme-light .trending-mkt-title { color: #18181b !important; }
body.theme-light .trending-mkt-desc { color: #52525b !important; }

/* ════ COMMUNITY ════ */
.comm-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 80px; }
.comm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.comm-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.comm-sub { color: #94a3b8; font-size: .88rem; margin: 0; }
.comm-new-btn {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: .88rem; flex-shrink: 0;
}
.comm-filters { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.comm-filter {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8; padding: 6px 14px; border-radius: 18px; cursor: pointer;
  font-size: .78rem; font-weight: 600;
}
.comm-filter.active { background: rgba(167,139,250,.18); color: #c4b5fd; border-color: rgba(167,139,250,.45); }
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.comm-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: border-color .12s, transform .1s;
}
.comm-card:hover { border-color: rgba(167,139,250,.4); transform: translateY(-1px); }
.comm-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .68rem; }
.comm-card-author { color: #94a3b8; }
.comm-card-title { font-weight: 600; font-size: .98rem; color: var(--text, #fff); margin-bottom: 4px; }
.comm-card-target { font-size: .76rem; color: #c4b5fd; margin-bottom: 10px; }
.comm-card-progress { margin: 10px 0 8px; }
.comm-progress-bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.comm-progress-bar > div { height: 100%; background: linear-gradient(90deg, #8b5cf6, #38bdf8); border-radius: 3px; transition: width .3s; }
.comm-progress-text { font-size: .72rem; color: #94a3b8; margin-top: 4px; }
.comm-progress-text b { color: var(--text, #fff); }
.comm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.comm-price { font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: #4ade80; }
.comm-perperson { font-size: .7rem; color: #94a3b8; font-family: 'JetBrains Mono', monospace; }

/* Status badges */
.comm-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; padding: 3px 7px; border-radius: 3px;
}
.comm-badge--voting    { background: rgba(56,189,248,.14);  color: #38bdf8; border: 1px solid rgba(56,189,248,.32); }
.comm-badge--active    { background: rgba(74,222,128,.14);  color: #4ade80; border: 1px solid rgba(74,222,128,.32); }
.comm-badge--closed    { background: rgba(148,163,184,.14); color: #94a3b8; border: 1px solid rgba(148,163,184,.32); }
.comm-badge--cancelled { background: rgba(248,113,113,.10); color: #fca5a5; border: 1px solid rgba(248,113,113,.30); }
.comm-badge--expired   { background: rgba(250,204,21,.10);  color: #facc15; border: 1px solid rgba(250,204,21,.30); }

/* Detail page */
.comm-back { color: #94a3b8; text-decoration: none; font-size: .82rem; display: inline-block; margin-bottom: 14px; }
.comm-back:hover { color: #a78bfa; }
.comm-detail { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 22px; }
.comm-detail-head h1 { margin: 6px 0 4px; font-size: 1.4rem; }
.comm-detail-author { color: #94a3b8; font-size: .82rem; margin: 0 0 14px; }
.comm-detail-author a { color: #a78bfa; }
.comm-detail-desc { color: #cbd5e1; font-size: .92rem; line-height: 1.55; margin-bottom: 14px; }
.comm-detail-target { color: #c4b5fd; font-size: .85rem; margin-bottom: 14px; }
.comm-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 8px; }
.comm-detail-meta > div { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); padding: 8px 12px; border-radius: 8px; }
.comm-detail-meta label { font-size: .6rem; color: #64748b; text-transform: uppercase; letter-spacing: .08em; display: block; }
.comm-detail-meta b { font-family: 'JetBrains Mono', monospace; font-size: .92rem; color: var(--text, #fff); }
.comm-detail-rules { background: rgba(167,139,250,.06); border: 1px solid rgba(167,139,250,.18); border-radius: 9px; padding: 10px 14px; font-size: .82rem; margin: 14px 0; color: #cbd5e1; }

.comm-slots h3, .comm-members h3, .comm-chat h3 { font-size: .92rem; color: var(--text, #fff); margin: 18px 0 10px; }
.comm-slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.comm-slot { display: flex; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; cursor: pointer; }
.comm-slot:hover:not(.full) { border-color: rgba(167,139,250,.4); }
.comm-slot.full { opacity: .45; cursor: not-allowed; }
.comm-slot input[type="radio"] { accent-color: #8b5cf6; }
.comm-slot-label { font-weight: 600; font-size: .85rem; }
.comm-slot-desc { font-size: .7rem; color: #94a3b8; margin-top: 2px; }
.comm-slot-taken { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: #4ade80; margin-top: 4px; }

.comm-actions { display: flex; gap: 10px; margin: 18px 0; }
.comm-join-btn {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8); color: #fff; border: none;
  padding: 10px 20px; border-radius: 9px; font-weight: 700; font-size: .88rem; cursor: pointer;
}
.comm-mini-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e2e8f0; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: .82rem; }
.comm-cancel, .comm-leave { background: rgba(248,113,113,.10); border-color: rgba(248,113,113,.3); color: #fca5a5; }

.comm-member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.comm-member { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: rgba(255,255,255,.03); border-radius: 8px; }
.comm-member-name { font-size: .82rem; font-weight: 600; }
.comm-admin-tag { background: rgba(167,139,250,.16); color: #c4b5fd; padding: 1px 5px; border-radius: 3px; font-size: .55rem; font-weight: 700; letter-spacing: .08em; margin-left: 4px; }
.comm-member-slot { font-size: .68rem; color: #94a3b8; }

/* Chat */
.comm-chat { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.comm-msgs { max-height: 400px; overflow-y: auto; background: rgba(0,0,0,.2); border-radius: 9px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.comm-msg { display: flex; gap: 8px; align-items: flex-start; }
.comm-msg.me { justify-content: flex-end; }
.comm-msg.me .comm-msg-bubble { background: linear-gradient(135deg, #6366f1, #38bdf8); color: #fff; }
.comm-msg-author { font-size: .68rem; color: #94a3b8; margin-bottom: 2px; }
.comm-msg-bubble { background: rgba(255,255,255,.06); padding: 7px 11px; border-radius: 12px; font-size: .85rem; line-height: 1.4; max-width: 70%; word-wrap: break-word; }
.comm-msg-time { font-size: .6rem; color: #64748b; margin-top: 2px; text-align: right; }
.comm-msg-form { display: flex; gap: 8px; margin-top: 10px; }
.comm-msg-form input { flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 9px 14px; color: var(--text, #fff); outline: none; font-size: .88rem; }
.comm-msg-form input:focus { border-color: #a78bfa; }
.comm-msg-form button { background: #8b5cf6; color: #fff; border: none; padding: 9px 20px; border-radius: 9px; font-weight: 700; cursor: pointer; }

/* Modal */
.comm-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.comm-modal-inner { background: var(--bg-card, #0F172A); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; max-width: 620px; width: 100%; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; }
.comm-modal-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 700; }
.comm-modal-close { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.comm-modal-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.comm-modal-body label { display: flex; flex-direction: column; gap: 5px; }
.comm-modal-body label > span { font-size: .72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.comm-modal-body input, .comm-modal-body textarea, .comm-modal-body select { background: #0b0f19; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 9px 12px; color: #e2e8f0; font-family: inherit; font-size: .88rem; outline: none; }
.comm-modal-body input:focus, .comm-modal-body textarea:focus, .comm-modal-body select:focus { border-color: #a78bfa; }
.comm-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 540px) { .comm-row { grid-template-columns: 1fr 1fr; } }
.comm-check { flex-direction: row !important; align-items: center; gap: 8px !important; cursor: pointer; }
.comm-check input { width: auto; margin: 0; accent-color: #8b5cf6; }
.comm-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.comm-submit-btn { background: linear-gradient(135deg, #8b5cf6, #38bdf8); color: #fff; border: none; padding: 9px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.comm-msg { color: #f87171; font-size: .8rem; }

/* Light theme overrides */
body.theme-light .comm-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .comm-card-title { color: #18181b !important; }
body.theme-light .comm-detail { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .comm-detail-desc { color: #27272a !important; }
body.theme-light .comm-detail-meta > div { background: #fafafa !important; border-color: rgba(0,0,0,.06) !important; }
body.theme-light .comm-msgs { background: #fafafa !important; }
body.theme-light .comm-modal-inner { background: #ffffff !important; }
body.theme-light .comm-modal-body input, body.theme-light .comm-modal-body textarea, body.theme-light .comm-modal-body select { background: #f5f5f7 !important; color: #18181b !important; border-color: rgba(0,0,0,.12) !important; }

/* ════ FIX: cancel button in modal body should NOT inherit 28x28 close-X style ════ */
.mkt-modal-foot .mkt-mini-btn.mkt-modal-close,
.comm-modal-foot .comm-mini-btn.comm-modal-close {
  width: auto !important;
  height: auto !important;
  border-radius: 8px !important;
  font-size: .82rem !important;
  background: rgba(255,255,255,.06) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255,255,255,.1) !important;
  padding: 8px 16px !important;
  font-weight: 600;
}

/* Better responsiveness for 3-column row in modals */
.mkt-row, .comm-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px) {
  .mkt-row, .comm-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .mkt-row, .comm-row { grid-template-columns: 1fr; }
}

/* Light overrides for the fixed cancel button */
body.theme-light .mkt-modal-foot .mkt-mini-btn.mkt-modal-close,
body.theme-light .comm-modal-foot .comm-mini-btn.comm-modal-close {
  background: rgba(0,0,0,.05) !important;
  color: #18181b !important;
  border-color: rgba(0,0,0,.12) !important;
}

/* Tracker tabs (Products / Creators) */
.tracker-tabs { display: flex; gap: 4px; margin: 14px 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tracker-tab {
  background: transparent; border: none; padding: 9px 16px; cursor: pointer;
  color: #94a3b8; font-weight: 600; font-size: .86rem;
  border-bottom: 2px solid transparent; transition: all .12s;
}
.tracker-tab:hover { color: #e2e8f0; }
.tracker-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; }
.tracker-creators-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
body.theme-light .tracker-tab { color: #52525b; }
body.theme-light .tracker-tab.active { color: #6d28d9; border-bottom-color: #6d28d9; }


.mkt-card-report {
  flex: 0 0 auto !important;
  width: 36px; padding: 7px !important;
  background: rgba(248,113,113,.08) !important;
  border: 1px solid rgba(248,113,113,.25) !important;
  color: #fca5a5 !important;
  font-size: .82rem;
}
.mkt-card-report:hover { background: rgba(248,113,113,.18) !important; }
body.theme-light .mkt-card-report {
  background: rgba(220,38,38,.06) !important;
  border-color: rgba(220,38,38,.25) !important;
  color: #b91c1c !important;
}

/* ════════════════════════════════════════════════════════════════
   MODAL POLISH — Marketplace + Community
   Linear/Notion-style premium feel
   ════════════════════════════════════════════════════════════════ */

/* Modal container — refined backdrop */
.mkt-modal, .comm-modal {
  background: rgba(0,0,0,0.78) !important;
  backdrop-filter: blur(8px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
  padding: 0 !important;
  align-items: flex-start !important;
  padding-top: 4vh !important;
}

/* Inner card — soft gradient + premium shadow */
.mkt-modal-inner, .comm-modal-inner {
  background: linear-gradient(180deg, #0f1830 0%, #0a1124 100%) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 16px !important;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(167,139,250,0.05),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
  max-width: 580px !important;
  max-height: 88vh !important;
}

/* Header — accent divider */
.mkt-modal-head, .comm-modal-head {
  padding: 18px 22px !important;
  background: linear-gradient(180deg, rgba(167,139,250,0.06) 0%, transparent 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  position: relative !important;
}
.mkt-modal-head::after, .comm-modal-head::after {
  content: '';
  position: absolute;
  left: 22px; right: 22px; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.4), transparent);
}
.mkt-modal-head > span:first-child,
.comm-modal-head > span:first-child {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #f1f5f9 !important;
  display: flex; align-items: center; gap: 9px;
}


/* Close button — refined */
.mkt-modal-close, .comm-modal-close {
  width: 30px !important; height: 30px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.55) !important;
  border-radius: 8px !important;
  transition: all .15s !important;
  font-size: 1.1rem !important;
  display: flex; align-items: center; justify-content: center;
}
.mkt-modal-close:hover, .comm-modal-close:hover {
  background: rgba(248,113,113,0.12) !important;
  border-color: rgba(248,113,113,0.35) !important;
  color: #fca5a5 !important;
}

/* Body — better spacing */
.mkt-modal-body, .comm-modal-body {
  padding: 22px !important;
  gap: 16px !important;
}

/* Labels — premium typography */
.mkt-field > span,
.comm-modal-body label > span:first-child {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 6px !important;
  display: flex; align-items: center; gap: 5px;
}

/* Required indicator */
.mkt-field > span:has-text("*"),
.comm-modal-body label > span:first-child:has-text("*") {
  color: rgba(167,139,250,0.85) !important;
}

/* Inputs / textareas / selects — refined surface */
.mkt-field input,
.mkt-field select,
.mkt-field textarea,
.comm-modal-body input,
.comm-modal-body textarea,
.comm-modal-body select {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 9px !important;
  padding: 11px 13px !important;
  color: #f1f5f9 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  transition: border-color .15s, background .15s, box-shadow .15s !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02) !important;
}
.mkt-field input::placeholder,
.mkt-field textarea::placeholder,
.comm-modal-body input::placeholder,
.comm-modal-body textarea::placeholder {
  color: rgba(255,255,255,0.30) !important;
  font-weight: 400;
}

.mkt-field input:hover,
.mkt-field select:hover,
.mkt-field textarea:hover,
.comm-modal-body input:hover,
.comm-modal-body textarea:hover,
.comm-modal-body select:hover {
  border-color: rgba(255,255,255,0.16) !important;
  background: rgba(255,255,255,0.035) !important;
}

.mkt-field input:focus,
.mkt-field select:focus,
.mkt-field textarea:focus,
.comm-modal-body input:focus,
.comm-modal-body textarea:focus,
.comm-modal-body select:focus {
  border-color: rgba(167,139,250,0.55) !important;
  background: rgba(255,255,255,0.04) !important;
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  outline: none !important;
}

/* Number inputs — kill spinner ugliness */
.mkt-field input[type="number"],
.comm-modal-body input[type="number"] {
  -moz-appearance: textfield;
}
.mkt-field input[type="number"]::-webkit-outer-spin-button,
.mkt-field input[type="number"]::-webkit-inner-spin-button,
.comm-modal-body input[type="number"]::-webkit-outer-spin-button,
.comm-modal-body input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Select arrow — custom */
.mkt-field select,
.comm-modal-body select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  padding-right: 34px !important;
}

/* Textarea — taller min-height */
.mkt-field textarea,
.comm-modal-body textarea {
  min-height: 72px;
  line-height: 1.5;
  resize: vertical;
}

/* Image uploader — premium */
.mkt-img-uploader {
  border: 2px dashed rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.015);
  border-radius: 12px !important;
  min-height: 170px !important;
  position: relative;
  transition: all .2s !important;
}
.mkt-img-uploader:hover {
  border-color: rgba(167,139,250,0.55) !important;
  background: rgba(167,139,250,0.04);
  transform: translateY(-1px);
}
.mkt-img-uploader:hover .mkt-img-empty { color: #c4b5fd !important; }
.mkt-img-empty {
  color: rgba(255,255,255,0.42) !important;
  font-size: 0.86rem !important;
  font-weight: 500;
  position: relative;
  padding-top: 38px !important;
  text-align: center;
}
.mkt-img-empty::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='rgba(167,139,250,0.55)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") center/contain no-repeat;
}

/* Hint text under uploader */
.mkt-field small {
  font-size: 0.7rem !important;
  color: rgba(255,255,255,0.38) !important;
  margin-top: 4px;
}

/* Footer — sticky-feel, refined buttons */
.mkt-modal-foot, .comm-modal-foot {
  padding-top: 18px !important;
  margin-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  gap: 10px !important;
}

/* Cancel button — refined */
.mkt-modal-foot .mkt-mini-btn.mkt-modal-close,
.comm-modal-foot .comm-mini-btn.comm-modal-close {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.65) !important;
  border-radius: 9px !important;
  padding: 10px 18px !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  width: auto !important;
  height: auto !important;
  transition: all .15s !important;
}
.mkt-modal-foot .mkt-mini-btn.mkt-modal-close:hover,
.comm-modal-foot .comm-mini-btn.comm-modal-close:hover {
  background: rgba(255,255,255,0.07) !important;
  color: #f1f5f9 !important;
}

/* Submit button — premium gradient */
.mkt-submit-btn, .comm-submit-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 35%, #06b6d4 100%) !important;
  background-size: 200% 200% !important;
  border: 1px solid rgba(167,139,250,0.5) !important;
  color: #fff !important;
  border-radius: 9px !important;
  padding: 10px 22px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  letter-spacing: -0.005em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.18) !important;
  transition: all .15s, background-position .4s !important;
}
.mkt-submit-btn:hover, .comm-submit-btn:hover {
  background-position: 100% 50% !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
.mkt-submit-btn:active, .comm-submit-btn:active { transform: translateY(0); }

/* Checkbox row (intermediation) — premium */
.comm-check {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 12px 14px !important;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.comm-check:hover { background: rgba(255,255,255,0.04); border-color: rgba(167,139,250,0.25); }
.comm-check input[type="checkbox"] {
  width: 18px !important; height: 18px !important;
  accent-color: #a78bfa;
  cursor: pointer;
}
.comm-check span:not(:first-child) {
  font-size: 0.84rem;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

/* Error message — refined */
.mkt-msg, .comm-msg {
  color: #fca5a5 !important;
  font-size: 0.82rem !important;
  min-height: 1.2em;
  padding-top: 4px;
}
.mkt-msg:not(:empty), .comm-msg:not(:empty) {
  background: rgba(248,113,113,0.08);
  border-left: 3px solid rgba(248,113,113,0.5);
  padding: 8px 12px !important;
  border-radius: 6px;
}

/* Responsive — mobile refinements */
@media (max-width: 600px) {
  .mkt-modal, .comm-modal {
    padding-top: 0 !important;
    align-items: stretch !important;
  }
  .mkt-modal-inner, .comm-modal-inner {
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
  .mkt-modal-head, .comm-modal-head { padding: 14px 16px !important; }
  .mkt-modal-body, .comm-modal-body { padding: 16px !important; gap: 14px !important; }
  .mkt-modal-foot, .comm-modal-foot { flex-direction: column-reverse; }
  .mkt-modal-foot > *, .comm-modal-foot > * { width: 100%; justify-content: center; }
}

/* Light theme overrides for modals */
body.theme-light .mkt-modal-inner, body.theme-light .comm-modal-inner {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
  border-color: rgba(0,0,0,0.08) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15) !important;
}
body.theme-light .mkt-modal-head, body.theme-light .comm-modal-head {
  background: linear-gradient(180deg, rgba(109,40,217,0.04) 0%, transparent 100%) !important;
  border-bottom-color: rgba(0,0,0,0.06) !important;
}
body.theme-light .mkt-modal-head > span:first-child,
body.theme-light .comm-modal-head > span:first-child { color: #18181b !important; }
body.theme-light .mkt-field > span,
body.theme-light .comm-modal-body label > span:first-child {
  color: rgba(0,0,0,0.55) !important;
}
body.theme-light .mkt-field input,
body.theme-light .mkt-field select,
body.theme-light .mkt-field textarea,
body.theme-light .comm-modal-body input,
body.theme-light .comm-modal-body textarea,
body.theme-light .comm-modal-body select {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #18181b !important;
}
body.theme-light .mkt-field input::placeholder,
body.theme-light .mkt-field textarea::placeholder { color: rgba(0,0,0,0.32) !important; }
body.theme-light .mkt-img-uploader { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.15) !important; }
body.theme-light .mkt-img-empty { color: rgba(0,0,0,0.50) !important; }
body.theme-light .mkt-modal-foot, body.theme-light .comm-modal-foot {
  border-top-color: rgba(0,0,0,0.06) !important;
}
body.theme-light .mkt-modal-foot .mkt-mini-btn.mkt-modal-close,
body.theme-light .comm-modal-foot .comm-mini-btn.comm-modal-close {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #3f3f46 !important;
}


/* Cloudflare Turnstile CAPTCHA wrapper */
.cf-turnstile-wrap {
  display: flex;
  justify-content: center;
  min-height: 65px;
}
#cf-turnstile-slot {
  border-radius: 8px;
  overflow: hidden;
}


/* ════════════════════════════════════════════════════════════════
   SENTIMENT RADAR — right rail rotating widget
   ════════════════════════════════════════════════════════════════ */
.rail-widget-head--radar {
  display: flex; align-items: center; gap: 8px;
  color: #c4b5fd;
  font-weight: 700;
  position: relative;
}
.rail-widget--radar {
  position: relative;
  border: 1px solid rgba(167,139,250,.18) !important;
  background: linear-gradient(180deg, rgba(167,139,250,.04) 0%, rgba(56,189,248,.02) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(167,139,250,.06),
    0 0 24px rgba(139,92,246,.18),
    0 4px 18px rgba(0,0,0,.25);
  animation: radarAmbient 4.5s ease-in-out infinite;
  overflow: hidden;
}
@keyframes radarAmbient {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(167,139,250,.06),
      0 0 24px rgba(139,92,246,.14),
      0 4px 18px rgba(0,0,0,.25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(167,139,250,.14),
      0 0 36px rgba(139,92,246,.28),
      0 0 56px rgba(56,189,248,.12),
      0 4px 18px rgba(0,0,0,.25);
  }
}
.rail-widget--radar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #8b5cf6 25%, #06b6d4 75%, transparent 100%);
  background-size: 200% 100%;
  animation: radarLineShimmer 3.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes radarLineShimmer {
  0%, 100% { background-position: -100% 0; opacity: .65; }
  50%      { background-position: 100% 0; opacity: 1; }
}
.rail-widget--radar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139,92,246,.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.rail-widget--radar > * { position: relative; z-index: 2; }

body.theme-light .rail-widget--radar {
  border-color: rgba(109,40,217,.22) !important;
  background: linear-gradient(180deg, rgba(109,40,217,.04) 0%, rgba(8,145,178,.02) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(109,40,217,.08),
    0 0 18px rgba(109,40,217,.10),
    0 4px 14px rgba(0,0,0,.06);
}
body.theme-light .rail-widget--radar::after {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109,40,217,.08), transparent 70%);
}
.radar-pulse {
  display: inline-block;
  animation: radarPulse 1.8s ease-in-out infinite;
}
@keyframes radarPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.65; }
}
.radar-counter {
  margin-left: auto;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .62rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
.radar-card {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(139,92,246,.04), rgba(6,182,212,.03));
  border-radius: 9px;
  display: flex; flex-direction: column; gap: 7px;
  animation: radarFadeIn .35s ease-out;
}
@keyframes radarFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.radar-row {
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.35;
}
.radar-row--bottom {
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  align-items: center;
}
.radar-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.42);
  letter-spacing: .12em;
  width: 78px;
  flex-shrink: 0;
  padding-top: 2px;
}
.radar-val {
  flex: 1; min-width: 0;
  font-size: .78rem;
  color: var(--text, #e2e8f0);
  word-wrap: break-word;
}
.radar-val--title {
  font-weight: 600;
}
.radar-comment {
  font-size: .76rem;
  color: rgba(255,255,255,0.72);
  font-style: italic;
}
.radar-engagement {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.radar-sentiment {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.radar-sentiment--positive { background: rgba(74,222,128,.14); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.radar-sentiment--negative { background: rgba(248,113,113,.14); color: #f87171; border: 1px solid rgba(248,113,113,.3); }
.radar-sentiment--neutral  { background: rgba(148,163,184,.14); color: #94a3b8; border: 1px solid rgba(148,163,184,.3); }

/* Light theme overrides */
body.theme-light .rail-widget--radar { color: #18181b; }
body.theme-light .rail-widget-head--radar { color: #6d28d9 !important; }
body.theme-light .radar-card { background: linear-gradient(135deg, rgba(109,40,217,.05), rgba(6,182,212,.04)); }
body.theme-light .radar-row--bottom { border-top-color: rgba(0,0,0,.06); }
body.theme-light .radar-key { color: rgba(0,0,0,0.42); }
body.theme-light .radar-comment { color: rgba(0,0,0,0.65); }
body.theme-light .radar-engagement { color: rgba(0,0,0,0.55); }

/* ════════════════════════════════════════════════════════════════
   COMMUNITY DETAIL — premium polish (glow + pulse + responsive)
   ════════════════════════════════════════════════════════════════ */

/* Container — subtle gradient background + glow border */
.comm-detail {
  background: linear-gradient(180deg, rgba(167,139,250,.04) 0%, rgba(56,189,248,.02) 50%, transparent 100%) !important;
  border: 1px solid rgba(167,139,250,.18) !important;
  border-radius: 16px !important;
  padding: 26px !important;
  box-shadow:
    0 0 0 1px rgba(167,139,250,.05),
    0 12px 40px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}
.comm-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4, transparent);
  animation: commBorderShimmer 3.5s ease-in-out infinite;
}
@keyframes commBorderShimmer {
  0%, 100% { opacity: 0.45; transform: translateX(-15%); }
  50%      { opacity: 1;    transform: translateX(15%); }
}

/* Header — pulsing badge + gradient title */
.comm-detail-head { margin-bottom: 20px; }
.comm-detail-head h1 {
  margin: 10px 0 6px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  background: linear-gradient(135deg, #f8fafc 0%, #c4b5fd 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(167,139,250,0.15);
}

/* Pulsing badge — add glow + dot pulse */
.comm-detail-head .comm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px !important;
  font-size: .62rem !important;
}
.comm-detail-head .comm-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: commBadgeDot 1.6s ease-in-out infinite;
}
@keyframes commBadgeDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.comm-detail-author {
  font-size: .82rem !important;
  color: rgba(255,255,255,.55) !important;
}
.comm-detail-author a {
  color: #c4b5fd !important;
  font-weight: 600;
  transition: color .15s;
}
.comm-detail-author a:hover { color: #fff !important; text-shadow: 0 0 8px rgba(196,181,253,.6); }

/* Description / target */
.comm-detail-desc {
  font-size: .98rem !important;
  line-height: 1.65 !important;
  color: #e2e8f0 !important;
  padding: 14px 16px !important;
  background: rgba(255,255,255,.025);
  border-left: 3px solid rgba(167,139,250,.4);
  border-radius: 0 9px 9px 0;
  margin-bottom: 14px !important;
}
.comm-detail-target {
  font-size: .9rem !important;
  padding: 12px 16px !important;
  background: linear-gradient(90deg, rgba(196,181,253,.08), transparent);
  border-radius: 9px;
  border: 1px solid rgba(196,181,253,.18);
  margin-bottom: 18px !important;
}
.comm-detail-target b {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-right: 8px;
}

/* Meta grid — premium cards with hover glow */
.comm-detail-meta {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.comm-detail-meta > div {
  position: relative;
  padding: 12px 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 10px !important;
  transition: all .18s;
  overflow: hidden;
}
.comm-detail-meta > div::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167,139,250,0), rgba(167,139,250,.3), rgba(56,189,248,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.comm-detail-meta > div:hover {
  border-color: rgba(167,139,250,.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(167,139,250,.12);
}
.comm-detail-meta > div:hover::before { opacity: 1; }
.comm-detail-meta label {
  font-size: .58rem !important;
  letter-spacing: .14em !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.42) !important;
  display: block;
  margin-bottom: 4px;
}
.comm-detail-meta b {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* Progress bar — bigger, glowing, animated stripes */
.comm-progress-bar {
  height: 10px !important;
  background: rgba(255,255,255,.04) !important;
  border-radius: 10px !important;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
  margin: 18px 0 !important;
}
.comm-progress-bar > div {
  height: 100% !important;
  background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%) !important;
  background-size: 200% 100%;
  border-radius: 10px !important;
  position: relative;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(139,92,246,.45), 0 0 24px rgba(56,189,248,.25);
  animation: commProgressFlow 3.5s ease-in-out infinite;
}
@keyframes commProgressFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.comm-progress-bar > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg,
    transparent 25%, rgba(255,255,255,.12) 25%, rgba(255,255,255,.12) 50%,
    transparent 50%, transparent 75%, rgba(255,255,255,.12) 75%);
  background-size: 18px 18px;
  animation: commProgressStripes .9s linear infinite;
  border-radius: 10px;
}
@keyframes commProgressStripes {
  from { background-position: 0 0; }
  to   { background-position: 18px 0; }
}

/* Rules block */
.comm-detail-rules {
  background: rgba(251,191,36,.06) !important;
  border: 1px solid rgba(251,191,36,.22) !important;
  border-left: 3px solid #fbbf24 !important;
  border-radius: 0 9px 9px 0 !important;
  padding: 14px 16px !important;
  font-size: .86rem !important;
  line-height: 1.55 !important;
  color: #fde68a !important;
  margin: 18px 0 !important;
}

/* Slots — section header + premium cards */
.comm-slots h3, .comm-members h3, .comm-chat h3 {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  color: rgba(255,255,255,.6) !important;
  margin: 24px 0 12px !important;
  position: relative;
  padding-left: 14px;
}
.comm-slots h3::before, .comm-members h3::before, .comm-chat h3::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 8px rgba(139,92,246,.5);
}

.comm-slot {
  padding: 13px 14px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 10px !important;
  transition: all .15s !important;
  position: relative;
  overflow: hidden;
}
.comm-slot:hover:not(.full) {
  border-color: rgba(167,139,250,.4) !important;
  background: rgba(167,139,250,.05) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(167,139,250,.12);
}
.comm-slot input[type="radio"]:checked + div .comm-slot-label,
.comm-slot:has(input:checked) .comm-slot-label { color: #c4b5fd !important; }
.comm-slot:has(input:checked) {
  border-color: rgba(167,139,250,.6) !important;
  background: rgba(167,139,250,.10) !important;
  box-shadow: 0 0 0 1px rgba(167,139,250,.3), 0 4px 16px rgba(167,139,250,.18);
}
.comm-slot-label {
  font-weight: 600 !important;
  font-size: .88rem !important;
  color: #f1f5f9 !important;
}
.comm-slot-desc {
  font-size: .72rem !important;
  color: #94a3b8 !important;
  margin-top: 3px !important;
}
.comm-slot-taken {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: .68rem !important;
  font-weight: 700;
  color: #4ade80 !important;
  margin-top: 6px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(74,222,128,.10);
  border-radius: 10px;
  border: 1px solid rgba(74,222,128,.22);
}

/* Actions — premium buttons */
.comm-actions { margin: 20px 0 !important; gap: 10px !important; }
.comm-join-btn {
  padding: 12px 22px !important;
  border-radius: 11px !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%) !important;
  background-size: 200% 200%;
  border: 1px solid rgba(167,139,250,.5) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(139,92,246,.32), inset 0 1px 0 rgba(255,255,255,.18);
  transition: all .15s, background-position .4s;
  position: relative;
  overflow: hidden;
}
.comm-join-btn:hover {
  background-position: 100% 50% !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(139,92,246,.45), inset 0 1px 0 rgba(255,255,255,.22);
}
.comm-join-btn::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 40%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.comm-join-btn:hover::before { opacity: 1; }

.comm-cancel, .comm-leave {
  padding: 10px 18px !important;
  background: rgba(248,113,113,.08) !important;
  border: 1px solid rgba(248,113,113,.3) !important;
  color: #fca5a5 !important;
  border-radius: 10px !important;
  font-size: .82rem !important;
  font-weight: 600;
  transition: all .15s;
}
.comm-cancel:hover, .comm-leave:hover {
  background: rgba(248,113,113,.18) !important;
  border-color: rgba(248,113,113,.5) !important;
  color: #fff !important;
}

/* Member cards — premium grid + hover */
.comm-member-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 8px !important;
}
.comm-member {
  padding: 10px 12px !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.04) !important;
  border-radius: 9px !important;
  transition: all .15s;
}
.comm-member:hover {
  border-color: rgba(167,139,250,.2) !important;
  background: rgba(255,255,255,.045) !important;
}
.comm-member-name {
  font-size: .85rem !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}
.comm-admin-tag {
  background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
  color: #fff !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: .56rem !important;
  font-weight: 800 !important;
  letter-spacing: .10em !important;
  margin-left: 6px;
  box-shadow: 0 0 6px rgba(139,92,246,.4);
}
.comm-member-slot {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: .68rem !important;
  color: #94a3b8 !important;
}

/* Chat empty state — pulsing icon + better visual */
.comm-detail > .empty {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(56,189,248,.03)) !important;
  border: 1px dashed rgba(255,255,255,.10) !important;
  border-radius: 10px;
  padding: 22px !important;
  position: relative;
  overflow: hidden;
}
.comm-detail > .empty::before {
  content: '';
  display: block;
  width: 32px; height: 32px;
  margin: 0 auto 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>") center/contain no-repeat;
  color: #94a3b8;
  animation: commChatBubble 2.4s ease-in-out infinite;
  opacity: .65;
}
@keyframes commChatBubble {
  0%, 100% { transform: translateY(0); opacity: .65; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

/* Back link — refined */
.comm-back {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  margin-bottom: 18px !important;
  font-size: .78rem !important;
  color: rgba(255,255,255,.6) !important;
  text-decoration: none !important;
  transition: all .15s;
}
.comm-back:hover {
  color: #c4b5fd !important;
  border-color: rgba(167,139,250,.3);
  background: rgba(167,139,250,.06);
  transform: translateX(-2px);
}

/* Avatar — subtle glow */
.comm-member .av {
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.3);
}

/* Responsive — mobile refinements */
@media (max-width: 700px) {
  .comm-detail { padding: 18px !important; border-radius: 12px !important; }
  .comm-detail-head h1 { font-size: 1.35rem !important; }
  .comm-detail-meta { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .comm-detail-meta b { font-size: .95rem !important; }
  .comm-progress-bar { height: 8px !important; }
  .comm-actions { flex-direction: column; }
  .comm-actions > * { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .comm-detail-meta { grid-template-columns: 1fr 1fr !important; }
}

/* Light theme overrides */
body.theme-light .comm-detail {
  background: linear-gradient(180deg, rgba(109,40,217,.04) 0%, rgba(8,145,178,.02) 50%, transparent 100%) !important;
  border-color: rgba(109,40,217,.18) !important;
}
body.theme-light .comm-detail-head h1 {
  background: linear-gradient(135deg, #18181b, #6d28d9 60%, #0891b2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
body.theme-light .comm-detail-desc {
  background: rgba(0,0,0,.03);
  color: #27272a !important;
  border-left-color: rgba(109,40,217,.4);
}
body.theme-light .comm-detail-target { color: #18181b; }
body.theme-light .comm-detail-target b { color: #6d28d9; }
body.theme-light .comm-detail-meta > div {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
body.theme-light .comm-detail-meta label { color: rgba(0,0,0,.45) !important; }
body.theme-light .comm-detail-meta b { color: #18181b !important; }
body.theme-light .comm-detail-rules { background: rgba(251,191,36,.10) !important; color: #92400e !important; }
body.theme-light .comm-slots h3, body.theme-light .comm-members h3, body.theme-light .comm-chat h3 { color: rgba(0,0,0,.55) !important; }
body.theme-light .comm-slot { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .comm-slot-label { color: #18181b !important; }
body.theme-light .comm-member { background: #ffffff !important; border-color: rgba(0,0,0,.06) !important; }
body.theme-light .comm-member-name { color: #18181b !important; }
body.theme-light .comm-back { background: rgba(0,0,0,.04); color: #27272a !important; }


/* Trending: community card */
.trending-comm-card {
  display: block;
  background: linear-gradient(180deg, rgba(196,181,253,.04), rgba(56,189,248,.02));
  border: 1px solid rgba(196,181,253,.22);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.trending-comm-card:hover {
  border-color: rgba(196,181,253,.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,92,246,.14);
}
.trending-comm-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  background: rgba(196,181,253,.08);
  border-bottom: 1px solid rgba(196,181,253,.18);
  font-size: .72rem;
}
.trending-comm-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: .06em;
}
.trending-comm-author { color: #94a3b8; font-weight: 600; }
.trending-comm-body { padding: 12px 14px; }
.trending-comm-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text, #f1f5f9);
  margin-bottom: 6px;
  line-height: 1.3;
}
.trending-comm-target {
  font-size: .82rem;
  color: #c4b5fd;
  margin-bottom: 10px;
}
.trending-comm-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.trending-comm-meta-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: #94a3b8;
}
.trending-comm-meta-item b { color: #fff; }
.trending-comm-progress {
  height: 6px;
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  overflow: hidden;
}
.trending-comm-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 4px;
  transition: width .6s;
  box-shadow: 0 0 8px rgba(139,92,246,.4);
}

@media (max-width: 600px) {
  .trending-comm-meta { gap: 8px; font-size: .72rem; }
}

body.theme-light .trending-comm-card {
  background: #ffffff;
  border-color: rgba(0,0,0,.08);
}
body.theme-light .trending-comm-banner { background: rgba(109,40,217,.06); border-color: rgba(109,40,217,.15); }
body.theme-light .trending-comm-tag { color: #6d28d9; }
body.theme-light .trending-comm-title { color: #18181b; }
body.theme-light .trending-comm-meta-item { color: #52525b; }
body.theme-light .trending-comm-meta-item b { color: #18181b; }


/* ── Inline SVG icons (replace emojis) ── */
.hi {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
  flex-shrink: 0;
}
.radar-pulse .hi {
  margin: 0;
  vertical-align: middle;
  color: #c4b5fd;
  animation: radarPulse 1.8s ease-in-out infinite;
}
.radar-pulse {
  animation: none !important;
  display: inline-flex;
  align-items: center;
}
.trending-mkt-tag, .trending-comm-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.trending-mkt-tag .hi, .trending-comm-tag .hi {
  margin-right: 0;
}
.trending-comm-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trending-comm-target .hi { margin-right: 0; }
.copy-keys-head .hi { color: #fbbf24; vertical-align: -3px; }
.comm-detail-rules b .hi { color: #fbbf24; vertical-align: -2px; }

/* Tracker image placeholder */
.tk-sub-img, .tk-feed-img {
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
  position: relative;
  overflow: hidden;
}
.tk-sub-img::after, .tk-feed-img::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='M21 15l-5-5L5 21'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.tk-sub-img img, .tk-feed-img img { position: relative; z-index: 1; }
body.theme-light .tk-sub-img, body.theme-light .tk-feed-img { background: linear-gradient(135deg, #f4f4f5, #e4e4e7); }
body.theme-light .tk-sub-img::after, body.theme-light .tk-feed-img::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.18)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='M21 15l-5-5L5 21'/></svg>"); }


/* Marketplace category chips — clean & minimal */
.mkt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.mkt-cat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}
.mkt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: -.005em;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  border-radius: 18px;
  cursor: pointer;
  transition: all .12s;
  font-family: inherit;
}
.mkt-chip:hover {
  background: rgba(255,255,255,.07);
  color: #e2e8f0;
  border-color: rgba(255,255,255,.14);
}
.mkt-chip.active {
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(56,189,248,.10));
  color: #c4b5fd;
  border-color: rgba(167,139,250,.4);
  box-shadow: 0 0 0 2px rgba(167,139,250,.10);
}
.mkt-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mkt-chip-dot--tiktok  { background: linear-gradient(135deg, #ff2d55, #25f4ee); box-shadow: 0 0 4px rgba(37,244,238,.4); }
.mkt-chip-dot--meta    { background: linear-gradient(135deg, #1877f2, #c13584); box-shadow: 0 0 4px rgba(193,53,132,.4); }
.mkt-chip-dot--youtube { background: #ff0000; box-shadow: 0 0 4px rgba(255,0,0,.4); }
.mkt-chip-dot--other   { background: linear-gradient(135deg, #94a3b8, #475569); }

@media (max-width: 600px) {
  .mkt-cat-chips { justify-content: flex-start; }
  .mkt-chip { font-size: .7rem; padding: 5px 11px; }
}

body.theme-light .mkt-chip {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
  color: #52525b;
}
body.theme-light .mkt-chip:hover { background: rgba(0,0,0,.07); color: #18181b; }
body.theme-light .mkt-chip.active {
  background: linear-gradient(135deg, rgba(109,40,217,.10), rgba(8,145,178,.06));
  color: #6d28d9;
  border-color: rgba(109,40,217,.3);
}

/* ════════════════════════════════════════════════════════════════
   MARKETPLACE — layout polish + select dropdown fix
   ════════════════════════════════════════════════════════════════ */

/* Force browser to use dark variant of native widgets (option dropdown) */
.mkt-modal-body select,
.mkt-modal-body input,
.mkt-modal-body textarea,
.mkt-field select,
.mkt-field input,
.mkt-field textarea {
  color-scheme: dark;
}
body.theme-light .mkt-modal-body select,
body.theme-light .mkt-modal-body input,
body.theme-light .mkt-modal-body textarea,
body.theme-light .mkt-field select,
body.theme-light .mkt-field input,
body.theme-light .mkt-field textarea {
  color-scheme: light;
}

/* Style option items (works on Chromium) */
.mkt-modal-body select option,
.mkt-field select option {
  background: #0a0a0a !important;
  color: #f1f5f9 !important;
  padding: 8px !important;
}
body.theme-light .mkt-modal-body select option,
body.theme-light .mkt-field select option {
  background: #ffffff !important;
  color: #18181b !important;
}

/* ─── Marketplace head — better hierarchy ─── */
.mkt-page .mkt-head {
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 22px !important;
}
.mkt-page .mkt-head h1 {
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  background: linear-gradient(135deg, #f1f5f9 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mkt-new-btn {
  padding: 11px 20px !important;
  font-size: .9rem !important;
  border-radius: 11px !important;
  box-shadow: 0 6px 20px rgba(139,92,246,.25), inset 0 1px 0 rgba(255,255,255,.18) !important;
  transition: all .15s, background-position .4s !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%) !important;
  background-size: 200% 200% !important;
}
.mkt-new-btn:hover {
  background-position: 100% 50% !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(139,92,246,.4) !important;
}

/* ─── Toolbar restructure: search full width on top, chips below ─── */
.mkt-toolbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
  align-items: stretch !important;
}
.mkt-search-input {
  width: 100% !important;
  max-width: none !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  padding: 12px 16px 12px 42px !important;
  border-radius: 11px !important;
  font-size: .9rem !important;
  color: #f1f5f9 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: 14px center !important;
  transition: all .15s !important;
}
.mkt-search-input:hover {
  background-color: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.15) !important;
}
.mkt-search-input:focus {
  border-color: rgba(167,139,250,.5) !important;
  background-color: rgba(255,255,255,.04) !important;
  box-shadow: 0 0 0 3px rgba(167,139,250,.12) !important;
  outline: none !important;
}
.mkt-search-input::placeholder { color: rgba(255,255,255,.35) !important; }

.mkt-cat-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* Chip refinement */
.mkt-chip {
  padding: 7px 14px !important;
  font-size: .76rem !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.55) !important;
  transition: all .15s !important;
  font-weight: 600;
}
.mkt-chip:hover {
  background: rgba(255,255,255,.06) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255,255,255,.18) !important;
  transform: translateY(-1px);
}
.mkt-chip.active {
  background: linear-gradient(135deg, rgba(139,92,246,.20), rgba(56,189,248,.12)) !important;
  color: #c4b5fd !important;
  border-color: rgba(167,139,250,.45) !important;
  box-shadow: 0 0 0 1px rgba(167,139,250,.15), 0 4px 12px rgba(139,92,246,.18) !important;
  transform: none;
}
.mkt-chip-dot {
  width: 9px !important;
  height: 9px !important;
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
  .mkt-page { padding: 16px 12px 80px !important; }
  .mkt-page .mkt-head { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
  .mkt-page .mkt-head h1 { font-size: 1.4rem !important; }
  .mkt-new-btn { width: 100%; text-align: center; padding: 10px 18px !important; }
  .mkt-search-input { padding: 11px 14px 11px 40px !important; font-size: .88rem !important; }
  .mkt-cat-chips {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .mkt-cat-chips::-webkit-scrollbar { display: none; }
  .mkt-chip { flex-shrink: 0; padding: 6px 12px !important; font-size: .72rem !important; }
  .mkt-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .mkt-card-actions { padding: 0 12px 12px !important; flex-wrap: wrap; }
  .mkt-card-actions button { font-size: .72rem !important; }
}
@media (max-width: 400px) {
  .mkt-grid { grid-template-columns: 1fr !important; }
}

/* Light theme */
body.theme-light .mkt-page .mkt-head h1 {
  background: linear-gradient(135deg, #18181b, #6d28d9 50%, #0891b2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
body.theme-light .mkt-search-input {
  background-color: #ffffff !important;
  border-color: rgba(0,0,0,.10) !important;
  color: #18181b !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
  background-repeat: no-repeat !important;        /* CRITICAL: was missing → SVG tiled */
  background-position: 14px center !important;
  background-size: 18px 18px !important;
  padding-left: 42px !important;
}
body.theme-light .mkt-search-input::placeholder { color: rgba(0,0,0,.35) !important; }

/* ── Discover: showcase items indicator ── */
.discover-showcase {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(56,189,248,.10));
  border: 1px solid rgba(167,139,250,.32);
  color: #c4b5fd !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem !important;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .02em;
  box-shadow: 0 0 0 1px rgba(167,139,250,.08), 0 2px 6px rgba(139,92,246,.12);
  transition: all .15s;
}
.discover-card:hover .discover-showcase {
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 0 0 1px rgba(167,139,250,.18), 0 4px 12px rgba(139,92,246,.22);
}
.discover-showcase::before {
  content: '';
  width: 10px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}
body.theme-light .discover-showcase {
  background: linear-gradient(135deg, rgba(109,40,217,.10), rgba(8,145,178,.06));
  border-color: rgba(109,40,217,.25);
  color: #6d28d9 !important;
}
@media (max-width: 600px) {
  .discover-showcase { font-size: .68rem !important; padding: 2px 7px; }
}


/* ── Dislike button (mirrors like, amber/red accent) ── */
.post-action.js-dislike {
  transition: color .15s, transform .12s;
}
.post-action.js-dislike:hover {
  color: #f59e0b;
  transform: translateY(-1px);
}
.post-action.js-dislike.is-disliked {
  color: #f97316;
}
.post-action.js-dislike.is-disliked svg {
  filter: drop-shadow(0 0 4px rgba(249,115,22,.45));
  animation: dislikePulse .35s ease-out;
}
@keyframes dislikePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
body.theme-light .post-action.js-dislike:hover { color: #b45309; }
body.theme-light .post-action.js-dislike.is-disliked { color: #c2410c; }


/* ─── Mobile-only topbar icons (Descobrir + Trending) ─── */
.btn-icon--mobile { display: none !important; }
@media (max-width: 760px) {
  .btn-icon--mobile { display: inline-flex !important; }
  /* Compact topbar spacing for mobile when 6 icons live there */
  .topbar-right { gap: 4px !important; }
  .topbar-right .btn-icon { padding: 7px !important; }
  .topbar-right #btn-new-post { padding: 7px 11px !important; }
  .topbar-right #btn-new-post span { display: none; }
}

/* ─── Feed quick-access strip (Marketplace + Comunidade), mobile-only ─── */
.feed-quick-strip {
  display: none;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .feed-quick-strip { display: grid; grid-template-columns: 1fr 1fr; }
}
.fqs-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text, #f1f5f9);
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  transition: all .15s, transform .12s;
  position: relative;
  overflow: hidden;
  min-height: 60px;
}
.fqs-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.fqs-card--mkt {
  background: linear-gradient(135deg, rgba(56,189,248,.10), rgba(99,102,241,.04));
  border-color: rgba(56,189,248,.25);
}
.fqs-card--mkt:hover {
  border-color: rgba(56,189,248,.45);
  box-shadow: 0 6px 22px rgba(56,189,248,.18);
}
.fqs-card--comm {
  background: linear-gradient(135deg, rgba(139,92,246,.10), rgba(196,181,253,.04));
  border-color: rgba(139,92,246,.25);
}
.fqs-card--comm:hover {
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 6px 22px rgba(139,92,246,.18);
}
.fqs-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(0,0,0,.25);
}
.fqs-card--mkt .fqs-icon { color: #67e8f9; }
.fqs-card--comm .fqs-icon { color: #c4b5fd; }
.fqs-body {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.fqs-body b {
  font-size: .9rem; font-weight: 700; line-height: 1.1;
}
.fqs-body span {
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
}
.fqs-cta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  flex-shrink: 0;
}

/* Light theme adjustments */
body.theme-light .fqs-card {
  background: #fff;
  border-color: rgba(0,0,0,.08);
  color: #18181b;
}
body.theme-light .fqs-card--mkt {
  background: linear-gradient(135deg, rgba(8,145,178,.06), rgba(255,255,255,.6));
  border-color: rgba(8,145,178,.22);
}
body.theme-light .fqs-card--comm {
  background: linear-gradient(135deg, rgba(109,40,217,.06), rgba(255,255,255,.6));
  border-color: rgba(109,40,217,.22);
}
body.theme-light .fqs-body span { color: #52525b; }
body.theme-light .fqs-cta { color: #71717a; }
body.theme-light .fqs-card--mkt .fqs-icon { background: rgba(8,145,178,.1); color: #0e7490; }
body.theme-light .fqs-card--comm .fqs-icon { background: rgba(109,40,217,.1); color: #6d28d9; }


/* ─── Skills (profile tab + editor) ─── */
.skills-wrap { display: flex; flex-direction: column; gap: 18px; padding: 4px 0; }
.skills-section {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 16px;
}
.skills-section-head {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 12px;
}
.skills-section-head h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  color: #f1f5f9;
}
.skills-section-icon { font-size: 1.05rem; }
.skills-section-count {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.skills-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.skills-chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(56,189,248,.06));
  border: 1px solid rgba(167,139,250,.32);
  border-radius: 999px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.skills-section:nth-child(2) .skills-chip {
  color: #67e8f9;
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(99,102,241,.06));
  border-color: rgba(56,189,248,.32);
}
.skills-chip--custom::before {
  content: '★';
  font-size: .65rem;
  margin-right: 5px;
  opacity: .7;
}
.skills-empty { color: rgba(255,255,255,.4); font-size: .82rem; font-style: italic; }

/* Editor (inside edit-modal) */
.skills-edit-wrap {
  display: flex; flex-direction: column; gap: 18px;
}
.skills-edit-section {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px 14px;
}
.skills-edit-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.skills-edit-head b { font-size: .88rem; color: #f1f5f9; }
.skills-edit-head small { font-size: .68rem; color: rgba(255,255,255,.4); }
.skills-edit-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.skills-edit-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .12s;
}
.skills-edit-chip:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: #f1f5f9;
}
.skills-edit-chip input[type="checkbox"] { display: none; }
.skills-edit-chip.is-on {
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(56,189,248,.12));
  border-color: rgba(167,139,250,.5);
  color: #c4b5fd;
  box-shadow: 0 0 0 1px rgba(167,139,250,.15);
}
.skills-edit-section[data-kind="seeking"] .skills-edit-chip.is-on {
  background: linear-gradient(135deg, rgba(56,189,248,.22), rgba(99,102,241,.12));
  border-color: rgba(56,189,248,.5);
  color: #67e8f9;
  box-shadow: 0 0 0 1px rgba(56,189,248,.15);
}
.skills-edit-chip--custom { padding-right: 4px; }
.skills-edit-rm {
  background: none;
  border: none;
  color: inherit;
  opacity: .55;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
  border-radius: 4px;
}
.skills-edit-rm:hover { opacity: 1; background: rgba(239,68,68,.15); color: #fca5a5; }
.skills-edit-add { display: flex; gap: 6px; }
.skills-edit-add-input {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: .76rem;
  color: #f1f5f9;
}
.skills-edit-add-input:focus { border-color: #a78bfa; outline: none; box-shadow: 0 0 0 2px rgba(167,139,250,.16); }
.skills-edit-add-btn {
  background: rgba(167,139,250,.14);
  border: 1px solid rgba(167,139,250,.35);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
}
.skills-edit-add-btn:hover { background: rgba(167,139,250,.25); }

/* Mobile */
@media (max-width: 600px) {
  .skills-chip, .skills-edit-chip { font-size: .72rem; padding: 5px 10px; }
}

/* Light theme */
body.theme-light .skills-section {
  background: #fff;
  border-color: rgba(0,0,0,.08);
}
body.theme-light .skills-section h3 { color: #18181b; }
body.theme-light .skills-section-count { color: #71717a; border-color: rgba(0,0,0,.1); background: #fafafa; }
body.theme-light .skills-chip {
  color: #6d28d9;
  background: linear-gradient(135deg, rgba(109,40,217,.08), rgba(8,145,178,.04));
  border-color: rgba(109,40,217,.25);
}
body.theme-light .skills-section:nth-child(2) .skills-chip {
  color: #0e7490;
  background: linear-gradient(135deg, rgba(8,145,178,.08), rgba(99,102,241,.04));
  border-color: rgba(8,145,178,.25);
}
body.theme-light .skills-edit-section { background: #f4f4f5; border-color: rgba(0,0,0,.08); }
body.theme-light .skills-edit-head b { color: #18181b; }
body.theme-light .skills-edit-head small { color: #71717a; }
body.theme-light .skills-edit-chip { background: #fff; border-color: rgba(0,0,0,.1); color: #52525b; }
body.theme-light .skills-edit-chip.is-on { color: #6d28d9; background: linear-gradient(135deg, rgba(109,40,217,.1), rgba(8,145,178,.04)); border-color: rgba(109,40,217,.4); }
body.theme-light .skills-edit-section[data-kind="seeking"] .skills-edit-chip.is-on { color: #0e7490; background: linear-gradient(135deg, rgba(8,145,178,.1), rgba(99,102,241,.04)); border-color: rgba(8,145,178,.4); }
body.theme-light .skills-edit-add-input { background: #fff; border-color: rgba(0,0,0,.1); color: #18181b; }


/* ─── Affiliate ─────────────────────────────────────────────── */

/* Ref banner on register form */
.aff-ref-banner {
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(56,189,248,.10));
  border: 1px solid rgba(167,139,250,.4);
  color: #c4b5fd;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Edit modal section */
.aff-edit-wrap { display: flex; flex-direction: column; gap: 12px; }
.aff-edit-info {
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .76rem;
  color: rgba(255,255,255,.78);
  line-height: 1.4;
}
.aff-edit-info b { color: #c4b5fd; }
.aff-code-row { display: flex; flex-direction: column; gap: 4px; }
.aff-code-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.aff-code-box {
  display: flex; gap: 6px; align-items: stretch;
}
.aff-code-input {
  flex: 1;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: #f1f5f9;
}
.aff-code-input[readonly] { color: #c4b5fd; cursor: default; }
.aff-code-input:focus { border-color: #a78bfa; outline: none; box-shadow: 0 0 0 2px rgba(167,139,250,.16); }
.aff-copy-btn, .aff-save-btn {
  background: rgba(167,139,250,.14);
  border: 1px solid rgba(167,139,250,.35);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.aff-copy-btn:hover, .aff-save-btn:hover { background: rgba(167,139,250,.25); }
.aff-copy-btn.is-copied { background: rgba(34,197,94,.2); border-color: rgba(34,197,94,.45); color: #6ee7b7; }
.aff-save-btn { background: rgba(99,102,241,.18); border-color: rgba(129,140,248,.4); color: #a5b4fc; }
.aff-hint { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.aff-hint code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 3px; font-family: 'JetBrains Mono', monospace; }
.aff-edit-msg { font-size: .76rem; margin-top: 4px; }
.aff-edit-msg.is-success { color: #6ee7b7; }
.aff-edit-msg.is-error { color: #fca5a5; }

/* Affiliate tab */
.aff-tab-wrap { display: flex; flex-direction: column; gap: 18px; padding: 6px 0; }

.aff-balance-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(56,189,248,.08));
  border: 1px solid rgba(167,139,250,.4);
  border-radius: 14px;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
}
.aff-balance-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(196,181,253,.18), transparent 60%);
  pointer-events: none;
}
.aff-balance-main { position: relative; z-index: 1; }
.aff-balance-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(196,181,253,.7);
  margin-bottom: 4px;
}
.aff-balance-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.02em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(167,139,250,.25);
}
.aff-balance-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}
.aff-balance-side {
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
  position: relative; z-index: 1;
}
.aff-balance-mini {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .78rem;
}
.aff-balance-mini span { color: rgba(255,255,255,.55); }
.aff-balance-mini b { font-family: 'JetBrains Mono', monospace; color: #67e8f9; font-size: .92rem; }

.aff-action-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.aff-action-hint { color: rgba(255,255,255,.45); font-size: .74rem; }
.aff-action-hint b { color: #c4b5fd; }

.aff-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.aff-stat {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
.aff-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
}
.aff-stat-lbl {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}

.aff-howto {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 10px 14px;
}
.aff-howto summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  color: #c4b5fd;
  user-select: none;
  list-style: none;
}
.aff-howto summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform .15s;
}
.aff-howto[open] summary::before { transform: rotate(90deg); }
.aff-howto ol {
  margin: 10px 0 4px;
  padding-left: 22px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}
.aff-howto b { color: #67e8f9; }

.aff-section {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 16px;
}
.aff-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aff-section-head h3 { font-size: .92rem; font-weight: 700; margin: 0; color: #f1f5f9; }
.aff-empty { color: rgba(255,255,255,.4); font-size: .8rem; font-style: italic; padding: 8px 0; }
.aff-list { display: flex; flex-direction: column; gap: 6px; }
.aff-list-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0,0,0,.18);
  border-radius: 8px;
}
.aff-list-main b { font-size: .85rem; display: block; line-height: 1.2; }
.aff-list-main small { font-size: .68rem; color: rgba(255,255,255,.4); }
.aff-list-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #67e8f9; font-size: .88rem; }
.aff-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
}
.aff-badge--ok   { background: rgba(34,197,94,.14);  color: #6ee7b7; border-color: rgba(34,197,94,.32); }
.aff-badge--wait { background: rgba(251,191,36,.14); color: #fde68a; border-color: rgba(251,191,36,.32); }
.aff-badge--err  { background: rgba(239,68,68,.14);  color: #fca5a5; border-color: rgba(239,68,68,.32); }

/* Withdraw + Bank modal extras */
.wd-info {
  background: rgba(167,139,250,.08);
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 12px;
  line-height: 1.45;
}
.wd-info b { color: #c4b5fd; }
.bank-info-hint {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.22);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .76rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 12px;
}
.bank-info-hint b { color: #6ee7b7; }
.bank-section {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}
.bank-section legend {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(196,181,253,.85);
  padding: 0 6px;
}

/* Admin page */
.admin-wrap { max-width: 1100px; }
.admin-section { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.admin-section h2 { font-size: 1.05rem; margin: 0 0 12px; color: #f1f5f9; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th { text-align: left; padding: 8px 10px; background: rgba(255,255,255,.04); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.admin-table td { padding: 10px; border-top: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.admin-table tr:hover { background: rgba(255,255,255,.02); }
.admin-table small { color: rgba(255,255,255,.45); font-size: .72rem; }
.admin-pre { background: rgba(0,0,0,.4); padding: 8px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: .7rem; max-width: 320px; overflow-x: auto; }
.admin-actions { display: flex; flex-direction: column; gap: 4px; }
.admin-actions .btn { padding: 5px 11px !important; font-size: .72rem !important; }
.admin-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.admin-form .field input, .admin-form .field select { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9; border-radius: 6px; padding: 7px 10px; }

/* Mobile tweaks */
@media (max-width: 600px) {
  .aff-balance-card { grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
  .aff-balance-val { font-size: 1.8rem; }
  .aff-stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-table { font-size: .74rem; }
  .admin-table th, .admin-table td { padding: 6px; }
}

/* Light theme adjustments */
body.theme-light .aff-ref-banner { background: linear-gradient(135deg, rgba(109,40,217,.08), rgba(8,145,178,.05)); border-color: rgba(109,40,217,.25); color: #6d28d9; }
body.theme-light .aff-balance-card { background: linear-gradient(135deg, rgba(109,40,217,.06), rgba(8,145,178,.04)); border-color: rgba(109,40,217,.22); }
body.theme-light .aff-balance-val { color: #18181b; text-shadow: none; }
body.theme-light .aff-balance-label { color: #6d28d9; }
body.theme-light .aff-balance-mini b { color: #0e7490; }
body.theme-light .aff-section, body.theme-light .aff-howto, body.theme-light .aff-stat { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .aff-section h3 { color: #18181b; }
body.theme-light .aff-howto summary { color: #6d28d9; }
body.theme-light .aff-list-item { background: #fafafa; }
body.theme-light .aff-edit-info { background: rgba(109,40,217,.05); border-color: rgba(109,40,217,.2); color: #18181b; }
body.theme-light .aff-edit-info b { color: #6d28d9; }
body.theme-light .aff-code-input { background: #fff; border-color: rgba(0,0,0,.1); color: #18181b; }
body.theme-light .aff-code-input[readonly] { color: #6d28d9; background: #fafafa; }
body.theme-light .aff-copy-btn, body.theme-light .aff-save-btn { background: rgba(109,40,217,.08); border-color: rgba(109,40,217,.3); color: #6d28d9; }
body.theme-light .admin-section { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .admin-table th { background: #f4f4f5; color: #71717a; }

/* Profile tab--mine accent */
.profile-tab--mine {
  background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(56,189,248,.04));
}
.profile-tab--mine.active { color: #c4b5fd; }


/* ─── Admin dashboard v2 ─── */
.admin-header { margin-bottom: 16px; }
.admin-header h1 { margin: 0 0 12px; font-size: 1.5rem; color: var(--text); }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0; }
.admin-tab {
  background: transparent; border: none; color: rgba(255,255,255,0.55);
  padding: 9px 14px; font-size: .85rem; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.admin-tab:hover { color: #f1f5f9; }
.admin-tab.active { color: #c4b5fd; border-bottom-color: #a78bfa; }

/* KPI grid */
.admin-kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px; margin-bottom: 18px;
}
.admin-kpi {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 12px 14px;
}
.admin-kpi--aff { background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(56,189,248,.04)); border-color: rgba(167,139,250,.22); }
.kpi-val { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 700; color: #f1f5f9; line-height: 1; }
.kpi-lbl { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 4px; }

/* Chart rows */
.admin-chart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-chart-row--time { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.admin-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; }
.admin-card h3 { margin: 0 0 10px; font-size: .92rem; color: #f1f5f9; }
.admin-card h4 { margin: 0 0 8px; font-size: .82rem; color: #f1f5f9; }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.donut-svg { flex-shrink: 0; }
.donut-num { font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; font-weight: 700; fill: #f1f5f9; }
.donut-lbl { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; fill: rgba(255,255,255,.4); font-family: 'JetBrains Mono', monospace; }
.chart-legend { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.chart-leg-item { display: flex; align-items: center; gap: 8px; font-size: .75rem; }
.chart-leg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.chart-leg-label { flex: 1; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-leg-val { color: rgba(255,255,255,.55); font-family: 'JetBrains Mono', monospace; font-size: .72rem; }
.chart-leg-val small { color: rgba(255,255,255,.35); }
.chart-empty { color: rgba(255,255,255,.4); font-style: italic; font-size: .82rem; padding: 18px 0; text-align: center; }

/* Bar chart */
.bar-wrap { overflow-x: auto; }
.bar-svg { display: block; max-width: 100%; }
.bar-axis { fill: rgba(255,255,255,.4); font-family: 'JetBrains Mono', monospace; font-size: 10px; }

/* Search + users table */
.admin-search { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-search input[type="search"] { flex: 1; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 9px 14px; color: #f1f5f9; font-size: .85rem; }
.admin-search input[type="search"]:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 2px rgba(167,139,250,.16); }
.admin-search select { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 9px 12px; color: #f1f5f9; font-size: .82rem; }
.admin-users-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-users-table th { text-align: left; padding: 8px 10px; background: rgba(255,255,255,.04); font-weight: 700; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.admin-users-table td { padding: 10px; border-top: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.admin-users-table tr.admin-user-row:hover { background: rgba(255,255,255,.025); }
.admin-user-cell b { display: block; }
.admin-user-cell small { color: rgba(255,255,255,.4); font-size: .72rem; }
.admin-tag-mini { font-size: .58rem; padding: 1px 5px; background: rgba(167,139,250,.2); color: #c4b5fd; border-radius: 3px; margin-left: 4px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.btn-sm { padding: 4px 10px !important; font-size: .72rem !important; }

/* User detail expansion */
.admin-user-detail td { background: rgba(0,0,0,.18); padding: 14px !important; }
.admin-detail-wrap { display: flex; flex-direction: column; gap: 14px; }
.admin-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.admin-detail-head h3 { margin: 0 0 4px; font-size: 1rem; }
.admin-detail-head small { color: rgba(255,255,255,.45); font-size: .72rem; }
.admin-ref-tag { background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.3); padding: 5px 10px; border-radius: 6px; font-size: .72rem; color: #c4b5fd; }
.admin-detail-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.kpi-mini { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); border-radius: 6px; padding: 8px 10px; text-align: center; }
.kpi-mini b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 1rem; color: #f1f5f9; font-weight: 700; line-height: 1; }
.kpi-mini span { display: block; font-size: .58rem; color: rgba(255,255,255,.45); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.admin-detail-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.admin-detail-feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-events-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.admin-events-table td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.admin-events-table small { color: rgba(255,255,255,.4); font-size: .68rem; }

/* Mini tables */
.admin-table-mini { width: 100%; border-collapse: collapse; font-size: .8rem; }
.admin-table-mini td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.admin-table-mini a { color: #c4b5fd; }

/* Light theme */
body.theme-light .admin-kpi, body.theme-light .admin-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .admin-kpi--aff { background: linear-gradient(135deg, rgba(109,40,217,.05), rgba(8,145,178,.03)); border-color: rgba(109,40,217,.18); }
body.theme-light .kpi-val { color: #18181b; }
body.theme-light .admin-card h3, body.theme-light .admin-card h4 { color: #18181b; }
body.theme-light .donut-num { fill: #18181b; }
body.theme-light .donut-lbl { fill: #71717a; }
body.theme-light .bar-axis { fill: #71717a; }
body.theme-light .chart-leg-label { color: #18181b; }
body.theme-light .admin-tab { color: #71717a; }
body.theme-light .admin-tab.active { color: #6d28d9; border-bottom-color: #6d28d9; }
body.theme-light .admin-users-table th { background: #f4f4f5; color: #71717a; }
body.theme-light .admin-user-detail td { background: #fafafa; }
body.theme-light .kpi-mini { background: #fafafa; }
body.theme-light .kpi-mini b { color: #18181b; }

/* Mobile */
@media (max-width: 700px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-chart-row, .admin-chart-row--time { grid-template-columns: 1fr; }
  .admin-detail-feeds { grid-template-columns: 1fr; }
  .admin-detail-charts { grid-template-columns: 1fr; }
  .admin-search { flex-direction: column; }
  .admin-users-table { font-size: .72rem; }
  .admin-users-table th, .admin-users-table td { padding: 6px; }
}


/* ─── Affiliate v2 fixes (contrast + payment methods + coin SVG) ─── */

/* SVG coin icon with subtle pulse */
.aff-coin {
  display: inline-block;
  vertical-align: -2px;
  color: #c4b5fd;
  filter: drop-shadow(0 0 4px rgba(167,139,250,.5));
  animation: aff-coin-pulse 2.4s ease-in-out infinite;
}
@keyframes aff-coin-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(167,139,250,.4)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 8px rgba(167,139,250,.85)); transform: scale(1.05); }
}
.aff-tab-icon { display: inline-flex; align-items: center; margin-right: 5px; vertical-align: -2px; }
.aff-tab-icon .aff-coin { animation: none; }
.profile-tab--mine.active .aff-tab-icon .aff-coin {
  animation: aff-coin-pulse 2.4s ease-in-out infinite;
}
.aff-coin-sfx {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68em;
  margin-left: 5px;
  color: #c4b5fd;
  font-weight: 600;
  opacity: .8;
}

/* Light theme: rescue the invisible text */
body.theme-light .aff-balance-label,
body.theme-light .aff-balance-sub,
body.theme-light .aff-balance-mini span,
body.theme-light .aff-stat-lbl,
body.theme-light .aff-section-head h3,
body.theme-light .aff-list-main b,
body.theme-light .aff-list-main small,
body.theme-light .aff-action-hint,
body.theme-light .aff-action-hint b,
body.theme-light .aff-howto summary,
body.theme-light .aff-empty {
  color: #1f2937 !important;
}
body.theme-light .aff-balance-label { color: #6d28d9 !important; opacity: 1; }
body.theme-light .aff-balance-sub { color: #4b5563 !important; opacity: 1; }
body.theme-light .aff-balance-mini span { color: #6b7280 !important; }
body.theme-light .aff-stat-lbl { color: #6b7280 !important; }
body.theme-light .aff-section-head h3 { color: #111827 !important; }
body.theme-light .aff-list-main b { color: #111827 !important; }
body.theme-light .aff-list-main small { color: #6b7280 !important; opacity: 1; }
body.theme-light .aff-action-hint { color: #6b7280 !important; }
body.theme-light .aff-action-hint b { color: #6d28d9 !important; }
body.theme-light .aff-howto summary { color: #6d28d9 !important; }
body.theme-light .aff-empty { color: #6b7280 !important; opacity: 1; font-style: italic; }
body.theme-light .aff-balance-val { color: #111827 !important; text-shadow: none !important; }
body.theme-light .aff-stat-val { color: #111827 !important; }
body.theme-light .aff-balance-mini b { color: #0e7490 !important; }
body.theme-light .aff-coin-sfx { color: #6d28d9 !important; }
body.theme-light .aff-coin { color: #6d28d9 !important; }
body.theme-light .aff-stat {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
body.theme-light .aff-howto { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .aff-howto ol { color: #1f2937 !important; }
body.theme-light .aff-howto b { color: #0e7490 !important; }

/* PM count badge */
.aff-pm-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  background: rgba(167,139,250,.18);
  color: #c4b5fd;
  border-radius: 999px;
  font-size: .68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
body.theme-light .aff-pm-count { background: rgba(109,40,217,.1); color: #6d28d9; }

/* Withdrawal modal: no-method state */
.wd-no-method {
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.32);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fde68a;
  font-size: .85rem;
  text-align: center;
  margin-bottom: 14px;
}
body.theme-light .wd-no-method { background: rgba(180,83,9,.08); border-color: rgba(180,83,9,.25); color: #92400e; }

/* Payment methods modal */
.pm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pm-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  align-items: center;
}
.pm-item.is-default {
  border-color: rgba(34,197,94,.4);
  background: rgba(34,197,94,.05);
}
.pm-item-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pm-item-head b { font-size: .9rem; color: #f1f5f9; }
.pm-flag { font-size: 1.15rem; }
.pm-currency { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 4px; font-weight: 600; letter-spacing: .04em; }
.pm-default-tag { font-size: .62rem; padding: 2px 7px; background: rgba(34,197,94,.2); color: #6ee7b7; border-radius: 4px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.pm-item-data { margin-top: 4px; color: rgba(255,255,255,.55); font-size: .72rem; }
.pm-item-data small { font-family: 'JetBrains Mono', monospace; }
.pm-item-actions { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.pm-item-actions .btn { font-size: .68rem !important; padding: 4px 9px !important; }
.pm-empty { color: rgba(255,255,255,.4); font-size: .82rem; font-style: italic; padding: 14px 0; text-align: center; }
.pm-add-divider { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.55); margin: 16px 0 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.pm-add-form { display: flex; flex-direction: column; gap: 8px; }
.pm-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.pm-row .field { flex: 1; min-width: 0; }
.pm-fields-section { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.pm-fields-title { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(196,181,253,.85); margin-bottom: 6px; }
.pm-add-form input[type="text"], .pm-add-form select {
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9;
  border-radius: 6px; padding: 7px 10px; font-size: .82rem; width: 100%;
}
.pm-add-form input[type="text"]:focus, .pm-add-form select:focus {
  border-color: #a78bfa; outline: none; box-shadow: 0 0 0 2px rgba(167,139,250,.16);
}
body.theme-light .pm-item { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .pm-item.is-default { background: #f0fdf4; border-color: rgba(34,197,94,.4); }
body.theme-light .pm-item-head b { color: #111827; }
body.theme-light .pm-currency { background: #f4f4f5; color: #52525b; }
body.theme-light .pm-item-data { color: #6b7280; }
body.theme-light .pm-add-divider { color: #6b7280; }
body.theme-light .pm-add-form input[type="text"], body.theme-light .pm-add-form select {
  background: #fff; border-color: rgba(0,0,0,.1); color: #18181b;
}
body.theme-light .pm-fields-section { background: #f4f4f5; border-color: rgba(0,0,0,.08); }
body.theme-light .pm-fields-title { color: #6d28d9; }
body.theme-light .pm-empty { color: #6b7280; }


/* ─── Moderation ──────────────────────────────────────────────── */
.admin-tab-badge {
  display: inline-block;
  margin-left: 4px;
  min-width: 18px;
  padding: 1px 6px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}
#btn-admin.has-pending::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: mod-pulse 1.6s ease-in-out infinite;
}
#btn-admin { position: relative; }
@keyframes mod-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.mod-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 16px; padding: 10px 14px; background: rgba(255,255,255,.025); border-radius: 8px; }
.mod-stat-item { font-size: .76rem; color: rgba(255,255,255,.65); }
.mod-stat-item b { color: #f1f5f9; font-family: 'JetBrains Mono', monospace; font-size: .9rem; margin-right: 4px; }
.mod-stat-pill { font-size: .7rem; padding: 2px 8px; background: rgba(239,68,68,.18); color: #fca5a5; border-radius: 999px; margin-left: 8px; font-family: 'JetBrains Mono', monospace; }
.mod-list { display: flex; flex-direction: column; gap: 10px; }
.mod-item {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 10px;
  padding: 12px 14px;
}
.mod-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mod-item-head b { font-size: .9rem; color: #f1f5f9; }
.mod-meta { font-size: .72rem; color: rgba(255,255,255,.55); margin-left: 8px; }
.mod-flags { display: flex; gap: 5px; flex-wrap: wrap; }
.mod-flag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(239,68,68,.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.32);
  text-transform: uppercase;
}
.mod-flag--fraud_keywords, .mod-flag--whatsapp, .mod-flag--telegram { background: rgba(180,83,9,.18); color: #fde68a; border-color: rgba(180,83,9,.4); }
.mod-flag--cpf, .mod-flag--cnpj, .mod-flag--iban { background: rgba(196,181,253,.18); color: #c4b5fd; border-color: rgba(167,139,250,.4); }
.mod-item-body { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.mod-item-original { font-size: .85rem; color: #f1f5f9; padding: 8px 10px; background: rgba(255,255,255,.03); border-left: 3px solid rgba(239,68,68,.5); border-radius: 4px; }
.mod-item-clean { font-size: .85rem; color: rgba(255,255,255,.78); padding: 8px 10px; background: rgba(34,197,94,.06); border-left: 3px solid rgba(34,197,94,.5); border-radius: 4px; }
.mod-item-original b, .mod-item-clean b { color: rgba(255,255,255,.5); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
.mod-item-hits { font-size: .72rem; color: rgba(255,255,255,.45); padding: 4px 8px; background: rgba(0,0,0,.2); border-radius: 4px; }
.mod-item-hits small { font-family: 'JetBrains Mono', monospace; }
.mod-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Light theme */
body.theme-light .mod-item { background: #fff; border-color: rgba(239,68,68,.25); }
body.theme-light .mod-item-head b { color: #18181b; }
body.theme-light .mod-meta { color: #6b7280; }
body.theme-light .mod-item-original { color: #18181b; background: #fafafa; }
body.theme-light .mod-item-clean { color: #18181b; background: #f0fdf4; }
body.theme-light .mod-item-hits { color: #6b7280; background: #f4f4f5; }
body.theme-light .mod-stats { background: #fafafa; }
body.theme-light .mod-stats b, body.theme-light .mod-stat-item b { color: #18181b; }
body.theme-light .mod-stat-item { color: #4b5563; }
body.theme-light .mod-flag { background: #fee2e2; color: #b91c1c; border-color: rgba(239,68,68,.3); }


/* ─── Sala ─────────────────────────────────────────────── */
.sala-wrap { max-width: 1100px; margin: 0 auto; }
.sala-header { margin-bottom: 16px; }
.sala-header h1 { margin: 0 0 4px; font-size: 1.5rem; color: var(--text); }
.sala-sub { margin: 0; font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.4; }
.sala-tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 18px; }
.sala-tab {
  background: transparent; border: none; color: rgba(255,255,255,.55);
  padding: 10px 16px; font-size: .9rem; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.sala-tab:hover { color: #f1f5f9; }
.sala-tab.active { color: #c4b5fd; border-bottom-color: #a78bfa; }

/* Top Picks cards */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.tp-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tp-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
}
.tp-stage { font-size: .78rem; font-weight: 700; color: var(--accent); }
.tp-rank { font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: #f1f5f9; }
.tp-arrow { font-family: 'JetBrains Mono', monospace; font-size: .68rem; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.tp-arrow.tp-up   { background: rgba(34,197,94,.18); color: #6ee7b7; }
.tp-arrow.tp-down { background: rgba(239,68,68,.18); color: #fca5a5; }
.tp-arrow.tp-flat { color: rgba(255,255,255,.4); }
.tp-img { background: #0a0a14; padding: 14px; text-align: center; }
.tp-img img { max-width: 180px; max-height: 180px; object-fit: contain; }
.tp-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tp-title { margin: 0; font-size: .96rem; font-weight: 700; line-height: 1.3; color: #f1f5f9; }
.tp-cat { font-size: .72rem; color: rgba(255,255,255,.5); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .04em; }
.tp-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: rgba(255,255,255,.6); padding: 6px 0; border-top: 1px dashed rgba(255,255,255,.06); border-bottom: 1px dashed rgba(255,255,255,.06); }
.tp-stats b { color: #f1f5f9; font-family: 'JetBrains Mono', monospace; }
.tp-vsl { background: rgba(0,0,0,.2); border-radius: 8px; padding: 10px 12px; }
.tp-vsl-head { font-size: .84rem; color: var(--accent); margin-bottom: 4px; }
.tp-vsl-pitch { font-size: .8rem; color: rgba(255,255,255,.78); line-height: 1.45; margin-bottom: 6px; }
.tp-vsl-checklist { margin: 0; padding-left: 18px; font-size: .76rem; color: rgba(255,255,255,.65); line-height: 1.55; }
.tp-vsl-checklist li { margin-bottom: 2px; }
.tp-angles { padding: 8px 0; }
.tp-angles b { display: block; font-size: .74rem; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.tp-angle { font-size: .78rem; color: rgba(255,255,255,.75); padding: 6px 10px; background: rgba(255,255,255,.025); border-radius: 6px; margin-bottom: 4px; font-style: italic; }
.tp-angle small { display: block; font-size: .66rem; color: rgba(255,255,255,.4); margin-top: 3px; font-style: normal; font-family: 'JetBrains Mono', monospace; }
.tp-angles-empty { color: rgba(255,255,255,.35); font-size: .76rem; }
.tp-link { display: inline-block; margin-top: 6px; font-size: .82rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.tp-region-hint { margin-top: 16px; padding: 10px 14px; background: rgba(255,255,255,.025); border-radius: 8px; font-size: .78rem; color: rgba(255,255,255,.55); }

/* Trade Ideas */
.ti-wrap { display: flex; flex-direction: column; gap: 14px; }
.ti-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ti-toolbar select { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9; border-radius: 6px; padding: 7px 10px; font-size: .82rem; }
.ti-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.ti-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .12s;
}
.ti-card:hover { border-color: rgba(167,139,250,.4); transform: translateY(-1px); }
.ti-card-head { display: flex; justify-content: space-between; align-items: center; }
.ti-author { font-size: .82rem; }
.ti-author a { color: #c4b5fd; text-decoration: none; font-weight: 600; }
.ti-rep { margin-left: 6px; font-size: .74rem; color: #fbbf24; font-family: 'JetBrains Mono', monospace; }
.ti-rep small { color: rgba(255,255,255,.4); font-family: 'JetBrains Mono', monospace; }
.ti-flag { font-size: 1.1rem; }
.ti-title { font-size: 1rem; font-weight: 700; margin: 0; color: #f1f5f9; line-height: 1.3; }
.ti-teaser { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.4; margin: 0; }
.ti-want { padding: 6px 10px; background: rgba(167,139,250,.08); border-left: 3px solid rgba(167,139,250,.5); border-radius: 4px; font-size: .76rem; color: rgba(255,255,255,.78); }
.ti-want b { color: #c4b5fd; }
.ti-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ti-tag { font-size: .68rem; padding: 2px 8px; background: rgba(56,189,248,.14); color: #67e8f9; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-weight: 600; letter-spacing: .04em; }
.ti-meta small { font-size: .72rem; color: rgba(255,255,255,.45); margin-left: auto; }
.ti-actions { margin-top: 4px; }
.ti-badge-offered { display: inline-block; padding: 4px 10px; background: rgba(34,197,94,.15); color: #6ee7b7; border-radius: 6px; font-size: .76rem; font-weight: 600; }

/* Detail modal */
.ti-detail-teaser { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.45; margin: 0 0 12px; }
.ti-sealed { padding: 12px 14px; background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.3); border-radius: 8px; font-size: .85rem; color: rgba(255,255,255,.85); white-space: pre-wrap; line-height: 1.5; margin: 12px 0; }
.ti-locked { padding: 14px; text-align: center; background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.18); border-radius: 8px; color: rgba(255,255,255,.5); font-size: .9rem; }
.ti-offers { display: flex; flex-direction: column; gap: 10px; }
.ti-offer { padding: 10px 12px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; }
.ti-offer-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.ti-offer-text { font-size: .85rem; color: rgba(255,255,255,.78); margin-bottom: 4px; }
.ti-offer-msg { font-size: .76rem; color: rgba(255,255,255,.55); font-style: italic; margin-bottom: 4px; }
.ti-offer-sealed { font-size: .82rem; color: rgba(255,255,255,.78); padding: 8px 10px; background: rgba(34,197,94,.06); border-radius: 6px; white-space: pre-wrap; margin-top: 6px; }
.ti-offer-actions { margin-top: 8px; display: flex; gap: 6px; }
.ti-rate-area { display: grid; grid-template-columns: 1fr 2fr auto; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.05); }
.ti-rate-area select, .ti-rate-area input { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9; border-radius: 6px; padding: 5px 8px; font-size: .78rem; }
.ti-help { background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.22); padding: 9px 12px; border-radius: 8px; font-size: .8rem; color: rgba(255,255,255,.78); margin-bottom: 12px; line-height: 1.4; }

/* Light theme */
body.theme-light .tp-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .tp-title { color: #18181b; }
body.theme-light .tp-vsl { background: #fafafa; }
body.theme-light .tp-vsl-pitch, body.theme-light .tp-vsl-checklist { color: #4b5563; }
body.theme-light .ti-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .ti-title { color: #18181b; }
body.theme-light .ti-teaser { color: #4b5563; }
body.theme-light .ti-sealed { background: #f0fdf4; color: #18181b; }
body.theme-light .sala-tab { color: #71717a; }
body.theme-light .sala-tab.active { color: #6d28d9; border-bottom-color: #6d28d9; }

/* Mobile */
@media (max-width: 700px) {
  .tp-grid { grid-template-columns: 1fr; }
  .ti-list { grid-template-columns: 1fr; }
  .ti-rate-area { grid-template-columns: 1fr; }
}


/* ─── Support tab ─────────────────────────────────────── */
.sup-tab-icon { display: inline-flex; align-items: center; margin-right: 5px; vertical-align: -2px; color: #22c55e; }
.profile-tab--mine[data-tab="support"].active .sup-tab-icon { color: #6ee7b7; }

.sup-wrap { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.sup-hero { text-align: center; padding: 22px 18px; background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(34,197,94,.02)); border: 1px solid rgba(34,197,94,.22); border-radius: 14px; }
.sup-icon { color: #22c55e; margin-bottom: 8px; }
.sup-hero h3 { margin: 4px 0; font-size: 1.2rem; color: #f1f5f9; }
.sup-hero p { color: rgba(255,255,255,.65); font-size: .88rem; margin: 0; }
.sup-hero p b { color: #6ee7b7; }
.sup-form .field textarea { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9; border-radius: 8px; padding: 9px 12px; font-size: .85rem; }
.sup-open-btn { width: 100%; font-size: .9rem; padding: 11px !important; }
.sup-faq { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 12px 16px; }
.sup-faq h4 { margin: 0 0 6px; font-size: .82rem; color: rgba(255,255,255,.7); }
.sup-faq ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,.55); font-size: .8rem; line-height: 1.55; }

.sup-status-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.sup-status-bar.sup-waiting { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.32); }
.sup-status-bar.sup-active  { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.32); }
.sup-status-bar b { display: block; font-size: .92rem; color: #f1f5f9; }
.sup-status-bar small { display: block; font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.sup-status-bar small b { display: inline; color: #6ee7b7; font-family: 'JetBrains Mono', monospace; }

.sup-spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(251,191,36,.25);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: sup-spin 0.8s linear infinite;
}
@keyframes sup-spin { to { transform: rotate(360deg); } }
.sup-online-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: sup-pulse-online 1.6s ease-in-out infinite;
}
@keyframes sup-pulse-online { 0%,100% { opacity:1; } 50% { opacity:.55; } }

.sup-chat {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px;
  height: 380px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.sup-empty { color: rgba(255,255,255,.4); text-align: center; padding: 60px 0; font-style: italic; }
.sup-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; }
.sup-msg-meta { font-size: .68rem; color: rgba(255,255,255,.45); margin-bottom: 3px; font-weight: 600; }
.sup-msg-text { font-size: .87rem; line-height: 1.4; color: #f1f5f9; white-space: pre-wrap; word-wrap: break-word; }
.sup-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(56,189,248,.10));
  border: 1px solid rgba(167,139,250,.32);
  border-bottom-right-radius: 4px;
}
.sup-msg-agent {
  align-self: flex-start;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.32);
  border-bottom-left-radius: 4px;
}
.sup-msg-agent .sup-msg-meta { color: #6ee7b7; }
.sup-msg-system {
  align-self: center;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
  padding: 4px 10px;
  background: rgba(255,255,255,.02);
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.06);
}

.sup-compose { display: flex; gap: 8px; }
.sup-compose input {
  flex: 1; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08);
  color: #f1f5f9; border-radius: 10px; padding: 11px 14px; font-size: .9rem;
}
.sup-compose input:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.16); }
.sup-compose input:disabled { opacity: .5; cursor: not-allowed; }
.sup-compose button { padding: 11px 18px !important; }

/* Light theme */
body.theme-light .sup-hero { background: linear-gradient(180deg, rgba(34,197,94,.06), #fff); border-color: rgba(34,197,94,.22); }
body.theme-light .sup-hero h3 { color: #18181b; }
body.theme-light .sup-hero p { color: #4b5563; }
body.theme-light .sup-hero p b { color: #15803d; }
body.theme-light .sup-faq { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .sup-faq h4 { color: #18181b; }
body.theme-light .sup-faq ul { color: #4b5563; }
body.theme-light .sup-status-bar.sup-waiting { background: #fef3c7; border-color: rgba(180,83,9,.3); }
body.theme-light .sup-status-bar.sup-active { background: #f0fdf4; border-color: rgba(34,197,94,.4); }
body.theme-light .sup-status-bar b { color: #18181b; }
body.theme-light .sup-status-bar small { color: #6b7280; }
body.theme-light .sup-status-bar small b { color: #15803d; }
body.theme-light .sup-chat { background: #fafafa; border-color: rgba(0,0,0,.08); }
body.theme-light .sup-msg-text { color: #18181b; }
body.theme-light .sup-msg-user { background: linear-gradient(135deg, rgba(109,40,217,.10), rgba(8,145,178,.05)); border-color: rgba(109,40,217,.3); }
body.theme-light .sup-msg-agent { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.3); }
body.theme-light .sup-msg-agent .sup-msg-meta { color: #15803d; }
body.theme-light .sup-msg-system { color: #6b7280; background: #fff; }
body.theme-light .sup-compose input { background: #fff; border-color: rgba(0,0,0,.1); color: #18181b; }
body.theme-light .sup-empty { color: #9ca3af; }


/* ─── Sala v2 — SVG dopamine icons + mobile banner + modal redesign ─── */

/* Mobile-only Sala banner below tracker */
.feed-sala-banner {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(56,189,248,.10));
  border: 1px solid rgba(167,139,250,.32);
  border-radius: 14px;
  margin: 10px 0 14px;
  text-decoration: none;
  color: inherit;
  transition: all .15s, transform .12s;
  position: relative;
  overflow: hidden;
}
.feed-sala-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at -10% 50%, rgba(167,139,250,.18), transparent 50%);
  pointer-events: none;
}
.feed-sala-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(167,139,250,.55);
  box-shadow: 0 6px 20px rgba(139,92,246,.22);
}
.fsb-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: rgba(167,139,250,.18); color: #c4b5fd;
  position: relative; z-index: 1;
}
.fsb-icon svg { animation: si-rotate-slow 8s linear infinite; }
.fsb-body { flex: 1; min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.fsb-body b { font-size: .9rem; font-weight: 700; color: #f1f5f9; line-height: 1.1; }
.fsb-body span { font-size: .68rem; color: rgba(255,255,255,.55); }
.fsb-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  color: #c4b5fd; flex-shrink: 0; position: relative; z-index: 1;
}
@media (max-width: 760px) { .feed-sala-banner { display: flex; } }

/* SVG icons with dopamine animations */
.si { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.si-sala { color: #c4b5fd; animation: si-pulse-glow 2.6s ease-in-out infinite; }
.si-crown { color: #fbbf24; animation: si-bounce 2.4s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(251,191,36,.5)); }
.si-rocket { color: #22d3ee; animation: si-rocket-thrust 1.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(34,211,238,.5)); }
.si-money { color: #a78bfa; animation: si-shimmer 2.2s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(167,139,250,.5)); }
.si-play { color: var(--accent, #c4b5fd); animation: si-pulse-glow 2s ease-in-out infinite; }
.si-chat { color: #67e8f9; animation: si-bob 2.4s ease-in-out infinite; }
.si-swap { color: #a78bfa; animation: si-rotate-slow 4s linear infinite; }
.si-lock { color: #fbbf24; }
.si-unlock { color: #6ee7b7; animation: si-pulse-glow 2.2s ease-in-out infinite; }
.si-plus { color: currentColor; }
.si-bolt { color: #fbbf24; animation: si-zap 1.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(251,191,36,.6)); }
.si-star { color: #fbbf24; filter: drop-shadow(0 0 3px rgba(251,191,36,.5)); }
.si-eye { color: rgba(255,255,255,.5); }
.si-inbox { color: rgba(255,255,255,.5); }
.si-check { color: #6ee7b7; }
.si-x { color: #fca5a5; }
.si-target {
  color: #c4b5fd; animation: si-target-pulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(167,139,250,.4));
}

@keyframes si-pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 3px currentColor); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 9px currentColor); transform: scale(1.08); }
}
@keyframes si-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.05); }
}
@keyframes si-rocket-thrust {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%      { transform: translateX(1px) translateY(-1px); filter: drop-shadow(0 2px 6px rgba(34,211,238,.7)); }
}
@keyframes si-shimmer {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(167,139,250,.4)) brightness(1); }
  50%      { filter: drop-shadow(0 0 10px rgba(167,139,250,.8)) brightness(1.2); }
}
@keyframes si-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@keyframes si-rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes si-zap {
  0%, 90%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(251,191,36,.5)); }
  92%, 96%      { transform: scale(1.18); filter: drop-shadow(0 0 9px rgba(251,191,36,.9)); }
}
@keyframes si-target-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(167,139,250,.4)); }
  50%      { transform: scale(1.1); filter: drop-shadow(0 0 9px rgba(167,139,250,.7)); }
}

/* Trade Ideas modal — redesigned (sections, contrast, light theme) */
.ti-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ti-tag-platform { background: rgba(56,189,248,.16) !important; color: #67e8f9 !important; border: 1px solid rgba(56,189,248,.3); }
.ti-help {
  background: linear-gradient(135deg, rgba(56,189,248,.10), rgba(99,102,241,.06));
  border: 1px solid rgba(56,189,248,.32);
  padding: 10px 14px; border-radius: 8px;
  font-size: .82rem; color: #cbd5e1; margin-bottom: 14px; line-height: 1.45;
}
.ti-help b { color: #67e8f9; }

/* Field improvements (dark + light) */
.modal-card .composer-body .field { display: flex; flex-direction: column; gap: 4px; }
.modal-card .composer-body .field > .lbl {
  font-size: .76rem !important; font-weight: 600 !important;
  color: rgba(255,255,255,.78) !important; letter-spacing: 0 !important;
  text-transform: none !important; margin-bottom: 2px !important;
}
.modal-card .composer-body input[type="text"],
.modal-card .composer-body input[type="number"],
.modal-card .composer-body textarea,
.modal-card .composer-body select {
  background: rgba(0,0,0,.3) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #f1f5f9 !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  font-size: .86rem !important;
  font-family: inherit;
}
.modal-card .composer-body textarea { line-height: 1.45; resize: vertical; }
.modal-card .composer-body input:focus, .modal-card .composer-body textarea:focus, .modal-card .composer-body select:focus {
  border-color: #a78bfa !important; outline: none !important; box-shadow: 0 0 0 3px rgba(167,139,250,.18) !important;
}

/* Light theme — high contrast */
body.theme-light .feed-sala-banner { background: linear-gradient(135deg, rgba(109,40,217,.08), rgba(8,145,178,.04)); border-color: rgba(109,40,217,.25); }
body.theme-light .feed-sala-banner:hover { border-color: rgba(109,40,217,.5); }
body.theme-light .fsb-icon { background: rgba(109,40,217,.12); color: #6d28d9; }
body.theme-light .fsb-body b { color: #18181b; }
body.theme-light .fsb-body span { color: #52525b; }
body.theme-light .fsb-cta { color: #6d28d9; }
body.theme-light .ti-help { background: #f5f3ff; border-color: rgba(109,40,217,.25); color: #18181b; }
body.theme-light .ti-help b { color: #6d28d9; }
body.theme-light .modal-card .composer-body .field > .lbl { color: #1f2937 !important; font-weight: 600 !important; }
body.theme-light .modal-card .composer-body input,
body.theme-light .modal-card .composer-body textarea,
body.theme-light .modal-card .composer-body select {
  background: #fff !important; border-color: rgba(0,0,0,.12) !important; color: #18181b !important;
}
body.theme-light .modal-card .composer-body input:focus,
body.theme-light .modal-card .composer-body textarea:focus,
body.theme-light .modal-card .composer-body select:focus {
  border-color: #6d28d9 !important; box-shadow: 0 0 0 3px rgba(109,40,217,.16) !important;
}
body.theme-light .si-sala, body.theme-light .si-swap, body.theme-light .si-target, body.theme-light .si-money { color: #6d28d9; }
body.theme-light .si-rocket, body.theme-light .si-chat { color: #0e7490; }
body.theme-light .si-crown, body.theme-light .si-bolt { color: #b45309; }
body.theme-light .si-unlock, body.theme-light .si-check { color: #15803d; }
body.theme-light .si-x { color: #b91c1c; }
body.theme-light .si-lock { color: #b45309; }

/* Modal header icon spacing tweak */
.modal-head h3 .si { margin-right: 6px; }


/* Sala light-theme contrast fixes */
body.theme-light .sala-sub { color: #4b5563 !important; }
body.theme-light .sala-header h1 { color: #18181b; }
body.theme-light .ti-want { color: #18181b !important; }
body.theme-light .ti-want b { color: #6d28d9 !important; }
body.theme-light .ti-teaser { color: #18181b !important; }
body.theme-light .ti-title { color: #18181b !important; }
body.theme-light .ti-author a { color: #6d28d9; }
body.theme-light .ti-meta small { color: #6b7280; }
body.theme-light .ti-tag { background: rgba(8,145,178,.10); color: #0e7490; }
body.theme-light .ti-tag-platform { background: rgba(8,145,178,.10) !important; color: #0e7490 !important; }


/* Top Picks light theme contrast — comprehensive */
body.theme-light .tp-stage { color: var(--accent) !important; font-weight: 700; }
body.theme-light .tp-card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent), #fff); }
body.theme-light .tp-rank { color: #18181b !important; font-weight: 700; }
body.theme-light .tp-card .tp-title { color: #18181b !important; font-weight: 700; }
body.theme-light .tp-cat { color: #6b7280 !important; }
body.theme-light .tp-stats { color: #1f2937 !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .tp-stats b { color: #111827 !important; }
body.theme-light .tp-vsl { background: rgba(0,0,0,.025) !important; border: 1px solid rgba(0,0,0,.06); }
body.theme-light .tp-vsl-head { color: var(--accent) !important; }
body.theme-light .tp-vsl-pitch { color: #18181b !important; font-weight: 500; }
body.theme-light .tp-vsl-checklist { color: #1f2937 !important; }
body.theme-light .tp-vsl-checklist li::marker { color: var(--accent); }
body.theme-light .tp-angles b { color: #4b5563 !important; }
body.theme-light .tp-angle { background: #fafafa !important; color: #18181b !important; }
body.theme-light .tp-angle small { color: #6b7280 !important; }
body.theme-light .tp-angles-empty { color: #6b7280 !important; }
body.theme-light .tp-link { color: var(--accent) !important; font-weight: 700; }
body.theme-light .tp-region-hint { background: #fff !important; border: 1px solid rgba(0,0,0,.08); color: #4b5563 !important; }
body.theme-light .tp-region-hint b { color: #18181b; }
body.theme-light .tp-img { background: #fafafa !important; border-bottom: 1px solid rgba(0,0,0,.06); }

/* Improve image placeholder when image fails */
.tp-img { min-height: 180px; display: flex; align-items: center; justify-content: center; }
.tp-img img:not([src]), .tp-img img[src=""] { display: none; }


/* ─── Affiliate Chat ──────────────────────────────────── */
.ac-wrap { max-width: 1100px; margin: 0 auto; }
.ac-header { margin-bottom: 16px; }
.ac-header h1 { margin: 0 0 4px; font-size: 1.4rem; }
.ac-sub { margin: 0; font-size: .85rem; color: rgba(255,255,255,.6); }

.ac-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}
.ac-sidebar { display: flex; flex-direction: column; gap: 14px; }
.ac-section { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px 14px; }
.ac-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ac-section-head h3 { margin: 0; font-size: .9rem; }
.ac-empty { color: rgba(255,255,255,.4); font-style: italic; font-size: .82rem; padding: 8px 0; }

.ac-group-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px; margin-bottom: 6px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.ac-group-item:hover { border-color: rgba(167,139,250,.4); background: rgba(139,92,246,.06); }
.ac-group-item.is-invite { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.06); cursor: default; }
.ac-group-meta b { font-size: .88rem; display: block; }
.ac-group-meta small { font-size: .68rem; color: rgba(255,255,255,.45); }
.ac-invite-actions { display: flex; gap: 5px; }

.ac-aff-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.ac-aff-item:hover { background: rgba(255,255,255,.04); }
.ac-aff-meta b { font-size: .85rem; display: block; }
.ac-aff-meta small { font-size: .68rem; color: rgba(255,255,255,.45); }

.ac-main {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  min-height: 500px;
  display: flex; flex-direction: column;
}
.ac-empty-pane { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.4); gap: 12px; padding: 40px; }
.ac-empty-pane p { margin: 0; font-size: .9rem; text-align: center; }

.ac-chat { display: flex; flex-direction: column; height: 600px; }
.ac-chat-head { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; }
.ac-chat-head h3 { margin: 0; font-size: 1rem; }
.ac-chat-head small { color: rgba(255,255,255,.5); font-size: .72rem; }
.ac-chat-actions { display: flex; gap: 6px; }

.ac-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ac-empty-msg { color: rgba(255,255,255,.4); font-style: italic; text-align: center; padding: 40px 20px; }
.ac-msg { display: flex; gap: 8px; max-width: 75%; }
.ac-msg-mine { align-self: flex-end; flex-direction: row-reverse; }
.ac-msg-body { display: flex; flex-direction: column; gap: 2px; }
.ac-msg-author { font-size: .72rem; color: #c4b5fd; font-weight: 600; }
.ac-msg-bubble { background: rgba(255,255,255,.06); padding: 8px 12px; border-radius: 12px; border-bottom-left-radius: 4px; font-size: .88rem; line-height: 1.4; word-wrap: break-word; }
.ac-msg-mine .ac-msg-bubble { background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(56,189,248,.12)); border: 1px solid rgba(167,139,250,.3); border-bottom-right-radius: 4px; border-bottom-left-radius: 12px; }
.ac-msg-time { font-size: .65rem; color: rgba(255,255,255,.4); margin-top: 2px; }

.ac-compose { display: flex; gap: 8px; padding: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.ac-compose input { flex: 1; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9; border-radius: 10px; padding: 10px 14px; font-size: .88rem; }
.ac-compose input:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.16); }
.ac-compose input:disabled { opacity: .5; cursor: not-allowed; }

.ac-member-picker { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 10px 12px; margin: 10px 0; max-height: 260px; overflow-y: auto; }
.ac-member-picker small { color: rgba(255,255,255,.55); font-size: .72rem; display: block; margin-bottom: 6px; }
.ac-member-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.ac-member-row:hover { color: #c4b5fd; }
.ac-member-row span { font-size: .82rem; }
.ac-member-row small { font-size: .68rem; color: rgba(255,255,255,.45); display: inline; margin: 0; }

@media (max-width: 760px) {
  .ac-layout { grid-template-columns: 1fr; }
  .ac-chat { height: 70vh; }
}

/* Light theme */
body.theme-light .ac-section { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .ac-empty { color: #71717a; }
body.theme-light .ac-group-item { background: #fafafa; border-color: rgba(0,0,0,.06); }
body.theme-light .ac-group-item:hover { background: #f5f3ff; border-color: rgba(109,40,217,.3); }
body.theme-light .ac-group-meta b { color: #18181b; }
body.theme-light .ac-group-meta small { color: #6b7280; }
body.theme-light .ac-aff-meta b { color: #18181b; }
body.theme-light .ac-main { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .ac-chat-head { border-color: rgba(0,0,0,.08); }
body.theme-light .ac-chat-head h3 { color: #18181b; }
body.theme-light .ac-chat-head small { color: #6b7280; }
body.theme-light .ac-msg-bubble { background: #f4f4f5; color: #18181b; }
body.theme-light .ac-msg-mine .ac-msg-bubble { background: linear-gradient(135deg, rgba(109,40,217,.10), rgba(8,145,178,.05)); color: #18181b; border-color: rgba(109,40,217,.25); }
body.theme-light .ac-msg-author { color: #6d28d9; }
body.theme-light .ac-msg-time { color: #9ca3af; }
body.theme-light .ac-compose { border-color: rgba(0,0,0,.08); }
body.theme-light .ac-compose input { background: #fff; border-color: rgba(0,0,0,.1); color: #18181b; }
body.theme-light .ac-member-picker { background: #fafafa; border-color: rgba(0,0,0,.08); }


/* ─── Profile tabs mobile fix + Affiliate mobile overflow fix ─── */

/* Profile tabs: scroll horizontally on overflow (5 tabs don't fit) */
.profile-tabs {
  flex-wrap: wrap !important;
  row-gap: 4px;
}
.profile-tab { white-space: nowrap; }

/* Mine tabs: subtle inline accent — no chunky gradient bg */
.profile-tab--mine {
  background: transparent !important;
}
.profile-tab--mine.active { color: #c4b5fd; }
body.theme-light .profile-tab--mine.active { color: #6d28d9 !important; }

@media (max-width: 600px) {
  .profile-tabs { gap: 0 !important; padding-bottom: 4px; }
  .profile-tab { padding: 8px 12px !important; font-size: .82rem !important; }
  .profile-tab--mine { padding: 8px 10px !important; }
  .aff-tab-icon, .sup-tab-icon { margin-right: 3px !important; }
}

/* Affiliate tab mobile: fix overflow */
@media (max-width: 600px) {
  .aff-tab-wrap { padding: 4px 0 !important; }
  /* Balance card: full width, single column */
  .aff-balance-card {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 14px 16px !important;
  }
  .aff-balance-val { font-size: 1.5rem !important; }
  .aff-balance-side {
    flex-direction: row !important;
    justify-content: space-around;
    gap: 10px !important;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 8px;
  }
  .aff-balance-mini {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 2px;
    flex: 1;
    text-align: center;
  }
  /* Action row: stack vertically + full width */
  .aff-action-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .aff-action-row .btn { width: 100%; justify-content: center; }
  .aff-action-hint {
    text-align: center;
    width: 100%;
  }
  /* Stats: 1 column on small screens (3 didn't fit) */
  .aff-stats-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  .aff-stat {
    padding: 10px 8px !important;
    min-width: 0 !important;
    overflow: hidden;
  }
  .aff-stat-val { font-size: 1.1rem !important; }
  .aff-stat-lbl {
    font-size: .52rem !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  /* List items compact */
  .aff-list-item {
    grid-template-columns: 1fr auto !important;
    gap: 6px !important;
  }
  .aff-list-item .aff-badge {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }
  /* Section header compact */
  .aff-section { padding: 12px 14px !important; }
  .aff-section h3 { font-size: .85rem !important; }
  /* Howto inset */
  .aff-howto summary { font-size: .82rem; }
  .aff-howto ol { font-size: .76rem; padding-left: 18px; }
}

/* Light theme: profile tab--mine icons need stronger contrast */
body.theme-light .aff-coin, body.theme-light .aff-tab-icon { color: #6d28d9 !important; }
body.theme-light .sup-tab-icon { color: #15803d !important; }
body.theme-light .profile-tab--mine.active .sup-tab-icon { color: #166534 !important; }


/* ─── Support mobile lock — no horiz scroll, fully fit viewport ─── */
.sup-wrap, .sup-chat, .sup-status-bar, .sup-compose, .sup-form, .sup-faq, .sup-hero {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.sup-status-bar { word-wrap: break-word; }
.sup-msg { word-wrap: break-word; word-break: break-word; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .sup-wrap { gap: 10px !important; padding: 4px 0 !important; }

  /* Status bar: stack vertical so button doesn't overflow */
  .sup-status-bar {
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto;
    gap: 8px 10px !important;
    padding: 10px 12px !important;
  }
  .sup-status-bar > div:not(:first-child):not(:last-child) {
    min-width: 0;
    overflow: hidden;
  }
  .sup-status-bar b { font-size: .82rem !important; line-height: 1.2; }
  .sup-status-bar small { font-size: .65rem !important; line-height: 1.3; }
  .sup-status-bar .sup-close-btn,
  .sup-status-bar .btn {
    grid-column: 1 / -1;
    margin-top: 4px;
    width: 100%;
    padding: 6px 10px !important;
    font-size: .74rem !important;
  }
  .sup-spinner, .sup-online-dot { width: 18px !important; height: 18px !important; border-width: 2px !important; }

  /* Chat area: bounded height that fits between header + bottom nav */
  .sup-chat {
    height: calc(100vh - 280px) !important;
    min-height: 280px !important;
    max-height: 480px !important;
    padding: 10px !important;
    gap: 8px !important;
  }
  .sup-msg {
    max-width: 85% !important;
    padding: 6px 10px !important;
    font-size: .82rem !important;
  }
  .sup-msg-meta { font-size: .62rem !important; }
  .sup-msg-text { font-size: .82rem !important; line-height: 1.35 !important; }
  .sup-msg-system { font-size: .66rem !important; padding: 3px 8px !important; }

  /* Compose: must fit width */
  .sup-compose { gap: 6px !important; }
  .sup-compose input {
    padding: 9px 11px !important;
    font-size: .85rem !important;
    min-width: 0 !important;
  }
  .sup-compose button {
    padding: 9px 12px !important;
    font-size: .8rem !important;
    flex-shrink: 0;
  }

  /* Hero (idle state) */
  .sup-hero { padding: 16px 14px !important; }
  .sup-hero h3 { font-size: 1rem !important; }
  .sup-hero p { font-size: .82rem !important; }
  .sup-open-btn { font-size: .85rem !important; padding: 10px !important; }
  .sup-faq { padding: 10px 14px !important; }
  .sup-faq h4 { font-size: .78rem !important; }
  .sup-faq ul { font-size: .76rem !important; line-height: 1.5 !important; }
}

/* Prevent body horizontal scroll caused by overflowing children anywhere */
@media (max-width: 760px) {
  body, html { overflow-x: hidden !important; }
  .layout, .main, main, section, .profile-tab-body, #profile-tab-support { max-width: 100% !important; box-sizing: border-box; overflow-x: hidden; }
}


/* ─── Trade negotiation + disclosure ─── */
.trade-nego { background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 12px 14px; }
.trade-nego-head { margin-bottom: 10px; }
.trade-nego-head h4 { margin: 0 0 2px; font-size: .95rem; }
.trade-nego-head small { font-size: .72rem; color: rgba(255,255,255,.5); }
.trade-nego-thread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 280px; overflow-y: auto; }
.trade-nego-msg { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.trade-nego-msg.mine { background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(56,189,248,.06)); border-left: 3px solid #a78bfa; }
.trade-nego-msg-head { font-size: .68rem; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.trade-nego-msg-head b { color: #c4b5fd; }
.trade-nego-msg-body { font-size: .85rem; line-height: 1.45; }
.trade-nego-empty, .trade-nego-done { font-size: .82rem; color: rgba(255,255,255,.45); font-style: italic; padding: 10px; text-align: center; }
.trade-nego-compose { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: rgba(0,0,0,.18); border-radius: 8px; }
.trade-nego-compose textarea { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9; padding: 8px 10px; border-radius: 6px; font-size: .85rem; font-family: inherit; }

.trade-reveal-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.trade-reveal-section h4 { margin: 0 0 2px; font-size: .95rem; }
.trade-reveal-section small { font-size: .72rem; color: rgba(255,255,255,.5); }
.trade-reveal-status { display: flex; gap: 10px; margin: 10px 0; }
.trade-reveal-side { flex: 1; padding: 8px 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; font-size: .82rem; }
.trade-reveal-side.is-ready { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.4); color: #6ee7b7; }
.trade-reveal-wait { font-size: .85rem; color: rgba(255,255,255,.6); padding: 8px 12px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.22); border-radius: 8px; margin: 8px 0; text-align: center; }

/* Disclosure modal */
.disc-info { background: rgba(167,139,250,.10); border: 1px solid rgba(167,139,250,.3); padding: 10px 14px; border-radius: 8px; font-size: .82rem; margin-bottom: 12px; line-height: 1.45; color: #cbd5e1; }
.disc-info b { color: #c4b5fd; }
.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.disc-card { background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 12px 14px; }
.disc-card h4 { margin: 0 0 10px; font-size: .92rem; color: #c4b5fd; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.disc-section { margin: 8px 0; font-size: .82rem; line-height: 1.45; word-wrap: break-word; }
.disc-section b { color: #67e8f9; font-size: .76rem; }
.disc-card a { color: #67e8f9; }
.disc-score { color: rgba(255,255,255,.4); font-size: .68rem; display: block; margin-top: 8px; }

@media (max-width: 600px) {
  .disc-grid { grid-template-columns: 1fr; }
  .trade-reveal-status { flex-direction: column; gap: 6px; }
}

/* Light theme */
body.theme-light .trade-nego { background: #fafafa; border-color: rgba(0,0,0,.08); }
body.theme-light .trade-nego-msg { background: #fff; border: 1px solid rgba(0,0,0,.05); }
body.theme-light .trade-nego-msg.mine { background: #f5f3ff; border-left-color: #6d28d9; }
body.theme-light .trade-nego-msg-body { color: #18181b; }
body.theme-light .trade-nego-msg-head { color: #6b7280; }
body.theme-light .trade-nego-msg-head b { color: #6d28d9; }
body.theme-light .trade-reveal-side { background: #fff; color: #18181b; }
body.theme-light .trade-reveal-side.is-ready { background: #f0fdf4; color: #166534; border-color: #86efac; }
body.theme-light .disc-info { background: #f5f3ff; color: #18181b; border-color: #ddd6fe; }
body.theme-light .disc-info b { color: #6d28d9; }
body.theme-light .disc-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .disc-card h4 { color: #6d28d9; }
body.theme-light .disc-section { color: #18181b; }
body.theme-light .disc-section b { color: #0e7490; }
body.theme-light .disc-card a { color: #0e7490; }


/* ─── Tutorials ──────────────────────────────────────── */
.tut-wrap { display: flex; flex-direction: column; gap: 14px; }
.tut-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tut-filter-group { display: flex; gap: 4px; }
.tut-filter {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6); padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tut-filter:hover { color: #f1f5f9; border-color: rgba(255,255,255,.18); }
.tut-filter.is-active { background: rgba(167,139,250,.18); color: #c4b5fd; border-color: rgba(167,139,250,.4); }

.tut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tut-card {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.tut-card:hover { border-color: rgba(167,139,250,.4); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.tut-card-paid { border-color: rgba(251,191,36,.3); background: linear-gradient(180deg, rgba(251,191,36,.04), rgba(255,255,255,.02)); }
.tut-card-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.tut-kind-badge {
  font-family: 'JetBrains Mono', monospace; font-size: .64rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .06em;
}
.tut-kind-free { background: rgba(34,197,94,.15); color: #6ee7b7; border: 1px solid rgba(34,197,94,.32); }
.tut-kind-paid { background: rgba(251,191,36,.15); color: #fde68a; border: 1px solid rgba(251,191,36,.32); }
.tut-owned-badge { font-size: .68rem; color: #6ee7b7; font-weight: 700; }
.tut-cover { width: 100%; height: 140px; background: #0a0a14; }
.tut-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tut-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.tut-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; color: #f1f5f9; }
.tut-summary { margin: 0; font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tut-meta { display: flex; justify-content: space-between; font-size: .68rem; color: rgba(255,255,255,.45); padding-top: 4px; }
.tut-price { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; color: #fbbf24; }
.tut-open-btn { margin-top: 4px; width: 100%; justify-content: center; }

/* Detail */
.tut-detail-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: .8rem; color: rgba(255,255,255,.6); }
.tut-detail-meta a { color: #c4b5fd; }
.tut-tag { font-size: .64rem; padding: 2px 8px; background: rgba(56,189,248,.14); color: #67e8f9; border-radius: 999px; font-family: 'JetBrains Mono', monospace; }
.tut-detail-cover { margin-bottom: 12px; border-radius: 10px; overflow: hidden; max-height: 240px; }
.tut-detail-cover img { width: 100%; display: block; }
.tut-detail-summary { font-size: .92rem; color: rgba(255,255,255,.78); line-height: 1.55; padding: 10px 14px; background: rgba(255,255,255,.025); border-radius: 8px; border-left: 3px solid #a78bfa; margin: 0 0 14px; }
.tut-content { font-size: .92rem; color: #f1f5f9; line-height: 1.6; }
.tut-content h1 { font-size: 1.4rem; margin: 18px 0 8px; }
.tut-content h2 { font-size: 1.18rem; margin: 16px 0 8px; color: #c4b5fd; }
.tut-content h3 { font-size: 1rem; margin: 14px 0 6px; }
.tut-content p { margin: 8px 0; }
.tut-content ul { margin: 8px 0; padding-left: 20px; }
.tut-content li { margin: 4px 0; }
.tut-content a { color: #67e8f9; }
.tut-content b { color: #fff; }

.tut-paywall {
  text-align: center; padding: 30px 20px;
  background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(167,139,250,.04));
  border: 1px solid rgba(251,191,36,.3); border-radius: 12px;
}
.tut-paywall-icon { font-size: 2.5rem; margin-bottom: 8px; }
.tut-paywall h4 { margin: 0 0 6px; font-size: 1.2rem; color: #f1f5f9; }
.tut-paywall p { margin: 0 0 16px; color: rgba(255,255,255,.7); }
.tut-paywall p b { color: #fbbf24; font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; }
.tut-paywall small { display: block; margin-top: 10px; font-size: .72rem; color: rgba(255,255,255,.45); }

/* Wallet in Afiliados tab */
.wallet-balance-card .wallet-balance-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.wallet-balance-val { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 700; color: #fbbf24; }
.wallet-amount-quick { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }

/* Light theme */
body.theme-light .tut-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .tut-card-paid { background: linear-gradient(180deg, rgba(251,191,36,.06), #fff); border-color: rgba(251,191,36,.3); }
body.theme-light .tut-title { color: #18181b; }
body.theme-light .tut-summary { color: #4b5563; }
body.theme-light .tut-meta { color: #6b7280; }
body.theme-light .tut-price { color: #92400e; }
body.theme-light .tut-kind-free { background: #f0fdf4; color: #15803d; border-color: rgba(34,197,94,.32); }
body.theme-light .tut-kind-paid { background: #fef3c7; color: #92400e; border-color: rgba(251,191,36,.32); }
body.theme-light .tut-filter { background: #fff; color: #6b7280; border-color: rgba(0,0,0,.08); }
body.theme-light .tut-filter.is-active { background: rgba(109,40,217,.10); color: #6d28d9; border-color: rgba(109,40,217,.3); }
body.theme-light .tut-detail-summary { background: #fafafa; color: #18181b; }
body.theme-light .tut-content { color: #18181b; }
body.theme-light .tut-content h2 { color: #6d28d9; }
body.theme-light .tut-content a { color: #0e7490; }
body.theme-light .tut-content b { color: #18181b; }
body.theme-light .tut-paywall h4 { color: #18181b; }
body.theme-light .tut-paywall p { color: #4b5563; }
body.theme-light .tut-paywall p b { color: #92400e; }
body.theme-light .tut-paywall small { color: #6b7280; }
body.theme-light .wallet-balance-val { color: #92400e; }

@media (max-width: 600px) {
  .tut-grid { grid-template-columns: 1fr; }
}


/* ─── Tutorials polish v2 ─── */

/* SVG icons with subtle animations */
.ti-book, .ti-book-open { color: #c4b5fd; vertical-align: -3px; margin-right: 6px; }
.ti-lock { color: #fbbf24; vertical-align: -2px; margin-right: 4px; filter: drop-shadow(0 0 3px rgba(251,191,36,.4)); }
.ti-pencil { color: #67e8f9; vertical-align: -2px; margin-right: 6px; animation: tut-pencil-wiggle 3s ease-in-out infinite; }
.ti-wallet-plus { color: currentColor; vertical-align: -3px; margin-right: 5px; }
.ti-book { animation: tut-book-bob 3s ease-in-out infinite; }
@keyframes tut-book-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes tut-pencil-wiggle { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-8deg); } }

.sala-tab .ti-book { margin-right: 4px; }

/* Free badge: green stronger */
.tut-kind-free {
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(34,197,94,.06)) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(34,197,94,.45) !important;
  box-shadow: 0 0 0 1px rgba(34,197,94,.1);
}
.tut-kind-free svg { color: #6ee7b7; filter: drop-shadow(0 0 4px rgba(110,231,183,.5)); }
body.theme-light .tut-kind-free {
  background: linear-gradient(135deg, #d1fae5, #ecfdf5) !important;
  color: #166534 !important;
  border-color: rgba(34,197,94,.45) !important;
}
body.theme-light .tut-kind-free svg { color: #166534; }

/* Paid badge: lock + amber */
.tut-kind-paid {
  background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(251,191,36,.04)) !important;
  color: #fde68a !important;
  border: 1px solid rgba(251,191,36,.4) !important;
}
.tut-kind-paid svg { color: #fde68a; }
body.theme-light .tut-kind-paid {
  background: linear-gradient(135deg, #fef3c7, #fefce8) !important;
  color: #92400e !important;
}
body.theme-light .tut-kind-paid svg { color: #92400e; }

/* Create modal label polish */
.tut-lbl {
  font-size: .82rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  letter-spacing: 0 !important;
  margin-bottom: 4px !important;
  display: block;
}
body.theme-light .tut-lbl { color: #18181b !important; }
.tut-lbl-hint {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  font-weight: 400;
  margin: 4px 0 6px;
  line-height: 1.3;
}
body.theme-light .tut-lbl-hint { color: #6b7280; }

/* Wallet card — BLACK premium */
.wallet-balance-card {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important;
  border: 1px solid #2a2a2a !important;
  position: relative;
  overflow: hidden;
}
.wallet-balance-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(192,192,192,.06), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(251,191,36,.05), transparent 50%);
  pointer-events: none;
}
.wallet-balance-card .aff-section-head { position: relative; z-index: 1; }
.wallet-balance-card .aff-section-head h3 {
  color: #f1f5f9 !important;
  font-weight: 700;
}
.wallet-balance-card #wallet-add-btn {
  background: linear-gradient(135deg, #fbbf24, #d97706) !important;
  border: none !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
  box-shadow: 0 0 0 1px rgba(251,191,36,.4), 0 4px 14px rgba(251,191,36,.2);
}
.wallet-balance-card #wallet-add-btn:hover {
  background: linear-gradient(135deg, #fcd34d, #f59e0b) !important;
  box-shadow: 0 0 0 1px rgba(251,191,36,.6), 0 6px 20px rgba(251,191,36,.4);
  transform: translateY(-1px);
}
.wallet-balance-card .ti-wallet-plus { color: #1a1a1a; }
.wallet-balance-card .wallet-balance-row {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.wallet-balance-card .wallet-balance-val {
  color: #f1f5f9 !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c0c0c0 60%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(251,191,36,.15);
}
.wallet-balance-card small {
  color: rgba(255,255,255,.55) !important;
  font-size: .76rem !important;
}
body.theme-light .wallet-balance-card { background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important; border-color: #2a2a2a !important; }
body.theme-light .wallet-balance-card .wallet-balance-val,
body.theme-light .wallet-balance-card .aff-section-head h3,
body.theme-light .wallet-balance-card small { color: #f1f5f9 !important; }

/* Insufficient credits modal */
.insuf-card {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.insuf-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.insuf-row:last-child { border-bottom: none; }
.insuf-row b {
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.insuf-row-highlight {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1.5px solid rgba(251,191,36,.4) !important;
}
.insuf-row-highlight span { color: #fbbf24; font-weight: 700; }
.insuf-row-highlight b {
  color: #fbbf24;
  font-size: 1.2rem;
  text-shadow: 0 0 8px rgba(251,191,36,.4);
}
.insuf-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.insuf-exact-btn {
  background: linear-gradient(135deg, #fbbf24, #d97706) !important;
  color: #1a1a1a !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  box-shadow: 0 4px 14px rgba(251,191,36,.3);
}
.insuf-exact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251,191,36,.45);
}
.insuf-exact-btn .ti-wallet-plus { color: #1a1a1a; }
.insuf-note { padding: 8px 12px; background: rgba(56,189,248,.06); border: 1px solid rgba(56,189,248,.2); border-radius: 6px; }
.insuf-note small { color: rgba(255,255,255,.7); font-size: .74rem; }

body.theme-light .insuf-card { background: linear-gradient(135deg, #0a0a0a, #1a1a1a); border-color: #2a2a2a; }
body.theme-light .insuf-row { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.06); }
body.theme-light .insuf-row b { color: #f1f5f9; }
body.theme-light .insuf-note { background: #f0f9ff; border-color: #bae6fd; }
body.theme-light .insuf-note small { color: #1f2937; }


/* ═════════════════════════════════════════════════════════════════════
   ADMIN v3 — Comprehensive overflow + contrast fixes (light + dark)
   ═════════════════════════════════════════════════════════════════════ */

/* Container: lock to viewport, no horizontal scroll */
html body .admin-wrap {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0;
}
html body .admin-wrap * { box-sizing: border-box; }
html body .admin-section, html body .admin-card { max-width: 100%; overflow-x: hidden; }

/* Header tabs: respect viewport */
html body .admin-tabs {
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
  margin-bottom: 14px;
}
html body .admin-tabs::-webkit-scrollbar { height: 4px; }
html body .admin-tabs::-webkit-scrollbar-thumb { background: rgba(167,139,250,.3); border-radius: 2px; }
html body .admin-tab { flex-shrink: 0; white-space: nowrap; }

/* Users table: responsive — collapse columns smartly */
html body .admin-users-table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}
html body .admin-users-table th,
html body .admin-users-table td {
  padding: 8px 6px !important;
  font-size: .8rem;
  vertical-align: middle;
  word-wrap: break-word;
}
html body .admin-users-table th {
  font-size: .58rem;
  letter-spacing: .1em;
}
html body .admin-user-cell b { font-size: .85rem; word-break: break-word; }
html body .admin-user-cell small { font-size: .68rem; word-break: break-word; }

/* Action column: wrap buttons on small screens */
html body .admin-user-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: stretch;
  min-width: 80px;
  max-width: 110px;
}
html body .admin-user-actions .btn-sm {
  padding: 3px 8px !important;
  font-size: .66rem !important;
  white-space: nowrap;
  line-height: 1.1;
}
html body .admin-user-actions [data-set-pro]    { background: rgba(34,197,94,.12) !important; color: #15803d !important; border: 1px solid rgba(34,197,94,.4) !important; }
html body .admin-user-actions [data-revoke-pro] { background: rgba(239,68,68,.12) !important; color: #b91c1c !important; border: 1px solid rgba(239,68,68,.4) !important; }
html body .admin-user-actions [data-make-admin] { background: rgba(167,139,250,.14) !important; color: #6d28d9 !important; border: 1px solid rgba(167,139,250,.4) !important; }

/* Search bar: full width */
html body .admin-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-width: 100%;
}
@media (min-width: 700px) {
  html body .admin-search { flex-direction: row; }
  html body .admin-search input[type="search"] { flex: 1; min-width: 0; }
  html body .admin-search select { flex: 0 0 200px; }
}
html body .admin-search input[type="search"],
html body .admin-search select {
  width: 100%;
  padding: 9px 12px;
  font-size: .82rem;
  border-radius: 8px;
}

/* User row hover */
html body .admin-user-row { cursor: default; }
html body .admin-user-row:hover { background: rgba(167,139,250,.04); }

/* Plan badges contrast */
html body .admin-users-table .aff-badge { display: inline-block; font-size: .62rem; padding: 2px 7px; }
html body .admin-tag-mini { display: inline-block; font-size: .58rem; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }

/* ─── DARK THEME (matte + navy) ─── */
body.theme-matte .admin-header h1,
body.theme-navy .admin-header h1 { color: #f1f5f9; }
body.theme-matte .admin-users-table th,
body.theme-navy .admin-users-table th {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
}
body.theme-matte .admin-users-table td,
body.theme-navy .admin-users-table td {
  color: #f1f5f9;
  border-top: 1px solid rgba(255,255,255,.05);
}
body.theme-matte .admin-user-cell b,
body.theme-navy .admin-user-cell b { color: #f1f5f9; }
body.theme-matte .admin-user-cell small,
body.theme-navy .admin-user-cell small { color: rgba(255,255,255,.45); }
body.theme-matte .admin-search input[type="search"],
body.theme-matte .admin-search select,
body.theme-navy .admin-search input[type="search"],
body.theme-navy .admin-search select {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  color: #f1f5f9;
}
body.theme-matte .admin-user-row:hover,
body.theme-navy .admin-user-row:hover { background: rgba(167,139,250,.06); }
body.theme-matte .admin-tag-mini,
body.theme-navy .admin-tag-mini { background: rgba(167,139,250,.2); color: #c4b5fd; }

/* ─── LIGHT THEME ─── */
body.theme-light .admin-wrap { color: #18181b; }
body.theme-light .admin-header h1 { color: #18181b !important; }
body.theme-light .admin-tab { color: #71717a !important; }
body.theme-light .admin-tab:hover { color: #18181b !important; }
body.theme-light .admin-tab.active { color: #6d28d9 !important; border-bottom-color: #6d28d9 !important; }

body.theme-light .admin-users-table th {
  background: #f4f4f5 !important;
  color: #52525b !important;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
body.theme-light .admin-users-table td {
  color: #18181b !important;
  border-top: 1px solid rgba(0,0,0,.06) !important;
}
body.theme-light .admin-user-cell b { color: #18181b !important; }
body.theme-light .admin-user-cell small { color: #6b7280 !important; }
body.theme-light .admin-user-row:hover { background: #fafafa !important; }
body.theme-light .admin-users-table .aff-badge {
  background: #f4f4f5; color: #52525b; border: 1px solid rgba(0,0,0,.08);
}
body.theme-light .admin-users-table .aff-badge--ok { background: #d1fae5; color: #166534; border-color: rgba(34,197,94,.3); }
body.theme-light .admin-tag-mini { background: rgba(109,40,217,.1); color: #6d28d9; }

body.theme-light .admin-search input[type="search"],
body.theme-light .admin-search select {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #18181b !important;
}
body.theme-light .admin-search input[type="search"]:focus,
body.theme-light .admin-search select:focus {
  border-color: #6d28d9 !important;
  box-shadow: 0 0 0 3px rgba(109,40,217,.15) !important;
}

/* User detail panel inside expansion */
body.theme-light .admin-user-detail td { background: #fafafa !important; }
body.theme-light .admin-detail-head h3 { color: #18181b !important; }
body.theme-light .admin-detail-head small { color: #6b7280 !important; }
body.theme-light .admin-ref-tag { background: rgba(109,40,217,.08); color: #6d28d9; border-color: rgba(109,40,217,.3); }
body.theme-light .kpi-mini { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .kpi-mini b { color: #18181b !important; }
body.theme-light .kpi-mini span { color: #6b7280 !important; }
body.theme-light .admin-events-table { color: #18181b; }
body.theme-light .admin-events-table small { color: #6b7280 !important; }
body.theme-light .admin-events-table .aff-badge { background: #f4f4f5; color: #52525b; }

/* Overview tab fixes (cards/donuts/tables) */
body.theme-light .admin-kpi { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .admin-kpi--aff { background: linear-gradient(135deg, rgba(109,40,217,.06), rgba(8,145,178,.03)) !important; border-color: rgba(109,40,217,.2) !important; }
body.theme-light .kpi-val { color: #18181b !important; }
body.theme-light .kpi-lbl { color: #6b7280 !important; }
body.theme-light .admin-card { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
body.theme-light .admin-card h3, body.theme-light .admin-card h4 { color: #18181b !important; }
body.theme-light .donut-num { fill: #18181b !important; }
body.theme-light .donut-lbl { fill: #71717a !important; }
body.theme-light .chart-leg-label { color: #18181b !important; }
body.theme-light .chart-leg-val { color: #52525b !important; }
body.theme-light .chart-leg-val small { color: #9ca3af !important; }
body.theme-light .bar-axis { fill: #6b7280 !important; }
body.theme-light .chart-empty { color: #9ca3af !important; }
body.theme-light .admin-table-mini { color: #18181b; }
body.theme-light .admin-table-mini td { border-color: rgba(0,0,0,.06); }
body.theme-light .admin-table-mini a { color: #6d28d9; }

/* Withdrawals tab */
body.theme-light .admin-table th { background: #f4f4f5 !important; color: #52525b !important; }
body.theme-light .admin-table td { color: #18181b !important; border-color: rgba(0,0,0,.06) !important; }
body.theme-light .admin-table tr:hover { background: #fafafa !important; }
body.theme-light .admin-table small { color: #6b7280 !important; }
body.theme-light .admin-pre { background: #f4f4f5 !important; color: #18181b !important; }

/* Settings tab */
body.theme-light .admin-form { color: #18181b; }
body.theme-light .admin-form .field .lbl { color: #18181b !important; font-weight: 600; }
body.theme-light .admin-form .field input,
body.theme-light .admin-form .field select {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #18181b !important;
}
body.theme-light .admin-form .field input:focus,
body.theme-light .admin-form .field select:focus {
  border-color: #6d28d9 !important;
  box-shadow: 0 0 0 3px rgba(109,40,217,.15) !important;
}
body.theme-light .admin-form h4 { color: #18181b !important; }
body.theme-light .admin-form small { color: #6b7280 !important; }

/* Moderation tab */
body.theme-light .mod-stats { background: #fafafa !important; color: #18181b !important; }
body.theme-light .mod-stat-item, body.theme-light .mod-stat-item b { color: #18181b !important; }
body.theme-light .mod-item { background: #fff !important; border-color: rgba(239,68,68,.25) !important; }
body.theme-light .mod-item-head b { color: #18181b !important; }
body.theme-light .mod-meta { color: #6b7280 !important; }
body.theme-light .mod-item-original { color: #18181b !important; background: #fafafa !important; }
body.theme-light .mod-item-clean { color: #18181b !important; background: #f0fdf4 !important; }
body.theme-light .mod-item-hits { color: #6b7280 !important; background: #f4f4f5 !important; }
body.theme-light .mod-flag { background: #fee2e2 !important; color: #b91c1c !important; border-color: rgba(239,68,68,.3) !important; }

/* Mobile fixes */
@media (max-width: 700px) {
  html body .admin-wrap { padding: 0 !important; }
  html body .admin-header h1 { font-size: 1.1rem !important; }
  html body .admin-tab { padding: 7px 10px !important; font-size: .76rem !important; }
  html body .admin-users-table { font-size: .72rem !important; }
  html body .admin-users-table th { padding: 6px 4px !important; font-size: .52rem !important; }
  html body .admin-users-table td { padding: 6px 4px !important; font-size: .72rem !important; }

  /* On very narrow: hide secondary columns (POSTS/EVENTOS/INDICADOS/COMISSÃO/ÚLTIMA — keep USER/PLANO/AÇÕES) */
  html body .admin-users-table th:nth-child(3),  /* posts */
  html body .admin-users-table td:nth-child(3),
  html body .admin-users-table th:nth-child(4),  /* eventos */
  html body .admin-users-table td:nth-child(4),
  html body .admin-users-table th:nth-child(5),  /* indicados */
  html body .admin-users-table td:nth-child(5),
  html body .admin-users-table th:nth-child(6),  /* comissão */
  html body .admin-users-table td:nth-child(6),
  html body .admin-users-table th:nth-child(7),  /* última */
  html body .admin-users-table td:nth-child(7) { display: none !important; }

  html body .admin-user-actions {
    flex-direction: column;
    max-width: 100px;
    gap: 2px;
  }
  html body .admin-user-actions .btn-sm {
    font-size: .62rem !important;
    padding: 3px 6px !important;
  }

  html body .admin-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  html body .admin-kpi { padding: 8px 10px !important; }
  html body .kpi-val { font-size: 1.05rem !important; }
  html body .kpi-lbl { font-size: .54rem !important; }
  html body .admin-chart-row,
  html body .admin-chart-row--time { grid-template-columns: 1fr !important; }
}


/* ═════════════════════════════════════════════════════════════════════
   Tutorials v3 — hub-style cards with glow/pulse + premium detail modal
   ═════════════════════════════════════════════════════════════════════ */

/* List card overhaul */
html body .tut-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .2s, box-shadow .25s;
  position: relative;
}
html body .tut-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(167,139,250,.35) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
html body .tut-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
html body .tut-card:hover::before { opacity: 1; }

/* PAID card with glow halo + amber gradient border */
html body .tut-card-paid {
  background: linear-gradient(180deg, rgba(251,191,36,.06), rgba(180,83,9,.02)) !important;
  border-color: rgba(251,191,36,.4) !important;
}
html body .tut-card-paid::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 0%, rgba(251,191,36,.35), transparent 60%);
  opacity: .45;
  pointer-events: none;
  z-index: 0;
  animation: tut-glow-pulse 3s ease-in-out infinite;
}
@keyframes tut-glow-pulse {
  0%, 100% { opacity: .25; }
  50%      { opacity: .55; }
}
html body .tut-card-paid > * { position: relative; z-index: 1; }
html body .tut-card-paid:hover { box-shadow: 0 12px 36px rgba(251,191,36,.22), 0 0 0 1px rgba(251,191,36,.55); }

/* Free card with green soft accent */
html body .tut-card-free {
  background: linear-gradient(180deg, rgba(34,197,94,.04), rgba(255,255,255,.01));
  border-color: rgba(34,197,94,.28);
}
html body .tut-card-free:hover { box-shadow: 0 12px 28px rgba(34,197,94,.14); }

/* Card top: badges row */
html body .tut-card-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px 6px;
}

/* Body */
html body .tut-card .tut-body { padding: 8px 16px 14px; gap: 8px; }
html body .tut-title {
  font-size: 1.05rem !important; font-weight: 800 !important;
  letter-spacing: -.01em; line-height: 1.3;
  color: #f1f5f9;
}
html body .tut-summary {
  font-size: .84rem !important;
  color: rgba(255,255,255,.7);
  line-height: 1.5; margin: 0 !important;
}
html body .tut-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .7rem; color: rgba(255,255,255,.45);
  padding: 2px 0;
}
html body .tut-meta small { font-size: inherit; }
html body .tut-card .tut-meta small:first-child {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(167,139,250,.12); color: #c4b5fd;
  font-weight: 600; font-size: .72rem;
  border: 1px solid rgba(167,139,250,.22);
}
html body .tut-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem !important; font-weight: 800 !important;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0;
  letter-spacing: -.02em;
}
html body .tut-open-btn {
  margin-top: 6px; width: 100%;
  justify-content: center; font-weight: 700 !important;
  padding: 10px 14px !important;
  font-size: .85rem !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #18181b, #0a0a0a) !important;
  color: #fff !important; border: 1px solid #2a2a2a !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
html body .tut-open-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.55); }

/* DETAIL MODAL — premium hub feel */
html body #sala-modal .modal-card { max-width: 720px !important; }
html body .tut-detail-meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(167,139,250,.06), rgba(56,189,248,.03));
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: .78rem;
}
html body .tut-detail-meta a { color: #c4b5fd; font-weight: 700; text-decoration: none; }
html body .tut-detail-meta a:hover { text-decoration: underline; }
html body .tut-detail-cover {
  margin-bottom: 14px; border-radius: 12px; overflow: hidden;
  max-height: 280px; border: 1px solid rgba(255,255,255,.08);
}
html body .tut-detail-summary {
  font-size: .92rem !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border-left: 3px solid #a78bfa !important;
  padding: 12px 16px !important;
  border-radius: 10px;
}
html body .tut-content {
  padding: 16px 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  color: #f1f5f9;
  line-height: 1.7;
}

/* Paywall premium upgrade */
html body .tut-paywall {
  background: linear-gradient(135deg, rgba(251,191,36,.10), rgba(167,139,250,.06)) !important;
  border: 1px solid rgba(251,191,36,.4) !important;
  border-radius: 14px !important;
  padding: 36px 28px !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
}
html body .tut-paywall::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(251,191,36,.18), transparent 70%);
  pointer-events: none;
  animation: tut-glow-pulse 3s ease-in-out infinite;
}
html body .tut-paywall > * { position: relative; z-index: 1; }
html body .tut-paywall-icon {
  font-size: 3rem !important;
  filter: drop-shadow(0 0 14px rgba(251,191,36,.55));
}
html body .tut-paywall h4 {
  font-size: 1.4rem !important; margin: 8px 0 !important;
  background: linear-gradient(135deg, #fff, #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html body .tut-paywall p b {
  font-size: 1.6rem !important;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html body .tut-buy-btn {
  background: linear-gradient(135deg, #fbbf24, #d97706) !important;
  color: #1a1a1a !important; font-weight: 800 !important;
  padding: 14px 28px !important; font-size: 1rem !important;
  border-radius: 12px !important; border: none !important;
  box-shadow: 0 4px 18px rgba(251,191,36,.4);
  margin-top: 16px;
}
html body .tut-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(251,191,36,.6);
}

/* Light theme adjustments */
body.theme-light .tut-card {
  background: linear-gradient(180deg, #ffffff, #fafafa) !important;
  border-color: rgba(0,0,0,.08) !important;
}
body.theme-light .tut-card-paid {
  background: linear-gradient(180deg, #fffbeb, #fefce8) !important;
  border-color: rgba(251,191,36,.5) !important;
}
body.theme-light .tut-card-free { background: linear-gradient(180deg, #f0fdf4, #fff) !important; }
body.theme-light .tut-title { color: #18181b !important; }
body.theme-light .tut-summary { color: #4b5563 !important; }
body.theme-light .tut-meta { color: #6b7280 !important; }
body.theme-light .tut-card .tut-meta small:first-child {
  background: rgba(109,40,217,.08); color: #6d28d9; border-color: rgba(109,40,217,.2);
}
body.theme-light .tut-open-btn {
  background: linear-gradient(135deg, #18181b, #000) !important;
  color: #fff !important; border-color: #18181b !important;
}
body.theme-light .tut-detail-meta {
  background: linear-gradient(135deg, rgba(109,40,217,.06), rgba(8,145,178,.03));
  border-color: rgba(109,40,217,.2);
}
body.theme-light .tut-detail-meta a { color: #6d28d9; }
body.theme-light .tut-detail-summary {
  background: #fff !important;
  border-color: rgba(0,0,0,.08) !important;
  border-left-color: #6d28d9 !important;
  color: #18181b !important;
}
body.theme-light .tut-content { background: #fafafa; color: #18181b; border-color: rgba(0,0,0,.08); }
body.theme-light .tut-paywall h4 {
  background: linear-gradient(135deg, #18181b, #92400e);
  -webkit-background-clip: text;
  background-clip: text;
}


/* ═════════════════════════════════════════════════════════════════════
   Light theme button polish — .btn-primary was rendering as solid black
   blob (var(--text) = #18181b on light). Fix with brand gradient + proper
   contrast on the follow buttons in "Quem seguir" rail.
   ═════════════════════════════════════════════════════════════════════ */
/* ─── Light theme button polish ── */
body.theme-light .btn-primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(45, 59, 255, .22) !important;
}
body.theme-light .btn-primary:hover {
  background: linear-gradient(135deg, #1d2bef, #6a4cef) !important;
  box-shadow: 0 4px 14px rgba(45, 59, 255, .32) !important;
  transform: translateY(-1px);
}
body.theme-light .btn-primary:active { transform: scale(0.98) translateY(0); }

/* Ghost (post-follow "Seguindo" state) */
body.theme-light .btn-ghost {
  background: #ffffff !important;
  color: #2D3BFF !important;
  border: 1.5px solid rgba(45, 59, 255, .35) !important;
}
body.theme-light .btn-ghost:hover {
  background: rgba(45, 59, 255, .05) !important;
  border-color: rgba(45, 59, 255, .55) !important;
}

/* Quem seguir rail buttons specifically — tighter, badge-like */
body.theme-light .rail-user .js-follow-mini {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 7px 18px !important;
  font-weight: 700 !important;
  font-size: .8rem !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(45, 59, 255, .25) !important;
  letter-spacing: -.005em;
}
body.theme-light .rail-user .js-follow-mini:hover {
  box-shadow: 0 4px 14px rgba(45, 59, 255, .38) !important;
  transform: translateY(-1px);
}
body.theme-light .rail-user .js-follow-mini.btn-ghost {
  background: #ffffff !important;
  color: #2D3BFF !important;
  border: 1.5px solid rgba(45, 59, 255, .4) !important;
  box-shadow: none !important;
}


/* ═════════════════════════════════════════════════════════════════════
   Top Picks v4 — inline region selector + Material para trabalhar panel
   ═════════════════════════════════════════════════════════════════════ */
/* ─── Top Picks: region selector + material panel ─── */
html body .tp-region-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(167,139,250,.05));
  border: 1px solid rgba(56,189,248,.22);
  border-radius: 12px;
  flex-wrap: wrap;
}
html body .tp-region-lbl {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #7dd3fc;
}
html body .tp-region-select {
  padding: 7px 30px 7px 10px; border-radius: 8px;
  background: rgba(8,11,22,.85); color: #e2e8f0;
  border: 1px solid rgba(56,189,248,.3);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
html body .tp-region-select:hover { border-color: #38bdf8; }
html body .tp-region-meta { font-size: .78rem; color: rgba(255,255,255,.55); margin-left: auto; }
html body .tp-region-meta b { color: #e2e8f0; }
html body .tp-region-refresh {
  background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3);
  color: #7dd3fc; border-radius: 8px; padding: 6px 12px;
  font-size: 1rem; cursor: pointer; transition: all .15s;
}
html body .tp-region-refresh:hover { background: rgba(56,189,248,.22); transform: rotate(180deg); }

body.theme-light .tp-region-bar {
  background: linear-gradient(135deg, rgba(45,59,255,.05), rgba(123,92,255,.03));
  border-color: rgba(45,59,255,.2);
}
body.theme-light .tp-region-lbl { color: #4338CA; }
body.theme-light .tp-region-select {
  background-color: #fff; color: #18181b; border-color: rgba(45,59,255,.25);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234338CA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  padding-right: 30px;
}
body.theme-light .tp-region-meta { color: #6b7280; }
body.theme-light .tp-region-meta b { color: #18181b; }
body.theme-light .tp-region-refresh { background: rgba(45,59,255,.06); border-color: rgba(45,59,255,.2); color: #4338CA; }
body.theme-light .tp-region-refresh:hover { background: rgba(45,59,255,.12); }

/* ─── Material button + panel ─── */
html body .tp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
html body .tp-material-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(167,139,250,.08));
  border: 1px solid rgba(34,211,238,.32);
  color: #67e8f9; font-weight: 700; font-size: .82rem;
  cursor: pointer; transition: all .15s; width: 100%;
}
html body .tp-material-btn:hover {
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(167,139,250,.14));
  border-color: #22d3ee; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,211,238,.18);
}
html body .tp-material-btn.is-open {
  background: linear-gradient(135deg, rgba(248,113,113,.10), rgba(167,139,250,.08));
  border-color: rgba(248,113,113,.32); color: #fca5a5;
}

html body .tp-material-panel {
  margin-top: 12px; padding: 14px;
  background: linear-gradient(180deg, rgba(8,11,22,.55), rgba(8,11,22,.35));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  animation: tp-mat-slide-in .25s ease;
}
@keyframes tp-mat-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

html body .tp-mat-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 720px) {
  html body .tp-mat-grid { grid-template-columns: 1fr 1fr; }
  html body .tp-mat-section--copy { grid-column: 1 / -1; }
}

html body .tp-mat-section {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 12px;
}
html body .tp-mat-sec-head {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #c4b5fd; margin-bottom: 10px;
}
html body .tp-mat-sec-empty {
  font-size: .82rem; color: rgba(255,255,255,.45);
  padding: 14px; text-align: center; font-style: italic;
}
html body .tp-mat-loading { padding: 20px; text-align: center; color: rgba(255,255,255,.55); font-size: .85rem; }
html body .tp-mat-scrape-btn {
  background: rgba(56,189,248,.15); border: 1px solid rgba(56,189,248,.4);
  color: #7dd3fc; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-size: .78rem; font-weight: 700; margin-left: 8px;
}
html body .tp-mat-scrape-btn:hover { background: rgba(56,189,248,.25); }

html body .tp-mat-frames {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px;
}
html body .tp-mat-frame {
  position: relative; aspect-ratio: 9/16; border-radius: 6px; overflow: hidden;
  background: rgba(0,0,0,.4); display: block;
}
html body .tp-mat-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
html body .tp-mat-frame:hover img { transform: scale(1.08); }
html body .tp-mat-frame-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 4px 6px; font-size: .58rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  line-height: 1.2;
}
html body .tp-mat-frames-hint { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: 6px; text-align: center; }

html body .tp-mat-links { display: flex; flex-direction: column; gap: 6px; }
html body .tp-mat-link {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: all .15s;
}
html body .tp-mat-link b { font-size: .78rem; color: #f1f5f9; font-weight: 700; }
html body .tp-mat-link span { font-size: .68rem; color: rgba(255,255,255,.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
html body .tp-mat-link:hover { border-color: rgba(56,189,248,.3); background: rgba(56,189,248,.06); transform: translateX(2px); }
html body .tp-mat-link--az:hover  { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.06); }
html body .tp-mat-link--azbr:hover { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.06); }
html body .tp-mat-link--tk:hover  { border-color: rgba(236,72,153,.4); background: rgba(236,72,153,.06); }

html body .tp-mat-copyfield { margin-bottom: 8px; }
html body .tp-mat-copyfield label {
  display: block; font-size: .68rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; font-weight: 700;
}
html body .tp-mat-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 12px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; font-size: .82rem; color: #e2e8f0; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; word-break: break-word;
}
html body .tp-mat-copy:hover { border-color: rgba(56,189,248,.3); background: rgba(56,189,248,.04); }
html body .tp-mat-copy.copied { border-color: #22c55e; background: rgba(34,197,94,.1); }
html body .tp-mat-copy.copied::after { content: ' ✓ Copiado!'; color: #4ade80; font-weight: 700; }
html body .tp-mat-copy-btn {
  background: transparent; border: none; color: #94a3b8;
  font-size: 1rem; cursor: pointer; padding: 0 4px;
}
html body .tp-mat-hint { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: 8px; }

/* Light theme variants */
body.theme-light .tp-material-panel { background: #fafafa; border-color: rgba(0,0,0,.08); }
body.theme-light .tp-mat-section { background: #fff; border-color: rgba(0,0,0,.06); }
body.theme-light .tp-mat-sec-head { color: #6d28d9; }
body.theme-light .tp-mat-sec-empty { color: #6b7280; }
body.theme-light .tp-mat-loading { color: #6b7280; }
body.theme-light .tp-mat-link { background: #f9fafb; border-color: rgba(0,0,0,.06); }
body.theme-light .tp-mat-link b { color: #18181b; }
body.theme-light .tp-mat-link span { color: #6b7280; }
body.theme-light .tp-mat-copy { background: #f5f5f7; border-color: rgba(0,0,0,.08); color: #18181b; }
body.theme-light .tp-mat-copy:hover { background: rgba(45,59,255,.05); }
body.theme-light .tp-mat-hint { color: #6b7280; }
body.theme-light .tp-mat-frames-hint { color: #6b7280; }
body.theme-light .tp-material-btn {
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(109,40,217,.06));
  border-color: rgba(34,211,238,.3); color: #0e7490;
}
body.theme-light .tp-material-btn:hover { color: #0c4a6e; }


/* ═════════════════════════════════════════════════════════════════════
   Sala light theme — black region bar + black material button
   (psicologia das cores: menos roxo, mais sério, contraste alto)
   ═════════════════════════════════════════════════════════════════════ */
/* ─── Sala light: black region + material ─── */

/* Region bar — black panel with white text on light */
body.theme-light html body .tp-region-bar,
body.theme-light .tp-region-bar {
  background: linear-gradient(135deg, #0F172A, #18181B) !important;
  border: 1px solid #18181B !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
body.theme-light .tp-region-lbl {
  color: #93C5FD !important;
}
body.theme-light .tp-region-select {
  background-color: #18181B !important;
  color: #FFFFFF !important;
  border-color: #2D2D33 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 14px !important;
  padding-right: 32px !important;
  font-weight: 700 !important;
}
body.theme-light .tp-region-select:hover { border-color: #4B4B53 !important; background-color: #27272A !important; }
body.theme-light .tp-region-select option { background: #18181B !important; color: #FFFFFF !important; }
body.theme-light .tp-region-meta { color: rgba(255,255,255,.7) !important; }
body.theme-light .tp-region-meta b { color: #FFFFFF !important; }
body.theme-light .tp-region-refresh {
  background: #18181B !important;
  border-color: #2D2D33 !important;
  color: #FFFFFF !important;
}
body.theme-light .tp-region-refresh:hover { background: #27272A !important; border-color: #4B4B53 !important; }

/* Material para trabalhar — black with white text on light */
body.theme-light html body .tp-material-btn,
body.theme-light .tp-material-btn {
  background: linear-gradient(135deg, #18181B, #0F172A) !important;
  border: 1px solid #2D2D33 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: -.005em;
}
body.theme-light .tp-material-btn:hover {
  background: linear-gradient(135deg, #27272A, #18181B) !important;
  border-color: #4B4B53 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.18) !important;
  color: #FFFFFF !important;
}
body.theme-light .tp-material-btn.is-open {
  background: linear-gradient(135deg, #B91C1C, #7F1D1D) !important;
  border-color: #991B1B !important;
  color: #FFFFFF !important;
}


/* ═════════════════════════════════════════════════════════════════════
   Marketplace chips v2 — real platform logos + brand-tinted active state
   ═════════════════════════════════════════════════════════════════════ */
/* ─── Marketplace chips v2 ─── */
html body .mkt-chip-ico {
  width: 14px; height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

/* DARK theme — chip is dark by default, brand color on hover/active */
html body .mkt-chip { gap: 7px !important; }
html body .mkt-chip .mkt-chip-ico { opacity: .65; transition: opacity .15s; }
html body .mkt-chip:hover .mkt-chip-ico,
html body .mkt-chip.active .mkt-chip-ico { opacity: 1; }

/* Per-brand active accent (dark theme) */
html body .mkt-chip--tiktok.active {
  background: linear-gradient(135deg, rgba(255,45,85,.18), rgba(37,244,238,.10)) !important;
  border-color: rgba(255,45,85,.45) !important;
  color: #FFF !important;
  box-shadow: 0 0 0 1px rgba(255,45,85,.18), 0 4px 14px rgba(255,45,85,.20) !important;
}
html body .mkt-chip--tiktok.active .mkt-chip-ico { color: #FF2D55; }
html body .mkt-chip--tiktok:hover .mkt-chip-ico { color: #FF2D55; }

html body .mkt-chip--meta.active {
  background: linear-gradient(135deg, rgba(24,119,242,.20), rgba(193,53,132,.10)) !important;
  border-color: rgba(24,119,242,.45) !important;
  color: #FFF !important;
  box-shadow: 0 0 0 1px rgba(24,119,242,.18), 0 4px 14px rgba(24,119,242,.20) !important;
}
html body .mkt-chip--meta.active .mkt-chip-ico { color: #1877F2; }
html body .mkt-chip--meta:hover .mkt-chip-ico { color: #1877F2; }

html body .mkt-chip--youtube.active {
  background: linear-gradient(135deg, rgba(255,0,0,.20), rgba(255,0,0,.08)) !important;
  border-color: rgba(255,0,0,.45) !important;
  color: #FFF !important;
  box-shadow: 0 0 0 1px rgba(255,0,0,.18), 0 4px 14px rgba(255,0,0,.20) !important;
}
html body .mkt-chip--youtube.active .mkt-chip-ico { color: #FF0000; }
html body .mkt-chip--youtube:hover .mkt-chip-ico { color: #FF0000; }

html body .mkt-chip--other.active {
  background: linear-gradient(135deg, rgba(148,163,184,.20), rgba(71,85,105,.10)) !important;
  border-color: rgba(148,163,184,.45) !important;
  color: #FFF !important;
}
html body .mkt-chip--other.active .mkt-chip-ico { color: #94A3B8; }

html body .mkt-chip--all.active {
  background: linear-gradient(135deg, rgba(167,139,250,.22), rgba(56,189,248,.12)) !important;
  border-color: rgba(167,139,250,.5) !important;
  color: #FFF !important;
  box-shadow: 0 0 0 1px rgba(167,139,250,.2), 0 4px 14px rgba(139,92,246,.22) !important;
}
html body .mkt-chip--all.active .mkt-chip-ico { color: #A78BFA; }

/* ════ LIGHT THEME — high contrast, was invisible ════ */
body.theme-light html body .mkt-chip,
body.theme-light .mkt-chip {
  background: #FFFFFF !important;
  border: 1.5px solid #E5E7EB !important;
  color: #374151 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
body.theme-light .mkt-chip .mkt-chip-ico { opacity: .55; color: inherit; }
body.theme-light .mkt-chip:hover {
  background: #F9FAFB !important;
  border-color: #9CA3AF !important;
  color: #18181B !important;
}
body.theme-light .mkt-chip:hover .mkt-chip-ico { opacity: 1; }

/* Active states per brand (light) */
body.theme-light .mkt-chip--all.active {
  background: linear-gradient(135deg, #6D28D9, #2563EB) !important;
  border-color: #6D28D9 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(109,40,217,.32) !important;
}
body.theme-light .mkt-chip--all.active .mkt-chip-ico { color: #FFFFFF; opacity: 1; }

body.theme-light .mkt-chip--tiktok.active {
  background: linear-gradient(135deg, #000000, #FF2D55) !important;
  border-color: #FF2D55 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255,45,85,.35) !important;
}
body.theme-light .mkt-chip--tiktok.active .mkt-chip-ico { color: #25F4EE; opacity: 1; }
body.theme-light .mkt-chip--tiktok:hover .mkt-chip-ico { color: #FF2D55; }

body.theme-light .mkt-chip--meta.active {
  background: linear-gradient(135deg, #1877F2, #C13584) !important;
  border-color: #1877F2 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(24,119,242,.32) !important;
}
body.theme-light .mkt-chip--meta.active .mkt-chip-ico { color: #FFFFFF; opacity: 1; }
body.theme-light .mkt-chip--meta:hover .mkt-chip-ico { color: #1877F2; }

body.theme-light .mkt-chip--youtube.active {
  background: linear-gradient(135deg, #DC2626, #FF0000) !important;
  border-color: #FF0000 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255,0,0,.32) !important;
}
body.theme-light .mkt-chip--youtube.active .mkt-chip-ico { color: #FFFFFF; opacity: 1; }
body.theme-light .mkt-chip--youtube:hover .mkt-chip-ico { color: #FF0000; }

body.theme-light .mkt-chip--other.active {
  background: linear-gradient(135deg, #475569, #18181B) !important;
  border-color: #475569 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(71,85,105,.32) !important;
}
body.theme-light .mkt-chip--other.active .mkt-chip-ico { color: #FFFFFF; opacity: 1; }

/* Per-brand SVG default tint on light (subtle but visible) */
body.theme-light .mkt-chip--tiktok .mkt-chip-ico  { color: #FF2D55; opacity: .85; }
body.theme-light .mkt-chip--meta .mkt-chip-ico    { color: #1877F2; opacity: .85; }
body.theme-light .mkt-chip--youtube .mkt-chip-ico { color: #FF0000; opacity: .85; }
body.theme-light .mkt-chip--other .mkt-chip-ico   { color: #6B7280; opacity: .75; }
body.theme-light .mkt-chip--all .mkt-chip-ico     { color: #6D28D9; opacity: .85; }

/* Hide the legacy tiny dots since we use SVGs now */
html body .mkt-chip-dot { display: none !important; }

/* ===========================================================
   LANDING - Features Expand (Marketplace, Comunidade, etc)
   =========================================================== */

/* MARKETPLACE GRID */
.lp-mkt-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-top:36px;
}
.lp-mkt-card{
  position:relative;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:26px 22px;
  transition:transform .25s ease, border-color .25s ease, background .25s ease;
}
.lp-mkt-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.04);
  border-color:rgba(123,92,255,.35);
}
.lp-mkt-card--accent{
  background:linear-gradient(155deg, rgba(45,59,255,.10), rgba(123,92,255,.06));
  border-color:rgba(123,92,255,.30);
}
.lp-mkt-badge{
  position:absolute;
  top:14px; right:14px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  background:linear-gradient(135deg,#2D3BFF,#7B5CFF);
  color:#fff;
  padding:4px 9px;
  border-radius:99px;
}
.lp-mkt-ico{
  width:46px; height:46px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(123,92,255,.12);
  color:#a78bfa;
  margin-bottom:14px;
}
.lp-mkt-card h3{
  font-size:18px;
  font-weight:700;
  margin:0 0 8px;
  color:#fff;
}
.lp-mkt-card p{
  font-size:14.5px;
  line-height:1.55;
  color:rgba(255,255,255,.66);
  margin:0 0 14px;
}
.lp-mkt-list{
  list-style:none;
  padding:0;margin:0;
  border-top:1px solid rgba(255,255,255,.06);
  padding-top:14px;
}
.lp-mkt-list li{
  font-size:13.5px;
  color:rgba(255,255,255,.72);
  padding:5px 0;
  padding-left:18px;
  position:relative;
}
.lp-mkt-list li::before{
  content:"";
  position:absolute;
  left:0; top:11px;
  width:8px;height:8px;
  border-radius:50%;
  background:linear-gradient(135deg,#7B5CFF,#00D4FF);
}

/* COMUNIDADE GRID */
.lp-comm-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  margin-top:36px;
}
.lp-comm-card{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  padding:22px 18px;
  transition:transform .25s ease, border-color .25s ease;
}
.lp-comm-card:hover{
  transform:translateY(-3px);
  border-color:rgba(123,92,255,.30);
}
.lp-comm-ico{
  width:44px;height:44px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
}
.lp-comm-card h3{
  font-size:16.5px;
  font-weight:700;
  margin:0 0 6px;
  color:#fff;
}
.lp-comm-card p{
  font-size:13.5px;
  line-height:1.55;
  color:rgba(255,255,255,.66);
  margin:0;
}

/* AFILIADOS VISUAL */
.lp-visual-aff{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:28px 14px;
}
.lp-aff-flow{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.lp-aff-node{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:78px;
}
.lp-aff-node-ic{
  width:54px;height:54px;
  border-radius:50%;
  background:linear-gradient(135deg, rgba(123,92,255,.15), rgba(0,212,255,.10));
  border:1px solid rgba(123,92,255,.35);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  font-size:20px;
}
.lp-aff-node--center .lp-aff-node-ic{
  background:linear-gradient(135deg,#2D3BFF,#7B5CFF);
  border-color:#7B5CFF;
  box-shadow:0 0 0 6px rgba(123,92,255,.10);
  width:64px;height:64px;
  font-size:24px;
}
.lp-aff-node span{
  font-size:12.5px;
  color:rgba(255,255,255,.72);
  font-weight:600;
}
.lp-aff-arrow{
  color:rgba(123,92,255,.6);
  font-size:22px;
  font-weight:700;
}
.lp-aff-line{
  font-size:14px;
  color:rgba(255,255,255,.6);
  text-align:center;
  font-style:italic;
}

/* COMO FUNCIONA STEPS */
.lp-steps{
  display:flex;
  align-items:stretch;
  gap:14px;
  margin-top:38px;
  flex-wrap:wrap;
  justify-content:center;
}
.lp-step{
  flex:1 1 250px;
  max-width:320px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  padding:24px 22px;
  text-align:center;
  position:relative;
  transition:transform .25s ease, border-color .25s ease;
}
.lp-step:hover{
  transform:translateY(-3px);
  border-color:rgba(123,92,255,.35);
}
.lp-step-num{
  width:44px;height:44px;
  border-radius:50%;
  background:linear-gradient(135deg,#2D3BFF,#7B5CFF);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  font-size:18px;
  margin:0 auto 14px;
  box-shadow:0 0 0 6px rgba(123,92,255,.08);
}
.lp-step h3{
  font-size:17px;
  font-weight:700;
  margin:0 0 6px;
  color:#fff;
}
.lp-step p{
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.66);
  margin:0;
}
.lp-step-arrow{
  display:flex;
  align-items:center;
  color:rgba(123,92,255,.5);
  font-size:24px;
  font-weight:700;
}

/* PROVA SOCIAL */
.lp-proof-stats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin:36px 0 32px;
}
.lp-proof-stat{
  text-align:center;
  padding:22px 12px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
}
.lp-proof-n{
  font-size:32px;
  font-weight:800;
  background:linear-gradient(135deg,#00D4FF,#7B5CFF);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  letter-spacing:-.02em;
  margin-bottom:4px;
}
.lp-proof-l{
  font-size:13px;
  color:rgba(255,255,255,.66);
  font-weight:500;
}
.lp-testimonials{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-top:14px;
}
.lp-testi{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  padding:22px 20px;
}
.lp-testi p{
  font-size:14.5px;
  line-height:1.6;
  color:rgba(255,255,255,.82);
  margin:0 0 16px;
  font-style:italic;
}
.lp-testi-author{
  display:flex;
  align-items:center;
  gap:12px;
}
.lp-testi-avt{
  width:38px;height:38px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;
  font-weight:700;
  font-size:14px;
}
.lp-testi-author strong{
  display:block;
  font-size:14px;
  color:#fff;
}
.lp-testi-author span{
  font-size:12.5px;
  color:rgba(255,255,255,.55);
}

/* FAQ */
.lp-faq-list{
  max-width:780px;
  margin:36px auto 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.lp-faq-item{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  overflow:hidden;
  transition:border-color .25s ease;
}
.lp-faq-item.open{
  border-color:rgba(123,92,255,.30);
  background:rgba(123,92,255,.04);
}
.lp-faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:transparent;
  border:0;
  padding:18px 20px;
  color:#fff;
  font-size:15.5px;
  font-weight:600;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
}
.lp-faq-chev{
  transition:transform .25s ease;
  color:rgba(255,255,255,.55);
  flex-shrink:0;
  margin-left:14px;
}
.lp-faq-item.open .lp-faq-chev{
  transform:rotate(180deg);
}
.lp-faq-a{
  max-height:0;
  overflow:hidden;
  padding:0 20px;
  font-size:14.5px;
  line-height:1.6;
  color:rgba(255,255,255,.72);
  transition:max-height .35s ease, padding .25s ease;
}
.lp-faq-item.open .lp-faq-a{
  max-height:400px;
  padding:0 20px 20px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .lp-mkt-grid,
  .lp-comm-grid,
  .lp-testimonials,
  .lp-proof-stats{
    grid-template-columns:repeat(2, 1fr);
  }
  .lp-steps{ flex-direction:column; align-items:center; }
  .lp-step-arrow{ transform:rotate(90deg); }
  .lp-step{ max-width:100%; width:100%; }
}
@media (max-width: 600px){
  .lp-mkt-grid,
  .lp-comm-grid,
  .lp-testimonials,
  .lp-proof-stats{
    grid-template-columns:1fr;
  }
  .lp-aff-flow{ flex-direction:column; }
  .lp-aff-arrow{ transform:rotate(90deg); }
  .lp-section-h2{ font-size:24px !important; }
  .lp-proof-n{ font-size:28px; }
  .lp-mkt-card, .lp-comm-card, .lp-step, .lp-testi{
    padding:20px 16px;
  }
}


/* ═════════════════════════════════════════════════════════════════════
   Payment Methods modal v2 + Tools page Pro lock UX polish
   ═════════════════════════════════════════════════════════════════════ */
/* ─── Payment Methods modal v2 polish ─── */
html body #bank-modal .modal-card {
  max-width: 560px !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 24px 60px rgba(15,23,42,.18), 0 4px 12px rgba(15,23,42,.06) !important;
}
html body #bank-modal .modal-head {
  padding: 18px 22px 14px !important;
  border-bottom: 1px solid #F3F4F6 !important;
}
html body #bank-modal .modal-head h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 !important;
}
html body #bank-modal .modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #F3F4F6 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  color: #6B7280 !important;
  font-size: 18px;
  cursor: pointer;
  transition: all .12s;
}
html body #bank-modal .modal-close:hover {
  background: #FEE2E2 !important;
  border-color: #FECACA !important;
  color: #DC2626 !important;
}
html body #bank-modal .composer-body {
  padding: 18px 22px 22px !important;
}

/* Empty state */
html body .pm-empty {
  padding: 24px 16px !important;
  text-align: center;
  color: #6B7280;
  font-size: .82rem;
  background: #FAFAFA;
  border: 1px dashed #E5E7EB;
  border-radius: 10px;
}
.pm-arrow-down { animation: pm-bounce 1.6s ease-in-out infinite; }
@keyframes pm-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* Divider */
html body .pm-add-divider {
  margin: 18px 0 12px !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 8px;
}
html body .pm-add-divider::before,
html body .pm-add-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

/* Form fields */
html body .pm-add-form {
  display: flex; flex-direction: column; gap: 12px;
}
html body .pm-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 600px) {
  html body .pm-row { grid-template-columns: 1fr; }
}
html body .pm-add-form .field { display: flex; flex-direction: column; gap: 4px; }
html body .pm-add-form .lbl {
  font-size: .72rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
html body .pm-add-form .lbl svg { flex-shrink: 0; }
html body .pm-add-form input[type="text"],
html body .pm-add-form input[type="email"],
html body .pm-add-form select {
  padding: 9px 12px !important;
  border-radius: 8px !important;
  border: 1.5px solid #E5E7EB !important;
  font-size: 14px !important;
  background: #FAFBFF !important;
  color: #0F172A !important;
  transition: border-color .12s, background-color .12s;
  width: 100%;
}
html body .pm-add-form input:hover,
html body .pm-add-form select:hover {
  border-color: #D1D5DB !important;
  background: #FFFFFF !important;
}
html body .pm-add-form input:focus,
html body .pm-add-form select:focus {
  border-color: #6D28D9 !important;
  background: #FFFFFF !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(109,40,217,.10) !important;
}

/* Section box (PIX / BANK / CRYPTO) */
html body .pm-fields-section {
  padding: 14px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 10px;
}
html body .pm-fields-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6D28D9;
}

/* Warning chip */
html body .pm-warn {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 500;
}
html body .pm-warn svg { color: #D97706; }

/* Save button — prominent gradient */
html body #pm-save-btn {
  margin-top: 8px;
  padding: 12px 18px !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #6D28D9, #4338CA) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(109,40,217,.30) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
html body #pm-save-btn:hover {
  box-shadow: 0 6px 20px rgba(109,40,217,.42) !important;
  transform: translateY(-1px);
}
html body #pm-save-btn:active { transform: translateY(0); }

/* Existing methods list */
html body .pm-list { display: flex; flex-direction: column; gap: 8px; }
html body .pm-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  gap: 10px;
}
html body .pm-item.is-default {
  border-color: #6D28D9;
  background: linear-gradient(180deg, #FAFAFF, #FFFFFF);
}
html body .pm-item-main { flex: 1; min-width: 0; }
html body .pm-item-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem;
  color: #0F172A;
  margin-bottom: 4px;
}
html body .pm-flag {
  display: inline-flex; align-items: center;
  font-size: 1rem;
}
html body .pm-flag svg { color: #38BDF8; }
html body .pm-currency {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 6px;
  background: #EEF2FF;
  color: #4338CA;
  border-radius: 4px;
  letter-spacing: .04em;
}
html body .pm-default-tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  background: #6D28D9;
  color: #FFFFFF;
  border-radius: 999px;
}
html body .pm-item-data {
  display: flex; flex-wrap: wrap; gap: 8px;
  color: #6B7280; font-size: .76rem;
}
html body .pm-item-data small { font-size: inherit; }
html body .pm-item-actions {
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0;
}
html body .pm-item-actions .btn { padding: 5px 10px !important; font-size: .72rem !important; }

/* Dark theme */
body:not(.theme-light) #bank-modal .modal-card {
  background: #1E293B !important;
  border-color: rgba(94,162,224,.20) !important;
}
body:not(.theme-light) #bank-modal .modal-head { border-bottom-color: rgba(255,255,255,.08) !important; }
body:not(.theme-light) #bank-modal .modal-head h3 { color: #F8FAFC !important; }
body:not(.theme-light) #bank-modal .modal-close {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #94A3B8 !important;
}
body:not(.theme-light) .pm-empty { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); color: #94A3B8; }
body:not(.theme-light) .pm-add-divider { color: #94A3B8; }
body:not(.theme-light) .pm-add-divider::before,
body:not(.theme-light) .pm-add-divider::after { background: rgba(255,255,255,.08); }
body:not(.theme-light) .pm-add-form .lbl { color: #CBD5E1 !important; }
body:not(.theme-light) .pm-add-form input,
body:not(.theme-light) .pm-add-form select {
  background: rgba(15,23,42,.6) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #F8FAFC !important;
}
body:not(.theme-light) .pm-fields-section { background: rgba(15,23,42,.6); border-color: rgba(255,255,255,.08); }
body:not(.theme-light) .pm-fields-title { color: #A78BFA; }
body:not(.theme-light) .pm-warn { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.30); color: #FBBF24; }
body:not(.theme-light) .pm-item { background: rgba(15,23,42,.45); border-color: rgba(255,255,255,.08); }
body:not(.theme-light) .pm-item.is-default { background: rgba(109,40,217,.10); border-color: #A78BFA; }
body:not(.theme-light) .pm-item-head { color: #F8FAFC; }
body:not(.theme-light) .pm-currency { background: rgba(167,139,250,.18); color: #A78BFA; }
body:not(.theme-light) .pm-item-data { color: #94A3B8; }

/* ─── Tools page Pro lock UX polish ─── */
html body .tool-card--locked {
  position: relative;
  opacity: .92;
  transition: all .18s;
}
html body .tool-card--locked::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.04), rgba(109,40,217,.05));
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
html body .tool-card--locked::after {
  content: 'PRO';
  position: absolute;
  top: 10px; right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 3px 8px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #1F2937;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(245,158,11,.30);
  z-index: 2;
  animation: pro-pulse-soft 2.4s ease-in-out infinite;
}
@keyframes pro-pulse-soft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); box-shadow: 0 3px 10px rgba(245,158,11,.45); }
}
html body .tool-card--locked .tool-card-action {
  background: linear-gradient(135deg, #6D28D9, #4338CA) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(109,40,217,.28) !important;
  position: relative;
  z-index: 2;
}
html body .tool-card--locked .tool-card-action:hover {
  box-shadow: 0 5px 16px rgba(109,40,217,.42) !important;
  transform: translateY(-1px);
}
html body .tool-card--locked .tool-card-action::before {
  content: '🔓 ';
  margin-right: 2px;
}


/* ═════════════════════════════════════════════════════════════════════
   Subscription tab (in /profile)
   ═════════════════════════════════════════════════════════════════════ */
/* ─── Subscription tab ─── */
.sub-tab-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 580px; padding: 4px; }
.sub-card {
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
}
.sub-card--pro {
  background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(167,139,250,.06));
  border-color: rgba(251,191,36,.32);
  box-shadow: 0 4px 14px rgba(251,191,36,.10);
}
.sub-card-head { margin-bottom: 16px; }
.sub-plan-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sub-plan-badge--free { background: rgba(148,163,184,.18); color: #94A3B8; }
.sub-plan-badge--pro {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #1F2937;
  box-shadow: 0 2px 6px rgba(251,191,36,.28);
}
.sub-plan-badge svg { width: 12px; height: 12px; }
.sub-card-title {
  font-size: 1.15rem; font-weight: 800;
  margin: 0 0 4px; letter-spacing: -.01em;
  color: var(--text);
}
.sub-card-sub {
  font-size: .88rem; color: var(--muted);
  line-height: 1.45; margin: 0;
}
.sub-card-sub b { color: var(--text); }

.sub-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
}
.sub-manage-btn, .sub-upgrade-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}
.sub-cancel-btn {
  padding: 11px 18px !important;
  font-size: .82rem !important;
  color: var(--muted) !important;
}
.sub-cancel-btn:hover {
  background: rgba(239,68,68,.08) !important;
  border-color: rgba(239,68,68,.30) !important;
  color: #F87171 !important;
}

/* Coupon card */
.sub-coupon-card {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(56,189,248,.05), rgba(167,139,250,.03));
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 14px;
}
.sub-coupon-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  color: #7DD3FC;
  font-size: .92rem;
}
.sub-coupon-head svg { color: #38BDF8; }
.sub-coupon-head b { color: var(--text); font-weight: 700; }
.sub-coupon-form {
  display: flex; gap: 8px; align-items: stretch;
}
.sub-coupon-form input {
  flex: 1;
  padding: 9px 14px;
  background: rgba(0,0,0,.25);
  border: 1.5px solid rgba(255,255,255,.10);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: .92rem;
  letter-spacing: .04em;
  transition: border-color .12s;
}
.sub-coupon-form input:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.sub-coupon-form button {
  padding: 9px 18px !important;
  font-weight: 700 !important;
}
.sub-coupon-msg {
  margin-top: 10px;
  font-size: .82rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}
.sub-coupon-msg.success {
  display: block;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.30);
  color: #4ADE80;
}
.sub-coupon-msg.error {
  display: block;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  color: #F87171;
}

/* Light theme */
body.theme-light .sub-card {
  background: linear-gradient(180deg, #FFFFFF, #FAFAFA);
  border-color: #E5E7EB;
}
body.theme-light .sub-card--pro {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border-color: rgba(245,158,11,.40);
}
body.theme-light .sub-card-title { color: #18181B; }
body.theme-light .sub-card-sub { color: #6B7280; }
body.theme-light .sub-card-sub b { color: #18181B; }
body.theme-light .sub-coupon-card { background: linear-gradient(135deg, #EFF6FF, #FAF5FF); border-color: rgba(56,189,248,.25); }
body.theme-light .sub-coupon-head { color: #0369A1; }
body.theme-light .sub-coupon-head b { color: #18181B; }
body.theme-light .sub-coupon-form input { background: #FFFFFF; border-color: #E5E7EB; color: #18181B; }

/* Tab icon color */
.profile-tab[data-tab="subscription"] .sub-tab-icon svg { color: #FBBF24; }
.profile-tab[data-tab="subscription"].active { border-bottom-color: #FBBF24 !important; color: #FBBF24 !important; }
/* ════════════════════════════════════════════════════════════
   LANDING REDESIGN — community-first additions
   Appended 2026-05-16 — leve, sem libs externas, respeita
   prefers-reduced-motion e usa SVG/CSS-first.
   ════════════════════════════════════════════════════════════ */

#screen-landing { font-size: 17px; -webkit-text-size-adjust: 100%; }
#screen-landing button, #screen-landing a.lp-btn-ghost, #screen-landing a.lp-btn-solid { min-height: 44px; }
#screen-landing .lp-cta-main { min-height: 48px; }
#screen-landing input, #screen-landing select, #screen-landing textarea { font-size: 16px; }

.lp-eyebrow { font-size: .78rem; color: rgba(255,255,255,.78); }
.lp-h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; }
.lp-hero-sub { font-size: 1.04rem; line-height: 1.65; color: rgba(255,255,255,.78); }
.lp-section-h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; color: #fff; font-weight: 800; margin: 0 0 14px; }
.lp-section-sub { color: rgba(255,255,255,.7); font-size: 1rem; }
.lp-section-label { color: #a5b4fc; }
.lp-cta-main--compact { padding: 12px 22px; font-size: .95rem; min-height: 44px; }

.lp-ticker {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, rgba(99,102,241,0.08), rgba(168,85,247,0.04));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 12px 0 12px 24px;
  overflow: hidden; position: relative; margin-top: 8px;
}
.lp-ticker::before, .lp-ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none; z-index: 2;
}
.lp-ticker::before { left: 0; background: linear-gradient(90deg, #0a0f17, transparent); }
.lp-ticker::after  { right: 0; background: linear-gradient(270deg, #0a0f17, transparent); }
.lp-ticker-label {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  color: #fff; text-transform: uppercase;
  padding-right: 16px; border-right: 1px solid rgba(255,255,255,.12);
  position: relative; z-index: 3; background: #0a0f17;
}
.lp-ticker-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: lpPulseDot 1.8s ease-out infinite;
}
@keyframes lpPulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  100% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}
.lp-ticker-track {
  display: inline-flex; gap: 28px;
  animation: lpTicker 50s linear infinite;
  will-change: transform; padding-left: 28px;
}
.lp-ticker:hover .lp-ticker-track { animation-play-state: paused; }
@keyframes lpTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.lp-ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .88rem; color: rgba(255,255,255,.85);
  white-space: nowrap; padding: 6px 14px;
  border-radius: 999px;
}
.lp-ticker-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.lp-ticker-flag { font-size: 1rem; }
.lp-ticker-name { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.lp-ticker-rank { font-family: "JetBrains Mono", monospace; font-size: .78rem; color: rgba(255,255,255,.5); }
.lp-ticker-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: "JetBrains Mono", monospace; font-size: .78rem;
  font-weight: 800; padding: 2px 7px; border-radius: 6px;
}
.lp-ticker-delta--up   { color: #4ade80; background: rgba(34,197,94,.12); animation: lpDeltaPulse 2s ease-in-out infinite; }
.lp-ticker-delta--down { color: #f87171; background: rgba(239,68,68,.12); }
.lp-ticker-delta--flat { color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
@keyframes lpDeltaPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.lp-tools-grid { grid-template-columns: repeat(3, 1fr); }
.lp-tool-card--copy    .lp-tool-icon { background: rgba(99,102,241,.15);  color: #a5b4fc; }
.lp-tool-card--radar   .lp-tool-icon { background: rgba(34,211,238,.15);  color: #67e8f9; }
.lp-tool-card--multi   .lp-tool-icon { background: rgba(74,222,128,.15);  color: #86efac; }

.lp-visual-network { display: flex; flex-direction: column; gap: 14px; }
.lp-network-card {
  background: linear-gradient(160deg, rgba(99,102,241,.08), rgba(168,85,247,.04));
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 20px; padding: 18px;
  position: relative; overflow: hidden;
}
.lp-network-card::before {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(circle at 30% 0%, rgba(167,139,250,.18), transparent 60%);
  pointer-events: none; z-index: 0;
}
.lp-network-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.85);
  text-transform: uppercase; margin-bottom: 4px;
}
.lp-network-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.7);
  animation: lpPulseDot 1.8s ease-out infinite;
}
.lp-network-svg {
  display: block; width: 100%; height: auto; max-height: 320px;
  position: relative; z-index: 1;
}
.lp-net-line {
  stroke-dasharray: 4 6;
  animation: lpDash 5s linear infinite;
}
.lp-net-line--alt { animation-duration: 8s; animation-direction: reverse; }
@keyframes lpDash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -40; }
}
.lp-net-node circle:first-child {
  transition: transform .25s;
  transform-origin: center;
  transform-box: fill-box;
}
.lp-net-node:hover circle:first-child { transform: scale(1.12); }
.lp-net-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: lpNodePulse 2.4s ease-out infinite;
}
@keyframes lpNodePulse {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(2.2); opacity: 0; }
}
.lp-network-foot {
  position: relative; z-index: 1;
  display: flex; gap: 18px; padding-top: 8px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.lp-network-stat strong { color: #fff; font-weight: 800; font-family: "JetBrains Mono", monospace; margin-right: 4px; }
.lp-mock-post--inline { transform: none; opacity: 1; }

.lp-visual-radar { display: flex; justify-content: center; }
.lp-radar-card {
  background: linear-gradient(160deg, rgba(167,139,250,.08), rgba(99,102,241,.03));
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 20px; padding: 18px;
  width: 100%; max-width: 360px;
}
.lp-radar-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.85);
  text-transform: uppercase; margin-bottom: 12px;
}
.lp-radar-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,.7);
  animation: lpPulseDot 2.2s ease-out infinite;
}
.lp-radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lp-radar-svg { width: 100%; max-width: 280px; }
.lp-radar-sweep {
  transform-origin: 120px 120px;
  animation: lpRadarSpin 3.6s linear infinite;
}
@keyframes lpRadarSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.lp-radar-blip {
  opacity: 0;
  animation: lpBlip 2.6s ease-out forwards;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes lpBlip {
  0%   { opacity: 0; transform: scale(0.4); }
  20%  { opacity: 1; transform: scale(1.4); }
  60%  { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.lp-radar-legend {
  display: flex; gap: 14px; font-size: .72rem; color: rgba(255,255,255,.6);
  flex-wrap: wrap; justify-content: center;
}
.lp-radar-leg { display: inline-flex; align-items: center; gap: 5px; }
.lp-radar-sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lp-radar-sw--pos { background: #22c55e; }
.lp-radar-sw--neu { background: #facc15; }
.lp-radar-sw--neg { background: #f87171; }

.lp-cc-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem; color: rgba(255,255,255,.5);
  margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
}
.lp-cc-trend {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px; border-radius: 4px; font-weight: 800;
}
.lp-cc-trend--up   { color: #4ade80; background: rgba(34,197,94,.14); }
.lp-cc-trend--down { color: #f87171; background: rgba(239,68,68,.14); }
.lp-cc-trend--flat { color: rgba(255,255,255,.5); }
.lp-country-card.lp-card-pulse {
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 0 0 1px rgba(167,139,250,.3), 0 0 22px rgba(167,139,250,.18);
  transition: border-color .25s, box-shadow .25s;
}

.lp-proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 28px;
}
.lp-proof-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, border-color .2s;
}
.lp-proof-card:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.3); }
.lp-proof-stars { color: #fbbf24; letter-spacing: 2px; font-size: .9rem; }
.lp-proof-quote { font-size: .94rem; color: rgba(255,255,255,.82); line-height: 1.55; margin: 0; font-style: italic; }
.lp-proof-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.lp-proof-name { font-size: .85rem; font-weight: 700; color: #fff; }
.lp-proof-role { font-size: .72rem; color: rgba(255,255,255,.5); }

.lp-section-inner--narrow { max-width: 760px; }
.lp-faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.lp-faq-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.lp-faq-item[open] { border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.04); }
.lp-faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: #fff;
  user-select: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-chev { opacity: .55; transition: transform .25s; flex-shrink: 0; }
.lp-faq-item[open] .lp-faq-chev { transform: rotate(180deg); opacity: .9; }
.lp-faq-body {
  padding: 0 22px 20px;
  font-size: .94rem; color: rgba(255,255,255,.7); line-height: 1.65;
}

@media (max-width: 900px) {
  .lp-tools-grid { grid-template-columns: 1fr; }
  .lp-proof-grid { grid-template-columns: 1fr; }
  .lp-ticker-track { animation-duration: 35s; }
  .lp-radar-svg { max-width: 240px; }
  .lp-network-svg { max-height: 260px; }
}
@media (max-width: 600px) {
  #screen-landing { font-size: 17px; }
  .lp-section { padding: 56px 0; }
  .lp-section-inner { padding: 0 20px; }
  .lp-h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .lp-hero-sub { font-size: 1rem; }
  .lp-cta-row { flex-direction: column; align-items: stretch; }
  .lp-cta-main, .lp-cta-sec { width: 100%; justify-content: center; }
  .lp-ticker-label { font-size: .65rem; padding-right: 12px; }
  .lp-ticker-item { font-size: .8rem; padding: 5px 11px; }
  .lp-ticker-name { max-width: 140px; }
  .lp-stats-bar { padding: 18px 8px; }
  .lp-stat-n { font-size: 1.7rem; }
  .lp-stat-item { padding: 6px 14px; }
  .lp-faq-item summary { padding: 16px 18px; font-size: .94rem; }
  .lp-network-foot { font-size: .76rem; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-ticker-track,
  .lp-net-line,
  .lp-net-line--alt,
  .lp-net-pulse,
  .lp-radar-sweep,
  .lp-radar-blip,
  .lp-ticker-pulse,
  .lp-network-dot,
  .lp-radar-dot,
  .lp-ticker-delta--up,
  .lp-hero-glow {
    animation: none !important;
  }
  .lp-net-line { stroke-dasharray: 0; }
}

#screen-landing button:focus-visible,
#screen-landing a:focus-visible,
#screen-landing .lp-tool-expand:focus-visible,
#screen-landing .lp-faq-item summary:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
  border-radius: 8px;
}


/* ═════════════════════════════════════════════════════════════════════
   Admin: Support Bots manager
   ═════════════════════════════════════════════════════════════════════ */
/* ─── Admin: Support Bots ─── */
.sb-wrap { padding: 16px; max-width: 920px; }
.sb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.sb-title { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; }
.sb-sub { margin: 0; color: var(--muted); font-size: .85rem; max-width: 540px; }
.sb-sub b { color: var(--text); }
.sb-add-btn { white-space: nowrap; }
.sb-empty { text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.sb-list { display: flex; flex-direction: column; gap: 10px; }
.sb-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.sb-card-main { flex: 1; min-width: 0; }
.sb-card-head { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin-bottom: 6px; flex-wrap: wrap; }
.sb-card-head b { color: var(--text); }
.sb-label { font-family: 'JetBrains Mono', monospace; font-size: .7rem; padding: 2px 6px; background: rgba(167,139,250,.12); color: #a78bfa; border-radius: 4px; }
.sb-status { font-family: 'JetBrains Mono', monospace; font-size: .58rem; font-weight: 700; letter-spacing: .12em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.sb-status--on { background: rgba(34,197,94,.12); color: #4ade80; }
.sb-status--off { background: rgba(148,163,184,.12); color: #94a3b8; }
.sb-card-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); }
.sb-card-meta code { font-size: .82rem; color: var(--text); background: rgba(0,0,0,.20); padding: 1px 5px; border-radius: 4px; }
.sb-tok--set { color: #22c55e; }
.sb-tok--missing { color: #f59e0b; }
.sb-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Modal */
.sb-form-modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sb-form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; width: 100%; max-width: 480px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.sb-form-card h3 { margin: 0 0 18px; font-size: 1.1rem; }
.sb-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.sb-field > span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.sb-field > span a { color: #38bdf8; text-decoration: none; }
.sb-field input { padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--text); font-size: .9rem; }
.sb-field input:focus { outline: none; border-color: #6d28d9; box-shadow: 0 0 0 3px rgba(109,40,217,.12); }
.sb-field small { font-size: .68rem; color: var(--muted); }
.sb-field-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sb-field-row > span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.sb-field-row input[type="number"] { padding: 7px 10px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--text); }
.sb-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sb-form-msg { margin-top: 12px; font-size: .82rem; color: #f87171; }

/* Light theme */
body.theme-light .sb-card { background: #fff; border-color: #e5e7eb; }
body.theme-light .sb-card-meta code { background: #f3f4f6; color: #18181b; }
body.theme-light .sb-form-card { background: #fff; border-color: #e5e7eb; }
body.theme-light .sb-field input { background: #fafbff; border-color: #e5e7eb; color: #18181b; }


/* ═════════════════════════════════════════════════════════════════════
   LGPD bundle — Wave 2C
   ═════════════════════════════════════════════════════════════════════ */
/* ─── LGPD section ─── */
.sub-lgpd-card { margin-top: 16px; padding: 16px 20px; background: rgba(167,139,250,.04); border: 1px solid rgba(167,139,250,.18); border-radius: 12px; }
.sub-lgpd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #a78bfa; font-size: .94rem; }
.sub-lgpd-head b { color: var(--text); font-weight: 700; }
.sub-lgpd-text { margin: 0 0 14px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.sub-lgpd-text a { color: #a78bfa; }
.sub-lgpd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-lgpd-actions .btn { font-size: .82rem; padding: 9px 14px; }
.sub-lgpd-delete:hover { background: rgba(239,68,68,.10) !important; border-color: rgba(239,68,68,.35) !important; color: #f87171 !important; }
body.theme-light .sub-lgpd-card { background: #FAFAFF; border-color: rgba(109,40,217,.18); }
body.theme-light .sub-lgpd-head { color: #6D28D9; }

/* Auth consent */
.auth-consent input[type="checkbox"] { width: 16px; height: 16px; }


/* ── Auth modal: animated glass blobs so backdrop-filter has something to blur ── */
.auth-modal::before,
.auth-modal::after {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.auth-modal::before {
  top: -120px; left: -120px;
  background: radial-gradient(circle, #2D3BFF 0%, rgba(45,59,255,0) 70%);
  animation: authBlobA 14s ease-in-out infinite alternate;
}
.auth-modal::after {
  bottom: -120px; right: -120px;
  background: radial-gradient(circle, #7B5CFF 0%, rgba(123,92,255,0) 70%);
  animation: authBlobB 16s ease-in-out infinite alternate;
}
@keyframes authBlobA {
  0%   { transform: translate(0, 0) scale(1);    opacity: .45; }
  100% { transform: translate(80px, 60px) scale(1.15); opacity: .65; }
}
@keyframes authBlobB {
  0%   { transform: translate(0, 0) scale(1);    opacity: .45; }
  100% { transform: translate(-70px, -50px) scale(1.1); opacity: .65; }
}
/* Glass on the card itself (semi-transparent + saturated blur) */
.auth-card {
  background: linear-gradient(180deg, rgba(31, 41, 73, .82) 0%, rgba(17, 24, 39, .92) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* ── Consent checkbox row ───────────────────────────────────────── */
.auth-consent {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
  margin: 4px 0 6px;
}
.auth-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  position: relative;
  margin-top: 1px;
}
.auth-consent input[type="checkbox"]:hover {
  border-color: rgba(123,92,255,.6);
}
.auth-consent input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 100%);
  border-color: transparent;
}
.auth-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-consent a {
  color: #a5b4fc;
  text-decoration: underline;
  text-decoration-color: rgba(165,180,252,.4);
  text-underline-offset: 2px;
}
.auth-consent a:hover { color: #c7d2fe; }

/* Submit button disabled state */
#register-submit-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.5);
}


/* Rank-thumb fallback placeholder (when img fails) — same size as <img class=rank-thumb> */
.rank-thumb--ph {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(45,59,255,.10) 0%, rgba(123,92,255,.10) 100%);
  border: 1px solid rgba(123,92,255,.18);
  color: #7B5CFF;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.rank-thumb--ph svg { width: 22px; height: 22px; opacity: .55; }
.rank-thumb--ph b {
  position: absolute; bottom: 2px; right: 3px;
  font-size: .62rem; font-weight: 800; line-height: 1;
  background: rgba(255,255,255,.92);
  color: #2D3BFF;
  padding: 1px 4px;
  border-radius: 4px;
  font-style: normal;
}
body.theme-dark .rank-thumb--ph b {
  background: rgba(15,23,42,.92);
  color: #a5b4fc;
}


/* ────────────────────────────────────────────────────────────────
   LANDING EDITOR & LIST — Sprint 2 v2 (mobile-first responsive)
   ──────────────────────────────────────────────────────────────── */

/* ── List page ─── */
.lls-page { max-width: 1100px; margin: 0 auto; padding: 18px 14px 60px; }
.lls-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.lls-back { color: #6B7280; text-decoration: none; font-size: .85rem; font-weight: 600; display: inline-block; margin-bottom: 8px; }
.lls-back:hover { color: #2D3BFF; }
.lls-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.lls-sub { color: #6B7280; font-size: .9rem; margin: 0; max-width: 60ch; }
.lls-sub code { font-family: ui-monospace, monospace; background: #F3F4F6; padding: 1px 6px; border-radius: 4px; font-size: .82rem; }
.lls-cta { background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 18px rgba(45,59,255,.28); white-space: nowrap; }
.lls-cta:hover { box-shadow: 0 10px 28px rgba(45,59,255,.4); }
.lls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lls-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; overflow: hidden; transition: box-shadow .15s, transform .1s; }
.lls-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.lls-card--pub { border-color: rgba(45,59,255,.25); }
.lls-card-clickable { display: block; text-decoration: none; color: inherit; }
.lls-card-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(45,59,255,.08), rgba(123,92,255,.08)); display: flex; align-items: center; justify-content: center; }
.lls-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lls-card-thumb-ph { font-size: 3rem; font-weight: 800; color: #7B5CFF; opacity: .5; }
.lls-card-status { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); color: #4B5563; font-size: .65rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; }
.lls-card--pub .lls-card-status { background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff; }
.lls-card-body { padding: 12px 14px 8px; }
.lls-card-title { font-size: .98rem; font-weight: 700; margin: 0 0 4px; color: #0F172A; line-height: 1.3; }
.lls-card-meta { font-size: .82rem; color: #6B7280; }
.lls-card-slug { font-family: ui-monospace, monospace; font-size: .76rem; }
.lls-card-actions { display: flex; gap: 6px; padding: 8px 12px 12px; flex-wrap: wrap; }
.lls-btn { font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; border: 1px solid #E5E7EB; background: #fff; color: #4B5563; cursor: pointer; text-decoration: none; }
.lls-btn:hover { background: #F9FAFB; color: #2D3BFF; border-color: #C7D2FE; }
.lls-btn--ghost { background: transparent; }
.lls-btn--danger { color: #DC2626; }
.lls-btn--danger:hover { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }
.lls-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; background: #fff; border: 2px dashed #E5E7EB; border-radius: 14px; }
.lls-empty-icon { font-size: 3rem; opacity: .35; margin-bottom: 14px; }
.lls-empty h3 { margin: 0 0 8px; font-size: 1.2rem; }
.lls-empty p { color: #6B7280; max-width: 50ch; margin: 0 auto 22px; }

/* ── Editor page ─── */
.le-page { background: #FAFBFF; min-height: calc(100vh - var(--header-h, 56px)); display: flex; flex-direction: column; }
.le-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
}
.le-back { color: #6B7280; text-decoration: none; font-size: .85rem; font-weight: 600; }
.le-back:hover { color: #2D3BFF; }
.le-title-mini { flex: 1; min-width: 0; font-size: .95rem; font-weight: 700; color: #0F172A; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.le-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.le-save-indicator { font-size: .8rem; color: #6B7280; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.le-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.le-dot--dirty  { background: #F59E0B; }
.le-dot--saving { background: #2D3BFF; animation: lePulse 1s infinite; }
.le-dot--saved  { background: #10B981; }
.le-dot--error  { background: #EF4444; }
@keyframes lePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.le-btn { background: rgba(0,0,0,.05); color: #0F172A; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; padding: 8px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.le-btn:hover:not(:disabled) { background: rgba(0,0,0,.09); }
.le-btn:disabled { opacity: .4; cursor: not-allowed; }
.le-btn--primary { background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff; border-color: transparent; }
.le-btn--primary:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(45,59,255,.32); }
.le-btn--ghost { background: transparent; }
.le-btn--xs { padding: 4px 10px; font-size: .75rem; }

/* Body — stack by default (preview below) */
.le-body { flex: 1; display: flex; flex-direction: column; gap: 0; }
.le-editor-col { background: #fff; padding: 18px 16px; }
.le-preview-col { background: #0F172A; min-height: 70vh; display: flex; flex-direction: column; }
.le-preview-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
#le-preview-iframe { flex: 1; border: none; background: #fff; width: 100%; min-height: 70vh; }

/* Side-by-side mode (≥1100px) — opt-in via .le-layout--side */
@media (min-width: 1100px) {
  .le-layout--side .le-body { flex-direction: row; height: calc(100vh - var(--header-h, 56px) - 56px); overflow: hidden; }
  .le-layout--side .le-editor-col { flex: 0 0 480px; overflow-y: auto; padding: 22px 20px; border-right: 1px solid #E5E7EB; }
  .le-layout--side .le-preview-col { flex: 1; min-height: 0; }
  .le-layout--side #le-preview-iframe { min-height: 0; }
}

/* Tabs */
.le-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid #E5E7EB;
  margin: 0 -16px 18px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.le-tabs::-webkit-scrollbar { display: none; }
.le-tab { background: transparent; border: none; padding: 12px 14px; font-size: .9rem; font-weight: 600; color: #6B7280; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0; }
.le-tab:hover { color: #0F172A; }
.le-tab.active { color: #2D3BFF; border-bottom-color: #2D3BFF; }
.le-tab-body.hidden { display: none; }

/* Fields */
.le-field { display: block; margin-bottom: 16px; }
.le-field > span { display: block; font-size: .82rem; font-weight: 600; color: #4B5563; margin-bottom: 6px; }
.le-field input,
.le-field select,
.le-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;            /* >=16px prevents iOS auto-zoom */
  background: #fff;
  color: #0F172A;
  appearance: none;
  -webkit-appearance: none;
}
.le-field input:focus,
.le-field textarea:focus,
.le-field select:focus { outline: none; border-color: #2D3BFF; box-shadow: 0 0 0 3px rgba(45,59,255,.08); }
.le-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; font-size: 15px; }
.le-field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236B7280' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.le-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .le-row-2 { grid-template-columns: 1fr; } }

.le-url-info { font-size: .82rem; color: #6B7280; padding: 12px 14px; background: #F3F4F6; border-radius: 8px; margin-top: 12px; line-height: 1.5; }
.le-url-info code { font-family: ui-monospace, monospace; background: #fff; padding: 2px 8px; border-radius: 4px; word-break: break-all; }

/* Images */
.le-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.le-img-card { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #F3F4F6; border: 1px solid #E5E7EB; }
.le-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.le-img-hero { position: absolute; top: 4px; left: 4px; background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff; font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 4px; letter-spacing: .04em; }
.le-img-actions { position: absolute; bottom: 0; right: 0; display: flex; gap: 2px; padding: 4px; }
.le-img-actions button { background: rgba(0,0,0,.7); color: #fff; border: none; border-radius: 4px; width: 26px; height: 26px; cursor: pointer; font-size: .8rem; }
.le-img-actions button:hover { background: #2D3BFF; }
.le-img-empty { color: #6B7280; font-size: .9rem; padding: 24px; text-align: center; background: #F9FAFB; border: 1px dashed #D1D5DB; border-radius: 10px; }
.le-upload-zone { display: block; padding: 22px 16px; border: 2px dashed #D1D5DB; border-radius: 12px; text-align: center; cursor: pointer; color: #4B5563; transition: border-color .15s, background .15s; }
.le-upload-zone:hover { border-color: #2D3BFF; background: rgba(45,59,255,.04); }
.le-upload-zone span { display: block; font-weight: 700; margin-bottom: 4px; font-size: .95rem; }
.le-upload-zone small { color: #9CA3AF; font-size: .78rem; }

/* Theme picker */
.le-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.le-theme-card { background: #fff; border: 2px solid #E5E7EB; border-radius: 12px; padding: 8px; cursor: pointer; transition: border-color .15s, transform .1s; }
.le-theme-card:hover { transform: translateY(-2px); border-color: #C7D2FE; }
.le-theme-card.is-active { border-color: #2D3BFF; box-shadow: 0 0 0 3px rgba(45,59,255,.12); }
.le-theme-preview { aspect-ratio: 16/10; border-radius: 6px; margin-bottom: 6px; }
.le-theme-name { font-size: .82rem; font-weight: 600; color: #0F172A; text-align: center; }

/* Tracking */
.le-track-info { color: #6B7280; font-size: .88rem; margin: 0 0 14px; padding: 10px 12px; background: #FFFBEB; border-left: 3px solid #F59E0B; border-radius: 4px; }

/* Mobile tweaks */
@media (max-width: 720px) {
  .le-topbar { padding: 8px 12px; gap: 8px; }
  .le-title-mini { font-size: .88rem; flex-basis: 100%; order: 99; }
  .le-actions { width: 100%; justify-content: flex-end; }
  .le-editor-col { padding: 14px 12px; }
  .le-tabs { margin: 0 -12px 14px; padding: 0 10px; }
}


/* ── Editor: SVG tab icons + better upload zone (Sprint 2 polish) ── */
.le-tab { display: inline-flex; align-items: center; gap: 7px; padding: 12px 16px; }
.le-tab-ico { width: 17px; height: 17px; flex-shrink: 0; }
.le-tab span { font-weight: 600; }

.le-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: 36px 22px;
  border: 2px dashed #D1D5DB;
  border-radius: 14px;
  text-align: center; cursor: pointer;
  color: #4B5563;
  background: #FAFBFF;
  transition: border-color .15s, background .15s, transform .1s;
}
.le-upload-zone:hover { border-color: #2D3BFF; background: rgba(45,59,255,.04); }
.le-upload-zone:active { transform: scale(.99); }
.le-upload-zone.is-dragover { border-color: #2D3BFF; background: rgba(45,59,255,.08); border-style: solid; transform: scale(1.01); }
.le-upload-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(45,59,255,.10), rgba(123,92,255,.10));
  display: flex; align-items: center; justify-content: center;
  color: #2D3BFF;
}
.le-upload-icon svg { width: 28px; height: 28px; }
.le-upload-text { font-size: 1rem; color: #0F172A; }
.le-upload-text strong { font-weight: 700; color: #2D3BFF; }
.le-upload-meta { font-size: .8rem; color: #6B7280; line-height: 1.5; max-width: 360px; }
.le-upload-meta b { color: #2D3BFF; font-weight: 700; }

/* Image grid improvements: smoother hover, better overlay */
.le-img-card { transition: transform .15s, box-shadow .15s; }
.le-img-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.le-img-actions {
  opacity: 0; transition: opacity .15s;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 100%);
  inset: 0 0 0 0; padding: 0; align-items: flex-end; justify-content: flex-end;
}
.le-img-card:hover .le-img-actions { opacity: 1; }
.le-img-actions button { width: 30px; height: 30px; margin: 4px; }


/* ── Custom domain section in landing editor (Sprint 4) ── */
.le-domain-section { margin-top: 16px; }
.le-domain-loading { font-size: .85rem; color: #6B7280; padding: 12px; }
.le-domain-card {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(45,59,255,.04), rgba(123,92,255,.04));
  border: 1px solid rgba(45,59,255,.18);
  border-radius: 12px;
  font-size: .92rem;
}
.le-domain-card--ok { background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(45,59,255,.04)); border-color: rgba(16,185,129,.32); }
.le-domain-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.le-domain-pill { font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff; text-transform: uppercase; }
.le-domain-pill--ok { background: #10b981; }
.le-domain-sub { color: #4B5563; margin: 6px 0; line-height: 1.55; }
.le-domain-sub code { background: #fff; padding: 1px 6px; border-radius: 4px; font-family: ui-monospace,monospace; font-size: .82rem; }
.le-domain-form { display: flex; gap: 8px; margin-top: 10px; }
.le-domain-form input { flex: 1; padding: 10px 12px; border: 1px solid #E5E7EB; border-radius: 8px; font-family: ui-monospace,monospace; font-size: 16px; }
.le-domain-cname { background: #0F172A; color: #d4d4d8; padding: 12px 14px; border-radius: 8px; font-size: .82rem; font-family: ui-monospace,monospace; margin: 10px 0; overflow-x: auto; }
.le-domain-help { color: #6B7280; font-size: .85rem; margin: 8px 0 12px; }
.le-domain-msg { margin-top: 10px; font-size: .85rem; min-height: 1.3em; }

/* Modal */
.le-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: leFadeIn .15s; }
@keyframes leFadeIn { from { opacity: 0; } to { opacity: 1; } }
.le-modal { background: #1e293b; border-radius: 16px; max-width: 460px; width: 100%; color: #fff; }
.le-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.le-modal-close { background: rgba(255,255,255,.08); color: #fff; border: none; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; }
.le-modal-close:hover { background: rgba(255,255,255,.14); }
.le-modal-body { padding: 20px; }


/* Editor field hint */
.le-field-hint { display: block; margin-top: 6px; color: #6B7280; font-size: .8rem; line-height: 1.5; }


/* ── Creator Tracker cards (Sprint Tracker) ── */
.crc-card {
  background: #fff; border: 1px solid #E5E7EB;
  border-radius: 14px; padding: 18px;
  margin-bottom: 16px;
}
.crc-head { display: flex; align-items: center; gap: 14px; }
.crc-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #2D3BFF, #7B5CFF); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.3rem; }
.crc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.crc-id { flex: 1; min-width: 0; }
.crc-name { font-size: 1.05rem; font-weight: 800; color: #0F172A; }
.crc-handle { color: #6B7280; font-size: .85rem; }
.crc-handle a { color: #2D3BFF; text-decoration: none; }
.crc-actions { display: flex; align-items: center; gap: 8px; }
.crc-status { font-size: .72rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.crc-st-ok   { background: #d1fae5; color: #065f46; }
.crc-st-wait { background: #fef3c7; color: #92400e; }
.crc-st-err  { background: #fee2e2; color: #991b1b; }
.crc-btn { background: rgba(0,0,0,.05); border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: .85rem; }
.crc-btn:hover { background: rgba(45,59,255,.10); color: #2D3BFF; }
.crc-btn--del:hover { background: #fee2e2; color: #991b1b; }
.crc-error { margin-top: 10px; font-size: .82rem; color: #991b1b; background: #fee2e2; padding: 8px 12px; border-radius: 6px; }
.crc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding: 12px; background: #F9FAFB; border-radius: 10px; }
.crc-stats > div { text-align: center; }
.crc-stats b { display: block; font-size: 1.2rem; font-weight: 800; color: #0F172A; }
.crc-stats span { font-size: .75rem; color: #6B7280; }
.crc-vsec { margin-top: 18px; }
.crc-vsec h4 { font-size: .8rem; font-weight: 700; color: #4B5563; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.crc-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.crc-vid { display: block; text-decoration: none; color: inherit; border-radius: 10px; overflow: hidden; transition: transform .12s; }
.crc-vid:hover { transform: translateY(-2px); }
.crc-vid-thumb { aspect-ratio: 9/16; background: #F3F4F6; overflow: hidden; position: relative; }
.crc-vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.crc-vid-meta { display: flex; justify-content: space-between; padding: 6px 8px; font-size: .72rem; color: #6B7280; background: #F9FAFB; }
.tracker-empty { color: #6B7280; padding: 40px 20px; text-align: center; background: #F9FAFB; border: 1px dashed #D1D5DB; border-radius: 10px; }


/* ── Creator card: mini-bolsa + videos details ── */
.crc-delta { display: inline-block; font-size: .68rem; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-left: 3px; vertical-align: middle; letter-spacing: .02em; }
.crc-delta--up   { background: #d1fae5; color: #065f46; }
.crc-delta--down { background: #fee2e2; color: #991b1b; }
.crc-delta-since { color: #9CA3AF; font-size: .72rem; text-align: center; margin: 4px 0 0; padding-bottom: 6px; }
.crc-stats { grid-template-columns: repeat(4, 1fr) !important; }
.crc-videos-details { margin-top: 14px; }
.crc-videos-details > summary { cursor: pointer; padding: 10px 14px; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; font-size: .85rem; font-weight: 700; color: #2D3BFF; user-select: none; }
.crc-videos-details > summary:hover { background: #F3F4F6; }
.crc-videos-details[open] > summary { background: rgba(45,59,255,.06); border-color: rgba(45,59,255,.2); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.crc-no-videos { color: #6B7280; font-size: .85rem; padding: 16px; text-align: center; }
.crc-btn--link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.crc-vid-title { font-size: .72rem; padding: 4px 8px; color: #4B5563; line-height: 1.35; max-height: 2.7em; overflow: hidden; }
@media (max-width: 580px) { .crc-stats { grid-template-columns: repeat(2, 1fr) !important; } }


/* ── Tracker: Creative Center cards + sub-tabs ── */
.tracker-subtabs { display: flex; gap: 4px; padding: 4px; background: #F3F4F6; border-radius: 999px; width: fit-content; margin: 12px 0 18px; }
.tracker-subtab { background: transparent; border: none; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #6B7280; cursor: pointer; }
.tracker-subtab:hover { color: #0F172A; }
.tracker-subtab.active { background: #fff; color: #2D3BFF; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tracker-cc-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tracker-cc-toolbar label { font-size: .82rem; color: #4B5563; font-weight: 600; }
.tracker-cc-toolbar select { padding: 6px 10px; border: 1px solid #E5E7EB; border-radius: 6px; font-size: .85rem; background: #fff; }

.cc-ranking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.cc-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; transition: border-color .12s; }
.cc-card:hover { border-color: #C7D2FE; }
.cc-rank { font-weight: 800; color: #2D3BFF; font-size: .95rem; min-width: 32px; }
.cc-body { flex: 1; min-width: 0; }
.cc-name { font-weight: 700; color: #0F172A; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-name small { color: #6B7280; font-weight: 500; }
.cc-meta { font-size: .75rem; color: #6B7280; }
.cc-link { color: #2D3BFF; text-decoration: none; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.cc-link:hover { background: rgba(45,59,255,.08); }
.cc-stale-warn { margin-top: 14px; padding: 10px 14px; background: #FFFBEB; border-left: 3px solid #F59E0B; border-radius: 4px; font-size: .82rem; color: #92400E; }


/* ═══ RADAR DE SENTIMENTO v2 ═══════════════════════════════════ */

.radar-card-v2 {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), rgba(34, 211, 238, 0.03));
  border: 1px solid var(--bord, #e5e7eb);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.radar-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(167, 139, 250, 0.08), transparent 60%);
  pointer-events: none;
}

.radar-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.radar-card-img,
.radar-card-img-fallback {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--bord, #e5e7eb);
  flex-shrink: 0;
}
.radar-card-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7B5CFF, #00D4FF);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.radar-card-prod {
  flex: 1;
  min-width: 0;
}
.radar-card-platform {
  font-size: 0.62rem;
  color: var(--dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 2px;
}
.radar-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #1F2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-card-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.radar-gauge-svg {
  width: 56px;
  height: 56px;
}
.radar-gauge-legend {
  display: flex;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--dim, #94a3b8);
  font-family: ui-monospace, monospace;
}
.radar-gauge-legend-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.radar-gauge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.radar-card-quote {
  font-size: 0.88rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--text, #1F2937);
  padding: 6px 4px;
  text-align: center;
  position: relative;
  z-index: 1;
  max-height: 4.2em;
  overflow: hidden;
}

.radar-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--dim, #94a3b8);
  position: relative;
  z-index: 1;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.radar-handle {
  color: #7B5CFF;
  font-weight: 600;
  font-size: 0.7rem;
}

.radar-card-likes {
  font-weight: 600;
  color: var(--text, #1F2937);
}

.radar-card-sentiment {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.radar-card-sentiment--positive { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.radar-card-sentiment--negative { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.radar-card-sentiment--neutral  { background: rgba(148, 163, 184, 0.12); color: #64748b; }

/* Pulsing border based on sentiment — subtle */
.radar-card-v2.radar-card--positive { box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15), 0 4px 16px rgba(16, 185, 129, 0.05); }
.radar-card-v2.radar-card--negative { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.15), 0 4px 16px rgba(239, 68, 68, 0.05); }
.radar-card-v2.radar-card--neutral  { box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04); }

@media (prefers-reduced-motion: reduce) {
  .radar-gauge-svg circle animate { display: none; }
}

/* ═══ Sala/Top Picks · Amazon detail card (ported from tiktok-premium.css) ═══ */
.shop-detail-amazon-info {
  padding: 8px 0 4px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --amz-text: #1f2333; --amz-text-bright: #0f172a; --amz-text-soft: #475569; --amz-text-dim: #94a3b8;
  --amz-card-bg: rgba(0,0,0,0.012); --amz-card-bg-strong: rgba(0,0,0,0.02); --amz-card-bg-hover: rgba(0,0,0,0.04);
  --amz-card-border: rgba(0,0,0,0.08); --amz-card-border-strong: rgba(0,0,0,0.12);
  --amz-meta-grad-start: rgba(0,0,0,0.025); --amz-meta-grad-end: rgba(0,0,0,0.005);
  --amz-accent-cyan: #0891b2; --amz-accent-amber: #d97706;
  --amz-accent-violet: #7c3aed; --amz-accent-neutral: rgba(31,35,51,0.6);
  --amz-link-bg: rgba(8,145,178,0.06); --amz-link-border: rgba(8,145,178,0.30); --amz-link-color: #0891b2;
}
.amz-meta-head {
  padding: 14px 16px; margin: 0 0 14px;
  background: linear-gradient(180deg, var(--amz-meta-grad-start), var(--amz-meta-grad-end));
  border: 1px solid var(--amz-card-border); border-radius: 10px; position: relative; overflow: hidden;
}
.amz-meta-head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8,145,178,0.5), rgba(124,58,237,0.5), transparent);
}
.amz-meta-eyebrow {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amz-accent-cyan); font-weight: 600; margin-bottom: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.amz-meta-title { margin: 0 0 8px; font-size: 14.5px; line-height: 1.35; font-weight: 600; color: var(--amz-text-bright); }
.amz-meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 11.5px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.amz-meta-brand { color: var(--amz-text-soft); letter-spacing: 0.03em; }
.amz-meta-price { color: #047857; font-weight: 700; font-size: 13px; }
.amz-meta-cache { opacity: 0.45; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--amz-card-border-strong); padding: 1px 6px; border-radius: 2px; color: var(--amz-text-dim); }

.amz-card {
  position: relative; padding: 14px 16px; margin: 0 0 12px;
  background: var(--amz-card-bg); border: 1px solid var(--amz-card-border); border-radius: 10px;
  backdrop-filter: blur(4px); overflow: hidden; transition: border-color 200ms ease, background 200ms ease;
}
.amz-card::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: linear-gradient(90deg, transparent, var(--amz-accent, rgba(0,0,0,0.15)), transparent); }
.amz-card:hover { background: var(--amz-card-bg-hover); }
.amz-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--amz-accent); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.amz-card-head svg { width: 14px; height: 14px; flex-shrink: 0; }
.amz-card-bullets { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.6; color: var(--amz-text); }
.amz-card-bullets li { position: relative; padding: 3px 0 3px 16px; }
.amz-card-bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border: 1px solid var(--amz-accent); background: transparent; transform: rotate(45deg); }
.amz-card-body { font-size: 12px; line-height: 1.6; color: var(--amz-text); max-height: 260px; overflow-y: auto; }
.amz-card-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.amz-card-prose { white-space: pre-wrap; }
.amz-card-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 11px; margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.amz-card-dl dt { color: var(--amz-text-dim); }
.amz-card-dl dd { margin: 0; color: var(--amz-text-bright); }
.amz-card-about       { --amz-accent: var(--amz-accent-cyan); }
.amz-card-important   { --amz-accent: var(--amz-accent-amber); }
.amz-card-description { --amz-accent: var(--amz-accent-neutral); }
.amz-card-ficha       { --amz-accent: var(--amz-accent-violet); }
.amz-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; background: var(--amz-link-bg); border: 1px solid var(--amz-link-border); border-radius: 4px; color: var(--amz-link-color); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'JetBrains Mono', ui-monospace, monospace; text-decoration: none; transition: all 160ms ease; }
.amz-card-link svg { width: 11px; height: 11px; }
.amz-card-link:hover { background: rgba(8,145,178,0.12); border-color: rgba(8,145,178,0.5); }

/* Cross-Reference grid */
.amz-cross-section { margin-top: 18px; }
.amz-cross-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; margin: 0 0 12px; border-bottom: 1px solid var(--amz-card-border); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amz-text-soft); font-weight: 600; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.amz-cross-head svg { width: 14px; height: 14px; color: var(--amz-accent-cyan); }
.amz-cross-sub { margin-left: auto; font-size: 9px; color: var(--amz-text-dim); letter-spacing: 0.18em; }
.amz-cross-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.amz-cross-card { position: relative; background: var(--amz-card-bg-strong); border: 1px solid var(--amz-card-border); border-radius: 8px; padding: 8px; cursor: pointer; transition: all 160ms ease; display: flex; flex-direction: column; gap: 8px; }
.amz-cross-card:hover { border-color: rgba(8,145,178,0.4); background: rgba(8,145,178,0.03); transform: translateY(-1px); }
.amz-cross-card.is-picked { border-color: rgba(8,145,178,0.6); box-shadow: inset 0 0 0 1px rgba(8,145,178,0.25), 0 0 16px rgba(8,145,178,0.1); background: rgba(8,145,178,0.04); }
.amz-cross-img-wrap { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.amz-cross-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.amz-cross-body { display: flex; flex-direction: column; gap: 6px; min-height: 56px; }
.amz-cross-title { font-size: 11px; line-height: 1.4; color: var(--amz-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.amz-cross-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; }
.amz-cross-score { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amz-accent-cyan); font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }
.amz-cross-link { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: var(--amz-text-dim); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; font-family: 'JetBrains Mono', ui-monospace, monospace; padding: 2px 6px; border: 1px solid var(--amz-card-border-strong); border-radius: 3px; }
.amz-cross-link:hover { color: var(--amz-accent-cyan); border-color: rgba(8,145,178,0.45); }
.amz-cross-picked-badge { position: absolute; top: 6px; right: 6px; background: rgba(8,145,178,0.18); border: 1px solid rgba(8,145,178,0.5); color: var(--amz-accent-cyan); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 1px 6px; border-radius: 2px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }

/* Sala panel-specific additions */
.tp-mat-amazon-host { margin-top: 14px; }
.tp-mat-amazon-loading { padding: 18px; text-align: center; color: var(--text-secondary, #64748b); font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.tp-mat-amazon-error { padding: 14px; background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 8px; color: #7F1D1D; font-size: 0.82rem; }
.tp-mat-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #cbd5e1; border-top-color: #7B5CFF; border-radius: 50%; animation: tpSpin 0.9s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes tpSpin { to { transform: rotate(360deg); } }
.tp-mat-brief-btn { margin-top: 12px; padding: 10px 18px; background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff; border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.15s ease; font-family: inherit; width: 100%; }
.tp-mat-brief-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(123,92,255,0.32); }
.tp-mat-brief-btn.copied { background: linear-gradient(135deg, #10B981, #059669); }

/* Dark-mode safety */
body.dark-mode .shop-detail-amazon-info, html[data-theme="dark"] body .shop-detail-amazon-info {
  --amz-text: rgba(255,255,255,0.82); --amz-text-bright: rgba(255,255,255,0.92); --amz-text-soft: rgba(255,255,255,0.65); --amz-text-dim: rgba(255,255,255,0.42);
  --amz-card-bg: rgba(255,255,255,0.015); --amz-card-bg-strong: rgba(255,255,255,0.02); --amz-card-bg-hover: rgba(255,255,255,0.025);
  --amz-card-border: rgba(255,255,255,0.05); --amz-card-border-strong: rgba(255,255,255,0.08);
  --amz-accent-cyan: #00f2fe; --amz-accent-amber: #ffb947; --amz-accent-violet: #a78bfa;
}

/* Connect GPU banner state variants */
.cg-paired-banner.is-online { background: linear-gradient(135deg, #ECFDF5, #F0FDFA); border-color: #6EE7B7; }
.cg-paired-banner.is-offline { background: linear-gradient(135deg, #FEF2F2, #FEF6F6); border-color: #FCA5A5; box-shadow: 0 4px 16px rgba(239,68,68,.10); }
.cg-paired-banner.is-offline .cg-paired-check { background: linear-gradient(135deg, #94A3B8, #64748B); box-shadow: 0 4px 12px rgba(100,116,139,.4); }
.cg-paired-banner.is-offline .cg-paired-banner-h { color: #991B1B; }
.cg-paired-banner.is-offline .cg-paired-banner-sub { color: #B91C1C; }
.cg-paired-banner.is-unknown { background: linear-gradient(135deg, #F8FAFC, #F1F5F9); border-color: #CBD5E1; }
.cg-paired-banner.is-unknown .cg-paired-check { background: linear-gradient(135deg, #94A3B8, #64748B); }
.cg-paired-banner.is-unknown .cg-paired-banner-h { color: #475569; }


/* Allow the dim backdrop itself to scroll as a last-resort safety net.
   On very small viewports, .modal-card already handles overflow internally,
   but if browser can't honor max-height we still don't lose access. */
.modal {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Cap card height and switch to flex column so internal regions can scroll. */
.modal .modal-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);     /* leave room for .modal's 16px padding */
  max-height: calc(100dvh - 32px);    /* dvh for mobile browsers with dynamic UI chrome */
}

/* Head stays at top, doesn't shrink, can sit above the scroll. */
.modal .modal-card > .modal-head {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 3;
}

/* The form / body is the scrollable region.
   `min-height: 0` is CRITICAL — without it, a flex child won't shrink
   below its content size, so overflow-y has nothing to clip. */
.modal .modal-card > .composer-body,
.modal .modal-card > form.composer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* Keep the action footer (Salvar / Enviar) anchored even when scrolling.
   It's rendered inside .composer-body, so position: sticky binds to that
   scroll container — exactly what we want. */
.modal .modal-card .composer-body > .composer-foot {
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
  margin-top: 16px;
  padding-top: 12px;
  padding-bottom: 4px;
  border-top: 1px solid var(--sep-h, rgba(255,255,255,0.08));
  z-index: 2;
}

/* Error / status message under the foot still visible. */
.modal .modal-card .composer-body > .form-msg {
  position: relative;
  z-index: 1;
}

/* ── Mobile / small-viewport: bottom-sheet style ───────────────── */
@media (max-width: 879px) {
  /* Existing rules at line ~1232 already set:
       .modal { padding: 0; align-items: flex-end; }
       .modal-card { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
     We extend with a tighter height cap and natural-scroll alignment. */
  .modal { align-items: flex-end; }
  .modal .modal-card {
    max-height: 92vh;
    max-height: 92dvh;
    width: 100%;
  }
  /* iOS focus zoom prevention — input/select/textarea must be >= 16px */
  .modal .modal-card input[type="text"],
  .modal .modal-card input[type="number"],
  .modal .modal-card input[type="email"],
  .modal .modal-card input[type="tel"],
  .modal .modal-card input[type="url"],
  .modal .modal-card input[type="password"],
  .modal .modal-card textarea,
  .modal .modal-card select {
    font-size: 16px;
  }
  /* Padding compensation so the last input isn't hidden behind sticky foot */
  .modal .modal-card > .composer-body,
  .modal .modal-card > form.composer-body {
    padding-bottom: 12px;
  }
}

/* Very small / landscape phones: center alignment looks worse than top-anchored.
   Browsers without dvh support still get something usable. */
@media (max-height: 640px) {
  .modal { align-items: flex-start; }
  .modal .modal-card {
    max-height: calc(100vh - 16px);
    margin: 8px 0;
  }
}

/* Backwards-compat: if the existing rule sets align-items: center on .modal
   (large screens), allow the scroll-on-modal fallback above to still let the
   user reach the top by scrolling the dimmed backdrop. */

/* ════════════════════════════════════════════════════════════════
   HAON_LANG_NOTEPAD_TTS_v1 — Notepad TTS + Lang chip + Toast
   ════════════════════════════════════════════════════════════════ */

/* ─── Notepad overlay speaker button ──────────────────────────── */
.np-ov-head .ovbtn-tts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
}
.np-ov-head .ovbtn-tts svg { display: block; }
.np-ov-head .ovbtn-tts.is-speaking {
  background: #00D4FF !important;
  color: #fff !important;
  border-color: #00D4FF !important;
  animation: haonTtsPulse 1.1s ease-in-out infinite;
}

/* ─── Notepad full-page speaker button ─────────────────────────── */
.np-title-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.np-title-row .np-title-input { flex: 1; }
.np-tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #c4b5fd;
  background: #faf5ff;
  color: #7c3aed;
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.np-tts-btn:hover { background: #f3e8ff; transform: translateY(-1px); }
.np-tts-btn:active { transform: translateY(0); }
.np-tts-btn.is-speaking {
  background: linear-gradient(135deg, #00D4FF, #7B5CFF);
  color: #fff;
  border-color: transparent;
  animation: haonTtsPulse 1.1s ease-in-out infinite;
}
.np-tts-btn.is-speaking .np-tts-label::after { content: '…'; margin-left: 2px; }
@media (max-width: 520px) {
  .np-tts-btn .np-tts-label { display: none; }
  .np-tts-btn { padding: 8px 10px; }
}
body.dark-mode .np-tts-btn, html[data-theme="dark"] body .np-tts-btn {
  background: #1a1f33; color: #c4b5fd; border-color: #2d2b4a;
}
body.dark-mode .np-tts-btn:hover, html[data-theme="dark"] body .np-tts-btn:hover {
  background: #2d2b4a;
}

@keyframes haonTtsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,.55); }
  50%      { box-shadow: 0 0 0 6px rgba(0,212,255,0); }
}

/* ─── Lang chip in topbar ─────────────────────────────────────── */
.haon-lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.haon-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  min-width: auto;
  width: auto !important;
  height: auto !important;
}
.haon-lang-chip:hover {
  background: rgba(123, 92, 255, .08);
  border-color: rgba(123, 92, 255, .25);
}
.haon-lang-chip .haon-lang-flag {
  font-size: 1rem;
  line-height: 1;
}
.haon-lang-chip .haon-lang-short {
  letter-spacing: .03em;
}
.haon-lang-chip.is-pulse {
  animation: haonChipPulse 1.6s ease-in-out infinite;
}
@keyframes haonChipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,59,255,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(45,59,255,0); }
}

.haon-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  padding: 6px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.haon-lang-menu.hidden { display: none; }
.haon-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: #1f2937;
  font-family: inherit;
  font-size: .85rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.haon-lang-item:hover { background: #f3f4f6; }
.haon-lang-item.is-current { background: #F5F3FF; color: #5B21B6; font-weight: 600; }
.haon-lang-item .haon-lang-flag { font-size: 1.05rem; line-height: 1; }
.haon-lang-item .haon-lang-name { flex: 1; }
.haon-lang-item .haon-lang-check { color: #7B5CFF; font-weight: 700; }
body.dark-mode .haon-lang-menu, html[data-theme="dark"] body .haon-lang-menu {
  background: #0f1424; border-color: #2d2b4a; color: #e7eaf2;
}
body.dark-mode .haon-lang-item, html[data-theme="dark"] body .haon-lang-item { color: #e7eaf2; }
body.dark-mode .haon-lang-item:hover, html[data-theme="dark"] body .haon-lang-item:hover { background: #1a1f33; }
body.dark-mode .haon-lang-item.is-current, html[data-theme="dark"] body .haon-lang-item.is-current {
  background: #2d2b4a; color: #c4b5fd;
}


.haon-lang-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120%);
  width: min(92vw, 460px);
  background: #fff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  padding: 14px 16px 12px;
  z-index: 9998;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "emoji body"
    "actions actions";
  gap: 6px 12px;
  font-family: inherit;
  transition: transform .26s cubic-bezier(.2,.8,.2,1.2), opacity .26s;
  opacity: 0;
}
.haon-lang-toast.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
}
.haon-lang-toast-x {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.haon-lang-toast-x:hover { background: #f3f4f6; color: #0f172a; }
.haon-lang-toast-emoji {
  grid-area: emoji;
  font-size: 1.8rem;
  line-height: 1;
  align-self: start;
  padding-top: 2px;
}
.haon-lang-toast-body { grid-area: body; }
.haon-lang-toast-title {
  font-weight: 700;
  font-size: .95rem;
  color: #0f172a;
}
.haon-lang-toast-sub {
  font-size: .82rem;
  color: #64748b;
  margin-top: 2px;
}
.haon-lang-toast-actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.haon-lang-toast-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s, background .15s;
}
.haon-lang-toast-btn:hover { transform: translateY(-1px); }
.haon-lang-toast-btn.primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
}
.haon-lang-toast-btn.ghost {
  background: transparent;
  color: #475569;
  border-color: #cbd5e1;
}
.haon-lang-toast-btn.ghost:hover { background: #f8fafc; }
body.dark-mode .haon-lang-toast, html[data-theme="dark"] body .haon-lang-toast {
  background: #0f1424; color: #e7eaf2; border-color: #2d2b4a;
}
body.dark-mode .haon-lang-toast-title, html[data-theme="dark"] body .haon-lang-toast-title { color: #e7eaf2; }
body.dark-mode .haon-lang-toast-sub, html[data-theme="dark"] body .haon-lang-toast-sub { color: #94a3b8; }
body.dark-mode .haon-lang-toast-btn.ghost, html[data-theme="dark"] body .haon-lang-toast-btn.ghost {
  color: #cbd5e1; border-color: #2d2b4a;
}
body.dark-mode .haon-lang-toast-btn.ghost:hover, html[data-theme="dark"] body .haon-lang-toast-btn.ghost:hover {
  background: #1a1f33;
}

/* ─── Mini toast for translation notice ───────────────────────── */
.haon-mini-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 24px);
  background: rgba(15, 20, 36, .96);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: .82rem;
  font-family: inherit;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-width: 92vw;
  text-align: center;
}
.haon-mini-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ──────────────────────────────────────────────────────────────────
   LANG_CHIP_MOBILE_GLOW_V1 + DISCOVER_SEARCH_V1
   Added 2026-05-18 — Mobile-first-login lang chip glow + Descobrir
   in-page search (mobile + desktop)
   ──────────────────────────────────────────────────────────────────*/

/* ── Lang chip: mobile first-login glow + fade-out ─────────────── */
@keyframes haonLangGlow {
  0%   { box-shadow: 0 0 0 0 rgba(123, 92, 255, 0.55), 0 0 12px 2px rgba(0, 212, 255, 0.45); }
  50%  { box-shadow: 0 0 0 6px rgba(123, 92, 255, 0.00), 0 0 18px 6px rgba(0, 212, 255, 0.65); }
  100% { box-shadow: 0 0 0 0 rgba(123, 92, 255, 0.55), 0 0 12px 2px rgba(0, 212, 255, 0.45); }
}
.haon-lang-chip.is-glowing {
  position: relative;
  animation: haonLangGlow 1.15s ease-in-out infinite;
  outline: 2px solid rgba(123, 92, 255, 0.85);
  outline-offset: 2px;
  border-radius: 999px;
}
.haon-lang-wrap.is-fading {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
@media (max-width: 879px) {
  .haon-lang-wrap--hidden-mobile { display: none !important; }
}

/* ── Discover page in-page search ──────────────────────────────── */
.discover-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px 0;
  padding: 0;
}
.discover-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 999px;
  padding: 0 8px 0 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.discover-search-input-wrap:focus-within {
  border-color: #7B5CFF;
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.18);
}
.discover-search-icon {
  color: var(--dim, #999);
  flex-shrink: 0;
  margin-right: 6px;
}
.discover-search-input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 11px 4px;
  color: var(--text, #111);
  min-width: 0;
}
.discover-search-input::placeholder { color: var(--dim, #999); }
.discover-search-clear {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: var(--dim, #999);
  font-size: 22px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px 0 4px;
}
.discover-search-clear:hover { background: rgba(0, 0, 0, 0.06); color: var(--text, #111); }

.discover-search-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dss-chip {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  color: var(--text, #111);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.08s;
}
.dss-chip:hover {
  background: rgba(123, 92, 255, 0.08);
  border-color: rgba(123, 92, 255, 0.4);
}
.dss-chip:active { transform: scale(0.97); }

.discover-results { min-height: 200px; }

/* On mobile, hide the desktop-only skill chips row */
@media (max-width: 879px) {
  .hide-on-mobile { display: none !important; }
  .discover-search-input { font-size: 16px; padding: 13px 4px; }
}
/* END_DISCOVER_SEARCH_V1 */

/* ──────────────────────────────────────────────────────────────────
   COPYWRITING_VIDEO_POLISH_V1 — added 2026-05-18
   - Copywriting: mobile-friendly, no horizontal scroll, premium feel
   - Video Pipeline: dopaminergic glow effects, 100% client-side reaffirmed
   ──────────────────────────────────────────────────────────────────*/

/* ── Copywriting: mobile + premium polish ─────────────────────── */
.copy-page {
  /* prevent any horizontal overflow on mobile */
  max-width: min(900px, 100%);
  box-sizing: border-box;
  overflow-x: hidden;
}
.copy-form {
  /* Each row in copy-form (label + input) should stack cleanly */
  width: 100%;
}
.copy-form input,
.copy-form select,
.copy-form textarea {
  /* iOS Safari zooms on focus if font-size <16px — force ≥16px */
  font-size: max(15px, 16px);
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}
.copy-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.copy-tabs {
  flex-wrap: wrap;
  gap: 4px;
}
.copy-tab {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-output-body {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.copy-output-body pre {
  white-space: pre-wrap;
  overflow-x: auto;
}
@media (max-width: 640px) {
  .copy-page { padding: 16px 12px 60px; }
  .copy-grid-2 { grid-template-columns: 1fr; }
  .copy-hero h1 { font-size: 1.5rem; }
  .copy-tabs { padding: 4px; }
  .copy-tab { font-size: 13px; padding: 8px 10px; }
}
/* Dopaminergic accent on generate button */
.copy-generate-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%);
  background-size: 200% 200%;
  animation: copyGenShimmer 4s ease infinite;
  transition: transform 0.15s, box-shadow 0.2s;
}
.copy-generate-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 28px rgba(123, 92, 255, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.3);
}
@keyframes copyGenShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Video Pipeline: dopaminergic glow ────────────────────────── */
.vp-shell {
  /* prevent any horizontal scroll on mobile */
  max-width: min(880px, 100%);
  box-sizing: border-box;
}
.vp-shell h2 {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF 50%, #00D4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* "privacy" badge gets a stronger glow */
.vp-privacy {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 4px 14px rgba(16, 185, 129, 0.1);
  position: relative;
}
.vp-privacy::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(0, 212, 255, 0.3), rgba(16, 185, 129, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: vpBorderShimmer 6s linear infinite;
  pointer-events: none;
}
@keyframes vpBorderShimmer {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.9; }
  100% { opacity: 0.4; }
}
/* Drop zone glow on hover */
.vp-drop {
  position: relative;
  background: linear-gradient(135deg, #f8fafc, #fff);
  transition: all 0.2s ease;
}
.vp-drop:hover, .vp-drop.is-dragover {
  background: linear-gradient(135deg, #F5F3FF, #EFF6FF);
  border-color: #7B5CFF;
  box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.12), 0 12px 36px rgba(123, 92, 255, 0.18);
  transform: translateY(-1px);
}
.vp-drop::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.3), rgba(0, 212, 255, 0.3));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}
.vp-drop:hover::after, .vp-drop.is-dragover::after {
  opacity: 1;
}
/* Items in list get a subtle pulse */
.vp-item {
  position: relative;
}
.vp-item:hover {
  background: linear-gradient(135deg, #fff, #fafbff);
  border-color: #c4b5fd;
  box-shadow: 0 4px 12px rgba(123, 92, 255, 0.12);
  transform: translateY(-1px);
}
/* Generate button: more dopaminergic */
#vp-go {
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%) !important;
  background-size: 200% 200% !important;
  animation: vpGoShimmer 5s ease infinite;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
#vp-go:not(:disabled):hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 12px 40px rgba(123, 92, 255, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.3) !important;
}
@keyframes vpGoShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.vp-progress-fill {
  /* upgrade the existing shimmer with cyan accent */
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF 40%, #00D4FF 70%, #7B5CFF 100%) !important;
  background-size: 200% 100% !important;
  box-shadow: 0 0 8px rgba(123, 92, 255, 0.4);
}
@media (max-width: 640px) {
  .vp-shell { padding: 0 12px; margin-top: 16px; }
  .vp-shell h2 { font-size: 1.35rem; }
  .vp-controls { font-size: 13px; }
  .vp-sort-btn { padding: 5px 10px; font-size: 12px; }
  .vp-item { padding: 6px 8px; }
  .vp-thumb { width: 40px; height: 40px; }
  .vp-name { font-size: 13px; }
  .vp-meta { font-size: 11px; }
}
/* END_COPYWRITING_VIDEO_POLISH_V1 */

/* ──────────────────────────────────────────────────────────────────
   VIDEO_PIPELINE_AGGRESSIVE_GLOW_V2 — added 2026-05-18
   Always-visible visual effects so the page looks alive idle:
   pulsing dropzone, sparkle particles, animated header, glowing CTA.
   ──────────────────────────────────────────────────────────────────*/

/* ── HEADER: animated gradient title + pulsing underline ───────── */
.vp-shell {
  position: relative;
  padding-top: 8px;
  background: radial-gradient(ellipse at top left, rgba(123,92,255,0.06), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(0,212,255,0.05), transparent 60%);
  border-radius: 18px;
}
.vp-shell h2 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 30%, #00D4FF 60%, #7B5CFF 90%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  animation: vpTitleShimmer 6s ease infinite;
  position: relative;
  display: inline-block;
}
.vp-shell h2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7B5CFF 30%, #00D4FF 70%, transparent);
  border-radius: 2px;
  animation: vpUnderlineSlide 3s ease-in-out infinite;
}
.vp-shell .vp-sub {
  font-size: 1rem !important;
  color: #475569 !important;
  margin-top: 16px !important;
}
@keyframes vpTitleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes vpUnderlineSlide {
  0%, 100% { opacity: 0.6; transform: scaleX(0.8); }
  50%      { opacity: 1; transform: scaleX(1); }
}

/* ── PRIVACY BADGE: stronger glow + emerald pulse ─────────────── */
.vp-privacy {
  font-weight: 500 !important;
  padding: 12px 18px !important;
  font-size: .88rem !important;
  background: linear-gradient(135deg, #ECFDF5, #F0FDF4, #F0FFFA) !important;
  border: 1px solid rgba(16,185,129,0.35) !important;
  box-shadow:
    0 0 0 0 rgba(16,185,129,0.4),
    0 8px 24px -8px rgba(16,185,129,0.25) !important;
  animation: vpPrivacyPulse 3s ease-in-out infinite;
}
.vp-privacy svg { width: 22px !important; height: 22px !important; filter: drop-shadow(0 0 4px rgba(16,185,129,0.6)); }
@keyframes vpPrivacyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4), 0 8px 24px -8px rgba(16,185,129,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.05), 0 12px 28px -8px rgba(16,185,129,0.35); }
}

/* ── CARDS: glassmorphism + glow border ──────────────────────── */
.vp-shell .vp-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,251,255,0.95)) !important;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
  border-radius: 16px !important;
  padding: 22px !important;
  margin-bottom: 16px !important;
  position: relative;
  box-shadow:
    0 4px 16px rgba(123,92,255,0.06),
    0 0 0 1px rgba(123,92,255,0.08) !important;
  backdrop-filter: blur(8px);
}
.vp-shell .vp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(123,92,255,0.4), rgba(0,212,255,0.3), rgba(123,92,255,0.4));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: vpCardBorderShimmer 8s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}
@keyframes vpCardBorderShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── DROP ZONE: always-pulsing border + floating particles ─── */
.vp-drop {
  border: 2px dashed transparent !important;
  background:
    linear-gradient(135deg, #fafbff, #f5f3ff) padding-box,
    linear-gradient(135deg, #7B5CFF, #00D4FF, #7B5CFF) border-box !important;
  background-size: 100% 100%, 300% 100% !important;
  border-radius: 14px !important;
  padding: 36px 20px !important;
  position: relative;
  overflow: hidden;
  animation: vpDropBorderFlow 5s linear infinite;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.vp-drop:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 16px 48px -8px rgba(123,92,255,0.35) !important;
}
.vp-drop strong {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  display: block;
  margin-bottom: 8px !important;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vp-drop span {
  font-size: .9rem !important;
  color: #6B7280 !important;
}
/* Floating sparkle particles inside drop zone */
.vp-drop::before,
.vp-drop::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #00D4FF 30%, transparent);
  pointer-events: none;
}
.vp-drop::before {
  top: 20%; left: 12%;
  animation: vpFloatA 4s ease-in-out infinite;
  box-shadow: 0 0 12px 2px rgba(0,212,255,0.6);
}
.vp-drop::after {
  bottom: 22%; right: 14%;
  background: radial-gradient(circle, #7B5CFF 30%, transparent);
  animation: vpFloatB 5s ease-in-out infinite;
  box-shadow: 0 0 12px 2px rgba(123,92,255,0.6);
  animation-delay: -1.5s;
}
@keyframes vpDropBorderFlow {
  0%   { background-position: 0% 0%, 0% 50%; }
  100% { background-position: 0% 0%, 300% 50%; }
}
@keyframes vpFloatA {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  25%      { transform: translate(20px, -10px); opacity: 1; }
  50%      { transform: translate(40px, 0); opacity: 0.7; }
  75%      { transform: translate(20px, 10px); opacity: 0.9; }
}
@keyframes vpFloatB {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  33%      { transform: translate(-30px, -15px); opacity: 0.9; }
  66%      { transform: translate(-15px, 15px); opacity: 0.6; }
}

/* ── GENERATE BUTTON: massive, always-pulsing, premium ──────── */
#vp-go {
  padding: 18px 28px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 35%, #00D4FF 65%, #7B5CFF 100%) !important;
  background-size: 300% 100% !important;
  border-radius: 14px !important;
  box-shadow:
    0 8px 28px rgba(123,92,255,0.45),
    0 0 0 0 rgba(0,212,255,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2) !important;
  animation: vpGoPulse 3s ease-in-out infinite, vpGoShimmerV2 5s linear infinite;
  position: relative;
  overflow: hidden;
}
#vp-go::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: vpGoSheen 3s ease-in-out infinite;
}
#vp-go:not(:disabled):hover {
  transform: translateY(-3px) scale(1.015) !important;
  box-shadow:
    0 16px 48px rgba(123,92,255,0.55),
    0 0 0 4px rgba(0,212,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
#vp-go:not(:disabled):active {
  transform: translateY(0) scale(1.0) !important;
  transition: all 0.08s !important;
}
@keyframes vpGoPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(123,92,255,0.45), 0 0 0 0 rgba(0,212,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
  50%      { box-shadow: 0 12px 36px rgba(123,92,255,0.55), 0 0 0 8px rgba(0,212,255,0), inset 0 1px 0 rgba(255,255,255,0.2); }
}
@keyframes vpGoShimmerV2 {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes vpGoSheen {
  0%   { left: -100%; }
  60%  { left: 100%; }
  100% { left: 100%; }
}

/* ── SORT CONTROLS: premium pill style ──────────────────────── */
.vp-sort-btn {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  transition: all 0.15s !important;
}
.vp-sort-btn.is-active {
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF) !important;
  border: 1px solid rgba(123,92,255,0.5) !important;
  color: #5B21B6 !important;
  box-shadow: 0 2px 8px rgba(123,92,255,0.18) !important;
}

/* ── LIST ITEMS: premium card style with index badge ────────── */
.vp-item {
  border-radius: 12px !important;
  padding: 10px 14px !important;
  background: linear-gradient(135deg, #fff, #fafbff) !important;
  transition: all 0.15s !important;
  position: relative;
}
.vp-item:hover {
  transform: translateX(2px) !important;
  border-color: rgba(123,92,255,0.4) !important;
  box-shadow: 0 8px 24px rgba(123,92,255,0.18) !important;
}
.vp-idx {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}
.vp-thumb {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
  border-radius: 8px !important;
}

/* ── PROGRESS BAR: bright neon + dual-band ──────────────────── */
.vp-progress {
  background: linear-gradient(135deg, #f8fafc, #f0f4ff) !important;
  border: 1px solid rgba(123,92,255,0.18) !important;
  border-radius: 14px !important;
  padding: 20px !important;
}
.vp-progress-bar {
  height: 8px !important;
  background: #e2e8f0 !important;
  border-radius: 4px !important;
  overflow: hidden;
  position: relative;
}
.vp-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF 35%, #00D4FF 65%, #7B5CFF 100%) !important;
  background-size: 200% 100% !important;
  animation: vpShimV2 1.8s linear infinite !important;
  box-shadow: 0 0 12px rgba(123,92,255,0.6), 0 0 4px rgba(0,212,255,0.8) !important;
}
@keyframes vpShimV2 {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── MOBILE: stack cleanly, no horizontal scroll ────────────── */
@media (max-width: 720px) {
  .vp-shell {
    padding: 0 14px !important;
    margin: 12px auto !important;
  }
  .vp-shell h2 { font-size: 1.55rem !important; }
  .vp-shell .vp-sub { font-size: .9rem !important; }
  .vp-drop {
    padding: 28px 14px !important;
  }
  .vp-drop strong { font-size: 1rem !important; }
  .vp-controls { gap: 4px !important; }
  .vp-sort-btn { font-size: 12px !important; padding: 6px 10px !important; }
  #vp-go {
    padding: 16px 20px !important;
    font-size: .95rem !important;
  }
  .vp-shell .vp-card { padding: 16px !important; border-radius: 14px !important; }
}
/* END_VIDEO_PIPELINE_AGGRESSIVE_GLOW_V2 */

/* ──────────────────────────────────────────────────────────────────
   TERMS_CHECKBOX_PREMIUM_V1 — added 2026-05-18
   Premium custom checkbox + "Termos aceitos" green confirmation pill
   ──────────────────────────────────────────────────────────────────*/
.auth-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  background: #fafbff !important;
  border: 1px solid #e5e7eb !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.auth-consent:hover {
  border-color: rgba(123,92,255,0.35) !important;
  background: #f7f5ff !important;
}
.auth-consent.is-accepted {
  border-color: rgba(16,185,129,0.55) !important;
  background: linear-gradient(135deg, #ECFDF5, #F0FDF4) !important;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.08), 0 4px 14px rgba(16,185,129,0.12) !important;
}

/* Hide native checkbox */
.auth-consent input[type="checkbox"] {
  position: absolute !important;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

/* Custom checkbox indicator via ::before on label */
.auth-consent::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}
.auth-consent:hover::before {
  border-color: #7B5CFF;
}
.auth-consent.is-accepted::before {
  background: linear-gradient(135deg, #10B981, #06b6d4);
  border-color: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}
.auth-consent.is-accepted::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 17px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
  animation: termsCheckPop 0.22s ease-out;
}
@keyframes termsCheckPop {
  0%   { transform: rotate(45deg) scale(0); opacity: 0; }
  60%  { transform: rotate(45deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(45deg) scale(1); opacity: 1; }
}

/* Consent body text */
.auth-consent-text {
  font-size: 0.86rem !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  flex: 1;
}
.auth-consent-text a {
  color: #5B21B6;
  text-decoration: underline;
  font-weight: 500;
}
.auth-consent-text a:hover {
  color: #2D3BFF;
}

/* "Termos aceitos ✓" confirmation pill — hidden unless is-accepted */
.auth-consent-confirm {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #047857;
  background: rgba(16,185,129,0.15);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  align-self: center;
  animation: termsConfirmIn 0.3s ease-out;
}
.auth-consent.is-accepted .auth-consent-confirm {
  display: inline-flex;
}
.auth-consent-confirm svg {
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 0 4px rgba(16,185,129,0.5));
}
@keyframes termsConfirmIn {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mobile: stack confirm pill below text */
@media (max-width: 480px) {
  .auth-consent { flex-wrap: wrap; }
  .auth-consent-confirm {
    margin-top: 4px;
    align-self: flex-start;
  }
}

/* When submit button is enabled (terms accepted), make it visually responsive */
#register-submit-btn:not(:disabled) {
  animation: termsSubmitReady 0.4s ease-out;
}
@keyframes termsSubmitReady {
  0%   { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(123,92,255,0.5); }
  50%  { box-shadow: 0 0 0 8px rgba(123,92,255,0); }
  100% { transform: scale(1); }
}
/* END_TERMS_CHECKBOX_PREMIUM_V1 */

/* ──────────────────────────────────────────────────────────────────
   AUTH_PREMIUM_V1 — added 2026-05-18
   Premium glassmorphism + animated bg for login/signup
   ──────────────────────────────────────────────────────────────────*/

/* ── Auth screen layout: full-bleed with animated bg ─────────── */
#screen-auth:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  overflow-y: auto !important;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(123,92,255,0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(0,212,255,0.18), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(45,59,255,0.12), transparent 60%),
    linear-gradient(135deg, #0a0e27 0%, #131840 50%, #0e1230 100%) !important;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  padding: 24px 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
/* Animated subtle particles in the bg */
#screen-auth::before,
#screen-auth::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
#screen-auth::before {
  background: radial-gradient(circle, #7B5CFF 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: authBgFloat1 18s ease-in-out infinite;
}
#screen-auth::after {
  background: radial-gradient(circle, #00D4FF 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: authBgFloat2 22s ease-in-out infinite;
  animation-delay: -8s;
}
@keyframes authBgFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50%      { transform: translate(80px, 60px) scale(1.15); opacity: 0.6; }
}
@keyframes authBgFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50%      { transform: translate(-100px, -80px) scale(1.2); opacity: 0.55; }
}

/* ── Auth card: glassmorphism premium ───────────────────────── */
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(20, 25, 60, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(123,92,255,0.25) !important;
  border-radius: 20px !important;
  padding: 36px 32px !important;
  width: 100% !important;
  max-width: 440px !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(123,92,255,0.6), rgba(0,212,255,0.4), rgba(123,92,255,0.6));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: authCardBorder 8s linear infinite;
  pointer-events: none;
}
@keyframes authCardBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Auth brand header ────────────────────────────────────── */
.auth-brand {
  text-align: center;
  margin-bottom: 28px !important;
}
.auth-brand-logo {
  width: 56px !important;
  height: 56px !important;
  margin-bottom: 12px !important;
  filter: drop-shadow(0 0 24px rgba(123,92,255,0.6));
  animation: authLogoFloat 4s ease-in-out infinite;
}
@keyframes authLogoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.auth-brand-name {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #00D4FF, #7B5CFF) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.02em !important;
}
.auth-brand-sub {
  font-size: 0.92rem !important;
  color: rgba(255,255,255,0.65) !important;
  margin-top: 4px !important;
}

/* ── Tab switcher (Login/Register) ───────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px !important;
  border: 1px solid rgba(255,255,255,0.08);
}
.auth-tabs .tab {
  flex: 1;
  background: transparent !important;
  color: rgba(255,255,255,0.5) !important;
  border: 0 !important;
  padding: 11px 14px !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  transition: all 0.2s !important;
}
.auth-tabs .tab:hover {
  color: rgba(255,255,255,0.85) !important;
}
.auth-tabs .tab.is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(123,92,255,0.42), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* ── Form fields ────────────────────────────────────────── */
.auth-form .field {
  margin-bottom: 14px !important;
  display: block;
}
.auth-form .lbl {
  display: block !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.7) !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.02em !important;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100% !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  color: #fff !important;
  font-size: 16px !important;  /* iOS no-zoom */
  font-family: inherit !important;
  transition: all 0.15s !important;
  box-sizing: border-box;
}
.auth-form input::placeholder {
  color: rgba(255,255,255,0.35) !important;
}
.auth-form input:focus {
  outline: none !important;
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(123,92,255,0.6) !important;
  box-shadow: 0 0 0 4px rgba(123,92,255,0.15) !important;
}

/* ── Submit button: premium gradient ──────────────────── */
.auth-form .btn-primary {
  width: 100% !important;
  padding: 14px 22px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%) !important;
  background-size: 200% 100% !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.25s !important;
  margin-top: 12px !important;
  box-shadow: 0 8px 24px rgba(123,92,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-form .btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  background-position: 100% 50% !important;
  box-shadow: 0 14px 40px rgba(123,92,255,0.55), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.auth-form .btn-primary:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: linear-gradient(135deg, #475569, #64748b) !important;
  box-shadow: none !important;
}

/* ── Form msg (errors/success) ──────────────────────── */
.auth-form .form-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
  color: rgba(255,255,255,0.7);
}
.auth-form .form-msg.is-error {
  color: #fca5a5;
}

/* ── Affiliate ref banner ─────────────────────────── */
.aff-ref-banner {
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(0,212,255,0.12));
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #6ee7b7;
  margin-bottom: 14px;
}

/* ── Consent box on dark bg: re-style for premium look ─ */
.auth-card .auth-consent {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
.auth-card .auth-consent:hover {
  background: rgba(123,92,255,0.10) !important;
  border-color: rgba(123,92,255,0.35) !important;
}
.auth-card .auth-consent.is-accepted {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.12)) !important;
  border-color: rgba(16,185,129,0.55) !important;
}
.auth-card .auth-consent-text {
  color: rgba(255,255,255,0.75) !important;
}
.auth-card .auth-consent-text a {
  color: #00D4FF !important;
}

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 26px 22px !important;
    border-radius: 16px !important;
  }
  .auth-brand-name { font-size: 1.4rem !important; }
  .auth-form input { padding: 11px 13px !important; }
  .auth-form .btn-primary { padding: 13px 18px !important; font-size: 0.95rem !important; }
}
/* END_AUTH_PREMIUM_V1 */

/* ════════════════════════════════════════════════════════════
   LANDING_PROMO_BALLOON_V3 — entry popup (light theme)
   Replaces the V1 + V2 contrast blocks. Matches the new
   light-themed landing page.
   Palette: #FFFFFF bg, #1F2937 body, #64748B muted,
            #2D3BFF primary CTA, #00D4FF cyan accent (sparingly).
   No neon glow. No purple wash. Subtle shadows only.
   ════════════════════════════════════════════════════════════ */

#lp-promo-balloon.hidden,
#lp-promo-balloon[hidden] { display: none !important; }

/* —————— Container —————— */
#lp-promo-balloon {
  position: fixed;
  top: 14px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -40px);
  z-index: 9998;
  width: min(480px, calc(100vw - 28px));
  padding: 18px 22px 20px;
  border-radius: 16px;
  background: #FFFFFF;
  color: #1F2937;
  border: 1px solid #E5E7EB;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  box-shadow:
    0 18px 40px -16px rgba(15, 23, 42, .18),
    0 4px 12px -4px rgba(15, 23, 42, .08);
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  isolation: isolate;
  transition:
    opacity .32s cubic-bezier(.22, 1, .36, 1),
    transform .42s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}

#lp-promo-balloon.lp-promo-show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

#lp-promo-balloon.lp-promo-leave {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -24px);
  transition:
    opacity .24s ease,
    transform .28s ease;
}

/* —————— Halo / tail / sparkles: disabled in light theme —————— */
.lp-promo-halo,
.lp-promo-tail,
.lp-promo-sparkles { display: none !important; }

/* —————— Inner content layout —————— */
.lp-promo-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* —————— Close button —————— */
.lp-promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lp-promo-close:hover {
  background: #F1F5F9;
  color: #1F2937;
  border-color: #CBD5E1;
}

/* —————— Promo banner —————— */
.lp-promo-banner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  font-size: .78rem;
  font-weight: 600;
  align-self: flex-start;
  color: #1F2937;
  line-height: 1.2;
}
.lp-promo-banner-text { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.lp-promo-banner-text strong#lp-promo-price {
  font-weight: 800;
  font-size: .94rem;
  color: #2D3BFF;
}
.lp-promo-banner-sep { color: #64748B; font-weight: 500; }
.lp-promo-banner-dot { color: #CBD5E1; margin: 0 2px; }

/* —————— Slots-left badge —————— */
.lp-promo-slots-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.lp-promo-slots-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .45);
  animation: lp-promo-pulse 1.8s ease-in-out infinite;
}
@keyframes lp-promo-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(239, 68, 68, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0);   }
}

/* —————— Headline —————— */
.lp-promo-headline {
  margin: 2px 0 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: #0F172A;
  text-wrap: balance;
}

/* —————— Body —————— */
.lp-promo-body {
  margin: 0;
  font-size: .93rem;
  line-height: 1.55;
  color: #1F2937;
  text-wrap: pretty;
}
.lp-promo-strong-free { color: #2D3BFF; font-weight: 700; }
.lp-promo-strong-pro  { color: #0F172A; font-weight: 700; }

/* —————— CTAs —————— */
.lp-promo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.lp-promo-cta {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.lp-promo-cta--primary {
  background: #2D3BFF;
  color: #FFFFFF;
  border: 1px solid #2D3BFF;
  box-shadow: 0 4px 12px -4px rgba(45, 59, 255, .35);
}
.lp-promo-cta--primary:hover {
  background: #1E2BE6;
  border-color: #1E2BE6;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(45, 59, 255, .45);
}
.lp-promo-cta--primary:active { transform: translateY(0); box-shadow: 0 2px 6px -2px rgba(45, 59, 255, .35); }

.lp-promo-cta--secondary {
  background: #FFFFFF;
  color: #1F2937;
  border: 1px solid #E5E7EB;
}
.lp-promo-cta--secondary:hover {
  background: #F9FAFB;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* —————— Fine print —————— */
.lp-promo-fineprint {
  margin: 4px 0 0;
  font-size: .74rem;
  line-height: 1.5;
  color: #64748B;
}

/* —————— Mobile: bottom-sheet feel —————— */
@media (max-width: 720px) {
  #lp-promo-balloon {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: translateY(120%);
    border-radius: 18px;
    padding: 18px 18px 16px;
  }
  #lp-promo-balloon.lp-promo-show { transform: translateY(0); }
  #lp-promo-balloon.lp-promo-leave { transform: translateY(120%); }
  .lp-promo-headline { font-size: 1.28rem; }
  .lp-promo-body     { font-size: .88rem; }
  .lp-promo-cta      { flex: 1 1 100%; }
}

/* —————— Reduced motion —————— */
@media (prefers-reduced-motion: reduce) {
  #lp-promo-balloon,
  #lp-promo-balloon.lp-promo-show,
  .lp-promo-slots-pulse {
    animation: none !important;
    transition: opacity .2s ease !important;
  }
  #lp-promo-balloon.lp-promo-show { transform: translate(-50%, 0); }
  @media (max-width: 720px) {
    #lp-promo-balloon.lp-promo-show { transform: translateY(0); }
  }
}
/* ════ /LANDING_PROMO_BALLOON_V3 ════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   PRICING_FREE_PREVIEW_V1 — free preview CTAs in paywall card
   Highlighted with animated glow MORE than the paid "Assinar agora"
   ──────────────────────────────────────────────────────────────────*/
.pricing-divider {
  margin: 24px -8px 18px;
  border-top: 1px dashed rgba(123,92,255,0.25);
  position: relative;
}
.pricing-divider::after {
  content: 'ou';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-free-zone {
  text-align: center;
}
.pricing-free-label {
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #06b6d4 60%, #7B5CFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.pricing-free-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .pricing-free-grid { grid-template-columns: 1fr; }
}

.pricing-free-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-family: inherit;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(6,182,212,0.08));
  border: 2px solid rgba(16,185,129,0.4);
  color: #047857;
  transition: all 0.2s ease;
  overflow: hidden;
  animation: pricingFreeGlow 2.4s ease-in-out infinite;
}
.pricing-free-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #10b981, #06b6d4, #7B5CFF, #10b981);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  animation: pricingFreeBorder 4s linear infinite;
  pointer-events: none;
}
.pricing-free-btn:hover::before { opacity: 1; }
.pricing-free-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(16,185,129,0.30),
    0 0 0 1px rgba(16,185,129,0.45) inset;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.15));
}
.pricing-free-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 2px; }
.pricing-free-name {
  font-weight: 800;
  font-size: 1rem;
  color: #065F46;
  letter-spacing: -0.01em;
}
.pricing-free-sub {
  font-size: 0.78rem;
  color: #059669;
  font-weight: 500;
}
.pricing-free-fine {
  font-size: 0.78rem;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.4;
}
@keyframes pricingFreeGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(16,185,129,0.18), 0 0 0 0 rgba(16,185,129,0.0); }
  50%      { box-shadow: 0 10px 28px rgba(16,185,129,0.32), 0 0 0 6px rgba(16,185,129,0.06); }
}
@keyframes pricingFreeBorder {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
/* END PRICING_FREE_PREVIEW_V1 */

/* ──────────────────────────────────────────────────────────────────
   PRICING_FREE_PREVIEW_V2 — single tool, SVG, JS-driven glow + spotlight
   Each tool inherits --brand1 / --brand2 / --glow via inline style.
   ──────────────────────────────────────────────────────────────────*/
.pricing-free-grid--single { grid-template-columns: 1fr !important; max-width: 360px; margin: 0 auto 12px !important; }

.pricing-free-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(20,25,60,0.92));
  border: 2px solid var(--brand1, #7B5CFF);
  color: #F8FAFC;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.18,1.32,.42,1), box-shadow 0.25s;
  --mx: 50%;
  --my: 50%;
  box-shadow:
    0 0 0 0 var(--glow, rgba(123,92,255,0.5)),
    0 14px 36px -8px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: pfcPulse 2.6s ease-in-out infinite;
}

/* Animated conic halo behind the card border */
.pricing-free-card-halo {
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  padding: 3px;
  background: conic-gradient(from 0deg,
    var(--brand1) 0%,
    var(--brand2) 25%,
    transparent 50%,
    var(--brand2) 75%,
    var(--brand1) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
  animation: pfcHaloSpin 8s linear infinite;
}

/* Mouse-follow spotlight */
.pricing-free-card-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--brand1) 35%, transparent),
    transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 0;
}
.pricing-free-card:hover .pricing-free-card-spotlight { opacity: 1; }

/* Click ripple */
.pricing-free-card-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand1, #fff);
  opacity: 0.7;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pfcRipple 0.6s ease-out forwards;
  z-index: 2;
}

.pricing-free-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #ffffff;
  box-shadow: 0 8px 22px var(--glow, rgba(0,0,0,0.3));
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.pricing-free-card-icon svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

.pricing-free-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.01em;
  z-index: 1;
  position: relative;
}
.pricing-free-card-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  z-index: 1;
  position: relative;
}
.pricing-free-card-cta {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  z-index: 1;
  position: relative;
}

.pricing-free-card:hover {
  transform: translateY(-4px) scale(1.012);
}

@keyframes pfcPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 var(--glow, rgba(123,92,255,0.55)),
      0 14px 36px -8px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.05);
  }
  50% {
    box-shadow:
      0 0 0 14px transparent,
      0 22px 54px -8px var(--glow, rgba(123,92,255,0.4)),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }
}
@keyframes pfcHaloSpin {
  to { transform: rotate(360deg); }
}
@keyframes pfcRipple {
  0%   { width: 14px; height: 14px; opacity: 0.7; }
  100% { width: 440px; height: 440px; opacity: 0; }
}

/* Strengthen divider */
.pricing-divider {
  margin: 24px -8px 18px !important;
  border-top: 1px dashed rgba(123,92,255,0.30) !important;
  position: relative;
}
.pricing-divider::after {
  content: 'ou' !important;
}
.pricing-free-label {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.01em !important;
}
.pricing-free-fine {
  font-size: 0.78rem !important;
  margin: 10px 0 0 !important;
}
/* END PRICING_FREE_PREVIEW_V2 */

/* ──────────────────────────────────────────────────────────────────
   SUBSCRIPTION_TAB_V2 — Plan comparison grid (Grátis | Launch | Standard)
   ──────────────────────────────────────────────────────────────────*/
.sub-plans-wrap {
  margin-top: 18px;
  padding: 0;
}
.sub-plans-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF 50%, #00D4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub-plans-sub {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0 0 16px;
}

/* Desktop: 3-column grid. Mobile: stacked single column */
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .sub-plans-grid { grid-template-columns: 1fr; }
}

.sub-plan-col {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FREE column */
.sub-plan-col--free {
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border-color: #e2e8f0;
}

/* LAUNCH column — most prominent */
.sub-plan-col--launch {
  background: linear-gradient(180deg, #0a0e27 0%, #131840 100%);
  color: #f8fafc;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow:
    0 14px 40px rgba(123,92,255,0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: scale(1.02);
  z-index: 1;
}
.sub-plan-col--launch::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #00D4FF, #7B5CFF 50%, #ec4899);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: subPlanBorder 4s linear infinite;
  pointer-events: none;
}
@keyframes subPlanBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* STANDARD column */
.sub-plan-col--standard {
  background: #fff;
  border-color: #e5e7eb;
}

/* Top promo pill (Launch) */
.sub-plan-promo-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #7B5CFF);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(236,72,153,0.45);
}

.sub-plan-tier {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}
.sub-plan-col--launch .sub-plan-tier {
  color: #94a3b8;
}

.sub-plan-price-wrap { margin-bottom: 4px; }
.sub-plan-was {
  display: inline-block;
  font-size: 0.92rem;
  color: rgba(248,250,252,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(248,250,252,0.5);
  margin-bottom: 2px;
}
.sub-plan-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}
.sub-plan-col--launch .sub-plan-price-now,
.sub-plan-col--launch .sub-plan-price {
  background: linear-gradient(135deg, #00D4FF, #7B5CFF 60%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}
.sub-plan-per {
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
  -webkit-text-fill-color: #64748b;
  color: #64748b;
}
.sub-plan-col--launch .sub-plan-per {
  color: rgba(248,250,252,0.55);
  -webkit-text-fill-color: rgba(248,250,252,0.55);
}

.sub-plan-tag {
  font-size: 0.78rem;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 500;
}
.sub-plan-tag--free {
  background: rgba(16,185,129,0.12);
  color: #047857;
  font-weight: 700;
}

.sub-plan-slots {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(248,250,252,0.85);
  margin-bottom: 4px;
}
.sub-plan-slots-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.6);
  animation: subSlotsPulse 1.6s ease-in-out infinite;
}
@keyframes subSlotsPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

/* CTA buttons */
.sub-plan-cta {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  margin: 8px 0;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.sub-plan-cta--launch {
  background: linear-gradient(135deg, #00D4FF, #7B5CFF 60%, #ec4899) !important;
  background-size: 200% 100% !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(123,92,255,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: subCtaShimmer 4s ease infinite;
}
.sub-plan-cta--launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(123,92,255,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.sub-plan-cta--standard {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  box-shadow: 0 6px 20px rgba(123,92,255,0.32);
}
.sub-plan-cta--standard:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(123,92,255,0.45);
}
@keyframes subCtaShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Features list */
.sub-plan-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sub-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 4px 0;
}
.sub-plan-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.sub-feat-on { color: inherit; }
.sub-feat-off { opacity: 0.55; }
.sub-feat-hilite span {
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub-plan-col--launch .sub-plan-features li { color: #cbd5e1; }
.sub-plan-col--launch .sub-feat-on { color: #f8fafc; }
.sub-plan-col--launch .sub-feat-off { color: #64748b; }

/* Mobile tweaks */
@media (max-width: 880px) {
  .sub-plan-col--launch { transform: none; }
  .sub-plan-price { font-size: 1.7rem; }
  .sub-plan-features { gap: 4px; }
  .sub-plan-features li { font-size: 0.78rem; }
}
/* END SUBSCRIPTION_TAB_V2 */

/* ──────────────────────────────────────────────────────────────────
   BATTERY_WIDGET_V1 — 3-segment battery icon in topbar
   ──────────────────────────────────────────────────────────────────*/
.battery-widget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: -apple-system, sans-serif;
  cursor: help;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
}
.battery-widget:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.battery-icon {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
  height: 14px;
  position: relative;
}
.battery-seg {
  display: inline-block;
  width: 6px;
  height: 12px;
  border-radius: 1.5px;
  background: rgba(15, 23, 42, 0.15);
  transition: background 0.3s;
}
.battery-cap {
  display: inline-block;
  width: 2px;
  height: 6px;
  border-radius: 0 1px 1px 0;
  background: rgba(15, 23, 42, 0.3);
  margin-left: 1px;
}
/* Battery: OK (>66%) — green */
.battery-ok .battery-seg.on { background: #10b981; }
.battery-ok .battery-cap { background: #10b981; }
/* Battery: LOW (33-66%) — yellow */
.battery-low .battery-seg.on { background: #f59e0b; }
.battery-low .battery-cap { background: #f59e0b; }
/* Battery: CRITICAL (<33%) — orange/red */
.battery-critical .battery-seg.on {
  background: #f97316;
  animation: batteryPulse 1.2s ease-in-out infinite;
}
.battery-critical .battery-cap { background: #f97316; }
/* Battery: DEPLETED (0%) — red */
.battery-depleted .battery-seg.on { background: #ef4444; }
.battery-depleted .battery-cap { background: #ef4444; }
.battery-depleted {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}
/* Cooldown overlay */
.battery-cooldown {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.12));
  border-color: rgba(239, 68, 68, 0.4);
  animation: batteryCdPulse 2s ease-in-out infinite;
}
.battery-cd-label {
  color: #b91c1c;
  font-weight: 800;
  letter-spacing: 0.02em;
}
@keyframes batteryPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes batteryCdPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
}
@media (max-width: 720px) {
  .battery-widget { padding: 4px 7px; }
  .battery-cd-label { display: none; }
}

/* ──────────────────────────────────────────────────────────────────
   ADMIN_COST_DASHBOARD_V1 — /#/admin/cost UI
   ──────────────────────────────────────────────────────────────────*/
.admin-cost-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  font-family: inherit;
}
.admin-cost-head h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF 50%, #00D4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ac-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.12);
  color: #5B21B6;
  font-size: 0.74rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 8px;
}
.admin-cost-sub {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0 0 24px;
}
.admin-cost-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 880px) {
  .admin-cost-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .admin-cost-kpis { grid-template-columns: 1fr; }
}
.ac-kpi {
  background: linear-gradient(135deg, #fff, #fafbff);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}
.ac-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.ac-kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.ac-kpi-val small { font-size: 0.75em; opacity: 0.65; }
.ac-kpi-foot {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 6px;
}
.ac-kpi--cost      { border-left: 3px solid #ef4444; }
.ac-kpi--users     { border-left: 3px solid #10b981; }
.ac-kpi--bandwidth { border-left: 3px solid #06b6d4; }
.ac-kpi--cpu       { border-left: 3px solid #7B5CFF; }

.ac-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.ac-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}
.ac-card-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 14px;
}
.ac-card-info {
  background: linear-gradient(135deg, #f0f9ff, #faf5ff);
  border-color: rgba(123, 92, 255, 0.2);
}
.ac-droplet-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #475569;
}
.ac-droplet-stats b { color: #0f172a; }

.ac-users-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ac-users-row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.7fr 0.8fr 0.7fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  align-items: center;
  font-size: 0.86rem;
}
.ac-users-row:hover:not(.ac-users-header) {
  background: #f8fafc;
}
.ac-users-header {
  font-weight: 700;
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.ac-user-name strong { display: block; }
.ac-user-name small { font-size: 0.74rem; color: #94a3b8; }
.ac-tier {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ac-tier--free     { background: #f1f5f9; color: #64748b; }
.ac-tier--launch   { background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(123,92,255,.15)); color: #5B21B6; }
.ac-tier--loyalty  { background: rgba(16,185,129,.15); color: #047857; }
.ac-tier--standard { background: rgba(45,59,255,.12); color: #2D3BFF; }
.ac-cost { font-weight: 700; color: #ef4444; }
.ac-mini-btn {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  display: inline-block;
}
.ac-mini-btn:hover { background: #e2e8f0; }

.ac-info-list {
  margin: 4px 0 0;
  padding-left: 22px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}
.ac-info-list code {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.ac-empty {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 720px) {
  .ac-users-row { grid-template-columns: 1.6fr 0.6fr 0.6fr 0.8fr; font-size: 0.78rem; }
  .ac-users-row > div:last-child { display: none; }
}
/* END BATTERY_WIDGET_V1 + ADMIN_COST_DASHBOARD_V1 */

/* ──────────────────────────────────────────────────────────────────
   BATTERY_TOOLS_CARD_V1 — battery moved to Tools page header
   Removes topbar widget styling needs; this is more visible/prominent.
   ──────────────────────────────────────────────────────────────────*/
.tp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tp-header-text { flex: 1 1 auto; min-width: 0; }

.tp-battery-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(6,182,212,0.05));
  border: 1px solid rgba(16,185,129,0.25);
  flex-shrink: 0;
  min-width: 220px;
  cursor: help;
  transition: all 0.25s;
}
.tp-battery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.15);
}
.tp-battery-card-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  flex-shrink: 0;
}
.tp-battery-card-icon .battery-seg {
  width: 8px;
  height: 18px;
  border-radius: 2px;
  background: rgba(15,23,42,0.15);
}
.tp-battery-card-icon .battery-cap {
  width: 3px;
  height: 9px;
  border-radius: 0 1.5px 1.5px 0;
  background: rgba(15,23,42,0.3);
  margin-left: 2px;
}
.tp-battery-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tp-battery-card-label {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #047857;
}
.tp-battery-card-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* States (inherit base battery-* classes from prior widget) */
.tp-battery-card.battery-ok .tp-battery-card-icon .battery-seg.on,
.tp-battery-card.battery-ok .tp-battery-card-icon .battery-cap { background: #10b981; }
.tp-battery-card.battery-ok .tp-battery-card-label { color: #047857; }

.tp-battery-card.battery-low {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(251,191,36,0.08));
  border-color: rgba(245,158,11,0.40);
}
.tp-battery-card.battery-low .tp-battery-card-icon .battery-seg.on,
.tp-battery-card.battery-low .tp-battery-card-icon .battery-cap { background: #f59e0b; }
.tp-battery-card.battery-low .tp-battery-card-label { color: #b45309; }

.tp-battery-card.battery-critical {
  background: linear-gradient(135deg, rgba(249,115,22,0.10), rgba(239,68,68,0.08));
  border-color: rgba(249,115,22,0.40);
  animation: tpBatPulse 1.2s ease-in-out infinite;
}
.tp-battery-card.battery-critical .tp-battery-card-icon .battery-seg.on,
.tp-battery-card.battery-critical .tp-battery-card-icon .battery-cap { background: #f97316; }
.tp-battery-card.battery-critical .tp-battery-card-label { color: #c2410c; }

.tp-battery-card.battery-depleted,
.tp-battery-card.battery-cooldown {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.08));
  border-color: rgba(239,68,68,0.45);
  animation: tpBatPulse 1s ease-in-out infinite;
}
.tp-battery-card.battery-depleted .tp-battery-card-icon .battery-seg.on,
.tp-battery-card.battery-depleted .tp-battery-card-icon .battery-cap,
.tp-battery-card.battery-cooldown .tp-battery-card-icon .battery-seg.on,
.tp-battery-card.battery-cooldown .tp-battery-card-icon .battery-cap { background: #ef4444; }
.tp-battery-card.battery-depleted .tp-battery-card-label,
.tp-battery-card.battery-cooldown .tp-battery-card-label { color: #b91c1c; }

@keyframes tpBatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%      { box-shadow: 0 0 0 4px rgba(239,68,68,0.15); }
}

/* Mobile: full width below text */
@media (max-width: 720px) {
  .tp-header-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .tp-battery-card {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .tp-battery-card-sub { font-size: 0.72rem; }
}
/* END BATTERY_TOOLS_CARD_V1 */

/* ──────────────────────────────────────────────────────────────────
   DEVICE_TRUST_V1 — modal + 2FA wizard + Devices tab styles
   ──────────────────────────────────────────────────────────────────*/
.dt-modal-backdrop {
  position: fixed; inset: 0; z-index: 10500;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: dtFadeIn 0.18s;
}
@keyframes dtFadeIn { from {opacity:0;} to {opacity:1;} }
.dt-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: dtSlideUp 0.22s ease-out;
}
.dt-modal-wide { max-width: 600px; }
@keyframes dtSlideUp { from {opacity:0; transform: translateY(20px);} to {opacity:1; transform: translateY(0);} }
.dt-modal h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.dt-sub { color: #64748b; font-size: 0.92rem; line-height: 1.5; margin: 0 0 18px; }
.dt-sub strong { color: #0f172a; }
.dt-code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.dt-code-input {
  flex: 1;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-transform: uppercase;
  font-family: 'SF Mono', Menlo, monospace;
  transition: border-color 0.15s;
}
.dt-code-input:focus {
  outline: none;
  border-color: #2D3BFF;
  box-shadow: 0 0 0 3px rgba(45,59,255,0.15);
}
.dt-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
}
.dt-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.dt-btn-primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
}
.dt-btn-primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,59,255,0.3); }
.dt-btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
}
.dt-btn-secondary:hover { background: #e2e8f0; }
.dt-btn-danger { background: #ef4444; color: #fff; }
.dt-btn-danger:hover { background: #dc2626; }
.dt-msg {
  font-size: 0.86rem;
  min-height: 1.2em;
  margin: 8px 0;
}
.dt-msg[data-kind="ok"]  { color: #047857; }
.dt-msg[data-kind="err"] { color: #b91c1c; }
.dt-msg[data-kind="info"]{ color: #1e40af; }
.dt-fallback {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.dt-link {
  background: none;
  border: none;
  color: #2D3BFF;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 4px 0;
  font-weight: 600;
}
.dt-link:hover { text-decoration: underline; }
.dt-sep { color: #cbd5e1; }
.dt-hint {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

/* 2FA setup wizard */
.dt-2fa-setup-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin-bottom: 14px;
}
@media (max-width: 540px) { .dt-2fa-setup-grid { grid-template-columns: 1fr; } }
.dt-qr-box {
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px; min-height: 200px;
}
.dt-qr-box img { display: block; max-width: 100%; }
.dt-2fa-steps ol { margin: 0 0 10px; padding-left: 20px; font-size: 0.88rem; color: #475569; line-height: 1.8; }
.dt-manual { margin: 6px 0 12px; font-size: 0.84rem; }
.dt-manual summary { cursor: pointer; color: #2D3BFF; font-weight: 600; }
.dt-secret-text {
  display: block;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
}
.dt-backup-codes {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 10px 0;
}
.dt-loading { color: #64748b; font-size: 0.88rem; }
.dt-error { color: #b91c1c; font-size: 0.88rem; }

/* Devices tab */
.dt-tab { padding: 8px 0; }
.dt-2fa-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fafbff, #f3f4ff);
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}
.dt-2fa-card.is-enabled {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(6,182,212,0.06));
  border-color: rgba(16,185,129,0.3);
}
.dt-2fa-icon { font-size: 1.8rem; }
.dt-2fa-body { flex: 1; min-width: 0; }
.dt-2fa-body h4 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; color: #0f172a; }
.dt-2fa-body p { margin: 0; font-size: 0.84rem; color: #64748b; }

.dt-pending-card {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.06));
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.dt-pending-card h4 { margin: 0 0 4px; font-size: 1rem; color: #b45309; }
.dt-pending-sub { font-size: 0.86rem; color: #64748b; margin: 0 0 12px; }
.dt-pending-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 6px;
}
.dt-pending-row strong { display: block; font-size: 0.92rem; color: #0f172a; }
.dt-pending-row small { display: block; font-size: 0.76rem; color: #64748b; margin-top: 2px; }

.dt-section-h { margin: 18px 0 10px; font-size: 0.92rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.dt-list { display: flex; flex-direction: column; gap: 8px; }
.dt-device-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.dt-device-row.is-trusted { border-left: 3px solid #10b981; }
.dt-device-row.is-pending { border-left: 3px solid #f59e0b; }
.dt-device-icon { font-size: 1.4rem; }
.dt-device-body strong { display: block; font-size: 0.92rem; color: #0f172a; }
.dt-device-body small { display: block; font-size: 0.74rem; color: #94a3b8; margin-top: 2px; }
.dt-device-body .dt-ua { font-family: monospace; opacity: 0.7; }
.dt-device-actions { display: flex; gap: 8px; }
.dt-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; margin-left: 6px;
}
.dt-badge.ok   { background: rgba(16,185,129,0.15); color: #047857; }
.dt-badge.warn { background: rgba(245,158,11,0.15); color: #b45309; }
.dt-empty { color: #94a3b8; text-align: center; padding: 20px; font-size: 0.88rem; }

@media (max-width: 540px) {
  .dt-modal { padding: 20px; }
  .dt-device-row { grid-template-columns: auto 1fr; }
  .dt-device-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 6px; }
}
/* END DEVICE_TRUST_V1 */

/* ──────────────────────────────────────────────────────────────────
   SUBSCRIPTION_TAB_V3 — relax cramped pricing cards
   ──────────────────────────────────────────────────────────────────*/
.sub-plans-wrap {
  max-width: 1100px;
  margin: 24px auto 0;
}
.sub-plans-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding: 4px 2px;
}
.sub-plan-col {
  padding: 28px 22px !important;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}
.sub-plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px !important;
  font-size: 0.9rem !important;
}
.sub-plan-features li {
  line-height: 1.45 !important;
  padding: 2px 0;
}
.sub-plan-tier {
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 10px !important;
}
.sub-plan-price {
  font-size: 2rem !important;
  margin-bottom: 6px !important;
}
.sub-plan-tag {
  margin-bottom: 18px !important;
}

/* Tablet: keep 3 columns but shrink padding */
@media (max-width: 1024px) {
  .sub-plan-col { padding: 22px 16px !important; min-height: auto; }
  .sub-plans-grid { gap: 16px !important; }
}
/* Mobile: stack */
@media (max-width: 720px) {
  .sub-plans-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .sub-plan-col { min-height: auto; }
}
/* END SUBSCRIPTION_TAB_V3 */


/* PROFILE_TAB_SUB_WIDEN_V1 — sub-plans inside profile tab use full width */
.profile-tab-body .sub-plans-wrap {
  max-width: none !important;
  margin: 16px 0 0 !important;
}
.profile-tab-body .sub-plans-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}
@media (max-width: 1100px) {
  .profile-tab-body .sub-plan-col { padding: 18px 14px !important; min-height: auto !important; }
  .profile-tab-body .sub-plan-features { font-size: 0.84rem !important; }
}
@media (max-width: 720px) {
  .profile-tab-body .sub-plans-grid { grid-template-columns: 1fr !important; }
}
/* END PROFILE_TAB_SUB_WIDEN_V1 */


/* SUBSCRIPTION_TAB_HIDE_RAIL_V1 — when Assinatura tab is open, hide right rail */
body.subscription-tab-active .layout > .right-rail { display: none !important; }
body.subscription-tab-active .layout > .main {
  max-width: none !important;
  width: 100% !important;
}
body.subscription-tab-active .profile-tab-body .sub-plans-grid {
  gap: 22px !important;
}
body.subscription-tab-active .profile-tab-body .sub-plan-col {
  padding: 26px 22px !important;
  min-height: 540px !important;
}
body.subscription-tab-active .profile-tab-body .sub-plan-features {
  font-size: 0.9rem !important;
  gap: 10px !important;
}
@media (max-width: 880px) {
  body.subscription-tab-active .profile-tab-body .sub-plans-grid {
    grid-template-columns: 1fr !important;
  }
}
/* END SUBSCRIPTION_TAB_HIDE_RAIL_V1 */

/* ────────────────────────────────────────────────────────────────
   PRO_CONFIRM_V1 — premium post-checkout overlay + Pro card redesign
   ──────────────────────────────────────────────────────────────── */

/* ── Welcome overlay (shown after Stripe success redirect) ──────── */
.pro-welcome-backdrop {
  position: fixed; inset: 0; z-index: 10800;
  background: radial-gradient(circle at 50% 0%, rgba(45,59,255,0.18) 0%, rgba(2,6,23,0.97) 60%);
  backdrop-filter: blur(20px) saturate(160%);
  display: flex; align-items: center; justify-content: center;
  animation: pwFade 0.6s ease-out;
  padding: 20px;
}
@keyframes pwFade { from { opacity: 0; } to { opacity: 1; } }

.pro-welcome-card {
  position: relative;
  max-width: 540px;
  width: 100%;
  background: linear-gradient(180deg, #0b1029 0%, #050817 100%);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 56px 44px 40px;
  text-align: center;
  color: #e2e8f0;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(123,92,255,0.18) inset;
  animation: pwReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pwReveal {
  from { transform: translateY(40px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Top accent line (angular, hard edge) */
.pro-welcome-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, #2D3BFF 30%, #7B5CFF 50%, #00D4FF 70%, transparent 100%);
}

/* Subtle scan-line animation */
.pro-welcome-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123,92,255,0.5), transparent);
  animation: pwScan 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pwScan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%      { opacity: 1; }
  50%      { transform: translateY(540px); opacity: 0.4; }
  90%      { opacity: 1; }
}

/* Hexagonal badge */
.pro-welcome-badge {
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.pro-welcome-badge svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px rgba(123,92,255,0.45));
  animation: pwBadge 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes pwBadge {
  from { transform: scale(0.5) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

.pro-welcome-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #7B5CFF;
  margin: 0 0 8px;
  font-weight: 500;
  animation: pwFadeUp 0.6s ease-out 0.7s both;
}
.pro-welcome-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pwFadeUp 0.6s ease-out 0.85s both;
}
.pro-welcome-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 28px;
  animation: pwFadeUp 0.6s ease-out 1.0s both;
}
.pro-welcome-sub b { color: #cbd5e1; font-weight: 600; }

@keyframes pwFadeUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Locked-in detail strip */
.pro-welcome-locked {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin: 0 0 28px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(123,92,255,0.18);
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  animation: pwFadeUp 0.6s ease-out 1.15s both;
}
.pw-locked-item { display: flex; flex-direction: column; gap: 4px; text-align: left; flex: 1; }
.pw-locked-item small { color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; }
.pw-locked-item b { color: #fff; font-weight: 700; }

.pro-welcome-cta {
  padding: 14px 32px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  animation: pwFadeUp 0.6s ease-out 1.3s both;
}
.pro-welcome-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(123,92,255,0.4);
}

.pro-welcome-small {
  display: block;
  margin-top: 16px;
  font-size: 0.72rem;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  animation: pwFadeUp 0.6s ease-out 1.5s both;
}

@media (max-width: 540px) {
  .pro-welcome-card { padding: 40px 24px 32px; }
  .pro-welcome-title { font-size: 1.5rem; }
  .pro-welcome-locked { flex-direction: column; gap: 14px; }
}

/* ── Pro card redesign (current state, replaces the yellow ★ card) ─ */
.sub-card.sub-card--pro {
  background: linear-gradient(135deg, #0c1230 0%, #060a1f 100%) !important;
  border: 1px solid rgba(123,92,255,0.28) !important;
  border-radius: 4px !important;
  padding: 24px 26px !important;
  color: #e2e8f0 !important;
  position: relative;
  overflow: hidden;
}
.sub-card--pro::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #7B5CFF, #00D4FF, transparent);
}
.sub-card--pro .sub-plan-badge--pro {
  background: rgba(123,92,255,0.12) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(123,92,255,0.35) !important;
  border-radius: 2px !important;
  padding: 5px 10px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
.sub-card--pro .sub-plan-badge--pro svg {
  color: #a78bfa;
}
.sub-card--pro .sub-card-title {
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 10px 0 4px !important;
  letter-spacing: -0.01em !important;
}
.sub-card--pro .sub-card-sub {
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
}
.sub-card--pro .sub-card-sub b { color: #cbd5e1 !important; }

.sub-card--pro .sub-manage-btn {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 10px 18px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.sub-card--pro .sub-cancel-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #94a3b8 !important;
  border-radius: 2px !important;
  padding: 10px 18px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
}
.sub-card--pro .sub-cancel-btn:hover {
  background: rgba(239,68,68,0.08) !important;
  border-color: rgba(239,68,68,0.3) !important;
  color: #fca5a5 !important;
}

/* Trial badge */
.sub-card--pro_trial {
  background: linear-gradient(135deg, #1a1430 0%, #0a0617 100%) !important;
  border: 1px solid rgba(245,158,11,0.3) !important;
}

/* Privacy card refresh */
.sub-tab-wrap .sub-priv-card {
  background: linear-gradient(135deg, #fafbff, #f5f6ff) !important;
  border: 1px solid #e2e8f0 !important;
}
/* END PRO_CONFIRM_V1 */

/* ════════════════════════════════════════════════════════════
   BALLOON_REFINED_V3 — desktop polish + remove playful elements
   ════════════════════════════════════════════════════════════ */

/* Kill the sparkle particles entirely — too noisy on desktop */
#lp-promo-balloon .lp-promo-sparkles { display: none !important; }

/* Tone down halo on desktop */
#lp-promo-balloon .lp-promo-halo {
  opacity: 0.55 !important;
  filter: blur(8px);
}

/* Sharper, narrower balloon on desktop */
@media (min-width: 720px) {
  #lp-promo-balloon.lp-promo-balloon {
    max-width: 420px !important;
    width: 420px !important;
    padding: 22px 24px 18px !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, #0a1029 0%, #050817 100%) !important;
    border: 1px solid rgba(123,92,255,0.28) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.08) inset !important;
  }

  /* Top accent line (1px gradient bar) */
  #lp-promo-balloon::before {
    content: ; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #7B5CFF 30%, #00D4FF 70%, transparent);
    pointer-events: none;
  }
}

/* Headline: monochrome white, not rainbow gradient (more sério) */
#lp-promo-balloon .lp-promo-headline,
#lp-promo-balloon h2 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: #ffffff !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 10px 0 8px !important;
  line-height: 1.18 !important;
}

/* Body text: tighter, cleaner */
#lp-promo-balloon .lp-promo-body,
#lp-promo-balloon p {
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
  color: #94a3b8 !important;
  margin: 0 0 16px !important;
}
#lp-promo-balloon .lp-promo-body strong { color: #e2e8f0 !important; font-weight: 600 !important; }
#lp-promo-balloon .lp-promo-strong-free { color: #6ee7b7 !important; }
#lp-promo-balloon .lp-promo-strong-pro  { color: #c4b5fd !important; }

/* Promo banner top strip */
#lp-promo-balloon .lp-promo-banner {
  background: rgba(123,92,255,0.08) !important;
  border: 1px solid rgba(123,92,255,0.22) !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
#lp-promo-balloon .lp-promo-banner #lp-promo-price {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}
#lp-promo-balloon .lp-promo-banner-sep {
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}
#lp-promo-balloon .lp-promo-banner-dot { color: #475569 !important; padding: 0 4px; }
#lp-promo-balloon .lp-promo-banner-text > span:last-child { color: #cbd5e1 !important; }

/* Slots badge — subtle red without screaming */
#lp-promo-balloon .lp-promo-slots-badge {
  background: rgba(239,68,68,0.1) !important;
  border: 1px solid rgba(239,68,68,0.32) !important;
  color: #fca5a5 !important;
  border-radius: 999px !important;
  padding: 2px 10px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* CTA primary */
#lp-promo-balloon .lp-promo-cta--primary,
#lp-promo-balloon #lp-promo-cta-register {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 11px 16px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
}
#lp-promo-balloon .lp-promo-cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(123,92,255,0.4) !important;
}

/* CTA secondary */
#lp-promo-balloon .lp-promo-cta--secondary,
#lp-promo-balloon #lp-promo-cta-explore {
  background: transparent !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 4px !important;
  padding: 11px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}
#lp-promo-balloon .lp-promo-cta--secondary:hover {
  color: #e2e8f0 !important;
  border-color: rgba(123,92,255,0.4) !important;
}

/* Fine print */
#lp-promo-balloon .lp-promo-fineprint {
  font-size: 0.7rem !important;
  color: #475569 !important;
  margin: 12px 0 0 !important;
  letter-spacing: 0.02em !important;
}

/* Close button — sharper */
#lp-promo-balloon #lp-promo-close {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 4px !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#lp-promo-balloon #lp-promo-close:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

/* Tail (cloud pointer) — make it match new dark bg */
#lp-promo-balloon .lp-promo-tail {
  background: #0a1029 !important;
  border-color: rgba(123,92,255,0.28) !important;
}

/* CTA row spacing */
#lp-promo-balloon .lp-promo-cta-row {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

@media (max-width: 540px) {
  /* Mobile keeps prior CSS V2 behavior */
}
/* END BALLOON_REFINED_V3 */


.rail-widget.rail-widget--radar {
  background: #0a0d18 !important;
  border: 1px solid rgba(56,189,248,0.15) !important;
  border-radius: 6px !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(56,189,248,0.12), 0 8px 24px rgba(0,0,0,0.4) !important;
}
/* Subtle globe/world-map background pattern (SVG dataURI) */
.rail-widget--radar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23ffffff' stroke-width='0.4' opacity='0.06'><ellipse cx='100' cy='100' rx='90' ry='90'/><ellipse cx='100' cy='100' rx='90' ry='45'/><ellipse cx='100' cy='100' rx='45' ry='90'/><line x1='10' y1='100' x2='190' y2='100'/><line x1='100' y1='10' x2='100' y2='190'/><circle cx='100' cy='100' r='60'/><circle cx='100' cy='100' r='30'/></g></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 280px;
  opacity: 0.7;
  pointer-events: none;
}
/* Top accent line: subtle cyan gradient */
.rail-widget--radar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8 30%, #06b6d4 50%, #38bdf8 70%, transparent);
  pointer-events: none;
}

/* Header */
.rail-widget-head--radar {
  background: transparent !important;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 12px 14px 10px !important;
  border-bottom: 1px solid rgba(56,189,248,0.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative;
  z-index: 2;
}
.rail-widget-head--radar .radar-pulse {
  color: #38bdf8 !important;
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.6));
}
.rail-widget-head--radar .radar-pulse svg {
  animation: radarSpinSlow 30s linear infinite;
}
@keyframes radarSpinSlow {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* Card */
.rail-widget--radar #rail-radar {
  position: relative;
  z-index: 2;
  padding: 0 !important;
}
.rail-widget--radar .radar-card,
.rail-widget--radar .radar-card-v2 {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px !important;
  color: #ffffff !important;
  position: relative;
  animation: radarFadeIn 0.5s ease-out;
}
@keyframes radarFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Top row: img + product info + gauge */
.rail-widget--radar .radar-card-top {
  display: grid !important;
  grid-template-columns: 44px 1fr auto !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

/* Product image / platform fallback */
.rail-widget--radar .radar-card-img,
.rail-widget--radar .radar-card-img-svg {
  width: 44px !important;
  height: 44px !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(56,189,248,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  object-fit: cover;
  color: #ffffff;
  padding: 0 !important;
}
.rail-widget--radar .radar-card-img-svg svg {
  width: 70% !important;
  height: 70% !important;
  color: #ffffff !important;
  opacity: 0.92;
}

/* Product platform label */
.rail-widget--radar .radar-card-platform {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
  margin-bottom: 2px !important;
}
.rail-widget--radar .radar-card-name {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Gauge */
.rail-widget--radar .radar-card-gauge {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}
.rail-widget--radar .radar-gauge-svg {
  width: 50px !important;
  height: 50px !important;
}
.rail-widget--radar .radar-gauge-legend {
  display: flex !important;
  gap: 6px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.62rem !important;
  color: rgba(255,255,255,0.55) !important;
  letter-spacing: 0.04em;
}
.rail-widget--radar .radar-gauge-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}

/* Quote */
.rail-widget--radar .radar-card-quote {
  font-size: 0.82rem !important;
  color: #ffffff !important;
  line-height: 1.5 !important;
  padding: 10px 12px !important;
  background: rgba(56,189,248,0.04) !important;
  border-left: 2px solid rgba(56,189,248,0.4) !important;
  border-radius: 2px !important;
  margin-bottom: 10px !important;
  font-style: normal;
  font-weight: 500;
}

/* Foot row */
.rail-widget--radar .radar-card-foot {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.74rem !important;
  flex-wrap: wrap !important;
}
.rail-widget--radar .radar-handle {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
}
.rail-widget--radar .radar-card-likes {
  color: rgba(255,255,255,0.6) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.rail-widget--radar .radar-card-sentiment {
  margin-left: auto !important;
  padding: 3px 9px !important;
  border-radius: 2px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
.rail-widget--radar .radar-card-sentiment--positive {
  background: rgba(16,185,129,0.12) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16,185,129,0.3) !important;
}
.rail-widget--radar .radar-card-sentiment--negative {
  background: rgba(239,68,68,0.12) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239,68,68,0.3) !important;
}
.rail-widget--radar .radar-card-sentiment--neutral {
  background: rgba(148,163,184,0.1) !important;
  color: rgba(255,255,255,0.75) !important;
  border: 1px solid rgba(148,163,184,0.2) !important;
}
/* Hide tiny emoji icons inside sentiment chip — letter-spacing makes them weird */
.rail-widget--radar .radar-card-sentiment > svg { display: none; }


.rail-widget.rail-widget--radar {
  background: linear-gradient(180deg, #0a0f17 0%, #060a12 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.48), 0 0 0 1px rgba(125, 211, 252, 0.04), 0 0 32px rgba(56, 189, 248, 0.1) !important;
}
.rail-widget--radar::before {
  background-size: 320px !important;
  opacity: 0.28 !important;
  filter: blur(0.4px);
}
.rail-widget--radar::after {
  height: 1px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(125,211,252,0.28) 18%, rgba(125,211,252,0.88) 50%, rgba(125,211,252,0.28) 82%, transparent 100%) !important;
}
.rail-widget-head--radar {
  padding: 13px 16px 12px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
  color: #f8fafc !important;
  letter-spacing: 0.14em !important;
}
.rail-widget-head--radar .radar-pulse {
  color: #dbeafe !important;
  filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.35));
}
.rail-widget-head--radar .radar-pulse svg {
  animation-duration: 42s !important;
}
.rail-widget--radar .radar-card,
.rail-widget--radar .radar-card-v2 {
  padding: 16px !important;
  animation: none !important;
}
.rail-widget--radar .radar-card-top {
  grid-template-columns: 52px 1fr 74px !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}
.rail-widget--radar .radar-card-img,
.rail-widget--radar .radar-card-img-svg {
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(2,8,23,0.22) !important;
}
.rail-widget--radar .radar-card-img-svg svg {
  width: 62% !important;
  height: 62% !important;
  color: #f8fafc !important;
  opacity: 0.9 !important;
}
.rail-widget--radar .radar-card-platform {
  color: rgba(148, 163, 184, 0.72) !important;
  letter-spacing: 0.16em !important;
  font-size: 0.6rem !important;
  margin-bottom: 4px !important;
}
.rail-widget--radar .radar-card-name {
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  max-width: 100%;
}
.rail-widget--radar .radar-card-gauge {
  position: relative;
  gap: 6px !important;
}
.rail-widget--radar .radar-gauge-svg {
  width: 62px !important;
  height: 62px !important;
  overflow: visible;
}
.rail-widget--radar .radar-gauge-svg text {
  display: none !important;
}
.rail-widget--radar .radar-gauge-svg circle:nth-of-type(2) {
  stroke: #e2e8f0 !important;
  filter: drop-shadow(0 0 3px rgba(226, 232, 240, 0.22)) !important;
}
.rail-widget--radar .radar-gauge-svg circle:nth-of-type(4) {
  stroke: #7dd3fc !important;
  filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.32)) !important;
}
.rail-widget--radar .radar-card-gauge::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08), 0 0 10px rgba(125, 211, 252, 0.18);
}
.rail-widget--radar .radar-gauge-legend {
  gap: 8px !important;
  color: rgba(203, 213, 225, 0.62) !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.08em !important;
}
.rail-widget--radar .radar-gauge-legend-row {
  gap: 4px !important;
}
.rail-widget--radar .radar-gauge-dot {
  width: 5px !important;
  height: 5px !important;
  box-shadow: 0 0 6px currentColor;
}
.rail-widget--radar .radar-card-quote {
  margin-bottom: 12px !important;
  padding: 12px 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.01)) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-left: 2px solid rgba(125, 211, 252, 0.55) !important;
  border-radius: 8px !important;
  color: rgba(241, 245, 249, 0.92) !important;
  line-height: 1.58 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.rail-widget--radar .radar-card-foot {
  gap: 12px !important;
  padding-top: 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.rail-widget--radar .radar-handle {
  color: rgba(248, 250, 252, 0.88) !important;
  font-weight: 600 !important;
}
.rail-widget--radar .radar-card-likes {
  color: rgba(148, 163, 184, 0.74) !important;
  font-size: 0.69rem !important;
}
.rail-widget--radar .radar-card-sentiment {
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  background: rgba(255,255,255,0.04) !important;
}
.rail-widget--radar .radar-card-sentiment--positive {
  background: rgba(16,185,129,0.12) !important;
  color: #a7f3d0 !important;
  border: 1px solid rgba(16,185,129,0.22) !important;
}
.rail-widget--radar .radar-card-sentiment--negative {
  background: rgba(239,68,68,0.12) !important;
  color: #fecaca !important;
  border: 1px solid rgba(239,68,68,0.22) !important;
}
.rail-widget--radar .radar-card-sentiment--neutral {
  background: rgba(148,163,184,0.1) !important;
  color: rgba(241,245,249,0.84) !important;
  border: 1px solid rgba(148,163,184,0.16) !important;
}
@media (max-width: 540px) {
  .rail-widget--radar .radar-card-top {
    grid-template-columns: 48px 1fr 66px !important;
    gap: 10px !important;
  }
  .rail-widget--radar .radar-card-img,
  .rail-widget--radar .radar-card-img-svg {
    width: 48px !important;
    height: 48px !important;
  }
  .rail-widget--radar .radar-gauge-svg {
    width: 56px !important;
    height: 56px !important;
  }
  .rail-widget--radar .radar-card-gauge::after {
    top: 16px;
  }
}


.rail-widget.rail-widget--radar {
  background: linear-gradient(180deg, #05070c 0%, #090d14 58%, #060910 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 26px rgba(96, 165, 250, 0.08) !important;
}
.rail-widget--radar::before {
  opacity: 0.18 !important;
  background-size: 340px !important;
}
.rail-widget--radar::after {
  background: linear-gradient(90deg, transparent 0%, rgba(125, 211, 252, 0.2) 20%, rgba(125, 211, 252, 0.82) 50%, rgba(125, 211, 252, 0.2) 80%, transparent 100%) !important;
}
.rail-widget-head--radar {
  color: #f8fafc !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.rail-widget-head--radar .radar-pulse {
  color: #7dd3fc !important;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.32)) !important;
}
.rail-widget-head--radar .radar-pulse svg {
  animation-duration: 48s !important;
}
.rail-widget--radar .radar-card-img,
.rail-widget--radar .radar-card-img-svg {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 18px rgba(0, 0, 0, 0.22) !important;
}
.rail-widget--radar .radar-card-platform {
  color: rgba(148, 163, 184, 0.76) !important;
}
.rail-widget--radar .radar-card-name {
  color: #f8fafc !important;
}
.rail-widget--radar .radar-gauge-svg circle:nth-of-type(1),
.rail-widget--radar .radar-gauge-svg circle:nth-of-type(3) {
  stroke: rgba(148, 163, 184, 0.12) !important;
}
.rail-widget--radar .radar-gauge-svg circle:nth-of-type(2) {
  stroke: #e5e7eb !important;
  filter: drop-shadow(0 0 2px rgba(229, 231, 235, 0.18)) !important;
}
.rail-widget--radar .radar-gauge-svg circle:nth-of-type(4) {
  stroke: #7dd3fc !important;
  filter: drop-shadow(0 0 7px rgba(125, 211, 252, 0.34)) !important;
}
.rail-widget--radar .radar-card-gauge::after {
  background: #f8fafc !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.07), 0 0 12px rgba(125, 211, 252, 0.22) !important;
}
.rail-widget--radar .radar-gauge-legend {
  color: rgba(203, 213, 225, 0.56) !important;
}
.rail-widget--radar .radar-card-quote {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 2px solid rgba(125, 211, 252, 0.48) !important;
  color: rgba(241, 245, 249, 0.9) !important;
}
.rail-widget--radar .radar-card-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.rail-widget--radar .radar-handle {
  color: rgba(248, 250, 252, 0.8) !important;
}
.rail-widget--radar .radar-card-likes {
  color: rgba(148, 163, 184, 0.72) !important;
}
.rail-widget--radar .radar-card-sentiment {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(241, 245, 249, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}
.rail-widget--radar .radar-card-sentiment--positive {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #d1fae5 !important;
  border: 1px solid rgba(16, 185, 129, 0.16) !important;
}
.rail-widget--radar .radar-card-sentiment--negative {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #fee2e2 !important;
  border: 1px solid rgba(239, 68, 68, 0.16) !important;
}
.rail-widget--radar .radar-card-sentiment--neutral {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(241, 245, 249, 0.76) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

@media (min-width: 721px) {
  body.theme-light .rail-widget.rail-widget--radar {
    background: linear-gradient(180deg, #04060b 0%, #090d14 58%, #050811 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 28px rgba(96, 165, 250, 0.1) !important;
    color: #f8fafc !important;
  }
  body.theme-light .rail-widget.rail-widget--radar::before {
    opacity: 0.16 !important;
    background-size: 340px !important;
  }
  body.theme-light .rail-widget.rail-widget--radar::after {
    background: linear-gradient(90deg, transparent 0%, rgba(125, 211, 252, 0.16) 18%, rgba(125, 211, 252, 0.9) 50%, rgba(125, 211, 252, 0.16) 82%, transparent 100%) !important;
  }
  body.theme-light .rail-widget-head--radar {
    color: #f8fafc !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  body.theme-light .rail-widget-head--radar .radar-pulse {
    color: #7dd3fc !important;
    filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.34)) !important;
  }
  body.theme-light .rail-widget--radar .radar-card,
  body.theme-light .rail-widget--radar .radar-card-v2 {
    background: transparent !important;
    color: #f8fafc !important;
  }
  body.theme-light .rail-widget--radar .radar-card-img,
  body.theme-light .rail-widget--radar .radar-card-img-svg {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 18px rgba(0,0,0,0.22) !important;
  }
  body.theme-light .rail-widget--radar .radar-card-img-svg svg,
  body.theme-light .rail-widget--radar .radar-card-name,
  body.theme-light .rail-widget--radar .radar-card-quote,
  body.theme-light .rail-widget--radar .radar-handle {
    color: #f8fafc !important;
  }
  body.theme-light .rail-widget--radar .radar-card-platform,
  body.theme-light .rail-widget--radar .radar-card-likes,
  body.theme-light .rail-widget--radar .radar-gauge-legend {
    color: rgba(203, 213, 225, 0.66) !important;
  }
  body.theme-light .rail-widget--radar .radar-card-quote {
    background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-left: 2px solid rgba(125, 211, 252, 0.48) !important;
  }
  body.theme-light .rail-widget--radar .radar-card-foot {
    border-top: 1px solid rgba(255,255,255,0.07) !important;
  }
  body.theme-light .rail-widget--radar .radar-gauge-svg circle:nth-of-type(1),
  body.theme-light .rail-widget--radar .radar-gauge-svg circle:nth-of-type(3) {
    stroke: rgba(148, 163, 184, 0.12) !important;
  }
  body.theme-light .rail-widget--radar .radar-gauge-svg circle:nth-of-type(2) {
    stroke: #e5e7eb !important;
    filter: drop-shadow(0 0 2px rgba(229,231,235,0.18)) !important;
  }
  body.theme-light .rail-widget--radar .radar-gauge-svg circle:nth-of-type(4) {
    stroke: #7dd3fc !important;
    filter: drop-shadow(0 0 7px rgba(125,211,252,0.34)) !important;
  }
  body.theme-light .rail-widget--radar .radar-card-gauge::after {
    background: #f8fafc !important;
    box-shadow: 0 0 0 3px rgba(125,211,252,0.07), 0 0 12px rgba(125,211,252,0.22) !important;
  }
  body.theme-light .rail-widget--radar .radar-card-sentiment {
    background: rgba(255,255,255,0.03) !important;
    color: rgba(241,245,249,0.78) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
  }
  body.theme-light .rail-widget--radar .radar-card-sentiment--neutral {
    background: rgba(255,255,255,0.04) !important;
    color: rgba(241,245,249,0.76) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
  }
}

/* ============================================================
   PHASE_C_POLISH_V1 (2026-05-20) — Palantir-style energy
   ============================================================ */

/* HAON logo energy shake on generate buttons */
@keyframes haonEnergyShake {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  20% { transform: translate(-0.3px, 0.4px) rotate(-1.2deg); }
  40% { transform: translate(0.4px, -0.3px) rotate(1.4deg); }
  60% { transform: translate(-0.4px, -0.3px) rotate(-0.9deg); }
  80% { transform: translate(0.3px, 0.4px) rotate(1.1deg); }
}
@keyframes haonEnergyGlow {
  0%, 100% { filter: brightness(1.05) drop-shadow(0 0 4px rgba(123,92,255,.6)); }
  50%      { filter: brightness(1.25) drop-shadow(0 0 8px rgba(0,212,255,.85)); }
}
.haon-energy {
  display: inline-block;
  animation: haonEnergyShake 2.6s ease-in-out infinite, haonEnergyGlow 3.4s ease-in-out infinite;
  will-change: transform, filter;
}
/* On hover the button: intensify */
.copy-generate-btn:hover .haon-energy,
button:hover > .haon-energy {
  animation: haonEnergyShake 0.5s ease-in-out infinite, haonEnergyGlow 1.2s ease-in-out infinite;
}
/* While generating (button has .generating class), pulse harder */
.copy-generate-btn.generating .haon-energy {
  animation: haonEnergyShake 0.35s ease-in-out infinite, haonEnergyGlow 0.9s ease-in-out infinite;
}

/* Palantir-style buttons on /#/connect-gpu (Usar agora / Despearer / Forçar reset) */
.cg-btn-primary, #cg-use, [class*="cg-btn"],
#cg-unpair, #cg-force-unpair {
  position: relative;
  overflow: hidden;
}
.cg-btn-primary::before, #cg-use::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s ease;
  pointer-events: none;
}
.cg-btn-primary:hover::before, #cg-use:hover::before {
  transform: translateX(120%);
}
#cg-unpair:hover, #cg-force-unpair:hover {
  box-shadow: 0 0 0 3px rgba(252, 165, 165, .25), 0 4px 12px rgba(220, 38, 38, .15);
  transform: translateY(-1px);
  transition: all .18s ease;
}

/* GPU pareada banner — subtle energy pulse on the ::before led */
.cg-paired-banner {
  position: relative;
  overflow: hidden;
}
.cg-paired-banner.is-online::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 8% 50%, rgba(16,185,129,.18) 0%, transparent 32%);
  animation: cgBannerPulse 4s ease-in-out infinite;
}
@keyframes cgBannerPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .haon-energy, .cg-paired-banner.is-online::after { animation: none !important; }
}

/* HAON_PROTO_BADGE_V1 — pulsing badge while local GPU is processing */
#haon-proto-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  border: 1px solid rgba(123,92,255,.4);
  border-radius: 14px;
  padding: 12px 18px 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(123,92,255,.15) inset,
    0 0 24px rgba(0,212,255,.18);
  opacity: 0;
  transform: translateY(20px);
  animation: hpbIn .35s ease-out forwards, hpbGlow 1.6s ease-in-out infinite .35s;
  pointer-events: none;
  min-width: 220px;
}
#haon-proto-badge.hpb-out { animation: hpbOut .35s ease-in forwards; }
@keyframes hpbIn  { to { opacity: 1; transform: translateY(0); } }
@keyframes hpbOut { to { opacity: 0; transform: translateY(20px); } }
@keyframes hpbGlow {
  0%,100% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(123,92,255,.15) inset, 0 0 24px rgba(0,212,255,.18); }
  50%     { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(0,212,255,.45) inset, 0 0 36px rgba(123,92,255,.40); }
}
#haon-proto-badge .hpb-row { display: flex; align-items: center; gap: 12px; }
#haon-proto-badge .hpb-led {
  width: 10px; height: 10px; border-radius: 50%;
  background: #00D4FF;
  box-shadow: 0 0 8px #00D4FF, 0 0 14px rgba(0,212,255,.6);
  animation: hpbLedBlink 0.9s ease-in-out infinite;
}
@keyframes hpbLedBlink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.85); }
}
#haon-proto-badge .hpb-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #00D4FF;
  text-shadow: 0 0 8px rgba(0,212,255,.5);
}
#haon-proto-badge .hpb-sub {
  font-size: .70rem;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  #haon-proto-badge { bottom: 14px; right: 14px; left: 14px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #haon-proto-badge, #haon-proto-badge .hpb-led { animation: none !important; opacity: 1; transform: none; }
}

/* TRACKER_FIX_20260521 — cards estouravam por baixo do right-rail
   (cc-ranking-grid usava minmax 280px que não cabe no feed central comprimido
   quando left+right rails estão ativos). */
.tracker-page {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cc-ranking-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}
.cc-card {
  min-width: 0;
}
.cc-card .cc-body,
.cc-card .cc-name,
.cc-card .cc-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crc-card {
  min-width: 0;
  overflow: hidden;
}
.crc-error {
  /* msg de erro NUNCA estoura o card */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  max-height: 3em;
}

@media (max-width: 880px) {
  .tracker-page { padding: 14px 12px 80px; }
  .cc-ranking-grid { grid-template-columns: 1fr !important; }
}

/* TRACKER_LIST_PALANTIR_20260521 — lista densa pra Criadores (Ranking Público) e Lojas */
.cc-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #E5E9EF;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-top: 8px;
}
.cc-row {
  display: grid;
  grid-template-columns: 40px 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #F1F4F8;
  min-width: 0;
  transition: background .12s ease;
}
.cc-row:last-child { border-bottom: 0; }
.cc-row:hover { background: #FAFBFC; }

.cc-row-rank {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.4px;
  text-align: center;
}

.cc-row-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #10B981, #047857);
  flex-shrink: 0;
}
.cc-row-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cc-row-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.cc-row-main { min-width: 0; }
.cc-row-name {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.1px;
}
.cc-row-sub {
  font-size: 11.5px;
  color: #64748B;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.cc-row-metric {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 70px;
}
.cc-row-metric-val {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.3px;
}
.cc-row-metric-lbl {
  font-size: 9.5px;
  color: #94A3B8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.cc-row-link {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid #E5E9EF;
  display: flex; align-items: center; justify-content: center;
  color: #64748B; text-decoration: none;
  font-size: 14px;
  transition: all .12s;
  flex-shrink: 0;
}
.cc-row-link:hover { border-color: #10B981; color: #10B981; background: #F0FDF4; }

/* Filtros (region + period) — pill style */
.cc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F1F4F8;
  margin-bottom: 8px;
}
.cc-filters select,
.cc-filters .cc-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #E5E9EF;
  background: #fff;
  color: #0F172A;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.2px;
}
.cc-filters select:focus { outline: 2px solid #10B981; outline-offset: -1px; }
.cc-filters select:hover { border-color: #10B981; }
.cc-filters-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #94A3B8;
  margin-right: 4px;
}

/* Mobile */
@media (max-width: 640px) {
  .cc-row {
    grid-template-columns: 32px 36px 1fr auto;
    gap: 10px;
    padding: 9px 12px;
  }
  .cc-row-name { font-size: 13px; }
  .cc-row-sub { font-size: 10.5px; }
  .cc-row-metric { min-width: 56px; }
  .cc-row-metric-val { font-size: 12.5px; }
  .cc-row-metric-lbl { font-size: 8.5px; }
}

/* TRACKER_MEUS_CRIADORES_PALANTIR_20260521 — sobrescreve estilo velho roxo/azul */
.tracker-sub-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 12px !important;
}

.crc-card {
  padding: 14px !important;
  border: 1px solid #E5E9EF !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  min-width: 0;
  overflow: hidden;
  transition: border-color .12s;
}
.crc-card:hover { border-color: #10B981 !important; }

.crc-head { gap: 12px !important; align-items: center; }

.crc-avatar {
  width: 44px !important;
  height: 44px !important;
  background: linear-gradient(135deg, #10B981, #047857) !important;
  font-size: 1rem !important;
  font-family: 'JetBrains Mono', monospace !important;
  letter-spacing: 0.5px;
}

.crc-id { min-width: 0; }
.crc-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}
.crc-handle {
  font-size: 11.5px !important;
  color: #64748B !important;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.crc-handle a { color: #10B981 !important; }

.crc-actions { gap: 6px !important; flex-shrink: 0; }
.crc-btn {
  padding: 5px 8px !important;
  background: transparent !important;
  border: 1px solid #E5E9EF !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  color: #64748B;
  transition: all .12s;
}
.crc-btn:hover {
  background: #F0FDF4 !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
}
.crc-btn--del:hover {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}

/* Status pill compacto Palantir-style */
.crc-status {
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 1.2px !important;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid;
}
.crc-st-ok   { background: rgba(16,185,129,.10) !important; color: #047857 !important; border-color: rgba(16,185,129,.32) !important; }
.crc-st-wait { background: rgba(245,158,11,.10) !important; color: #B45309 !important; border-color: rgba(245,158,11,.32) !important; }
.crc-st-err  { background: rgba(239,68,68,.10)  !important; color: #B91C1C !important; border-color: rgba(239,68,68,.32) !important; }

.crc-error {
  margin-top: 10px;
  font-size: 11px !important;
  padding: 6px 10px !important;
  background: rgba(239,68,68,.06) !important;
  color: #B91C1C !important;
  border: 1px solid rgba(239,68,68,.18) !important;
  border-radius: 6px !important;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2px;
}

/* Stats: 4 colunas mono compacto */
.crc-stats {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
  background: #FAFBFC !important;
  border: 1px solid #F1F4F8 !important;
  border-radius: 6px !important;
  margin-top: 12px !important;
}
.crc-stats b {
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: 'JetBrains Mono', monospace !important;
  letter-spacing: 0.3px;
  color: #0F172A;
}
.crc-stats span {
  font-size: 9px !important;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-family: 'JetBrains Mono', monospace;
  color: #94A3B8 !important;
}

/* + Adicionar criador button */
#tk-add-creator,
.tk-add-creator,
button[id*='add-creator'] {
  background: linear-gradient(135deg, #10B981, #047857) !important;
  color: #fff !important;
  border: none !important;
  padding: 9px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16,185,129,.22);
  transition: all .14s;
}
#tk-add-creator:hover { box-shadow: 0 6px 18px rgba(16,185,129,.30); transform: translateY(-1px); }

/* Layout tracker page tight */
.tracker-page { padding: 16px 14px 80px !important; }

/* Feed de criadores empty */
.tracker-feed h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #94A3B8;
  font-family: 'JetBrains Mono', monospace;
  margin: 14px 0 8px;
}

@media (max-width: 880px) {
  .tracker-sub-grid { grid-template-columns: 1fr !important; }
  .crc-stats { grid-template-columns: repeat(4, 1fr) !important; }
  .crc-stats b { font-size: 12px !important; }
}


/* MKT_POLISH_V1 — split layout, compact mine variant, mobile-first */
.mkt-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 80px;
  box-sizing: border-box;
}
.mkt-section { margin-bottom: 28px; }
.mkt-section-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 4px 12px;
  font-size: .82rem; font-weight: 700;
  color: var(--text-2, #94a3b8);
  letter-spacing: .04em; text-transform: uppercase;
}
.mkt-section-head svg { opacity: .8; }
.mkt-section-count {
  background: rgba(45,59,255,.12);
  color: #6366f1;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
body.theme-light .mkt-section-count { background: rgba(45,59,255,.08); }

/* MEUS ANUNCIOS — compact grid (cards ~30% size) */
.mkt-mine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.mkt-card--mine {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  overflow: hidden;
  font-size: .82rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mkt-card--mine:hover {
  transform: translateY(-2px);
  border-color: rgba(45,59,255,.30);
  box-shadow: 0 8px 24px rgba(45,59,255,.10);
}
.mkt-card--mine .mkt-card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.mkt-card--mine .mkt-card-body {
  padding: 8px 10px 6px !important;
  gap: 2px !important;
}
.mkt-card--mine .mkt-card-title {
  font-size: .78rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-card--mine .mkt-card-desc { display: none !important; }
.mkt-card--mine .mkt-card-foot {
  padding-top: 0 !important;
  font-size: .7rem;
}
.mkt-card--mine .mkt-card-foot .mkt-price {
  font-size: .76rem !important;
  font-weight: 700;
}
.mkt-card--mine .mkt-card-author { font-size: .62rem !important; }
.mkt-card--mine .mkt-card-actions {
  padding: 0 10px 8px !important;
  gap: 4px !important;
}
.mkt-card--mine .mkt-card-edit,
.mkt-card--mine .mkt-card-del {
  padding: 4px 8px !important;
  font-size: .68rem !important;
  height: 26px;
  min-width: 0;
}

/* POLISH dos botoes — gradientes + SVG centralizado */
.mkt-card-contact,
.mkt-card-edit,
.mkt-card-del,
.mkt-card-report {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid transparent;
}
.mkt-card-contact {
  flex: 1;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border-color: rgba(45,59,255,.50) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(45,59,255,.20);
}
.mkt-card-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(45,59,255,.35);
  filter: brightness(1.05);
}
.mkt-card-contact:active { transform: translateY(0); }

.mkt-card-report {
  width: 36px; height: 36px;
  padding: 0 !important;
  background: rgba(245,158,11,.12) !important;
  border-color: rgba(245,158,11,.32) !important;
  color: #b45309 !important;
}
.mkt-card-report:hover {
  background: rgba(245,158,11,.22) !important;
  border-color: rgba(245,158,11,.55) !important;
  transform: translateY(-1px);
}

.mkt-card-edit {
  flex: 1;
  background: linear-gradient(135deg, #f0f9ff, #e0e7ff) !important;
  border-color: rgba(45,59,255,.20) !important;
  color: #1d4ed8 !important;
}
.mkt-card-edit:hover {
  background: linear-gradient(135deg, #dbeafe, #c7d2fe) !important;
  border-color: rgba(45,59,255,.40) !important;
  transform: translateY(-1px);
}
.mkt-card-del {
  width: 32px; padding: 0 !important;
  background: rgba(254,226,226,.6) !important;
  border-color: rgba(248,113,113,.30) !important;
  color: #b91c1c !important;
}
.mkt-card-del:hover {
  background: rgba(254,202,202,.9) !important;
  border-color: rgba(248,113,113,.55) !important;
}

/* DARK theme overrides */
body.theme-navy .mkt-card--mine,
body.theme-matte .mkt-card--mine {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
body.theme-navy .mkt-card-edit,
body.theme-matte .mkt-card-edit {
  background: linear-gradient(135deg, rgba(45,59,255,.15), rgba(123,92,255,.15)) !important;
  color: #a5b4fc !important;
}
body.theme-navy .mkt-card-del,
body.theme-matte .mkt-card-del {
  background: rgba(248,113,113,.10) !important;
  color: #fca5a5 !important;
}
body.theme-navy .mkt-card-report,
body.theme-matte .mkt-card-report {
  background: rgba(245,158,11,.10) !important;
  color: #fbbf24 !important;
}

/* MOBILE FIRST — no horizontal scroll, everything centered */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }
  .mkt-page {
    padding: 14px 12px 80px !important;
    max-width: 100vw !important;
  }
  .mkt-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .mkt-new-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .mkt-new-row > * {
    width: 100% !important;
    justify-content: center !important;
  }
  .mkt-toolbar {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .mkt-cat-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    overflow-x: visible !important;
    justify-content: flex-start !important;
  }
  .mkt-chip {
    flex: 0 0 auto !important;
    font-size: .76rem !important;
    padding: 6px 12px !important;
  }
  .mkt-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .mkt-mine-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 8px !important;
  }
  .mkt-card-actions {
    flex-wrap: nowrap !important;
  }
  .mkt-card-contact {
    font-size: .72rem !important;
    padding: 6px 8px !important;
  }
  .mkt-card-contact span { display: inline !important; }
}
@media (max-width: 420px) {
  .mkt-grid { grid-template-columns: 1fr !important; }
  .mkt-mine-grid { grid-template-columns: 1fr 1fr !important; }
  .mkt-card--mine .mkt-card-title { font-size: .74rem !important; }
}


/* TRACKER_POLISH_V2 */
.tracker-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.tracker-tab { display: inline-flex !important; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); color: var(--text-2,#94a3b8); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.tracker-tab:hover { border-color: rgba(45,59,255,.40); color: var(--text,#fff); transform: translateY(-1px); }
.tracker-tab.active { background: linear-gradient(135deg, rgba(45,59,255,.20), rgba(123,92,255,.18)); border-color: rgba(45,59,255,.55); color: #fff; box-shadow: 0 0 0 1px rgba(45,59,255,.20), 0 4px 18px rgba(45,59,255,.18); }
.trk-tab-ico { display: block; flex-shrink: 0; }
body.theme-light .tracker-tab { background: #ffffff; border-color: rgba(0,0,0,.08); color: #475569; }
body.theme-light .tracker-tab.active { background: linear-gradient(135deg, rgba(45,59,255,.10), rgba(123,92,255,.08)); color: #1d4ed8; border-color: rgba(45,59,255,.30); }

.tk-ev-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; margin-right: 4px; background: rgba(148,163,184,.10); color: #94a3b8; vertical-align: -5px; }
.tk-ev-ico--up { background: rgba(34,197,94,.14); color: #16a34a; }
.tk-ev-ico--down { background: rgba(239,68,68,.14); color: #dc2626; }
.tk-ev-ico--info { background: rgba(59,130,246,.14); color: #2563eb; }
.tk-ev-ico--neutral { background: rgba(148,163,184,.10); color: #64748b; }
.tk-ev-ico--glow { box-shadow: 0 0 0 2px rgba(34,197,94,.15), 0 0 14px rgba(34,197,94,.35); animation: tkGlow 1.8s ease-in-out infinite; }
.tk-ev-ico--pulse { animation: tkPulse 1.4s ease-in-out infinite; }
@keyframes tkGlow { 0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,.15), 0 0 10px rgba(34,197,94,.25); } 50% { box-shadow: 0 0 0 2px rgba(34,197,94,.30), 0 0 22px rgba(34,197,94,.55); } }
@keyframes tkPulse { 0%,100% { transform: scale(1) translateY(-5px); } 50% { transform: scale(1.18) translateY(-5px); } }

.tk-src-ico { display: inline-block; vertical-align: -1px; margin-right: 3px; opacity: .85; }

.crc-videos-details summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(45,59,255,.06); border: 1px solid rgba(45,59,255,.12); cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--text,#fff); list-style: none; transition: all .15s; }
.crc-videos-details summary::-webkit-details-marker, .crc-videos-details summary::marker { display: none; }
.crc-videos-details summary:hover { background: rgba(45,59,255,.10); border-color: rgba(45,59,255,.25); }
.crc-videos-details[open] summary { background: linear-gradient(135deg, rgba(45,59,255,.12), rgba(123,92,255,.10)); border-color: rgba(45,59,255,.30); }
.crc-sum-ico { color: #6366f1; flex-shrink: 0; }
.crc-sum-count { margin-left: auto; background: rgba(99,102,241,.18); color: #6366f1; padding: 1px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
body.theme-light .crc-videos-details summary { color: #1f2937; background: rgba(45,59,255,.04); }

.crc-vid-meta span { display: inline-flex; align-items: center; gap: 3px; }

.cc-stale-warn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.25); color: #b45309; font-size: .78rem; margin-top: 12px; }
body.theme-light .cc-stale-warn { background: rgba(245,158,11,.08); }

.cc-row--shop { position: relative; padding: 10px 14px !important; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)) !important; border: 1px solid rgba(255,255,255,.06) !important; border-radius: 10px; transition: all .18s; overflow: hidden; }
.cc-row--shop::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, transparent, currentColor, transparent); opacity: 0; transition: opacity .2s; }
.cc-row--shop:hover::before { opacity: .8; }
.cc-row--shop:hover { border-color: rgba(45,59,255,.35) !important; background: linear-gradient(180deg, rgba(45,59,255,.06), rgba(45,59,255,.02)) !important; transform: translateX(3px); }
.cc-row--shop[data-tier="gold"]   { color: #fbbf24; }
.cc-row--shop[data-tier="silver"] { color: #cbd5e1; }
.cc-row--shop[data-tier="bronze"] { color: #fb923c; }
.cc-row--shop[data-tier="normal"] { color: #94a3b8; }

.cc-row-rank--gold { background: linear-gradient(135deg, #fbbf24, #d97706) !important; color: #fff !important; font-weight: 800; box-shadow: 0 0 0 1px rgba(251,191,36,.30), 0 2px 10px rgba(251,191,36,.25); animation: tkRankGoldPulse 2.5s ease-in-out infinite; }
.cc-row-rank--silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8) !important; color: #0f172a !important; font-weight: 800; }
.cc-row-rank--bronze { background: linear-gradient(135deg, #fb923c, #c2410c) !important; color: #fff !important; font-weight: 800; }
.cc-row-rank--normal { background: rgba(148,163,184,.12); color: #94a3b8; font-weight: 700; }
@keyframes tkRankGoldPulse { 0%,100% { box-shadow: 0 0 0 1px rgba(251,191,36,.30), 0 2px 10px rgba(251,191,36,.25); } 50% { box-shadow: 0 0 0 2px rgba(251,191,36,.50), 0 4px 18px rgba(251,191,36,.45); } }

.cc-row--shop .cc-row-name { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .86rem !important; font-weight: 700; letter-spacing: -0.01em; }
.cc-row--shop .cc-row-sub  { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem !important; color: #94a3b8; }
.cc-row--shop .cc-row-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(45,59,255,.08); border: 1px solid rgba(45,59,255,.18); color: #6366f1; text-decoration: none; transition: all .15s; }
.cc-row--shop .cc-row-link:hover { background: rgba(45,59,255,.18); border-color: rgba(45,59,255,.42); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(45,59,255,.20); }
body.theme-light .cc-row--shop { background: #ffffff !important; border-color: rgba(0,0,0,.06) !important; }
body.theme-light .cc-row--shop:hover { background: linear-gradient(180deg, rgba(45,59,255,.04), #ffffff) !important; }

@media (max-width: 640px) {
  .tracker-tab { padding: 8px 12px; font-size: .76rem; }
  .cc-row--shop { flex-wrap: wrap; gap: 8px !important; }
  .cc-row--shop .cc-row-main { min-width: 0; flex: 1; }
}


/* SALA_POLISH_V1 — Trade Ideas Palantir + Tutoriais polish */

.ti-mini-ico, .ti-lbl-ico {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 2px;
  opacity: .85;
}

/* TRADE IDEAS — Palantir cards */
.ti-card {
  position: relative;
  overflow: hidden;
  transition: all .2s cubic-bezier(.4,0,.2,1) !important;
}
.ti-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent, rgba(167,139,250,.0), transparent);
  transition: background .25s;
}
.ti-card:hover::before {
  background: linear-gradient(180deg, rgba(167,139,250,.0), rgba(167,139,250,.85), rgba(167,139,250,.0));
}
.ti-card:hover {
  transform: translateY(-2px) translateX(2px) !important;
  border-color: rgba(167,139,250,.50) !important;
  box-shadow: 0 8px 28px rgba(123,92,255,.18), 0 0 0 1px rgba(123,92,255,.10);
}
.ti-card .ti-rep {
  font-family: ui-monospace,"JetBrains Mono",monospace;
  letter-spacing: -0.01em;
}
.ti-card .ti-title {
  font-family: ui-monospace,"JetBrains Mono",monospace;
  font-size: .98rem !important;
  letter-spacing: -0.012em;
}
.ti-card .ti-want {
  position: relative;
  background: linear-gradient(135deg, rgba(167,139,250,.12), rgba(167,139,250,.04)) !important;
  border-left: 3px solid rgba(167,139,250,.6) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
}
.ti-card .ti-want::after {
  content: '';
  position: absolute; right: 8px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(167,139,250,.5);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(167,139,250,.6);
}

.ti-flag {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  opacity: .9;
}

.ti-tag {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  letter-spacing: 0 !important;
  font-size: .67rem !important;
  text-transform: uppercase;
}

.ti-card .btn.btn-primary.btn-sm {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border: 1px solid rgba(45,59,255,.50) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(45,59,255,.22);
  transition: all .15s;
}
.ti-card .btn.btn-primary.btn-sm:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(45,59,255,.40);
}
.ti-card .btn.btn-ghost.btn-sm {
  background: rgba(167,139,250,.10) !important;
  border: 1px solid rgba(167,139,250,.25) !important;
  color: #c4b5fd !important;
}
.ti-card .btn.btn-ghost.btn-sm:hover {
  background: rgba(167,139,250,.18) !important;
  border-color: rgba(167,139,250,.45) !important;
}

.ti-badge-offered {
  background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(34,197,94,.10)) !important;
  border: 1px solid rgba(34,197,94,.30) !important;
  color: #6ee7b7 !important;
  box-shadow: 0 0 0 1px rgba(34,197,94,.08), 0 2px 8px rgba(34,197,94,.10);
}

body.theme-light .ti-card:hover {
  border-color: rgba(123,92,255,.40) !important;
  box-shadow: 0 8px 28px rgba(123,92,255,.10), 0 0 0 1px rgba(123,92,255,.06);
}
body.theme-light .ti-card .ti-want {
  background: linear-gradient(135deg, rgba(123,92,255,.06), rgba(123,92,255,.02)) !important;
}

/* TUTORIAIS — kill ugly yellow, Palantir polish */
.tut-card {
  position: relative;
  overflow: hidden;
  transition: all .2s cubic-bezier(.4,0,.2,1) !important;
}
.tut-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(180deg, transparent, rgba(45,59,255,.8), transparent);
  transition: width .2s;
}
.tut-card:hover::before { width: 3px; }
.tut-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(45,59,255,.40) !important;
  box-shadow: 0 8px 28px rgba(45,59,255,.16) !important;
}

.tut-card-paid {
  border: 1px solid rgba(45,59,255,.20) !important;
  background: linear-gradient(180deg, rgba(45,59,255,.05), rgba(255,255,255,.01)) !important;
}
.tut-card-paid:hover { border-color: rgba(45,59,255,.50) !important; }

.tut-kind-badge {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: .64rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
}
.tut-kind-free {
  background: rgba(34,197,94,.14) !important;
  color: #16a34a !important;
  border: 1px solid rgba(34,197,94,.25);
}
.tut-kind-paid {
  background: linear-gradient(135deg, rgba(45,59,255,.18), rgba(123,92,255,.12)) !important;
  color: #6366f1 !important;
  border: 1px solid rgba(45,59,255,.30);
}
body.theme-light .tut-kind-paid { color: #1d4ed8 !important; }

.tut-owned-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34,197,94,.16) !important;
  color: #16a34a !important;
  border: 1px solid rgba(34,197,94,.25);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: ui-monospace,"JetBrains Mono",monospace;
}

.tut-price {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: 1.05rem !important;
  color: #6366f1 !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* NEW: tut-card-cta — substitui o btn amarelo feio */
.tut-card-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.tut-card-cta--paid {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(45,59,255,.22);
}
.tut-card-cta--paid:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(45,59,255,.40);
}
.tut-card-cta--free {
  background: rgba(45,59,255,.10) !important;
  color: #6366f1 !important;
  border: 1px solid rgba(45,59,255,.20);
}
.tut-card-cta--free:hover {
  background: rgba(45,59,255,.18) !important;
  border-color: rgba(45,59,255,.40);
  transform: translateY(-1px);
}

/* Tutoriais — filter buttons */
.tut-filter {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text-2,#94a3b8);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.tut-filter:hover {
  border-color: rgba(45,59,255,.30);
  color: var(--text,#fff);
}
.tut-filter.is-active {
  background: linear-gradient(135deg, rgba(45,59,255,.18), rgba(123,92,255,.14));
  border-color: rgba(45,59,255,.45);
  color: #fff;
}
.tut-fil-ico { flex-shrink: 0; }
body.theme-light .tut-filter { background: #fff; border-color: rgba(0,0,0,.08); color: #475569; }
body.theme-light .tut-filter.is-active { color: #1d4ed8; border-color: rgba(45,59,255,.30); }

/* Tutorial paywall — Palantir lock */
.tut-paywall {
  background: linear-gradient(180deg, rgba(45,59,255,.06), rgba(123,92,255,.03)) !important;
  border: 1px solid rgba(45,59,255,.20) !important;
}
.tut-paywall-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45,59,255,.12), rgba(123,92,255,.08));
  color: #6366f1;
  margin-bottom: 12px;
  border: 1px solid rgba(45,59,255,.22);
  animation: tutLockBreath 3s ease-in-out infinite;
}
@keyframes tutLockBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.0); transform: scale(1); }
  50%      { box-shadow: 0 0 0 8px rgba(99,102,241,.10); transform: scale(1.03); }
}
.tut-paywall p b {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}
.tut-paywall .tut-buy-btn {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border: 0 !important;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(45,59,255,.28);
}

.tut-tag {
  background: rgba(45,59,255,.10) !important;
  color: #6366f1 !important;
  border: 1px solid rgba(45,59,255,.20);
  font-family: ui-monospace,"JetBrains Mono",monospace;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
body.theme-light .tut-tag { color: #1d4ed8 !important; }

.tut-detail-summary {
  background: linear-gradient(135deg, rgba(45,59,255,.08), rgba(123,92,255,.04)) !important;
  border-left: 3px solid rgba(45,59,255,.55) !important;
}

/* Mobile */
@media (max-width: 640px) {
  .ti-card { padding: 12px !important; }
  .ti-title { font-size: .92rem !important; }
  .tut-filter { padding: 6px 10px; font-size: .72rem; }
}

/* DISCOVER_SEARCH_FIX_V1 — kill native WebKit clear + polish premium */
.discover-search-input::-webkit-search-cancel-button,
.discover-search-input::-webkit-search-decoration,
.discover-search-input::-webkit-search-results-button,
.discover-search-input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
.discover-search-input { -moz-appearance: textfield; appearance: textfield; }

.discover-search-input-wrap {
  background: linear-gradient(180deg, #ffffff, #fbfaff) !important;
  border: 1px solid rgba(123,92,255,.14) !important;
  border-radius: 14px !important;
  padding: 2px 10px 2px 16px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.04), inset 0 1px 0 rgba(255,255,255,.6) !important;
}
.discover-search-input-wrap:focus-within {
  border-color: rgba(123,92,255,.50) !important;
  box-shadow: 0 0 0 3px rgba(123,92,255,.12), 0 4px 14px rgba(123,92,255,.10) !important;
  background: #ffffff !important;
}
.discover-search-icon { color: #94a3b8 !important; margin-right: 10px !important; }
.discover-search-input-wrap:focus-within .discover-search-icon { color: #7B5CFF !important; }

.discover-search-input { font-size: 14.5px !important; padding: 13px 6px !important; font-weight: 500; letter-spacing: -0.005em; }
.discover-search-input::placeholder { color: #94a3b8 !important; font-weight: 400; }

.discover-search-clear {
  width: 30px !important; height: 30px !important;
  background: rgba(148,163,184,.12) !important;
  color: #64748b !important;
  font-size: 0 !important;
  transition: all .15s;
}
.discover-search-clear::before {
  content: "";
  display: block;
  width: 12px; height: 12px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=none stroke=black stroke-width=2.6 stroke-linecap=round><line x1=6 y1=6 x2=18 y2=18/><line x1=18 y1=6 x2=6 y2=18/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2.6\" stroke-linecap=\"round\"><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"/><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"/></svg>") center/contain no-repeat;
}
.discover-search-clear:hover {
  background: rgba(239,68,68,.12) !important;
  color: #dc2626 !important;
  transform: scale(1.06);
}

.dss-chip {
  background: #ffffff !important;
  border: 1px solid rgba(123,92,255,.14) !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  padding: 7px 14px !important;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all .15s !important;
}
.dss-chip:hover {
  background: linear-gradient(135deg, rgba(123,92,255,.10), rgba(45,59,255,.06)) !important;
  border-color: rgba(123,92,255,.40) !important;
  color: #6366f1 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123,92,255,.10);
}
.dss-chip.is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border-color: rgba(45,59,255,.50) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(45,59,255,.30);
}

/* Dark themes */
body.theme-navy .discover-search-input-wrap,
body.theme-matte .discover-search-input-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)) !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.theme-navy .discover-search-input-wrap:focus-within,
body.theme-matte .discover-search-input-wrap:focus-within {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(123,92,255,.50) !important;
}
body.theme-navy .discover-search-input,
body.theme-matte .discover-search-input { color: #f1f5f9 !important; }
body.theme-navy .dss-chip,
body.theme-matte .dss-chip {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #cbd5e1 !important;
}

/* =============================================================
   COMMUNITY_PALANTIR_V1 — multi-theme polish for /#/comunidade
   Themes covered:
     - default (Navy)         body[data-theme="..." absent], no body.theme-*
     - body.theme-light       (Light)
     - body.theme-matte       (Black / matte)
   Fixes:
     1. Roxo claro (#c4b5fd / #a78bfa) ilegível em Light
     2. Cards filtros + cards de proposta agora estilo Palantir
     3. Tela de detalhe (.cd-*) com mesma linguagem
     4. SVG icons + botões de voto
   ============================================================= */

/* --- 1. comm-page header ---------------------------------- */
.comm-page { max-width: 1100px; margin: 0 auto; padding: 22px 18px 80px; }
.comm-head h1 {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  letter-spacing: -0.01em;
  font-weight: 700;
  font-size: 1.7rem;
}
.comm-head h1::after {
  content: '';
  display: block;
  width: 38px; height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 2px;
}
.comm-sub { font-size: .9rem; line-height: 1.45; }

.comm-new-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff; border: 1px solid rgba(123,92,255,.55);
  border-radius: 10px;
  padding: 10px 16px; font-weight: 700; font-size: .82rem;
  letter-spacing: .02em; cursor: pointer; flex-shrink: 0;
  transition: transform .14s ease, box-shadow .14s ease;
  box-shadow: 0 4px 14px rgba(45,59,255,.22);
}
.comm-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(45,59,255,.35);
}
.comm-new-btn svg { width: 14px; height: 14px; }

/* --- 2. Filter pills (Todas / Em votação / Ativas) -------- */
.comm-filters { display: flex; gap: 8px; margin: 4px 0 18px; flex-wrap: wrap; }
.comm-filter {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
}
.comm-filter:hover { transform: translateY(-1px); }
/* Navy (default) */
.comm-filter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #94a3b8;
}
.comm-filter:hover { border-color: rgba(123,92,255,.45); color: #cbd5e1; }
.comm-filter.active {
  background: rgba(123,92,255,.16);
  border-color: rgba(123,92,255,.55);
  color: #c4b5fd;
  box-shadow: 0 0 0 1px rgba(123,92,255,.20) inset;
}
/* Black / matte */
body.theme-matte .comm-filter {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: #a1a1aa;
}
body.theme-matte .comm-filter:hover { border-color: rgba(167,139,250,.55); color: #e4e4e7; }
body.theme-matte .comm-filter.active {
  background: rgba(167,139,250,.14);
  border-color: rgba(167,139,250,.55);
  color: #c4b5fd;
}
/* Light — never use light purple on white */
body.theme-light .comm-filter {
  background: #ffffff;
  border-color: rgba(15,23,42,.10);
  color: #475569;
}
body.theme-light .comm-filter:hover {
  border-color: rgba(45,59,255,.35);
  color: #1e40af;
  background: #f8faff;
}
body.theme-light .comm-filter.active {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #1e3a8a;          /* dark navy, WCAG AAA on #eef2ff */
  box-shadow: 0 0 0 1px rgba(45,59,255,.18) inset;
}

/* --- 3. Card grid + card (Palantir) ----------------------- */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

.comm-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition:
    border-color .15s ease,
    transform .18s cubic-bezier(.2,.7,.3,1),
    box-shadow .18s ease,
    background .15s ease;
}
.comm-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.comm-card:hover {
  border-color: rgba(123,92,255,.45);
  transform: translateY(-2px) translateX(2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 0 0 1px rgba(123,92,255,.18);
}
.comm-card:hover::before { transform: scaleY(1); }

.comm-card-head { margin-bottom: 10px; }
.comm-card-author {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem; letter-spacing: .02em;
}
.comm-card-title {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: .98rem;
  margin-bottom: 6px;
  line-height: 1.3;
}
.comm-card-target {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 12px;
}
.comm-card-target svg { width: 11px; height: 11px; }

.comm-card-progress { margin: 10px 0 8px; }
.comm-progress-bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.comm-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF 50%, #00D4FF);
  border-radius: 3px;
  transition: width .4s cubic-bezier(.2,.7,.3,1);
}
.comm-progress-text {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .7rem;
  margin-top: 6px;
  letter-spacing: .02em;
}
.comm-progress-text b { font-weight: 700; }

.comm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.06); }
.comm-price {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: .82rem;
  color: #4ade80;
  letter-spacing: .01em;
}
.comm-perperson {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .02em;
}

/* --- 3a. Card — Navy defaults already cover dark. Black: --- */
body.theme-matte .comm-card {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.06);
}
body.theme-matte .comm-card:hover {
  border-color: rgba(167,139,250,.45);
  box-shadow: 0 12px 28px rgba(0,0,0,.55), 0 0 0 1px rgba(167,139,250,.18);
}
body.theme-matte .comm-card-target {
  background: rgba(167,139,250,.10);
  border: 1px solid rgba(167,139,250,.25);
  color: #c4b5fd;
}
body.theme-matte .comm-card-author { color: #71717a; }
body.theme-matte .comm-card-foot { border-top-color: rgba(255,255,255,.05); }
body.theme-matte .comm-progress-text { color: #a1a1aa; }
body.theme-matte .comm-progress-text b,
body.theme-matte .comm-card-title { color: #f4f4f5; }
body.theme-matte .comm-perperson { color: #a1a1aa; }

/* Navy defaults: tighten target chip + author */
.comm-card-target {
  background: rgba(123,92,255,.10);
  border: 1px solid rgba(123,92,255,.28);
  color: #c4b5fd;
}
.comm-card-author { color: #94a3b8; }
.comm-card-title { color: #f1f5f9; }
.comm-progress-text { color: #94a3b8; }
.comm-progress-text b { color: #f1f5f9; }
.comm-perperson { color: #94a3b8; }

/* --- 3b. Card — Light theme (the broken one) -------------- */
body.theme-light .comm-grid { gap: 14px; }
body.theme-light .comm-card {
  background: #ffffff;
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
body.theme-light .comm-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 14px 30px rgba(45,59,255,.14), 0 0 0 1px rgba(45,59,255,.18);
  background: #fafbff;
}
body.theme-light .comm-card-head { color: #475569; }
body.theme-light .comm-card-author { color: #475569; }
body.theme-light .comm-card-title { color: #0f172a; }
body.theme-light .comm-card-target {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #1e3a8a;        /* dark navy on light indigo, WCAG AAA */
}
body.theme-light .comm-progress-bar { background: #e5e7eb; }
body.theme-light .comm-progress-text { color: #475569; }
body.theme-light .comm-progress-text b { color: #0f172a; }
body.theme-light .comm-card-foot { border-top-color: rgba(15,23,42,.08); }
body.theme-light .comm-price { color: #047857; }
body.theme-light .comm-perperson { color: #475569; }
body.theme-light .comm-head h1 { color: #0f172a; }
body.theme-light .comm-sub { color: #475569; }

/* --- 4. Status badges (3 themes) -------------------------- */
.comm-badge {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
}
.comm-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.comm-badge--voting    { background: rgba(56,189,248,.14);  color: #38bdf8; border: 1px solid rgba(56,189,248,.32); }
.comm-badge--active    { background: rgba(74,222,128,.14);  color: #4ade80; border: 1px solid rgba(74,222,128,.32); }
.comm-badge--closed    { background: rgba(148,163,184,.14); color: #94a3b8; border: 1px solid rgba(148,163,184,.32); }
.comm-badge--cancelled { background: rgba(248,113,113,.10); color: #fca5a5; border: 1px solid rgba(248,113,113,.30); }
.comm-badge--expired   { background: rgba(250,204,21,.10);  color: #facc15; border: 1px solid rgba(250,204,21,.30); }

/* Light theme badges — keep enough contrast on white */
body.theme-light .comm-badge--voting    { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
body.theme-light .comm-badge--active    { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
body.theme-light .comm-badge--closed    { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
body.theme-light .comm-badge--cancelled { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
body.theme-light .comm-badge--expired   { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

/* --- 5. Detail page (.cd-*) ------------------------------- */
.cd-page { max-width: 920px; margin: 0 auto; padding: 4px 4px 60px; }
.cd-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 8px;
  transition: border-color .14s, color .14s, background .14s, transform .14s;
}
.cd-back:hover { transform: translateX(-2px); }
/* Navy default */
.cd-back { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); color: #cbd5e1; }
.cd-back:hover { border-color: rgba(123,92,255,.45); color: #c4b5fd; background: rgba(123,92,255,.10); }
/* Matte */
body.theme-matte .cd-back { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); color: #a1a1aa; }
body.theme-matte .cd-back:hover { border-color: rgba(167,139,250,.45); color: #c4b5fd; background: rgba(167,139,250,.10); }
/* Light */
body.theme-light .cd-back { background: #ffffff; border-color: rgba(15,23,42,.10); color: #475569; }
body.theme-light .cd-back:hover { border-color: #4f46e5; color: #1e40af; background: #eef2ff; }

/* --- Detail card (Palantir side-bar) ---------------------- */
.cd-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 22px 24px;
  transition: border-color .15s ease;
}
.cd-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF);
  opacity: .55;
}
/* Navy default */
.cd-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); color: #f1f5f9; }
/* Matte */
body.theme-matte .cd-card { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.06); color: #f4f4f5; }
/* Light */
body.theme-light .cd-card { background: #ffffff; border-color: rgba(15,23,42,.10); color: #0f172a; box-shadow: 0 1px 2px rgba(15,23,42,.04); }

/* Status pill on the detail */
.cd-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cd-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
/* default voting blue */
.cd-status { background: rgba(56,189,248,.16); color: #38bdf8; border: 1px solid rgba(56,189,248,.32); }
body.theme-light .cd-status { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }

.cd-title {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: 1.55rem;
  margin: 14px 0 6px;
}
body.theme-light .cd-title {
  background: linear-gradient(135deg, #1e40af, #4f46e5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cd-title { background: linear-gradient(135deg, #38bdf8, #7B5CFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
body.theme-matte .cd-title { background: linear-gradient(135deg, #c4b5fd, #38bdf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.cd-sub { margin: 0 0 14px; font-size: .9rem; }
.cd-sub b { font-weight: 700; }
/* Navy */
.cd-sub { color: #94a3b8; } .cd-sub b { color: #c4b5fd; }
body.theme-matte .cd-sub { color: #a1a1aa; } body.theme-matte .cd-sub b { color: #c4b5fd; }
body.theme-light .cd-sub { color: #475569; } body.theme-light .cd-sub b { color: #1e40af; }

/* Stats grid */
.cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
@media (max-width: 640px) { .cd-grid { grid-template-columns: 1fr 1fr; } }
.cd-stat { padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.cd-stat-label {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 6px;
}
.cd-stat-value {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.01em;
}
/* Navy */
.cd-stat { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cd-stat-label { color: #94a3b8; }
.cd-stat-value { color: #f1f5f9; }
/* Matte */
body.theme-matte .cd-stat { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.05); }
body.theme-matte .cd-stat-label { color: #71717a; }
body.theme-matte .cd-stat-value { color: #f4f4f5; }
/* Light */
body.theme-light .cd-stat { background: #f8fafc; border-color: rgba(15,23,42,.08); }
body.theme-light .cd-stat-label { color: #475569; }
body.theme-light .cd-stat-value { color: #0f172a; }

.cd-progress { height: 6px; border-radius: 3px; overflow: hidden; margin: 14px 0 4px; }
.cd-progress { background: rgba(255,255,255,.06); }
body.theme-light .cd-progress { background: #e5e7eb; }
.cd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF 50%, #00D4FF);
  transition: width .5s cubic-bezier(.2,.7,.3,1);
}

/* Section heads */
.cd-section-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; gap: 10px; flex-wrap: wrap; }
.cd-section-title {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.cd-section-title::before {
  content: ''; width: 14px; height: 1px;
  background: linear-gradient(90deg, #7B5CFF, transparent);
}
.cd-section-title { color: #94a3b8; }
body.theme-matte .cd-section-title { color: #a1a1aa; }
body.theme-light .cd-section-title { color: #475569; }

.cd-section-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; font-size: .76rem; font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff; border: 1px solid rgba(123,92,255,.55);
  border-radius: 8px; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.cd-section-action:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45,59,255,.32); }
.cd-section-action svg { width: 14px; height: 14px; }

/* Slot rows */
.cd-slot {
  position: relative; overflow: hidden;
  padding: 14px 16px; border-radius: 10px; border: 1px solid;
  transition: border-color .15s, transform .15s, background .15s;
}
.cd-slot::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF);
  transform: scaleY(0); transform-origin: top;
  transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.cd-slot:hover::before { transform: scaleY(1); }
.cd-slot:hover { transform: translateX(2px); }
/* Navy */
.cd-slot { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cd-slot:hover { border-color: rgba(123,92,255,.4); }
.cd-slot.cd-slot-mine { background: linear-gradient(135deg, rgba(45,59,255,.10), rgba(123,92,255,.06)); border-color: rgba(123,92,255,.55); }
.cd-slot.cd-slot-mine::before { transform: scaleY(1); }
.cd-slot-label { color: #f1f5f9; }
.cd-slot-proposer { color: #94a3b8; }
.cd-slot-empty { color: #94a3b8; }
.cd-slot-member { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); color: #e2e8f0; }
.cd-slot-member-share { color: #94a3b8; }
/* Matte */
body.theme-matte .cd-slot { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.05); }
body.theme-matte .cd-slot:hover { border-color: rgba(167,139,250,.4); }
body.theme-matte .cd-slot.cd-slot-mine { background: linear-gradient(135deg, rgba(167,139,250,.10), rgba(56,189,248,.04)); border-color: rgba(167,139,250,.55); }
body.theme-matte .cd-slot-label { color: #f4f4f5; }
body.theme-matte .cd-slot-proposer { color: #71717a; }
body.theme-matte .cd-slot-member { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: #e4e4e7; }
/* Light */
body.theme-light .cd-slot { background: #f8fafc; border-color: rgba(15,23,42,.08); }
body.theme-light .cd-slot:hover { border-color: #4f46e5; background: #fafbff; }
body.theme-light .cd-slot.cd-slot-mine { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-color: #4f46e5; }
body.theme-light .cd-slot-label { color: #0f172a; }
body.theme-light .cd-slot-proposer { color: #475569; }
body.theme-light .cd-slot-empty { color: #64748b; }
body.theme-light .cd-slot-member { background: #ffffff; border-color: rgba(15,23,42,.08); color: #1f2937; }
body.theme-light .cd-slot-member-share { color: #475569; }

.cd-slot-label {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .95rem; font-weight: 700; letter-spacing: -0.005em;
}
.cd-slot-proposer { font-size: .72rem; margin-top: 3px; }
.cd-slot-member-share {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .64rem; letter-spacing: .04em;
}

/* Slot vote buttons (join / leave / share) */
.cd-slot-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 7px; cursor: pointer;
  border: 1px solid; background: transparent;
  transition: all .15s;
}
.cd-slot-btn svg { width: 12px; height: 12px; }
.cd-slot-btn-join {
  background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(16,185,129,.08));
  border-color: rgba(34,197,94,.45); color: #4ade80;
}
.cd-slot-btn-join:hover { background: linear-gradient(135deg, #16a34a, #059669); color: #fff; border-color: transparent; transform: translateY(-1px); }
.cd-slot-btn-leave {
  background: linear-gradient(135deg, rgba(239,68,68,.14), rgba(220,38,38,.06));
  border-color: rgba(239,68,68,.45); color: #fca5a5;
}
.cd-slot-btn-leave:hover { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; border-color: transparent; transform: translateY(-1px); }
.cd-slot-btn-share {
  background: rgba(123,92,255,.10);
  border-color: rgba(123,92,255,.45); color: #c4b5fd;
}
.cd-slot-btn-share:hover { background: linear-gradient(135deg, #7B5CFF, #2D3BFF); color: #fff; border-color: transparent; transform: translateY(-1px); }

/* Light theme button text contrast fixes */
body.theme-light .cd-slot-btn-join { color: #047857; background: #ecfdf5; border-color: #6ee7b7; }
body.theme-light .cd-slot-btn-leave { color: #b91c1c; background: #fef2f2; border-color: #fca5a5; }
body.theme-light .cd-slot-btn-share { color: #4f46e5; background: #eef2ff; border-color: #c7d2fe; }

/* "You voted" pill (when occupant in slot) */
.cd-voted-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
  background: linear-gradient(135deg, rgba(34,197,94,.20), rgba(16,185,129,.10));
  border: 1px solid rgba(34,197,94,.45); color: #4ade80;
  margin-left: 6px;
}
.cd-voted-pill svg { width: 10px; height: 10px; }
body.theme-light .cd-voted-pill { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }

/* Invite banner */
.cd-invites {
  position: relative; overflow: hidden;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(250,204,21,.10), rgba(245,158,11,.04));
  border: 1px solid rgba(245,158,11,.45);
  border-radius: 10px;
  margin-bottom: 14px;
}
.cd-invites::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, #f59e0b, #ef4444);
}
.cd-invite-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(245,158,11,.20); flex-wrap: wrap; }
.cd-invite-row:last-child { border: none; }
.cd-invite-text { font-size: .88rem; flex: 1; min-width: 200px; }
.cd-invite-text { color: #fde68a; }
body.theme-light .cd-invites { background: linear-gradient(135deg, #fef9c3, #fde68a); border-color: #f59e0b; }
body.theme-light .cd-invite-text { color: #78350f; }

/* Modal (cd) */
.cd-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 9999; }
.cd-modal {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 24px;
  max-width: 460px; width: 100%;
  background: #0b1220; border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.cd-modal::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF); }
body.theme-matte .cd-modal { background: #0a0a0a; border-color: rgba(255,255,255,.08); }
body.theme-light .cd-modal { background: #ffffff; border-color: rgba(15,23,42,.10); box-shadow: 0 24px 60px rgba(15,23,42,.18); }
.cd-modal h3 {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 16px; font-size: 1.05rem;
}
.cd-modal-input {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  font-size: .95rem; box-sizing: border-box; margin-bottom: 12px;
  font-family: inherit; outline: none; transition: border-color .14s;
}
.cd-modal-input { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); color: #f1f5f9; }
.cd-modal-input:focus { border-color: #7B5CFF; }
body.theme-matte .cd-modal-input { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); color: #f4f4f5; }
body.theme-light .cd-modal-input { background: #f8fafc; border-color: rgba(15,23,42,.12); color: #0f172a; }
body.theme-light .cd-modal-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.cd-modal-btn-primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  letter-spacing: .04em;
  border: 1px solid rgba(123,92,255,.55);
  transition: transform .14s, box-shadow .14s;
}
.cd-modal-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45,59,255,.32); }
.cd-modal-btn-secondary {
  background: transparent; border: 1px solid rgba(255,255,255,.10); color: #cbd5e1;
}
body.theme-light .cd-modal-btn-secondary { background: #ffffff; border-color: rgba(15,23,42,.12); color: #475569; }
body.theme-matte .cd-modal-btn-secondary { border-color: rgba(255,255,255,.08); color: #a1a1aa; }
.cd-modal-btn { font-family: ui-monospace, "JetBrains Mono", monospace; letter-spacing: .04em; }

/* Inline rules-box inside the detail (Alvo: ...) */
body.theme-light .cd-card > div[style*="border-left:3px solid #7B5CFF"] {
  background: #eef2ff !important;
  color: #1e3a8a;
}
body.theme-light .cd-card > div[style*="border-left:3px solid #7B5CFF"] b { color: #4f46e5 !important; }

/* --- 6. Light overrides for legacy .comm-detail (older path) */
body.theme-light .comm-card-target,
body.theme-light .comm-detail-target,
body.theme-light .comm-detail-author a {
  color: #1e40af !important;             /* dark blue replaces #c4b5fd / #a78bfa */
}
body.theme-light .comm-detail-rules {
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
  color: #1e3a8a !important;
}
body.theme-light .comm-admin-tag {
  background: #4f46e5 !important;
  color: #fff !important;
}
body.theme-light .comm-msg-form input:focus { border-color: #4f46e5 !important; }

/* --- 7. Empty / loading states ---------------------------- */
.comm-grid .empty,
.comm-grid .loading {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .82rem;
  letter-spacing: .03em;
  text-align: center;
  padding: 36px 18px;
  border: 1px dashed rgba(255,255,255,.10);
  border-radius: 12px;
  grid-column: 1 / -1;
  color: #94a3b8;
}
body.theme-light .comm-grid .empty,
body.theme-light .comm-grid .loading {
  border-color: rgba(15,23,42,.12);
  color: #475569;
  background: #f8fafc;
}
body.theme-matte .comm-grid .empty,
body.theme-matte .comm-grid .loading {
  border-color: rgba(255,255,255,.08);
  color: #a1a1aa;
}

/* --- 8. SVG icon sizing inside comm/cd elements ----------- */
.comm-card-target svg,
.cd-section-action svg,
.comm-new-btn svg,
.cd-slot-btn svg,
.cd-voted-pill svg { flex-shrink: 0; }

/* --- 9. Reduced motion safety ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .comm-card, .comm-card::before,
  .cd-card, .cd-slot, .cd-slot::before,
  .cd-section-action, .cd-modal-btn-primary,
  .comm-new-btn, .comm-filter {
    transition: none !important;
    animation: none !important;
  }
}
/* END COMMUNITY_PALANTIR_V1 */

/* ============================================================
   THEME_FIX_V1 — multi-theme audit fix (2026-05-26)
   ============================================================ */

/* ---------- MKT_POLISH_V1 — re-bind dark overrides ---------- */
body.theme-navy .mkt-card--mine,
body.theme-matte .mkt-card--mine,
body:not(.theme-light) .mkt-card--mine {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
body.theme-navy .mkt-card-edit,
body.theme-matte .mkt-card-edit,
body:not(.theme-light) .mkt-card-edit {
  background: linear-gradient(135deg, rgba(45,59,255,.18), rgba(123,92,255,.14)) !important;
  border-color: rgba(123,92,255,.30) !important;
  color: #a5b4fc !important;
}
body.theme-navy .mkt-card-edit:hover,
body.theme-matte .mkt-card-edit:hover,
body:not(.theme-light) .mkt-card-edit:hover {
  background: linear-gradient(135deg, rgba(45,59,255,.28), rgba(123,92,255,.22)) !important;
  border-color: rgba(123,92,255,.50) !important;
}
body.theme-navy .mkt-card-del,
body.theme-matte .mkt-card-del,
body:not(.theme-light) .mkt-card-del {
  background: rgba(248,113,113,.12) !important;
  border-color: rgba(248,113,113,.25) !important;
  color: #fca5a5 !important;
}
body.theme-navy .mkt-card-del:hover,
body.theme-matte .mkt-card-del:hover,
body:not(.theme-light) .mkt-card-del:hover {
  background: rgba(248,113,113,.22) !important;
  border-color: rgba(248,113,113,.45) !important;
}
body.theme-navy .mkt-card-report,
body.theme-matte .mkt-card-report,
body:not(.theme-light) .mkt-card-report {
  background: rgba(245,158,11,.12) !important;
  border-color: rgba(245,158,11,.25) !important;
  color: #fbbf24 !important;
}
body.theme-navy .mkt-card-report:hover,
body.theme-matte .mkt-card-report:hover,
body:not(.theme-light) .mkt-card-report:hover {
  background: rgba(245,158,11,.22) !important;
  border-color: rgba(245,158,11,.50) !important;
}
body.theme-light .mkt-section-count { background: rgba(45,59,255,.10); color: #4338ca; }
body.theme-navy .mkt-section-count,
body.theme-matte .mkt-section-count,
body:not(.theme-light) .mkt-section-count { background: rgba(123,92,255,.18); color: #c4b5fd; }
body.theme-light .mkt-section-head { color: #52525b; }

/* ---------- DISCOVER_SEARCH_FIX_V1 — re-bind dark overrides ---------- */
body.theme-navy .discover-search-input-wrap,
body.theme-matte .discover-search-input-wrap,
body:not(.theme-light) .discover-search-input-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
body.theme-navy .discover-search-input-wrap:focus-within,
body.theme-matte .discover-search-input-wrap:focus-within,
body:not(.theme-light) .discover-search-input-wrap:focus-within {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(123,92,255,.55) !important;
  box-shadow: 0 0 0 3px rgba(123,92,255,.18), 0 4px 14px rgba(123,92,255,.20) !important;
}
body.theme-navy .discover-search-input,
body.theme-matte .discover-search-input,
body:not(.theme-light) .discover-search-input { color: #f1f5f9 !important; background: transparent !important; }
body.theme-navy .discover-search-input::placeholder,
body.theme-matte .discover-search-input::placeholder,
body:not(.theme-light) .discover-search-input::placeholder { color: #64748b !important; }
body.theme-navy .discover-search-icon,
body.theme-matte .discover-search-icon,
body:not(.theme-light) .discover-search-icon { color: #94a3b8 !important; }
body.theme-navy .discover-search-input-wrap:focus-within .discover-search-icon,
body.theme-matte .discover-search-input-wrap:focus-within .discover-search-icon,
body:not(.theme-light) .discover-search-input-wrap:focus-within .discover-search-icon { color: #a5b4fc !important; }
body.theme-navy .discover-search-clear,
body.theme-matte .discover-search-clear,
body:not(.theme-light) .discover-search-clear {
  background: rgba(255,255,255,.06) !important;
  color: #cbd5e1 !important;
}
body.theme-navy .discover-search-clear:hover,
body.theme-matte .discover-search-clear:hover,
body:not(.theme-light) .discover-search-clear:hover {
  background: rgba(239,68,68,.18) !important;
  color: #fca5a5 !important;
}
body.theme-navy .dss-chip,
body.theme-matte .dss-chip,
body:not(.theme-light) .dss-chip {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #cbd5e1 !important;
}
body.theme-navy .dss-chip:hover,
body.theme-matte .dss-chip:hover,
body:not(.theme-light) .dss-chip:hover {
  background: linear-gradient(135deg, rgba(123,92,255,.18), rgba(45,59,255,.10)) !important;
  border-color: rgba(123,92,255,.45) !important;
  color: #c4b5fd !important;
  box-shadow: 0 4px 12px rgba(123,92,255,.18);
}
body.theme-navy .dss-chip.is-active,
body.theme-matte .dss-chip.is-active,
body:not(.theme-light) .dss-chip.is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border-color: rgba(123,92,255,.55) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(45,59,255,.40);
}

/* ---------- TRACKER_POLISH_V2 — light-theme contrast pass ---------- */
body.theme-light .cc-row--shop .cc-row-sub { color: #52525b !important; }
body.theme-light .cc-row--shop[data-tier='silver'] { color: #475569 !important; }
body.theme-light .cc-row--shop[data-tier='bronze'] { color: #c2410c !important; }
body.theme-light .cc-row--shop[data-tier='gold']   { color: #b45309 !important; }
body.theme-light .cc-row--shop[data-tier='normal'] { color: #64748b !important; }
body.theme-light .cc-row--shop .cc-row-link {
  background: rgba(45,59,255,.06) !important;
  border-color: rgba(45,59,255,.22) !important;
  color: #4338ca !important;
}
body.theme-light .cc-row--shop .cc-row-link:hover {
  background: rgba(45,59,255,.14) !important;
  border-color: rgba(45,59,255,.45) !important;
}
body.theme-light .cc-row-rank--normal { background: rgba(100,116,139,.18); color: #475569; }
body.theme-light .tk-ev-ico--neutral { background: rgba(100,116,139,.14); color: #475569; }
body.theme-light .tk-ev-ico { background: rgba(100,116,139,.12); color: #52525b; }
body.theme-light .tk-ev-ico--up   { background: rgba(34,197,94,.16);  color: #15803d; }
body.theme-light .tk-ev-ico--down { background: rgba(239,68,68,.16);  color: #b91c1c; }
body.theme-light .tk-ev-ico--info { background: rgba(59,130,246,.16); color: #1d4ed8; }
body.theme-light .tracker-tab.active .trk-tab-ico { color: #1d4ed8; }
body.theme-navy .tracker-tab,
body.theme-matte .tracker-tab {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: #cbd5e1;
}
body.theme-navy .tracker-tab.active,
body.theme-matte .tracker-tab.active { color: #ffffff; }
body.theme-light .crc-sum-count { background: rgba(99,102,241,.14); color: #4338ca; }
body.theme-light .crc-sum-ico { color: #4338ca; }
body.theme-light .crc-vid-meta span { color: #52525b; }
body.theme-light .crc-videos-details summary { border-color: rgba(45,59,255,.18); }
body.theme-light .cc-stale-warn { border-color: rgba(245,158,11,.35); color: #92400e; }

/* ---------- SALA_POLISH_V1 — Trade Ideas / Tutoriais ---------- */
body.theme-light .ti-card .btn.btn-ghost.btn-sm {
  background: rgba(123,92,255,.08) !important;
  border-color: rgba(123,92,255,.25) !important;
  color: #5b21b6 !important;
}
body.theme-light .ti-card .btn.btn-ghost.btn-sm:hover {
  background: rgba(123,92,255,.16) !important;
  border-color: rgba(123,92,255,.50) !important;
  color: #4c1d95 !important;
}
body.theme-light .ti-badge-offered {
  background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(34,197,94,.06)) !important;
  border-color: rgba(34,197,94,.32) !important;
  color: #15803d !important;
}
body.theme-light .ti-card .ti-want { border-left-color: rgba(123,92,255,.55) !important; }
body.theme-light .ti-card .ti-want::after {
  background: rgba(123,92,255,.6) !important;
  box-shadow: 0 0 8px rgba(123,92,255,.4) !important;
}
body.theme-light .ti-tag {
  background: rgba(45,59,255,.08) !important;
  color: #4338ca !important;
  border: 1px solid rgba(45,59,255,.22) !important;
}
body.theme-navy .ti-tag,
body.theme-matte .ti-tag {
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.08);
}
body.theme-light .tut-filter.is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  color: #ffffff !important;
  border-color: rgba(45,59,255,.55) !important;
  box-shadow: 0 4px 12px rgba(45,59,255,.22);
}
body.theme-light .tut-filter:hover { color: #18181b; background: #f8fafc; }
body.theme-light .tut-paywall {
  background: linear-gradient(180deg, rgba(45,59,255,.05), rgba(123,92,255,.02)) !important;
  border-color: rgba(45,59,255,.22) !important;
}
body.theme-light .tut-paywall-icon {
  background: linear-gradient(135deg, rgba(45,59,255,.10), rgba(123,92,255,.06));
  color: #4338ca;
  border-color: rgba(45,59,255,.30);
}
body.theme-light .tut-paywall p { color: #1f2937 !important; }
body.theme-navy .tut-paywall-icon,
body.theme-matte .tut-paywall-icon { color: #a5b4fc; }
body.theme-light .tut-kind-free { color: #15803d !important; }
body.theme-light .tut-owned-badge { color: #15803d !important; }
body.theme-light .tut-card-paid {
  background: linear-gradient(180deg, rgba(45,59,255,.04), #ffffff) !important;
  border-color: rgba(45,59,255,.22) !important;
}
body.theme-light .tut-card-cta--free {
  background: rgba(45,59,255,.08) !important;
  color: #4338ca !important;
  border-color: rgba(45,59,255,.25);
}
body.theme-light .tut-card-cta--free:hover {
  background: rgba(45,59,255,.14) !important;
  border-color: rgba(45,59,255,.45);
}
body.theme-light .tut-tag {
  background: rgba(45,59,255,.07) !important;
  color: #4338ca !important;
  border-color: rgba(45,59,255,.22) !important;
}
body.theme-light .tut-detail-summary {
  background: linear-gradient(135deg, rgba(45,59,255,.06), rgba(123,92,255,.02)) !important;
  border-left-color: rgba(45,59,255,.55) !important;
  color: #1f2937 !important;
}
body.theme-light .mkt-section-head svg { color: #52525b; }

/* ============================================================
   END THEME_FIX_V1
   ============================================================ */


/* TOOLS_POLISH_V3 — Palantir operational on featured + better mobile centering */

/* RANK CARDS — let bg breathe + better hover */
.tp-rank-card {
  position: relative;
  transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .25s, box-shadow .25s !important;
}
.tp-rank-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(123,92,255,.10), transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none; border-radius: inherit;
}
.tp-rank-card:hover::before { opacity: 1; }
.tp-rank-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 38px rgba(0,0,0,.36), 0 0 0 1px rgba(123,92,255,.30);
}

.tp-brand-svg {
  width: 36px !important;
  height: 36px !important;
  transition: transform .3s, filter .3s;
}
.tp-rank-card:hover .tp-brand-svg {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 10px rgba(123,92,255,.5));
}

/* Insights BI globe — subtle slow rotation on hover only */
.tp-rank-card:hover .tp-brand-insights {
  animation: tpGlobeSpin 14s linear infinite;
}
@keyframes tpGlobeSpin {
  to { transform: scale(1.08) rotate(360deg); }
}

/* TikTok dark text in light theme so the black is visible */
body.theme-light .tp-brand-tiktok { color: #0f172a; }
body.theme-navy .tp-brand-tiktok,
body.theme-matte .tp-brand-tiktok { color: #fff; }

body.theme-light .tp-brand-amazon { color: #131A22; }
body.theme-navy .tp-brand-amazon,
body.theme-matte .tp-brand-amazon { color: #fff; }

/* FEATURED CARDS — Palantir operational tighten + tactical hover */
.tp-feat-card {
  position: relative;
  border-radius: 12px !important;
  transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .25s, box-shadow .25s !important;
}
.tp-feat-card::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--feat-c1, #7B5CFF), var(--feat-c2, #00D4FF), transparent);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.tp-feat-card:hover::after { opacity: .85; }
.tp-feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--feat-c1, rgba(123,92,255,.40)) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.32), 0 0 0 1px var(--feat-c1, rgba(123,92,255,.20));
}
.tp-feat-name {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  letter-spacing: -0.01em !important;
}
.tp-feat-badge,
.tp-rank-badge {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: .6rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  padding: 2px 8px !important;
  font-weight: 800 !important;
}
.tp-feat-cta,
.tp-rank-cta {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  font-size: .76rem;
}

/* MOBILE-FIRST — no horizontal scroll, centered, single column */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  .tools-page {
    padding: 14px 12px 80px !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
  .tools-header h1 {
    font-size: 1.2rem !important;
    background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .tools-energy-card { width: 100% !important; box-sizing: border-box !important; }

  /* Rank cards single col */
  .tp-rank-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .tp-rank-card { padding: 14px !important; }
  .tp-rank-name { font-size: .98rem !important; }
  .tp-brand-svg { width: 32px !important; height: 32px !important; }

  /* Featured grid 2 cols (mobile shows 2x2) */
  .tp-feat-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .tp-feat-card { padding: 12px !important; min-height: 130px !important; }
  .tp-feat-name { font-size: .82rem !important; }
  .tp-feat-desc {
    font-size: .68rem !important;
    line-height: 1.32 !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }
  .tp-feat-anim { display: none !important; }  /* animations off on mobile pra economizar bateria */

  /* Outras Ferramentas */
  .tp-adv-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
  .tp-adv-card { padding: 10px 12px !important; }
}

/* Very small screens 420px and under */
@media (max-width: 420px) {
  .tp-feat-grid { grid-template-columns: 1fr !important; }
  .tp-feat-card { min-height: 100px !important; }
  .tools-header h1 { font-size: 1.05rem !important; }
}


/* RADAR_FX_V1 — sentiment score big number premium */
.radar-temperature-panel {
  position: relative;
  border-radius: 14px;
  padding: 14px 18px 16px;
  background: radial-gradient(circle at center, rgba(16,185,129,.10), transparent 70%);
  border: 1px solid rgba(16,185,129,.18);
  overflow: hidden;
}
.radar-temperature-panel::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, currentColor, transparent 30%);
  opacity: .15; pointer-events: none;
  animation: radarPanelRotate 8s linear infinite;
}
@keyframes radarPanelRotate { to { transform: rotate(360deg); } }
.radar-temperature-label {
  font-family: ui-monospace,"JetBrains Mono",monospace;
  font-size: .62rem !important;
  letter-spacing: .26em !important;
  text-transform: uppercase;
  color: rgba(255,255,255,.55) !important;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.radar-temperature-score {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: 2.6rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  margin: 2px 0 8px;
  text-shadow: 0 0 18px currentColor, 0 0 38px rgba(255,255,255,.10);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.40));
  position: relative; z-index: 1;
  animation: radarScoreBreath 3s ease-in-out infinite;
}
@keyframes radarScoreBreath {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 6px rgba(0,0,0,.40)); }
  50%      { transform: scale(1.025); filter: drop-shadow(0 2px 12px rgba(0,0,0,.55)); }
}
.radar-temperature-tag {
  display: inline-block;
  font-family: ui-monospace,"JetBrains Mono",monospace;
  font-size: .68rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  padding: 3px 12px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  position: relative; z-index: 1;
}
.radar-temperature-tag--positive { background: rgba(16,185,129,.18); color: #34d399; border: 1px solid rgba(16,185,129,.30); }
.radar-temperature-tag--negative { background: rgba(239,68,68,.18);  color: #fca5a5; border: 1px solid rgba(239,68,68,.30); }
.radar-temperature-tag--neutral  { background: rgba(148,163,184,.18); color: #cbd5e1; border: 1px solid rgba(148,163,184,.30); }

/* Temperature panel border color follows tier */
.radar-temp-hot-pos .radar-temperature-panel   { border-color: rgba(16,185,129,.42); background: radial-gradient(circle at center, rgba(16,185,129,.18), transparent 70%); }
.radar-temp-warm-pos .radar-temperature-panel  { border-color: rgba(132,204,22,.32); background: radial-gradient(circle at center, rgba(132,204,22,.10), transparent 70%); }
.radar-temp-neutral .radar-temperature-panel   { border-color: rgba(148,163,184,.22); background: radial-gradient(circle at center, rgba(148,163,184,.06), transparent 70%); }
.radar-temp-warm-neg .radar-temperature-panel  { border-color: rgba(245,158,11,.32); background: radial-gradient(circle at center, rgba(245,158,11,.10), transparent 70%); }
.radar-temp-hot-neg .radar-temperature-panel   { border-color: rgba(239,68,68,.42); background: radial-gradient(circle at center, rgba(239,68,68,.18), transparent 70%); }

/* Light theme */
body.theme-light .radar-temperature-label { color: #475569 !important; }
body.theme-light .radar-temperature-score {
  text-shadow: 0 0 12px rgba(0,0,0,.04);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.10));
}
body.theme-light .radar-temperature-tag--positive { color: #047857; background: rgba(16,185,129,.10); }
body.theme-light .radar-temperature-tag--negative { color: #991b1b; background: rgba(239,68,68,.10); }
body.theme-light .radar-temperature-tag--neutral  { color: #475569; background: rgba(148,163,184,.10); }

/* ============================================================
   MOBILE_AUDIT_V1 — comprehensive mobile-first audit (2026-05-26)
   Covers: Marketplace, Tracker, Sala, Tools, Comunidade,
           Discover, ADB Web.
   Breakpoints: 768px (tablet/mobile) and 420px (small phone).
   Does NOT duplicate community-palantir-v1 nor the existing
   marketplace/tools mobile blocks above — only fills gaps.
   ============================================================ */

/* === GLOBAL SAFETY NET ====================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  #main, main, .feed, .app-main, .page-wrap {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  * {
    -webkit-tap-highlight-color: transparent;
  }
  img, video, svg, iframe, table, pre, code {
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* === MARKETPLACE — incremental fixes (toolbar/landing) ====== */
@media (max-width: 768px) {
  .mkt-page, .comm-page, .tracker-page, .tools-page,
  .sala-wrap, .cd-page, .copy-page {
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .mkt-landing-hero,
  .mkt-section-head {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .mkt-section-head h2,
  .mkt-section-head h3 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }
  .mkt-card-actions .mkt-card-edit,
  .mkt-card-actions .mkt-card-del,
  .mkt-card-actions .mkt-card-contact,
  .mkt-card-actions .mkt-card-report {
    min-height: 36px !important;
    min-width: 36px !important;
  }
  .mkt-modal, .comm-modal {
    padding: 8px !important;
    align-items: flex-start !important;
  }
  .mkt-modal > div, .comm-modal > div {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 !important;
  }
}

/* === TRACKER — events feed + shop rows + sub-grid =========== */
@media (max-width: 768px) {
  .tracker-page { padding: 12px 12px 80px !important; max-width: 100vw !important; }
  .tracker-tabs {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px !important;
  }
  .tracker-tab {
    min-height: 40px !important;
    padding: 8px 14px !important;
  }
  .tracker-sub-grid,
  .tracker-creators-head {
    grid-template-columns: 1fr !important;
    flex-wrap: wrap !important;
  }
  .cc-row--shop {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .cc-row--shop .cc-row-name { font-size: .82rem !important; }
  .cc-row--shop .cc-row-sub { font-size: .68rem !important; }
  .crc-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .crc-vid-meta { flex-wrap: wrap !important; gap: 4px !important; font-size: .7rem !important; }
}
@media (max-width: 420px) {
  .tracker-tab { font-size: .72rem !important; padding: 7px 10px !important; }
  .cc-row--shop .cc-row-rank { width: 26px !important; height: 26px !important; font-size: .72rem !important; }
}

/* === SALA — tabs + cards + Trade Ideas + Tutoriais ========== */
@media (max-width: 768px) {
  .sala-wrap { padding: 12px !important; max-width: 100vw !important; box-sizing: border-box; }
  .sala-header h1 { font-size: 1.15rem !important; }
  .sala-sub { font-size: .78rem !important; }
  .sala-tabs {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 4px !important;
  }
  .sala-tab {
    padding: 9px 12px !important;
    font-size: .82rem !important;
    min-height: 40px !important;
  }
  .tp-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .tp-card { padding: 14px !important; }
  .ti-list { grid-template-columns: 1fr !important; gap: 10px !important; }
  .ti-card { padding: 12px !important; }
  .ti-card .ti-title { font-size: .88rem !important; }
  .ti-rate-area { grid-template-columns: 1fr !important; }
  .tut-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .tut-card { padding: 10px !important; }
  .tut-detail-cover { max-height: 180px !important; }
  .tut-detail-meta { font-size: .72rem !important; flex-wrap: wrap !important; }
  .tut-filter-group { flex-wrap: wrap !important; gap: 4px !important; }
  .tut-filter { min-height: 36px !important; padding: 7px 12px !important; font-size: .78rem !important; }
  .tut-paywall { padding: 18px 14px !important; }
  .tut-paywall h4 { font-size: 1rem !important; }
  .tut-paywall p { font-size: .82rem !important; }
}
@media (max-width: 420px) {
  .sala-tab { font-size: .74rem !important; padding: 7px 10px !important; }
  .ti-card .ti-title { font-size: .82rem !important; }
  .tp-card { padding: 12px !important; }
}

/* === TOOLS — energia card + Outras Ferramentas extras ======= */
@media (max-width: 768px) {
  .tools-energy-card { padding: 12px !important; }
  .tp-rank-card, .tp-feat-card, .tp-adv-card {
    -webkit-tap-highlight-color: rgba(123,92,255,.15);
  }
  .tp-feat-cta, .tp-rank-cta {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* === COMUNIDADE — filtros + cards + detalhe ================= */
@media (max-width: 768px) {
  .comm-page { padding: 12px 12px 80px !important; max-width: 100vw !important; box-sizing: border-box; }
  .comm-filters {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px !important;
  }
  .comm-filter {
    min-height: 36px !important;
    padding: 7px 12px !important;
    font-size: .78rem !important;
  }
  .comm-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .comm-card { padding: 14px !important; }
  .comm-card-title { font-size: .9rem !important; }
  .comm-card-foot {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .cd-page { padding: 12px !important; max-width: 100vw !important; box-sizing: border-box; }
  .cd-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .comm-detail { padding: 16px !important; }
  .comm-detail-head h1 { font-size: 1.15rem !important; line-height: 1.3 !important; }
  .comm-detail-meta { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .comm-detail-meta b { font-size: .82rem !important; }
}
@media (max-width: 420px) {
  .comm-filter { font-size: .72rem !important; padding: 6px 10px !important; }
  .cd-grid { grid-template-columns: 1fr !important; }
  .comm-detail-meta { grid-template-columns: 1fr 1fr !important; }
}

/* === DISCOVER — search + chips ============================== */
@media (max-width: 768px) {
  .discover-search { gap: 8px !important; margin-bottom: 12px !important; }
  .discover-search-input-wrap { padding: 0 6px 0 12px !important; }
  .discover-search-input {
    font-size: 16px !important; /* prevents iOS auto-zoom */
    padding: 12px 4px !important;
  }
  .discover-search-skills {
    gap: 5px !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  .dss-chip {
    font-size: .76rem !important;
    padding: 6px 10px !important;
    min-height: 32px !important;
  }
  .discover-list { gap: 10px !important; }
  .discover-card { padding: 12px !important; }
  .discover-bio { min-height: 0 !important; }
  .discover-meta { flex-wrap: wrap !important; gap: 8px !important; }
}
@media (max-width: 420px) {
  .dss-chip { font-size: .7rem !important; padding: 5px 9px !important; }
  .discover-card { padding: 10px !important; }
}

/* === ADB WEB — connect/refresh + device cards =============== */
@media (max-width: 768px) {
  .adb-devices-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .adb-status-badge {
    font-size: .72rem !important;
    padding: 4px 8px !important;
  }
  .adb-card-info { font-size: .8rem !important; }
  .adb-card-actions {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .adb-card-actions .st-btn {
    min-height: 36px !important;
    min-width: 44px !important;
    flex: 1 1 auto !important;
  }
  #adb-connect-btn, #adb-refresh-btn {
    min-height: 40px !important;
    padding: 8px 14px !important;
    font-size: .82rem !important;
  }
}

/* === ENERGY-SAVE — disable heavy animations on mobile ======= */
@media (max-width: 768px) {
  .tp-feat-anim,
  .tp-rank-card::before,
  .ti-card::before,
  .tut-card::before,
  .tut-card-paid::after,
  .cc-row--shop::before {
    animation: none !important;
  }
  .ti-card:hover,
  .tut-card:hover,
  .comm-card:hover,
  .mkt-card:hover,
  .tracker-tab:hover,
  .sala-tab:hover,
  .discover-card:hover,
  .tp-rank-card:hover,
  .tp-feat-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === TOUCH TARGETS — Apple/Google 44x44 guideline =========== */
@media (max-width: 768px) {
  .mkt-chip,
  .mkt-cat-chip,
  .comm-filter,
  .tut-filter,
  .tracker-tab,
  .sala-tab,
  .dss-chip {
    min-height: 36px !important;
  }
  .btn,
  .mkt-card-contact,
  .mkt-card-edit,
  .mkt-card-del,
  .mkt-card-report,
  .mkt-new-btn,
  .comm-card-foot .btn,
  .ti-card .btn {
    min-height: 40px !important;
  }
  .mkt-card-report,
  .adb-card-actions .st-btn,
  .icon-btn {
    min-width: 44px !important;
  }
}

/* === MODALS / OVERLAYS — full-width on mobile =============== */
@media (max-width: 768px) {
  .mkt-modal-body, .comm-modal-body,
  .modal-body, .dialog-body {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .mkt-modal-foot, .comm-modal-foot {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .mkt-modal-foot > *, .comm-modal-foot > * {
    flex: 1 1 auto !important;
  }
}

/* === TEXT OVERFLOW — kill cut-off text ====================== */
@media (max-width: 768px) {
  .mkt-card-title,
  .comm-card-title,
  .tut-card .tut-title,
  .ti-card .ti-title,
  .discover-name {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .cc-row--shop .cc-row-name,
  .discover-handle {
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    max-width: 100% !important;
  }
}

/* END MOBILE_AUDIT_V1 ======================================= */


/* AUTH_PALANTIR_V1 — auth modal tactical/serious polish (login + signup) */
.auth-modal::before, .auth-modal::after { display: none !important; }

.auth-modal-bg {
  background: radial-gradient(circle at 50% 30%, rgba(45,59,255,.18), rgba(5,7,13,.85) 70%) !important;
  backdrop-filter: blur(8px);
}

.auth-card {
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(8,12,24,.98)) !important;
  border: 1px solid rgba(99,102,241,.20) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 64px rgba(0,0,0,.65), 0 0 0 1px rgba(99,102,241,.10), inset 0 1px 0 rgba(255,255,255,.04) !important;
  max-width: 420px !important;
  padding: 28px 28px 24px !important;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; left: 0; top: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,92,255,.7), transparent);
  opacity: .8;
}
.auth-card::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,59,255,.5), transparent);
}

.auth-card-close {
  background: rgba(148,163,184,.10) !important;
  border: 1px solid rgba(148,163,184,.15) !important;
  border-radius: 8px !important;
  width: 30px !important; height: 30px !important;
  color: #94a3b8 !important;
  transition: all .15s;
}
.auth-card-close:hover {
  background: rgba(239,68,68,.18) !important;
  color: #fca5a5 !important;
  border-color: rgba(239,68,68,.30) !important;
}

.auth-brand {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px dashed rgba(148,163,184,.12);
}
.auth-brand-logo { width: 44px !important; height: 44px !important; filter: drop-shadow(0 2px 10px rgba(123,92,255,.35)); }
.auth-brand-name {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: 1.06rem !important;
  font-weight: 800 !important;
  color: #f1f5f9 !important;
  letter-spacing: .12em !important;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF, #00D4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-brand-sub {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: .66rem !important;
  letter-spacing: .14em !important;
  color: #64748b !important;
  text-transform: uppercase;
  margin-top: 4px !important;
}

/* TABS — pill toggle */
.auth-card .tabs {
  display: flex; gap: 4px;
  background: rgba(15,23,42,.6);
  border: 1px solid rgba(99,102,241,.12);
  border-radius: 999px;
  padding: 3px;
  margin: 16px 0 18px;
}
.auth-card .tab {
  flex: 1;
  padding: 9px 14px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #94a3b8 !important;
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: .76rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: all .15s;
}
.auth-card .tab:hover { color: #cbd5e1 !important; }
.auth-card .tab.is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(45,59,255,.30);
}

/* FORM */
.auth-card .auth-form { gap: 12px !important; }
.auth-card .auth-form .field { display: flex; flex-direction: column; gap: 5px; }
.auth-card .auth-form .lbl {
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: .65rem !important;
  letter-spacing: .10em !important;
  text-transform: uppercase;
  color: #64748b !important;
  margin-bottom: 0 !important;
}
.auth-card .auth-form input[type="text"],
.auth-card .auth-form input[type="email"],
.auth-card .auth-form input[type="password"] {
  background: rgba(15,23,42,.6) !important;
  border: 1px solid rgba(99,102,241,.16) !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  color: #f1f5f9 !important;
  font-size: 14.5px !important;
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  letter-spacing: -.005em;
  transition: all .15s;
}
.auth-card .auth-form input:focus {
  outline: 0 !important;
  border-color: rgba(123,92,255,.55) !important;
  box-shadow: 0 0 0 3px rgba(123,92,255,.12), inset 0 1px 0 rgba(255,255,255,.04) !important;
  background: rgba(15,23,42,.75) !important;
}
.auth-card .auth-form input::placeholder { color: #475569 !important; }

/* CTA button */
.auth-card .auth-form .btn-primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font-family: ui-monospace,"JetBrains Mono",monospace !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(45,59,255,.32), inset 0 1px 0 rgba(255,255,255,.10) !important;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  margin-top: 4px;
}
.auth-card .auth-form .btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(45,59,255,.45), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.auth-card .auth-form .btn-primary:active { transform: translateY(0); }
.auth-card .auth-form .btn-primary:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  filter: grayscale(.2);
}

/* Form messages */
.auth-card .form-msg {
  font-family: ui-monospace,"JetBrains Mono",monospace;
  font-size: .72rem;
  text-align: center;
  min-height: 14px;
  color: #94a3b8;
}
.auth-card .form-msg.is-error { color: #fca5a5; }
.auth-card .form-msg.is-success { color: #6ee7b7; }

/* Consent block */
.auth-card .auth-consent {
  display: flex; flex-direction: row !important; align-items: flex-start; gap: 8px !important;
  padding: 10px 12px !important;
  background: rgba(15,23,42,.4) !important;
  border: 1px solid rgba(99,102,241,.10) !important;
  border-radius: 8px;
  font-size: .76rem !important;
  color: #94a3b8 !important;
  cursor: pointer;
}
.auth-card .auth-consent input[type="checkbox"] { margin-top: 2px; accent-color: #7B5CFF; }
.auth-card .auth-consent a { color: #a5b4fc; }
.auth-card .auth-consent-text { flex: 1; }

/* Affiliate ref banner */
.auth-card .aff-ref-banner {
  font-family: ui-monospace,"JetBrains Mono",monospace;
  font-size: .72rem;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(34,197,94,.06));
  border: 1px solid rgba(16,185,129,.20);
  border-radius: 8px;
  color: #6ee7b7;
}

/* LIGHT theme overrides */
body.theme-light .auth-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  border-color: rgba(99,102,241,.20) !important;
  box-shadow: 0 18px 64px rgba(15,23,42,.18), 0 0 0 1px rgba(99,102,241,.08) !important;
}
body.theme-light .auth-card-close {
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
  border-color: rgba(15,23,42,.10) !important;
}
body.theme-light .auth-brand-sub { color: #64748b !important; }
body.theme-light .auth-card .tabs {
  background: rgba(99,102,241,.06);
  border-color: rgba(99,102,241,.10);
}
body.theme-light .auth-card .tab { color: #64748b !important; }
body.theme-light .auth-card .tab.is-active { color: #fff !important; }
body.theme-light .auth-card .auth-form input {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.10) !important;
  color: #1f2937 !important;
}
body.theme-light .auth-card .auth-form input:focus {
  background: #ffffff !important;
  border-color: rgba(123,92,255,.50) !important;
}
body.theme-light .auth-card .auth-form input::placeholder { color: #94a3b8 !important; }
body.theme-light .auth-card .auth-consent {
  background: rgba(99,102,241,.04) !important;
  border-color: rgba(99,102,241,.12) !important;
  color: #475569 !important;
}
body.theme-light .auth-card .auth-consent a { color: #4338ca; }

/* MOBILE — centered, no horizontal scroll, comfortable inputs */
@media (max-width: 640px) {
  .auth-card {
    max-width: calc(100vw - 24px) !important;
    padding: 22px 18px 18px !important;
    margin: 12px !important;
  }
  .auth-card .auth-form input { font-size: 16px !important; padding: 12px 14px !important; }
  .auth-card .tab { padding: 8px 10px !important; font-size: .72rem !important; }
  .auth-brand-logo { width: 36px !important; height: 36px !important; }
  .auth-brand-name { font-size: .94rem !important; }
}

/* /#/devices page — already styled via device-trust.js, but light theme guard */
body.theme-light .devices-page h1 { color: #1f2937 !important; }
body.theme-light .devices-page h1 svg { color: #6366f1 !important; }

/* SIGNUP_POLISH_V1 — corrige contraste consent + estiliza country select + mobile */

/* SELECT (country picker injetado por JS) — agora estilo igual aos inputs */
.auth-card .auth-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(15,23,42,.6) !important;
  border: 1px solid rgba(99,102,241,.16) !important;
  border-radius: 8px !important;
  padding: 11px 38px 11px 14px !important;
  color: #f1f5f9 !important;
  font-size: 14.5px !important;
  font-family: ui-monospace, "JetBrains Mono", monospace !important;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: all .15s;
  /* chevron SVG */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=none stroke=%2394a3b8 stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points=6 9 12 15 18 9/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.auth-card .auth-form select:focus {
  outline: 0 !important;
  border-color: rgba(123,92,255,.55) !important;
  box-shadow: 0 0 0 3px rgba(123,92,255,.12) !important;
  background-color: rgba(15,23,42,.75) !important;
}
.auth-card .auth-form select option {
  background: #0f172a;
  color: #f1f5f9;
  font-family: ui-monospace, "JetBrains Mono", monospace;
}

/* CONSENT — contraste forte em light theme (era #475569 sobre lavender claro = ilegível) */
.auth-card .auth-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: rgba(15,23,42,.4) !important;
  border: 1px solid rgba(99,102,241,.12) !important;
  border-radius: 8px;
  cursor: pointer;
  flex-wrap: wrap;
}
.auth-card .auth-consent-text {
  flex: 1;
  min-width: 0;
  font-size: .82rem !important;
  line-height: 1.5 !important;
  color: #cbd5e1 !important;  /* dark theme: slate-300 (legible) */
  font-family: inherit !important;
  letter-spacing: 0 !important;
}
.auth-card .auth-consent-text a {
  color: #a5b4fc !important;
  text-decoration: underline;
  font-weight: 600;
}
.auth-card .auth-consent-text a:hover { color: #c7d2fe !important; }
.auth-card .auth-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #7B5CFF;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* LIGHT theme — select + consent contrast hard */
body.theme-light .auth-card .auth-form select {
  background-color: #ffffff !important;
  border-color: rgba(15,23,42,.10) !important;
  color: #1f2937 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=none stroke=%23475569 stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points=6 9 12 15 18 9/></svg>");
}
body.theme-light .auth-card .auth-form select:focus {
  background-color: #ffffff !important;
  border-color: rgba(123,92,255,.50) !important;
}
body.theme-light .auth-card .auth-form select option {
  background: #ffffff;
  color: #1f2937;
}
body.theme-light .auth-card .auth-consent {
  background: rgba(99,102,241,.06) !important;
  border-color: rgba(99,102,241,.20) !important;
}
body.theme-light .auth-card .auth-consent-text {
  color: #1f2937 !important;  /* FORTE contraste em fundo claro */
  font-weight: 500 !important;
}
body.theme-light .auth-card .auth-consent-text a {
  color: #4338ca !important;
  font-weight: 700;
}
body.theme-light .auth-card .auth-consent-text a:hover { color: #2D3BFF !important; }

/* "Termos aceitos" confirm pill — preserve seu funcionamento */
.auth-card .auth-consent-confirm {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16,185,129,.18);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: ui-monospace, "JetBrains Mono", monospace;
}
.auth-card .auth-consent.is-accepted .auth-consent-confirm { display: inline-flex; }
body.theme-light .auth-card .auth-consent-confirm {
  background: rgba(16,185,129,.14);
  color: #047857;
}

/* MOBILE */
@media (max-width: 640px) {
  .auth-card .auth-form select { font-size: 16px !important; padding: 12px 38px 12px 14px !important; }
  .auth-card .auth-consent { padding: 10px 12px !important; }
  .auth-card .auth-consent-text { font-size: .78rem !important; }
  .auth-card .auth-consent-confirm { width: 100%; justify-content: center; margin-top: 4px; }
}

/* ADB_OVERLAY_PERSIST_V1 — overlay sobrevive a qualquer rota (Studio, Insights, BI, etc) */
.adbx-root {
  z-index: 2147483647 !important;  /* max signed int — acima de qualquer modal/fullscreen */
}
body.tool-fullwidth .adbx-root,
body.tool-fullwidth .adbx-root.is-overlay,
body.tool-fullwidth .adbx-root.is-min {
  z-index: 2147483647 !important;
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* Em is-min ou is-overlay, garante body como parent (já é, mas defensive) */
.adbx-root.is-min, .adbx-root.is-overlay {
  position: fixed !important;
}
/* Não deixa nenhum overflow:hidden de body cortar */
body.tool-fullwidth { overflow: visible !important; }

/* ============================================================
   KEEPALIVE_V1 — opt-in keep-alive toggle + TTL countdown
   Lives inside .adbx-bar.adbx-bar-multi (overlay header rail).
   Theme-aware via body.theme-light / theme-navy / theme-matte.
   ============================================================ */
.adbx-row.adbx-row-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

/* ---- Keep-Alive pill ---------------------------------------- */
.adbx-keepalive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #3a4150 0%, #2a3040 100%);
  color: #cfd6e4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 120ms ease;
  white-space: nowrap;
  user-select: none;
}
.adbx-keepalive-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.adbx-keepalive-toggle:active { transform: translateY(0); }
.adbx-keepalive-toggle .adbx-ka-ico { font-size: 0.85rem; line-height: 1; }
.adbx-keepalive-toggle .adbx-ka-state {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
}
.adbx-keepalive-toggle.is-on {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: rgba(16, 185, 129, 0.55);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 4px 14px rgba(16, 185, 129, 0.32);
}
.adbx-keepalive-toggle.is-on .adbx-ka-state {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

/* ---- Status text (Mantendo sessão ativa…) -------------------- */
.adbx-ka-status {
  flex: 1 1 auto;
  font-size: 0.7rem;
  color: rgba(220, 230, 245, 0.62);
  font-style: italic;
  letter-spacing: 0.01em;
  text-align: center;
  min-height: 1em;
}

/* ---- TTL countdown ------------------------------------------- */
.adbx-ttl-countdown {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease;
}
.adbx-ttl-countdown[data-state="ok"]   { color: #22c55e; }
.adbx-ttl-countdown[data-state="warn"] { color: #f59e0b; }
.adbx-ttl-countdown[data-state="crit"] {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  animation: adbx-ttl-pulse 1.2s ease-in-out infinite;
}
@keyframes adbx-ttl-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ---- Renew button (last 2min only) --------------------------- */
.adbx-renew-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease;
  white-space: nowrap;
  animation: adbx-renew-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.35), 0 4px 14px rgba(249, 115, 22, 0.4);
}
.adbx-renew-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.55), 0 6px 18px rgba(249, 115, 22, 0.55);
}
.adbx-renew-btn:active { transform: translateY(0); }
.adbx-renew-btn[hidden] { display: none !important; }
@keyframes adbx-renew-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.35), 0 4px 14px rgba(249, 115, 22, 0.4); }
  50%      { box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.6),  0 6px 22px rgba(249, 115, 22, 0.7); }
}

/* ---- Theme: LIGHT ------------------------------------------- */
body.theme-light .adbx-row.adbx-row-extras {
  border-top-color: rgba(15, 23, 42, 0.08);
}
body.theme-light .adbx-keepalive-toggle {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: rgba(15, 23, 42, 0.14);
  color: #334155;
}
body.theme-light .adbx-keepalive-toggle .adbx-ka-state {
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
}
body.theme-light .adbx-keepalive-toggle.is-on {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}
body.theme-light .adbx-ka-status { color: rgba(15, 23, 42, 0.55); }
body.theme-light .adbx-ttl-countdown { background: rgba(15, 23, 42, 0.06); }

/* ---- Theme: NAVY (default-ish) — already covered by base ----- */
body.theme-navy .adbx-row.adbx-row-extras {
  border-top-color: rgba(96, 165, 250, 0.18);
}

/* ---- Theme: MATTE ------------------------------------------- */
body.theme-matte .adbx-row.adbx-row-extras {
  border-top-color: rgba(255, 255, 255, 0.04);
}
body.theme-matte .adbx-keepalive-toggle {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Mobile responsiveness ---------------------------------- */
@media (max-width: 640px) {
  .adbx-row.adbx-row-extras {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px;
  }
  .adbx-keepalive-toggle,
  .adbx-renew-btn {
    width: 100%;
    justify-content: center;
  }
  .adbx-ttl-countdown {
    text-align: center;
  }
  .adbx-ka-status {
    text-align: center;
    font-size: 0.66rem;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   MKT_CHIPS_V2 — Platform-branded marketplace filter chips (V3 override)
   Stronger brand identity per active state: TikTok black+chromatic,
   Meta solid blue, YouTube red, HaonHub gradient (all), green→cyan (other).
   Works across theme-light / theme-navy / theme-matte.
   ═════════════════════════════════════════════════════════════════════════ */

/* Base reset — override prior v2 with stronger defaults */
html body .mkt-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all .15s cubic-bezier(.4,0,.2,1) !important;
  box-shadow: none !important;
  position: relative;
}
html body .mkt-chip .mkt-chip-ico {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  opacity: .75;
  color: currentColor;
  transition: opacity .15s, color .15s;
}
html body .mkt-chip:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #e2e8f0 !important;
}
html body .mkt-chip:hover .mkt-chip-ico { opacity: 1; }
html body .mkt-chip:active { transform: translateY(0) scale(.98); }

/* ──────────────────── ACTIVE STATES — DARK / NAVY / MATTE ──────────────────── */

/* TODOS — HaonHub brand gradient (#2D3BFF → #7B5CFF) */
html body .mkt-chip--all.active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(45,59,255,.30) !important;
  transform: translateY(-1px);
}
html body .mkt-chip--all.active .mkt-chip-ico { color: #ffffff; opacity: 1; }
html body .mkt-chip--all:hover .mkt-chip-ico { color: #7B5CFF; }

/* TIKTOK — preto matte com border vermelha + chromatic glyph (cyan/red offsets) */
html body .mkt-chip--tiktok.active {
  background: #000000 !important;
  border: 1px solid #FE2C55 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(254,44,85,.32), inset 0 0 0 1px rgba(0,242,234,.18) !important;
  transform: translateY(-1px);
}
html body .mkt-chip--tiktok.active .mkt-chip-ico {
  color: #ffffff;
  opacity: 1;
  filter:
    drop-shadow(-1px 0 0 rgba(0,242,234,.65))
    drop-shadow(1px 0 0 rgba(254,44,85,.65));
}
html body .mkt-chip--tiktok:hover .mkt-chip-ico { color: #FE2C55; }

/* META — solid Meta blue */
html body .mkt-chip--meta.active {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24,119,242,.32) !important;
  transform: translateY(-1px);
}
html body .mkt-chip--meta.active .mkt-chip-ico { color: #ffffff; opacity: 1; }
html body .mkt-chip--meta:hover .mkt-chip-ico { color: #1877F2; }

/* YOUTUBE — solid YouTube red */
html body .mkt-chip--youtube.active {
  background: #FF0000 !important;
  border-color: #FF0000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255,0,0,.32) !important;
  transform: translateY(-1px);
}
html body .mkt-chip--youtube.active .mkt-chip-ico { color: #ffffff; opacity: 1; }
html body .mkt-chip--youtube:hover .mkt-chip-ico { color: #FF0000; }

/* OUTROS — green→cyan gradient (#10b981 → #00D4FF) */
html body .mkt-chip--other.active {
  background: linear-gradient(135deg, #10b981, #00D4FF) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.30) !important;
  transform: translateY(-1px);
}
html body .mkt-chip--other.active .mkt-chip-ico { color: #ffffff; opacity: 1; }
html body .mkt-chip--other:hover .mkt-chip-ico { color: #00D4FF; }

/* Subtle resting tint on icon per brand (dark themes) */
html body .mkt-chip--tiktok:not(.active) .mkt-chip-ico  { color: #FE2C55; opacity: .70; }
html body .mkt-chip--meta:not(.active) .mkt-chip-ico    { color: #1877F2; opacity: .70; }
html body .mkt-chip--youtube:not(.active) .mkt-chip-ico { color: #FF0000; opacity: .70; }
html body .mkt-chip--other:not(.active) .mkt-chip-ico   { color: #00D4FF; opacity: .70; }
html body .mkt-chip--all:not(.active) .mkt-chip-ico     { color: #7B5CFF; opacity: .75; }

/* ──────────────────── LIGHT THEME ──────────────────── */
body.theme-light html body .mkt-chip,
body.theme-light .mkt-chip {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04) !important;
}
body.theme-light .mkt-chip:hover {
  background: #f8fafc !important;
  border-color: rgba(0,0,0,.15) !important;
  color: #18181b !important;
}

/* Active states reuse the same brand colors (work on both light & dark) */
body.theme-light .mkt-chip--all.active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(45,59,255,.30) !important;
}
body.theme-light .mkt-chip--all.active .mkt-chip-ico { color: #ffffff !important; opacity: 1; }

body.theme-light .mkt-chip--tiktok.active {
  background: #000000 !important;
  border: 1px solid #FE2C55 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(254,44,85,.32), inset 0 0 0 1px rgba(0,242,234,.18) !important;
}
body.theme-light .mkt-chip--tiktok.active .mkt-chip-ico {
  color: #ffffff !important;
  opacity: 1;
  filter:
    drop-shadow(-1px 0 0 rgba(0,242,234,.65))
    drop-shadow(1px 0 0 rgba(254,44,85,.65));
}

body.theme-light .mkt-chip--meta.active {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24,119,242,.32) !important;
}
body.theme-light .mkt-chip--meta.active .mkt-chip-ico { color: #ffffff !important; opacity: 1; }

body.theme-light .mkt-chip--youtube.active {
  background: #FF0000 !important;
  border-color: #FF0000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255,0,0,.32) !important;
}
body.theme-light .mkt-chip--youtube.active .mkt-chip-ico { color: #ffffff !important; opacity: 1; }

body.theme-light .mkt-chip--other.active {
  background: linear-gradient(135deg, #10b981, #00D4FF) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.30) !important;
}
body.theme-light .mkt-chip--other.active .mkt-chip-ico { color: #ffffff !important; opacity: 1; }

/* Resting brand tint on light icons */
body.theme-light .mkt-chip--tiktok:not(.active) .mkt-chip-ico  { color: #FE2C55 !important; opacity: .85; }
body.theme-light .mkt-chip--meta:not(.active) .mkt-chip-ico    { color: #1877F2 !important; opacity: .85; }
body.theme-light .mkt-chip--youtube:not(.active) .mkt-chip-ico { color: #FF0000 !important; opacity: .85; }
body.theme-light .mkt-chip--other:not(.active) .mkt-chip-ico   { color: #10b981 !important; opacity: .85; }
body.theme-light .mkt-chip--all:not(.active) .mkt-chip-ico     { color: #2D3BFF !important; opacity: .85; }

/* ──────────────────── MOBILE ──────────────────── */
@media (max-width: 640px) {
  html body .mkt-chip {
    font-size: .74rem !important;
    padding: 6px 11px !important;
  }
  html body .mkt-chip .mkt-chip-ico {
    width: 12px !important;
    height: 12px !important;
  }
}

/* End MKT_CHIPS_V2 */
/* =============================================================
   LANDING_PALANTIR_V1 — tactical/serious polish for landings
   ----------------------------------------------------------
   Routes covered:
     /#/marketplace/landings           (renderLandingsList)    .lls-*
     /#/marketplace/landing/new        (renderLandingEditorWizard) .lp-wiz-*
     /#/marketplace/landing/:id        (renderLandingEditor)   .le-*
   Themes:
     default                   navy / dark
     body.theme-light
     body.theme-navy
     body.theme-matte
   ============================================================= */

/* ────────────── 1. LIST PAGE (Minhas Landing Pages) ────────── */

.lls-head--palantir {
  align-items: flex-end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(123,92,255,.18);
  margin-bottom: 24px;
}
.lls-back--palantir {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}
.lls-h1--mono {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace !important;
  font-size: 1.35rem !important;
  letter-spacing: .04em !important;
  font-weight: 800 !important;
  margin: 0 0 6px !important;
  position: relative;
}
.lls-h1--mono::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 2px;
}
.lls-stats-row {
  display: flex; gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.lls-stat-chip {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(45,59,255,.10);
  border: 1px solid rgba(45,59,255,.22);
  color: #6366f1;
}
.lls-stat-chip b { color: inherit; font-weight: 800; margin-right: 4px; }
.lls-stat-chip--pub { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.28); color: #059669; }

.lls-cta--palantir {
  font-family: ui-monospace, "JetBrains Mono", monospace !important;
  font-size: .72rem !important;
  letter-spacing: .12em !important;
  font-weight: 800 !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(123,92,255,.55) !important;
  text-transform: uppercase;
  transition: transform .14s ease, box-shadow .18s ease;
}
.lls-cta--palantir:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(45,59,255,.42) !important;
}

/* Cards — Palantir tactical card pattern */
.lls-card {
  position: relative;
  border-radius: 12px !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.lls-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 2;
}
.lls-card:hover {
  transform: translateY(-2px) translateX(2px) !important;
  box-shadow: 0 14px 36px rgba(45,59,255,.18), 0 2px 8px rgba(123,92,255,.10) !important;
  border-color: rgba(123,92,255,.40) !important;
}
.lls-card:hover::before { opacity: 1; }
.lls-card--pub::before { opacity: .35; }

.lls-card-title {
  font-family: ui-monospace, "JetBrains Mono", monospace !important;
  letter-spacing: -.005em !important;
  font-weight: 700 !important;
}
.lls-card-status {
  font-family: ui-monospace, "JetBrains Mono", monospace !important;
  font-size: .58rem !important;
  letter-spacing: .12em !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
}
.lls-card-meta { font-family: ui-monospace, monospace; font-size: .76rem !important; }

/* Card actions — circular SVG chip buttons */
.lls-card-actions--palantir {
  gap: 6px !important;
  padding: 10px 12px 14px !important;
  border-top: 1px solid rgba(0,0,0,.04);
}
.lls-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(123,92,255,.18);
  background: rgba(123,92,255,.04);
  color: #4B5563;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .14s ease, border-color .14s ease, color .14s ease;
}
.lls-chip-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.lls-chip-btn:hover {
  transform: translateY(-1px);
  background: rgba(123,92,255,.12);
  border-color: rgba(123,92,255,.45);
  color: #2D3BFF;
}
.lls-chip-btn.is-copied {
  background: rgba(16,185,129,.16) !important;
  border-color: rgba(16,185,129,.45) !important;
  color: #059669 !important;
}
.lls-chip-btn.is-copied::after {
  content: ' COPIADO';
  font-size: .56rem;
  margin-left: 2px;
}
.lls-chip-btn--danger { color: #B91C1C; border-color: rgba(220,38,38,.18); background: rgba(220,38,38,.04); }
.lls-chip-btn--danger:hover { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.45); color: #991B1B; }

/* Empty state — tactical */
.lls-empty.lls-palantir {
  border: 1px dashed rgba(123,92,255,.30);
  background: linear-gradient(180deg, rgba(45,59,255,.02), rgba(123,92,255,.04));
}
.lls-palantir .lls-empty-icon svg { width: 56px; height: 56px; color: rgba(123,92,255,.45); }
.lls-palantir .lls-empty-icon { font-size: 0; margin-bottom: 18px; }
.lls-palantir h3 {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .98rem;
  letter-spacing: .04em;
  font-weight: 800;
  text-transform: uppercase;
}

/* ────────────── 2. WIZARD (Criar nova landing) ─────────────── */

.lp-wiz-page { padding: 24px 16px 80px; }
.lp-wiz-hero { text-align: center; padding-bottom: 22px; }
.lp-wiz-hero .lls-back--palantir { display: inline-flex; margin-bottom: 16px; }
.lp-wiz-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(123,92,255,.06);
  border: 1px solid rgba(123,92,255,.18);
  margin-bottom: 18px;
}
.lp-wiz-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .10em;
  font-weight: 700;
  color: #9ca3af;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.lp-wiz-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(0,0,0,.08);
  font-size: .60rem;
  letter-spacing: 0;
}
.lp-wiz-step.is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45,59,255,.30);
}
.lp-wiz-step.is-active .lp-wiz-step-num {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.30);
  color: #fff;
}
.lp-wiz-step-sep {
  width: 14px; height: 1px;
  background: rgba(123,92,255,.30);
}
.lp-wiz-h1 {
  font-family: ui-monospace, "JetBrains Mono", monospace !important;
  font-size: 1.35rem !important;
  letter-spacing: .03em !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
}
.lp-wiz-h1::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 2px;
}
.lp-wiz-cta {
  font-family: ui-monospace, monospace !important;
  font-size: .80rem !important;
  letter-spacing: .10em !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.lp-wiz-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.22), transparent 60%);
  pointer-events: none;
}
.lp-wiz-cta:hover {
  filter: brightness(1.06);
}

/* ────────────── 3. EDITOR (le-*) ──────────────────────────── */

.le-topbar--palantir {
  border-bottom: 1px solid rgba(123,92,255,.20) !important;
  backdrop-filter: blur(6px);
}
.le-back--palantir {
  font-family: ui-monospace, "JetBrains Mono", monospace !important;
  font-size: .64rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.le-title-mini--mono {
  font-family: ui-monospace, "JetBrains Mono", monospace !important;
  font-size: .85rem !important;
  letter-spacing: .01em !important;
  font-weight: 700 !important;
}

/* Tab bar — give active a gradient underline */
.le-tab.active {
  position: relative;
}
.le-tab.active::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 2px;
}
.le-tab svg.le-tab-ico {
  transition: transform .14s ease, color .14s ease;
}
.le-tab:hover svg.le-tab-ico { transform: scale(1.08); }

/* Inputs focus glow */
.le-field input:focus,
.le-field select:focus,
.le-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(123,92,255,.12), 0 0 0 1px rgba(123,92,255,.55) !important;
  border-color: #7B5CFF !important;
}

/* Theme cards — selected gets gradient ring */
.le-theme-card.is-active {
  position: relative;
  box-shadow: 0 0 0 2px #7B5CFF, 0 10px 28px rgba(123,92,255,.30) !important;
}
.le-theme-card.is-active::after {
  content: '✓';
  position: absolute;
  top: 6px; right: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
}

/* Primary publish button — pulse on hover */
.le-btn--primary {
  font-family: ui-monospace, monospace !important;
  font-size: .78rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.le-btn--primary:not(:disabled):hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(45,59,255,.42) !important;
}

/* ────────────── 4. THEME OVERRIDES ────────────────────────── */

/* Light theme — keep brand purple legible */
body.theme-light .lls-card {
  background: #ffffff;
  border-color: rgba(0,0,0,.08);
}
body.theme-light .lls-card-actions--palantir { border-top-color: rgba(0,0,0,.06); }
body.theme-light .lls-chip-btn { color: #475569; }
body.theme-light .lls-stat-chip { color: #4338ca; }
body.theme-light .lls-stat-chip--pub { color: #047857; }

/* Navy (dark default) */
body.theme-navy .lls-card,
body:not(.theme-light):not(.theme-matte) .lls-card {
  background: rgba(15,23,42,.55);
  border-color: rgba(255,255,255,.08);
}
body.theme-navy .lls-card-title,
body:not(.theme-light):not(.theme-matte) .lls-card-title {
  color: #e2e8f0 !important;
}
body.theme-navy .lls-card-meta,
body:not(.theme-light):not(.theme-matte) .lls-card-meta {
  color: #94a3b8 !important;
}
body.theme-navy .lls-card-actions--palantir,
body:not(.theme-light):not(.theme-matte) .lls-card-actions--palantir {
  border-top-color: rgba(255,255,255,.06);
}
body.theme-navy .lls-chip-btn,
body:not(.theme-light):not(.theme-matte) .lls-chip-btn {
  color: #cbd5e1;
  background: rgba(123,92,255,.10);
  border-color: rgba(123,92,255,.28);
}
body.theme-navy .lls-chip-btn:hover,
body:not(.theme-light):not(.theme-matte) .lls-chip-btn:hover {
  color: #c4b5fd;
  background: rgba(123,92,255,.20);
  border-color: rgba(123,92,255,.55);
}
body.theme-navy .lls-chip-btn--danger,
body:not(.theme-light):not(.theme-matte) .lls-chip-btn--danger {
  color: #fca5a5;
  background: rgba(220,38,38,.10);
  border-color: rgba(220,38,38,.28);
}
body.theme-navy .lls-chip-btn--danger:hover,
body:not(.theme-light):not(.theme-matte) .lls-chip-btn--danger:hover {
  background: rgba(220,38,38,.22);
  border-color: rgba(220,38,38,.55);
  color: #fecaca;
}
body.theme-navy .lls-stat-chip,
body:not(.theme-light):not(.theme-matte) .lls-stat-chip {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.32);
  color: #a5b4fc;
}
body.theme-navy .lls-stat-chip--pub,
body:not(.theme-light):not(.theme-matte) .lls-stat-chip--pub {
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.32);
  color: #6ee7b7;
}
body.theme-navy .lls-h1--mono,
body:not(.theme-light):not(.theme-matte) .lls-h1--mono {
  color: #f1f5f9 !important;
}
body.theme-navy .lls-empty.lls-palantir,
body:not(.theme-light):not(.theme-matte) .lls-empty.lls-palantir {
  background: linear-gradient(180deg, rgba(99,102,241,.06), rgba(123,92,255,.10));
  border-color: rgba(123,92,255,.32);
}
body.theme-navy .lls-palantir h3,
body:not(.theme-light):not(.theme-matte) .lls-palantir h3 {
  color: #f1f5f9;
}
body.theme-navy .lls-palantir .lls-empty p,
body:not(.theme-light):not(.theme-matte) .lls-palantir .lls-empty p {
  color: #94a3b8;
}

/* Matte / Black */
body.theme-matte .lls-card {
  background: rgba(28,28,30,.85);
  border-color: rgba(255,255,255,.06);
}
body.theme-matte .lls-card-title { color: #f4f4f5 !important; }
body.theme-matte .lls-card-meta { color: #a1a1aa !important; }
body.theme-matte .lls-card-actions--palantir { border-top-color: rgba(255,255,255,.04); }
body.theme-matte .lls-chip-btn {
  color: #d4d4d8;
  background: rgba(123,92,255,.08);
  border-color: rgba(123,92,255,.22);
}
body.theme-matte .lls-chip-btn:hover {
  color: #ddd6fe;
  background: rgba(123,92,255,.18);
  border-color: rgba(123,92,255,.50);
}
body.theme-matte .lls-stat-chip {
  background: rgba(99,102,241,.10);
  border-color: rgba(99,102,241,.26);
  color: #a5b4fc;
}
body.theme-matte .lls-stat-chip--pub {
  background: rgba(16,185,129,.10);
  border-color: rgba(16,185,129,.26);
  color: #6ee7b7;
}
body.theme-matte .lls-h1--mono { color: #fafafa !important; }
body.theme-matte .lls-empty.lls-palantir {
  background: linear-gradient(180deg, rgba(123,92,255,.04), rgba(123,92,255,.10));
  border-color: rgba(123,92,255,.24);
}
body.theme-matte .lls-palantir h3 { color: #fafafa; }

/* Editor topbar dark themes */
body.theme-navy .le-topbar--palantir,
body:not(.theme-light):not(.theme-matte) .le-topbar--palantir {
  background: rgba(15,23,42,.85) !important;
  border-bottom-color: rgba(123,92,255,.28) !important;
}
body.theme-navy .le-title-mini--mono,
body:not(.theme-light):not(.theme-matte) .le-title-mini--mono {
  color: #f1f5f9 !important;
}
body.theme-navy .le-back--palantir,
body:not(.theme-light):not(.theme-matte) .le-back--palantir {
  color: #94a3b8 !important;
}
body.theme-navy .le-back--palantir:hover,
body:not(.theme-light):not(.theme-matte) .le-back--palantir:hover {
  color: #c4b5fd !important;
}
body.theme-matte .le-topbar--palantir {
  background: rgba(20,20,22,.92) !important;
  border-bottom-color: rgba(123,92,255,.22) !important;
}
body.theme-matte .le-title-mini--mono { color: #fafafa !important; }
body.theme-matte .le-back--palantir { color: #a1a1aa !important; }
body.theme-matte .le-back--palantir:hover { color: #ddd6fe !important; }

/* Wizard dark themes */
body.theme-navy .lp-wiz-h1,
body:not(.theme-light):not(.theme-matte) .lp-wiz-h1 {
  color: #f1f5f9 !important;
}
body.theme-navy .lp-wiz-stepper,
body:not(.theme-light):not(.theme-matte) .lp-wiz-stepper {
  background: rgba(99,102,241,.10);
  border-color: rgba(99,102,241,.28);
}
body.theme-navy .lp-wiz-step,
body:not(.theme-light):not(.theme-matte) .lp-wiz-step {
  color: #94a3b8;
}
body.theme-navy .lp-wiz-step-num,
body:not(.theme-light):not(.theme-matte) .lp-wiz-step-num {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: #cbd5e1;
}
body.theme-matte .lp-wiz-h1 { color: #fafafa !important; }
body.theme-matte .lp-wiz-stepper {
  background: rgba(123,92,255,.06);
  border-color: rgba(123,92,255,.22);
}
body.theme-matte .lp-wiz-step { color: #a1a1aa; }
body.theme-matte .lp-wiz-step-num {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: #d4d4d8;
}

/* ────────────── 5. MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .lls-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .lls-head--palantir {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .lls-head--palantir .lls-cta--palantir {
    width: 100%;
    justify-content: center;
  }
  .lls-h1--mono { font-size: 1.15rem !important; }
  .lls-card-actions--palantir {
    flex-direction: column;
    gap: 6px !important;
  }
  .lls-chip-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 10px;
    font-size: .68rem;
  }
  .lp-wiz-stepper {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 10px;
  }
  .lp-wiz-step { font-size: .62rem; padding: 3px 6px; }
  .lp-wiz-step-sep { width: 8px; }
  .lp-wiz-h1 { font-size: 1.10rem !important; }
  .le-back--palantir { font-size: .58rem !important; }
  .le-title-mini--mono { font-size: .78rem !important; max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* END LANDING_PALANTIR_V1 ========================================= */

/* =================================================================
   TRANSCRIPT_PALANTIR_V1 — tactical/serious polish for /#/transcript
   Themes: default (Navy), body.theme-light, body.theme-matte
   Targets: #tx-* and .tx-* (transcript tool only)
   Reduced motion: anims disabled
   ================================================================= */

.tx-shell {
  max-width: 820px;
  margin: 28px auto 80px;
  padding: 0 22px;
}

/* --- Header ---------------------------------------------------- */
.tx-head h2,
.tx-shell h2 {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -.01em;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF 55%, #00D4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
}
.tx-shell h2::after {
  content: '';
  display: block;
  width: 42px; height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 2px;
}
.tx-sub {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 8px 0 22px;
  line-height: 1.5;
}

/* --- Card base ------------------------------------------------- */
.tx-card {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tx-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF);
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(.5);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}
.tx-card:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: rgba(123,92,255,.32);
  box-shadow: 0 10px 30px -10px rgba(123,92,255,.35);
}
.tx-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* --- Privacy badge -------------------------------------------- */
.tx-priv {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.32);
  border-radius: 10px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6EE7B7;
  line-height: 1.45;
}
.tx-priv svg { width: 16px; height: 16px; flex-shrink: 0; color: #10b981; }

/* --- Drop zone ------------------------------------------------- */
.tx-drop {
  display: block;
  position: relative;
  padding: 36px 18px;
  text-align: center;
  border: 2px dashed rgba(123,92,255,.35);
  border-radius: 12px;
  background: rgba(123,92,255,.04);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tx-drop input { display: none; }
.tx-drop-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,59,255,.18), rgba(123,92,255,.18));
  border: 1px solid rgba(123,92,255,.42);
  color: #c4b5fd;
}
.tx-drop-icon svg { width: 22px; height: 22px; }
.tx-drop strong {
  display: block;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.tx-drop span.tx-drop-hint {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .06em;
  color: #94a3b8;
}
.tx-drop:hover,
.tx-drop.is-dragover {
  border-color: rgba(123,92,255,.85);
  background: rgba(123,92,255,.10);
  transform: scale(1.015);
  box-shadow: 0 0 0 4px rgba(123,92,255,.10), 0 10px 30px -10px rgba(123,92,255,.55);
}
.tx-drop.is-dragover .tx-drop-icon { transform: scale(1.08) rotate(-3deg); transition: transform .2s ease; }
/* glow ring on dragover */
.tx-drop.is-dragover::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(123,92,255,.18);
  animation: txGlowPulse 2s ease-in-out infinite;
}
@keyframes txGlowPulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1;  }
}

/* --- Selected file pill --------------------------------------- */
.tx-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(123,92,255,.10);
  border: 1px solid rgba(123,92,255,.35);
  border-radius: 10px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .74rem;
  letter-spacing: .04em;
  color: #c4b5fd;
}
.tx-file .tx-fname {
  font-weight: 700;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx-file .tx-fmeta {
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a78bfa;
}

/* --- Form fields ---------------------------------------------- */
.tx-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.tx-row label,
.tx-form-label {
  display: block;
  margin-bottom: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.tx-row select,
.tx-row input,
.tx-apikey-section input {
  width: 100%;
  padding: 11px 13px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  color: #e5e7eb;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .82rem;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.tx-row select:focus,
.tx-row input:focus,
.tx-apikey-section input:focus {
  outline: none;
  border-color: rgba(123,92,255,.65);
  background: rgba(123,92,255,.06);
  box-shadow: 0 0 0 3px rgba(123,92,255,.18);
}
.tx-quality-info {
  margin-top: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .66rem;
  letter-spacing: .06em;
  color: #64748b;
}

/* --- API key collapsible -------------------------------------- */
.tx-apikey-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 10px;
  background: rgba(123,92,255,.08);
  border: 1px solid rgba(123,92,255,.30);
  border-radius: 8px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c4b5fd;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.tx-apikey-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(123,92,255,.6);
  background: rgba(123,92,255,.14);
}
.tx-apikey-toggle svg { width: 12px; height: 12px; }
.tx-apikey-section {
  display: none;
  margin-top: 12px;
  padding: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.tx-apikey-section.is-open { display: block; }
.tx-apikey-help {
  margin-top: 8px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .62rem;
  letter-spacing: .05em;
  color: #64748b;
  line-height: 1.5;
}

/* --- Primary action button (Transcribe) ----------------------- */
#tx-go {
  position: relative;
  width: 100%;
  padding: 15px 22px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  border: 1px solid rgba(123,92,255,.6);
  border-radius: 11px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 6px 22px -6px rgba(45,59,255,.55);
}
#tx-go:disabled {
  background: rgba(255,255,255,.06);
  color: #64748b;
  border-color: rgba(255,255,255,.08);
  box-shadow: none;
  cursor: not-allowed;
  letter-spacing: .08em;
}
#tx-go:not(:disabled):hover {
  transform: translateY(-2px) translateX(2px);
  box-shadow: 0 14px 34px -10px rgba(123,92,255,.7);
  filter: brightness(1.05);
}
#tx-go:not(:disabled):active {
  transform: translateY(0);
}
/* ripple effect (added by JS) */
.tx-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  animation: txRipple .6s ease-out forwards;
}
@keyframes txRipple {
  to { transform: scale(2.4); opacity: 0; }
}

/* --- Progress -------------------------------------------------- */
.tx-progress {
  display: none;
  position: relative;
  padding: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(123,92,255,.32);
  border-radius: 11px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 1px rgba(123,92,255,.08), 0 10px 30px -14px rgba(123,92,255,.5);
  animation: txProgGlow 2.4s ease-in-out infinite;
}
@keyframes txProgGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(123,92,255,.08), 0 10px 30px -14px rgba(123,92,255,.4); }
  50%      { box-shadow: 0 0 0 1px rgba(123,92,255,.22), 0 14px 38px -10px rgba(123,92,255,.65); }
}
.tx-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.tx-progress-stage {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.tx-progress-timer {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.tx-progress-bar {
  height: 8px;
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.tx-progress-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF, #7B5CFF, #2D3BFF);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: txShim 2.2s linear infinite;
  box-shadow: 0 0 12px rgba(123,92,255,.5);
}
@keyframes txShim {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* --- Output box ------------------------------------------------ */
.tx-output {
  display: none;
}
.tx-output-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  gap: 8px;
}
.tx-output-title {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c4b5fd;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tx-output-title svg { width: 16px; height: 16px; color: #7B5CFF; }
.tx-output-meta {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tx-output-meta b {
  color: #c4b5fd;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tx-output textarea {
  width: 100%;
  min-height: 320px;
  padding: 16px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 2px solid rgba(123,92,255,.45);
  border-radius: 10px;
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e5e7eb;
  resize: vertical;
  box-sizing: border-box;
}
.tx-output textarea:focus {
  outline: none;
  border-left-color: #7B5CFF;
  box-shadow: 0 0 0 3px rgba(123,92,255,.16);
}
/* typewriter cursor */
.tx-output textarea.is-typing { caret-color: #00D4FF; }
.tx-cursor-indicator {
  display: inline-block;
  width: 8px; height: 14px;
  background: #00D4FF;
  vertical-align: middle;
  animation: txBlink 1s steps(2, end) infinite;
}
@keyframes txBlink {
  50% { opacity: 0; }
}

/* --- Action buttons (copy/download/clear) --------------------- */
.tx-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.tx-actions button,
.tx-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cbd5e1;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}
.tx-actions button svg,
.tx-actions a svg {
  width: 13px; height: 13px;
}
.tx-actions button:hover,
.tx-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(123,92,255,.55);
  background: rgba(123,92,255,.10);
  color: #c4b5fd;
}
.tx-actions .tx-btn-primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  border-color: rgba(123,92,255,.7);
  box-shadow: 0 5px 18px -6px rgba(45,59,255,.55);
}
.tx-actions .tx-btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px -8px rgba(123,92,255,.7);
}
.tx-actions .is-success {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #fff !important;
  border-color: rgba(16,185,129,.6) !important;
}

/* --- Error box ------------------------------------------------- */
.tx-error {
  padding: 14px 16px;
  background: rgba(220,38,38,.10);
  border: 1px solid rgba(252,165,165,.4);
  border-left: 3px solid #f87171;
  border-radius: 10px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .76rem;
  letter-spacing: .04em;
  color: #fca5a5;
  line-height: 1.5;
}

/* --- Sparkle burst (1x on finish) ----------------------------- */
.tx-sparkle {
  position: absolute;
  pointer-events: none;
  width: 14px; height: 14px;
  color: #00D4FF;
  animation: txSparkle .8s ease-out forwards;
}
.tx-sparkle svg { width: 100%; height: 100%; }
@keyframes txSparkle {
  0%   { transform: translate(0,0) scale(.4) rotate(0deg);  opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(var(--dx,0), var(--dy,0)) scale(1.4) rotate(220deg); opacity: 0; }
}

/* =====================================================
   THEME: LIGHT (body.theme-light)
   ===================================================== */
body.theme-light .tx-sub { color: #475569; }
body.theme-light .tx-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
body.theme-light .tx-card:hover {
  border-color: rgba(123,92,255,.45);
  box-shadow: 0 12px 30px -10px rgba(123,92,255,.30);
}
body.theme-light .tx-priv {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: #065F46;
}
body.theme-light .tx-priv svg { color: #059669; }
body.theme-light .tx-drop {
  background: #F8FAFC;
  border-color: #cbd5e1;
}
body.theme-light .tx-drop strong { color: #1e293b; }
body.theme-light .tx-drop span.tx-drop-hint { color: #64748b; }
body.theme-light .tx-drop-icon {
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
  border-color: #c7d2fe;
  color: #6d28d9;
}
body.theme-light .tx-drop:hover,
body.theme-light .tx-drop.is-dragover {
  background: #F5F3FF;
  border-color: #7B5CFF;
}
body.theme-light .tx-file {
  background: #F5F3FF;
  border-color: #ddd6fe;
  color: #5B21B6;
}
body.theme-light .tx-file .tx-fmeta { color: #7c3aed; }
body.theme-light .tx-row label,
body.theme-light .tx-form-label { color: #475569; }
body.theme-light .tx-row select,
body.theme-light .tx-row input,
body.theme-light .tx-apikey-section input {
  background: #fff;
  border-color: #e2e8f0;
  color: #1e293b;
}
body.theme-light .tx-row select:focus,
body.theme-light .tx-row input:focus,
body.theme-light .tx-apikey-section input:focus {
  border-color: #7B5CFF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(123,92,255,.18);
}
body.theme-light .tx-quality-info { color: #94a3b8; }
body.theme-light .tx-apikey-toggle {
  background: #F5F3FF;
  border-color: #ddd6fe;
  color: #5B21B6;
}
body.theme-light .tx-apikey-toggle:hover { background: #EDE9FE; border-color: #a78bfa; }
body.theme-light .tx-apikey-section {
  background: #FAFAF9;
  border-color: #e5e7eb;
}
body.theme-light .tx-apikey-help { color: #94a3b8; }
body.theme-light .tx-progress {
  background: #FAFAF9;
  border-color: #ddd6fe;
}
body.theme-light .tx-progress-stage { color: #5B21B6; }
body.theme-light .tx-progress-timer { color: #64748b; }
body.theme-light .tx-progress-bar { background: #e2e8f0; }
body.theme-light .tx-output-head { border-bottom-color: #e5e7eb; }
body.theme-light .tx-output-title { color: #5B21B6; }
body.theme-light .tx-output-meta { color: #64748b; }
body.theme-light .tx-output-meta b { color: #5B21B6; }
body.theme-light .tx-output textarea {
  background: #FAFAF9;
  border-color: #e5e7eb;
  border-left-color: rgba(123,92,255,.5);
  color: #1e293b;
}
body.theme-light .tx-actions button,
body.theme-light .tx-actions a {
  background: #fff;
  border-color: #e5e7eb;
  color: #475569;
}
body.theme-light .tx-actions button:hover,
body.theme-light .tx-actions a:hover {
  background: #F5F3FF;
  border-color: #7B5CFF;
  color: #5B21B6;
}
body.theme-light #tx-go:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}
body.theme-light .tx-error {
  background: #FEF2F2;
  border-color: #FCA5A5;
  border-left-color: #ef4444;
  color: #7F1D1D;
}

/* =====================================================
   THEME: MATTE (body.theme-matte)
   ===================================================== */
body.theme-matte .tx-card {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.07);
}
body.theme-matte .tx-card:hover {
  border-color: rgba(167,139,250,.45);
  box-shadow: 0 10px 30px -12px rgba(167,139,250,.4);
}
body.theme-matte .tx-card::before {
  background: linear-gradient(180deg, #6366f1, #a78bfa);
}
body.theme-matte .tx-row select,
body.theme-matte .tx-row input,
body.theme-matte .tx-apikey-section input {
  background: rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.07);
  color: #e4e4e7;
}
body.theme-matte .tx-row select:focus,
body.theme-matte .tx-row input:focus,
body.theme-matte .tx-apikey-section input:focus {
  border-color: rgba(167,139,250,.65);
  box-shadow: 0 0 0 3px rgba(167,139,250,.18);
}
body.theme-matte .tx-output textarea {
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.07);
  color: #e4e4e7;
}

/* =====================================================
   MOBILE — touch-friendly
   ===================================================== */
@media (max-width: 768px) {
  .tx-shell {
    max-width: 100%;
    width: 100%;
    margin: 18px auto 60px;
    padding: 0 14px;
  }
  .tx-shell h2 { font-size: 1.4rem; }
  .tx-sub { font-size: .68rem; }
  .tx-card { padding: 16px; border-radius: 11px; }
  .tx-drop {
    padding: 24px 14px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .tx-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tx-row select,
  .tx-row input,
  .tx-apikey-section input {
    min-height: 44px;
    font-size: 16px; /* prevent iOS zoom */
  }
  #tx-go {
    min-height: 52px;
    font-size: .78rem;
  }
  .tx-actions { gap: 6px; }
  .tx-actions button,
  .tx-actions a {
    min-height: 44px;
    padding: 10px 12px;
    font-size: .64rem;
    flex: 1 1 auto;
    justify-content: center;
  }
  .tx-output-head { flex-direction: column; align-items: flex-start; }
  .tx-output textarea { min-height: 240px; font-size: 13px; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .tx-card,
  .tx-card::before,
  .tx-drop,
  .tx-drop::after,
  .tx-drop-icon,
  #tx-go,
  .tx-actions button,
  .tx-actions a,
  .tx-apikey-toggle,
  .tx-progress,
  .tx-progress-fill,
  .tx-sparkle,
  .tx-ripple,
  .tx-cursor-indicator {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transform: none !important;
  }
}

/* END TRANSCRIPT_PALANTIR_V1 ===================================== */

/* ============================================================
   NOTEPAD_PERSIST_V1 — overlay flutuante sobrevive a qualquer rota
   Same defensive pattern as ADB Web overlay (max z-index +
   body.tool-fullwidth survival rules). Cross-route only (same
   subdomain). Cross-subdomain requires Bridge extension (Etapa 4).
   ============================================================ */
.np-fab,
#np-fab,
.np-overlay,
#np-overlay {
  z-index: 2147483647 !important; /* max signed int — beat anything */
}

/* Studio/Insights/etc adicionam body.tool-fullwidth — defensive */
body.tool-fullwidth .np-fab,
body.tool-fullwidth #np-fab {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}
body.tool-fullwidth .np-fab.is-on,
body.tool-fullwidth #np-fab.is-on {
  display: flex !important;
  visibility: visible !important;
}
body.tool-fullwidth .np-overlay,
body.tool-fullwidth #np-overlay {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}
body.tool-fullwidth .np-overlay.is-open,
body.tool-fullwidth #np-overlay.is-open {
  display: flex !important;
  visibility: visible !important;
}

/* Position fixed sempre — proteção extra contra qualquer CSS de rota
   que tente sobrescrever position (overlay já é position:fixed por
   regra inline do JS, isso só reforça) */
.np-fab,
#np-fab,
.np-overlay,
#np-overlay {
  position: fixed !important;
}

/* END NOTEPAD_PERSIST_V1 ============================================ */

/* ========== COOKIE_KEEPER_PALANTIR_V1 START ========== */
.ck-shell { max-width: 980px; margin: 0 auto; padding: 14px 14px 60px; font-family: ui-monospace, "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, monospace; }
.ck-back { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; transition: color .25s ease; font-family: ui-monospace, "JetBrains Mono", monospace; }
.ck-back:hover { color: #2D3BFF; }
.ck-back svg { width: 12px; height: 12px; }

.ck-head { margin: 8px 0 18px; }
.ck-head-eyebrow { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; }
.ck-h1--mono { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; margin: 0; background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ck-sub--mono { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .82rem; color: #64748b; margin: 6px 0 0; letter-spacing: .02em; line-height: 1.55; max-width: 720px; }

/* Stats KPI row */
.ck-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 18px; }
.ck-kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.ck-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2D3BFF, #7B5CFF); opacity: 0; transition: opacity .35s ease; }
.ck-kpi:hover { transform: translateY(-2px) translateX(2px); border-color: #c4b5fd; box-shadow: 0 8px 24px -10px rgba(123,92,255,.30); }
.ck-kpi:hover::before { opacity: 1; }
.ck-kpi-label { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .60rem; letter-spacing: .18em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; }
.ck-kpi-value { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 1.55rem; font-weight: 700; color: #0f172a; line-height: 1; }
.ck-kpi-value--live { background: linear-gradient(135deg, #10b981, #34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ck-kpi-value--stale { background: linear-gradient(135deg, #f59e0b, #fbbf24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ck-kpi-value--expired { background: linear-gradient(135deg, #ef4444, #fb7185); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ck-kpi-value--total { background: linear-gradient(135deg, #2D3BFF, #7B5CFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Radar card surround */
.ck-radar-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; margin-bottom: 18px; position: relative; overflow: hidden; transition: border-color .35s ease, box-shadow .35s ease; }
.ck-radar-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF); opacity: .55; }
.ck-radar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .16em; color: #64748b; text-transform: uppercase; }
.ck-radar-head b { color: #0f172a; font-weight: 700; }
.ck-radar-head .ck-radar-status { display: inline-flex; align-items: center; gap: 6px; }
.ck-radar-head .ck-radar-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: ckBreathe 2.6s ease-in-out infinite; }
.ck-radar-svg-wrap { position: relative; width: 100%; background: linear-gradient(180deg,#fafbfc 0%,#f3f5f8 100%); border: 1px solid #e8edf3; border-radius: 8px; overflow: hidden; }
.ck-radar-log { margin-top: 8px; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .70rem; color: #64748b; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; }

/* Add form card */
.ck-add-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; margin-bottom: 18px; position: relative; overflow: hidden; transition: border-color .35s ease, box-shadow .35s ease; }
.ck-add-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2D3BFF, #7B5CFF); opacity: 0; transition: opacity .35s ease; }
.ck-add-card:hover { border-color: #c4b5fd; box-shadow: 0 8px 28px -12px rgba(123,92,255,.22); }
.ck-add-card:hover::before { opacity: 1; }
.ck-add-h3 { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0f172a; margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.ck-add-h3 svg { width: 16px; height: 16px; color: #7B5CFF; }
.ck-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ck-label--mono { display: block; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #64748b; margin-bottom: 6px; }
.ck-input, .ck-select, .ck-textarea { width: 100%; padding: 9px 11px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: .88rem; box-sizing: border-box; background: #fff; color: #0f172a; transition: border-color .25s, box-shadow .25s; font-family: inherit; }
.ck-textarea { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .80rem; resize: vertical; }
.ck-input:focus, .ck-select:focus, .ck-textarea:focus { outline: none; border-color: #7B5CFF; box-shadow: 0 0 0 3px rgba(123,92,255,.18); }
.ck-add-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ck-int-block { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .72rem; color: #334155; letter-spacing: .06em; }
.ck-int-block b { color: #2D3BFF; font-weight: 700; }
.ck-range { flex: 1; min-width: 200px; accent-color: #7B5CFF; }
.ck-btn-primary { position: relative; overflow: hidden; padding: 10px 22px; background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 100%); color: #fff; border: 0; border-radius: 8px; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, filter .25s ease; }
.ck-btn-primary svg { width: 14px; height: 14px; }
.ck-btn-primary:hover { transform: translateY(-2px) translateX(2px); box-shadow: 0 12px 28px -10px rgba(45,59,255,.55); filter: brightness(1.08); }
.ck-btn-primary:active { transform: translateY(0); filter: brightness(.95); }
.ck-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.ck-add-msg { margin-top: 10px; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .74rem; letter-spacing: .04em; min-height: 18px; }

/* Jars grid */
.ck-list-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px; }
.ck-list-h3 { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #0f172a; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.ck-list-h3-count { font-size: .68rem; color: #94a3b8; font-weight: 400; letter-spacing: .12em; }

.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ck-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 14px 12px; position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease; display: flex; flex-direction: column; gap: 10px; }
.ck-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF); opacity: 0; transition: opacity .4s ease, transform .4s ease; transform: scaleY(.4); transform-origin: center; }
.ck-card:hover { transform: translateY(-2px) translateX(2px); border-color: #c4b5fd; box-shadow: 0 14px 34px -14px rgba(123,92,255,.30), 0 2px 8px -2px rgba(45,59,255,.10); }
.ck-card:hover::before { opacity: 1; transform: scaleY(1); }

.ck-card-head { display: flex; align-items: center; gap: 10px; }
.ck-card-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #f8fafc; border: 1px solid #e5e7eb; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.ck-card:hover .ck-card-icon { transform: rotate(-6deg) scale(1.04); }
.ck-card-icon svg { width: 22px; height: 22px; }
.ck-card-platform-tiktok { background: #000; border-color: #000; color: #fff; }
.ck-card-platform-tiktok svg { color: #fff; }
.ck-card-platform-amazon { background: #fff7ed; border-color: #fed7aa; color: #ea580c; }
.ck-card-platform-amazon svg { color: #ea580c; }
.ck-card-platform-other { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }
.ck-card-platform-other svg { color: #4f46e5; }
.ck-card-title-block { flex: 1; min-width: 0; }
.ck-card-label { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .82rem; font-weight: 700; color: #0f172a; letter-spacing: .01em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-card-domain { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .62rem; color: #94a3b8; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ck-status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ck-status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; position: relative; }
.ck-status-dot--live { background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.55); animation: ckBreathe 2.4s ease-in-out infinite; }
.ck-status-dot--stale { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.55); animation: ckBreathe 2.4s ease-in-out infinite; }
.ck-status-dot--expired { background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: ckBreathePulse 1s ease-in-out infinite; }
.ck-status-dot--idle { background: #94a3b8; }
.ck-status-badge { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .60rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.ck-status-badge--live { background: rgba(16,185,129,.10); color: #047857; }
.ck-status-badge--stale { background: rgba(245,158,11,.12); color: #b45309; }
.ck-status-badge--expired { background: rgba(239,68,68,.12); color: #b91c1c; }
.ck-status-badge--idle { background: #f1f5f9; color: #64748b; }

.ck-meta-line { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .66rem; color: #64748b; letter-spacing: .06em; }
.ck-meta-line svg { width: 11px; height: 11px; opacity: .75; flex-shrink: 0; }
.ck-meta-row { display: flex; flex-wrap: wrap; gap: 10px 14px; }

.ck-cookie-preview { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .64rem; color: #94a3b8; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 6px; padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ck-card-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed #eef2f7; }
.ck-chip-btn { position: relative; overflow: hidden; padding: 6px 11px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #475569; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, background .3s, color .3s; }
.ck-chip-btn svg { width: 11px; height: 11px; }
.ck-chip-btn:hover { transform: translateY(-1px); border-color: #c4b5fd; color: #2D3BFF; background: #faf9ff; }
.ck-chip-btn--ping:hover { color: #2D3BFF; border-color: #2D3BFF; background: linear-gradient(135deg, rgba(45,59,255,.06), rgba(123,92,255,.06)); }
.ck-chip-btn--del { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.ck-chip-btn--del:hover { background: #fee2e2; color: #991b1b; border-color: #fca5a5; transform: translateY(-1px); }
.ck-chip-btn:disabled { opacity: .5; cursor: wait; transform: none; }

/* Toggle (auto-refresh) */
.ck-toggle-row { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; background: #f8fafc; border: 1px solid #e5e7eb; cursor: pointer; user-select: none; transition: border-color .3s, background .3s; }
.ck-toggle-row:hover { border-color: #c4b5fd; }
.ck-toggle-track { position: relative; width: 32px; height: 18px; background: #cbd5e1; border-radius: 999px; transition: background .35s cubic-bezier(.2,.7,.2,1); flex-shrink: 0; }
.ck-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.ck-toggle-row.is-on .ck-toggle-track { background: linear-gradient(135deg, #2D3BFF, #7B5CFF); }
.ck-toggle-row.is-on .ck-toggle-thumb { transform: translateX(14px); }
.ck-toggle-label { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .60rem; letter-spacing: .16em; text-transform: uppercase; color: #475569; font-weight: 700; }

/* Empty state */
.ck-empty { text-align: center; padding: 44px 18px; background: #fff; border: 1px dashed #c7d2fe; border-radius: 14px; }
.ck-empty-icon { width: 56px; height: 56px; margin: 0 auto 12px; color: #7B5CFF; opacity: .75; }
.ck-empty-icon svg { width: 100%; height: 100%; }
.ck-empty-title { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0f172a; margin-bottom: 6px; }
.ck-empty-sub { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .72rem; color: #64748b; letter-spacing: .04em; max-width: 380px; margin: 0 auto 14px; line-height: 1.5; }

/* Shimmer on action-in-progress */
.ck-card.is-pinging { position: relative; }
.ck-card.is-pinging::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(45,59,255,.06) 50%, transparent 100%); animation: ckShimmer 1.6s linear infinite; pointer-events: none; border-radius: inherit; }
.ck-card.platform-tiktok.is-pinging::after { background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 50%, transparent 100%); }
.ck-card.platform-amazon.is-pinging::after { background: linear-gradient(90deg, transparent 0%, rgba(234,88,12,.10) 50%, transparent 100%); }

/* Confetti burst on success */
.ck-confetti-host { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.ck-confetti { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; opacity: 0; }
.ck-confetti svg { width: 100%; height: 100%; display: block; }
.ck-confetti.is-burst { animation: ckConfetti 800ms cubic-bezier(.2,.7,.2,1) forwards; }
.ck-confetti.c1 { --tx: -38px; --ty: -28px; --rot: -90deg; color: #7B5CFF; }
.ck-confetti.c2 { --tx: 32px; --ty: -36px; --rot: 80deg; color: #00D4FF; }
.ck-confetti.c3 { --tx: 0px; --ty: -48px; --rot: 180deg; color: #2D3BFF; }

/* Ripple on primary CTA */
.ck-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); pointer-events: none; animation: ckRipple .55s ease-out forwards; }

/* Animations (all >= 2s to avoid fatigue, except expired alert + 800ms one-shot) */
@keyframes ckBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
@keyframes ckBreathePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); transform: scale(1); }
  50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0); transform: scale(1.12); }
}
@keyframes ckShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes ckConfetti {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0deg); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--rot)); }
}
@keyframes ckRipple {
  to { transform: scale(8); opacity: 0; }
}

/* ================= THEME-NAVY ================= */
body.theme-navy .ck-shell { color: #e6edf7; }
body.theme-navy .ck-back { color: #94a3b8; }
body.theme-navy .ck-back:hover { color: #a78bfa; }
body.theme-navy .ck-sub--mono { color: #94a3b8; }
body.theme-navy .ck-head-eyebrow { color: #64748b; }
body.theme-navy .ck-kpi,
body.theme-navy .ck-radar-card,
body.theme-navy .ck-add-card,
body.theme-navy .ck-card,
body.theme-navy .ck-empty { background: #0f172a; border-color: #1e293b; color: #e6edf7; }
body.theme-navy .ck-kpi:hover,
body.theme-navy .ck-add-card:hover,
body.theme-navy .ck-card:hover { border-color: #6366f1; box-shadow: 0 14px 34px -14px rgba(123,92,255,.45); }
body.theme-navy .ck-kpi-label { color: #64748b; }
body.theme-navy .ck-kpi-value { color: #e6edf7; }
body.theme-navy .ck-radar-head { color: #94a3b8; }
body.theme-navy .ck-radar-head b { color: #e6edf7; }
body.theme-navy .ck-radar-svg-wrap { background: linear-gradient(180deg,#0b1224 0%,#0f172a 100%); border-color: #1e293b; }
body.theme-navy .ck-radar-log { color: #64748b; }
body.theme-navy .ck-add-h3,
body.theme-navy .ck-list-h3 { color: #e6edf7; }
body.theme-navy .ck-list-h3-count { color: #64748b; }
body.theme-navy .ck-label--mono { color: #94a3b8; }
body.theme-navy .ck-input,
body.theme-navy .ck-select,
body.theme-navy .ck-textarea { background: #0b1224; border-color: #1e293b; color: #e6edf7; }
body.theme-navy .ck-input:focus,
body.theme-navy .ck-select:focus,
body.theme-navy .ck-textarea:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.20); }
body.theme-navy .ck-card-label { color: #e6edf7; }
body.theme-navy .ck-card-domain { color: #64748b; }
body.theme-navy .ck-card-icon { background: #0b1224; border-color: #1e293b; }
body.theme-navy .ck-card-platform-tiktok { background: #000; border-color: #1e293b; }
body.theme-navy .ck-card-platform-amazon { background: #2a1808; border-color: #7c2d12; color: #fdba74; }
body.theme-navy .ck-card-platform-amazon svg { color: #fdba74; }
body.theme-navy .ck-card-platform-other { background: #1e1b4b; border-color: #312e81; color: #a5b4fc; }
body.theme-navy .ck-card-platform-other svg { color: #a5b4fc; }
body.theme-navy .ck-meta-line { color: #94a3b8; }
body.theme-navy .ck-cookie-preview { background: #0b1224; border-color: #1e293b; color: #64748b; }
body.theme-navy .ck-card-actions { border-top-color: #1e293b; }
body.theme-navy .ck-chip-btn { background: #0b1224; border-color: #1e293b; color: #94a3b8; }
body.theme-navy .ck-chip-btn:hover { background: #1e1b4b; color: #c4b5fd; border-color: #6366f1; }
body.theme-navy .ck-chip-btn--del { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.30); color: #fca5a5; }
body.theme-navy .ck-chip-btn--del:hover { background: rgba(239,68,68,.20); color: #fecaca; border-color: rgba(239,68,68,.55); }
body.theme-navy .ck-toggle-row { background: #0b1224; border-color: #1e293b; }
body.theme-navy .ck-toggle-row:hover { border-color: #6366f1; }
body.theme-navy .ck-toggle-track { background: #1e293b; }
body.theme-navy .ck-toggle-label { color: #94a3b8; }
body.theme-navy .ck-empty-title { color: #e6edf7; }
body.theme-navy .ck-empty-sub { color: #94a3b8; }
body.theme-navy .ck-empty { border-color: #312e81; }
body.theme-navy .ck-status-badge--live { background: rgba(16,185,129,.15); color: #6ee7b7; }
body.theme-navy .ck-status-badge--stale { background: rgba(245,158,11,.18); color: #fcd34d; }
body.theme-navy .ck-status-badge--expired { background: rgba(239,68,68,.18); color: #fca5a5; }
body.theme-navy .ck-status-badge--idle { background: #1e293b; color: #94a3b8; }

/* ================= THEME-MATTE ================= */
body.theme-matte .ck-shell { color: #1a1a1a; }
body.theme-matte .ck-back { color: #555; }
body.theme-matte .ck-back:hover { color: #2D3BFF; }
body.theme-matte .ck-sub--mono { color: #555; }
body.theme-matte .ck-head-eyebrow { color: #888; }
body.theme-matte .ck-kpi,
body.theme-matte .ck-radar-card,
body.theme-matte .ck-add-card,
body.theme-matte .ck-card,
body.theme-matte .ck-empty { background: #fafafa; border-color: #d4d4d4; }
body.theme-matte .ck-kpi:hover,
body.theme-matte .ck-add-card:hover,
body.theme-matte .ck-card:hover { border-color: #7B5CFF; box-shadow: 0 14px 34px -14px rgba(123,92,255,.30); }
body.theme-matte .ck-input,
body.theme-matte .ck-select,
body.theme-matte .ck-textarea { background: #fff; border-color: #d4d4d4; color: #1a1a1a; }
body.theme-matte .ck-card-icon { background: #f4f4f4; border-color: #d4d4d4; }
body.theme-matte .ck-cookie-preview { background: #f4f4f4; border-color: #e5e5e5; color: #777; }
body.theme-matte .ck-chip-btn { background: #fff; border-color: #d4d4d4; color: #555; }
body.theme-matte .ck-toggle-row { background: #f4f4f4; border-color: #d4d4d4; }
body.theme-matte .ck-card-actions { border-top-color: #e5e5e5; }

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .ck-shell { padding: 10px 12px 48px; }
  .ck-h1--mono { font-size: 1.20rem; }
  .ck-sub--mono { font-size: .76rem; }
  .ck-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ck-kpi { padding: 10px 12px; }
  .ck-kpi-value { font-size: 1.30rem; }
  .ck-grid-2 { grid-template-columns: 1fr; }
  .ck-grid { grid-template-columns: 1fr; gap: 10px; }
  .ck-add-actions { flex-direction: column; align-items: stretch; }
  .ck-range { width: 100%; min-width: 0; }
  .ck-btn-primary { width: 100%; justify-content: center; padding: 13px 18px; font-size: .76rem; min-height: 44px; }
  .ck-card-actions { gap: 8px; }
  .ck-chip-btn { min-height: 36px; padding: 9px 12px; font-size: .64rem; }
  .ck-toggle-row { min-height: 36px; padding: 6px 12px 6px 6px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ck-card, .ck-kpi, .ck-add-card, .ck-radar-card, .ck-chip-btn, .ck-btn-primary, .ck-toggle-row, .ck-toggle-track, .ck-toggle-thumb, .ck-card-icon { transition: none !important; }
  .ck-status-dot--live, .ck-status-dot--stale, .ck-status-dot--expired, .ck-radar-head .ck-radar-dot { animation: none !important; }
  .ck-card.is-pinging::after { animation: none !important; }
  .ck-confetti.is-burst { animation: none !important; opacity: 0 !important; }
  .ck-card:hover, .ck-kpi:hover, .ck-add-card:hover, .ck-btn-primary:hover, .ck-chip-btn:hover { transform: none !important; }
}
/* ========== COOKIE_KEEPER_PALANTIR_V1 END ========== */

/* ─── AFFILIATE_CHAT_PALANTIR_V1 ─────────────────────────────────────
   Palantir polish for /#/affiliate-chat
   All rules scoped under .ac-wrap to avoid colliding with admin
   Cost Tracking page (which uses .ac-kpi/.ac-card/.ac-pill but
   never wraps with .ac-wrap).
   ─────────────────────────────────────────────────────────────── */

.ac-wrap {
  --ac-mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  --ac-blue: #2D3BFF;
  --ac-violet: #7B5CFF;
  --ac-cyan: #00D4FF;
  --ac-grad: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 100%);
  --ac-grad-soft: linear-gradient(135deg, rgba(45,59,255,.16), rgba(123,92,255,.16));
  --ac-bord: rgba(255,255,255,.08);
  --ac-bord-h: rgba(123,92,255,.45);
  --ac-bg-card: rgba(255,255,255,.025);
  --ac-bg-card-h: rgba(123,92,255,.06);
  --ac-text-dim: rgba(255,255,255,.55);
  --ac-text-faint: rgba(255,255,255,.4);
}

.ac-wrap .ac-header { margin-bottom: 18px; position: relative; }
.ac-wrap .ac-header h1 {
  font-family: var(--ac-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--ac-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}
.ac-wrap .ac-header h1 svg { color: #a78bfa; flex-shrink: 0; }
.ac-wrap .ac-sub {
  font-family: var(--ac-mono);
  font-size: .74rem;
  letter-spacing: .03em;
  color: var(--ac-text-dim);
}

.ac-wrap .ac-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}
.ac-wrap .ac-stat {
  position: relative;
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-bord);
  border-radius: 10px;
  padding: 12px 14px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ac-wrap .ac-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ac-grad);
  opacity: 0;
  transition: opacity .2s ease;
}
.ac-wrap .ac-stat:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: var(--ac-bord-h);
  box-shadow: 0 8px 24px -10px rgba(123,92,255,.4);
}
.ac-wrap .ac-stat:hover::before { opacity: 1; }
.ac-wrap .ac-stat-label {
  font-family: var(--ac-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac-text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.ac-wrap .ac-stat-label svg { width: 12px; height: 12px; color: #a78bfa; }
.ac-wrap .ac-stat-val {
  font-family: var(--ac-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #f1f5f9;
  line-height: 1;
}
.ac-wrap .ac-stat-foot {
  font-family: var(--ac-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--ac-text-faint);
  margin-top: 4px;
}
.ac-wrap .ac-stat-online .ac-stat-val { color: #34d399; }
.ac-wrap .ac-stat-online .ac-stat-label svg { color: #34d399; }

.ac-wrap .ac-section-head h3 {
  font-family: var(--ac-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac-text-dim);
}
.ac-wrap .ac-section-head .btn {
  font-family: var(--ac-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ac-grad);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ac-wrap .ac-section-head .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(123,92,255,.6);
}
.ac-wrap .ac-section-head .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.4) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.ac-wrap .ac-section-head .btn:active::after { opacity: 1; transform: scale(2); transition: 0s; }

.ac-wrap .ac-search { position: relative; margin-bottom: 10px; }
.ac-wrap .ac-search input {
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--ac-bord);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 8px 10px 8px 30px;
  font-family: var(--ac-mono);
  font-size: .76rem;
  letter-spacing: .02em;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ac-wrap .ac-search input:focus {
  outline: none;
  border-color: var(--ac-violet);
  box-shadow: 0 0 0 3px rgba(123,92,255,.16);
  background: rgba(0,0,0,.4);
}
.ac-wrap .ac-search svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--ac-text-faint);
  pointer-events: none;
}

.ac-wrap .ac-group-item {
  position: relative;
  padding: 10px 12px 10px 14px;
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-bord);
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  animation: ac-item-in .25s ease both;
}
.ac-wrap .ac-group-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ac-grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s ease;
}
.ac-wrap .ac-group-item:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: var(--ac-bord-h);
  background: var(--ac-bg-card-h);
  box-shadow: 0 6px 18px -8px rgba(123,92,255,.35);
}
.ac-wrap .ac-group-item:hover::before { transform: scaleY(1); }
.ac-wrap .ac-group-item.is-active {
  background: var(--ac-grad-soft);
  border-color: var(--ac-bord-h);
}
.ac-wrap .ac-group-item.is-active::before { transform: scaleY(1); }
.ac-wrap .ac-group-meta b {
  font-family: var(--ac-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.ac-wrap .ac-group-meta small {
  font-family: var(--ac-mono);
  font-size: .6rem;
  letter-spacing: .04em;
  color: var(--ac-text-faint);
}

.ac-wrap .ac-unread {
  display: inline-block;
  min-width: 18px;
  padding: 2px 6px;
  background: #10b981;
  color: #fff;
  font-family: var(--ac-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: 9px;
  text-align: center;
  animation: ac-fade-in .3s ease both;
}

.ac-wrap .ac-aff-item {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .2s ease, transform .2s ease;
  border: 1px solid transparent;
  overflow: hidden;
}
.ac-wrap .ac-aff-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ac-grad);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.ac-wrap .ac-aff-item:hover {
  background: var(--ac-bg-card-h);
  border-color: var(--ac-bord);
  transform: translateX(2px);
}
.ac-wrap .ac-aff-item:hover::before { transform: scaleY(.7); }
.ac-wrap .ac-aff-meta b {
  font-family: var(--ac-mono);
  font-size: .78rem;
  letter-spacing: .01em;
}
.ac-wrap .ac-aff-meta small {
  font-family: var(--ac-mono);
  font-size: .6rem;
  letter-spacing: .04em;
  color: var(--ac-text-faint);
}

.ac-wrap .ac-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}
.ac-wrap .ac-dot.is-online {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,.6);
  animation: ac-breathe 2.4s ease-in-out infinite;
}

.ac-wrap .ac-main {
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-bord);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.ac-wrap .ac-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(123,92,255,.4) 50%, transparent 100%);
  opacity: .5;
}

.ac-wrap .ac-empty-pane svg { color: rgba(123,92,255,.4); }
.ac-wrap .ac-empty-pane p {
  font-family: var(--ac-mono);
  font-size: .76rem;
  letter-spacing: .03em;
  color: var(--ac-text-dim);
}

.ac-wrap .ac-chat-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ac-bord);
  background: linear-gradient(180deg, rgba(123,92,255,.03), transparent);
}
.ac-wrap .ac-chat-head h3 {
  font-family: var(--ac-mono);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ac-wrap .ac-chat-head small {
  font-family: var(--ac-mono);
  font-size: .64rem;
  letter-spacing: .04em;
  color: var(--ac-text-dim);
}
.ac-wrap .ac-chat-actions .btn {
  font-family: var(--ac-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ac-wrap .ac-icon-btn {
  background: transparent;
  border: 1px solid var(--ac-bord);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ac-text-dim);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.ac-wrap .ac-icon-btn:hover {
  color: #c4b5fd;
  border-color: var(--ac-bord-h);
  background: var(--ac-bg-card-h);
  transform: translateY(-1px);
}
.ac-wrap .ac-icon-btn svg { width: 15px; height: 15px; }

.ac-wrap .ac-messages { padding: 16px; gap: 12px; scroll-behavior: smooth; }
.ac-wrap .ac-msg { animation: ac-msg-in .25s cubic-bezier(.18,.89,.32,1.27) both; }
.ac-wrap .ac-msg-author {
  font-family: var(--ac-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a78bfa;
}
.ac-wrap .ac-msg-bubble {
  background: rgba(255,255,255,.06);
  padding: 9px 13px;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  font-size: .85rem;
  line-height: 1.45;
  border: 1px solid rgba(255,255,255,.04);
  transition: box-shadow .2s ease;
}
.ac-wrap .ac-msg-bubble:hover { box-shadow: 0 4px 12px -4px rgba(123,92,255,.2); }
.ac-wrap .ac-msg-mine .ac-msg-bubble {
  background: var(--ac-grad);
  color: #fff;
  border: none;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 12px;
  box-shadow: 0 4px 14px -6px rgba(123,92,255,.5);
}
.ac-wrap .ac-msg-time {
  font-family: var(--ac-mono);
  font-size: .58rem;
  letter-spacing: .04em;
  color: var(--ac-text-faint);
}
.ac-wrap .ac-msg-mine .ac-msg-time { text-align: right; }

.ac-wrap .ac-day-chip {
  align-self: center;
  font-family: var(--ac-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac-text-dim);
  background: rgba(123,92,255,.08);
  border: 1px solid rgba(123,92,255,.18);
  padding: 4px 12px;
  border-radius: 999px;
  margin: 6px 0;
}

.ac-wrap .ac-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.ac-wrap .ac-typing span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a78bfa;
  animation: ac-typing-dot 1.2s ease-in-out infinite;
}
.ac-wrap .ac-typing span:nth-child(2) { animation-delay: .15s; }
.ac-wrap .ac-typing span:nth-child(3) { animation-delay: .3s; }

.ac-wrap .ac-compose {
  padding: 14px;
  border-top: 1px solid var(--ac-bord);
  background: linear-gradient(0deg, rgba(123,92,255,.03), transparent);
  align-items: center;
  gap: 8px;
}
.ac-wrap .ac-compose-tools {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ac-wrap .ac-compose-tools button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ac-text-faint);
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s, transform .2s;
}
.ac-wrap .ac-compose-tools button:hover {
  color: #c4b5fd;
  background: var(--ac-bg-card-h);
  transform: translateY(-1px);
}
.ac-wrap .ac-compose-tools svg { width: 16px; height: 16px; }
.ac-wrap .ac-compose input {
  flex: 1;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--ac-bord);
  color: #f1f5f9;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .88rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ac-wrap .ac-compose input:focus {
  outline: none;
  border-color: var(--ac-violet);
  box-shadow: 0 0 0 3px rgba(123,92,255,.16);
  background: rgba(0,0,0,.4);
}
.ac-wrap .ac-compose .btn-primary {
  background: var(--ac-grad);
  border: none;
  color: #fff;
  font-family: var(--ac-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ac-wrap .ac-compose .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(123,92,255,.6);
}
.ac-wrap .ac-compose .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.4) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: opacity .4s, transform .4s;
  pointer-events: none;
}
.ac-wrap .ac-compose .btn-primary:active::after { opacity: 1; transform: scale(2); transition: 0s; }
.ac-wrap .ac-compose .btn-primary svg { width: 13px; height: 13px; }

.ac-wrap .ac-warn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ac-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.3);
  color: #fbbf24;
  padding: 5px 10px;
  border-radius: 999px;
}

.ac-wrap .ac-member-row span { font-family: var(--ac-mono); font-size: .78rem; }
.ac-wrap .ac-member-row small {
  font-family: var(--ac-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--ac-text-faint);
}

@keyframes ac-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ac-item-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ac-fade-in {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ac-breathe {
  0%, 100% { box-shadow: 0 0 6px rgba(52,211,153,.4); transform: scale(1); }
  50%      { box-shadow: 0 0 14px rgba(52,211,153,.8); transform: scale(1.15); }
}
@keyframes ac-typing-dot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .ac-wrap .ac-msg,
  .ac-wrap .ac-group-item,
  .ac-wrap .ac-unread,
  .ac-wrap .ac-dot.is-online,
  .ac-wrap .ac-typing span { animation: none !important; }
  .ac-wrap .ac-group-item:hover,
  .ac-wrap .ac-stat:hover,
  .ac-wrap .ac-aff-item:hover { transform: none; }
}

@media (max-width: 768px) {
  .ac-wrap .ac-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ac-wrap .ac-stat-val { font-size: 1.1rem; }
  .ac-wrap .ac-layout { grid-template-columns: 1fr; position: relative; }
  .ac-wrap .ac-sidebar { gap: 10px; }
  .ac-wrap.is-chat-open .ac-sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: transform .25s ease, opacity .25s ease;
    width: 100%;
  }
  .ac-wrap .ac-chat { height: calc(100vh - 220px); min-height: 480px; }
  .ac-wrap .ac-compose { position: sticky; bottom: 0; background: rgba(20,20,30,.96); backdrop-filter: blur(8px); }
  .ac-wrap .ac-icon-btn,
  .ac-wrap .ac-compose-tools button { min-width: 44px; min-height: 44px; }
  .ac-wrap .ac-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--ac-bord);
    color: var(--ac-text-dim);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: var(--ac-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    min-height: 44px;
  }
}
.ac-wrap .ac-back-btn { display: none; }

body.theme-light .ac-wrap {
  --ac-bord: rgba(0,0,0,.08);
  --ac-bord-h: rgba(109,40,217,.35);
  --ac-bg-card: #fff;
  --ac-bg-card-h: #f5f3ff;
  --ac-text-dim: #52525b;
  --ac-text-faint: #9ca3af;
}
body.theme-light .ac-wrap .ac-stat,
body.theme-light .ac-wrap .ac-main,
body.theme-light .ac-wrap .ac-section { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .ac-wrap .ac-stat-val { color: #18181b; }
body.theme-light .ac-wrap .ac-stat-online .ac-stat-val { color: #059669; }
body.theme-light .ac-wrap .ac-chat-head h3 { color: #18181b; }
body.theme-light .ac-wrap .ac-msg-bubble { background: #f4f4f5; color: #18181b; border-color: rgba(0,0,0,.04); }
body.theme-light .ac-wrap .ac-msg-mine .ac-msg-bubble { background: var(--ac-grad); color: #fff; }
body.theme-light .ac-wrap .ac-msg-author { color: #6d28d9; }
body.theme-light .ac-wrap .ac-day-chip { background: #f5f3ff; border-color: rgba(109,40,217,.18); color: #6d28d9; }
body.theme-light .ac-wrap .ac-typing { background: #f4f4f5; }
body.theme-light .ac-wrap .ac-typing span { background: #7c3aed; }
body.theme-light .ac-wrap .ac-compose { background: linear-gradient(0deg, rgba(109,40,217,.04), transparent); }
body.theme-light .ac-wrap .ac-compose input { background: #fff; border-color: rgba(0,0,0,.1); color: #18181b; }
body.theme-light .ac-wrap .ac-search input { background: #fff; color: #18181b; border-color: rgba(0,0,0,.1); }
body.theme-light .ac-wrap .ac-icon-btn { color: #52525b; }
body.theme-light .ac-wrap .ac-icon-btn:hover { color: #6d28d9; background: #f5f3ff; }
body.theme-light .ac-wrap .ac-compose-tools button { color: #71717a; }
body.theme-light .ac-wrap .ac-compose-tools button:hover { color: #6d28d9; background: #f5f3ff; }
body.theme-light .ac-wrap .ac-back-btn { background: #fff; color: #52525b; }

body.theme-navy .ac-wrap {
  --ac-bg-card: rgba(15,23,42,.6);
  --ac-bg-card-h: rgba(123,92,255,.10);
  --ac-bord: rgba(148,163,184,.14);
}
body.theme-navy .ac-wrap .ac-main,
body.theme-navy .ac-wrap .ac-stat,
body.theme-navy .ac-wrap .ac-section { background: rgba(15,23,42,.6); }
body.theme-navy .ac-wrap .ac-day-chip { background: rgba(30,41,59,.6); border-color: rgba(123,92,255,.22); }

body.theme-matte .ac-wrap {
  --ac-bg-card: #1a1a1a;
  --ac-bg-card-h: #232023;
  --ac-bord: rgba(255,255,255,.06);
}
body.theme-matte .ac-wrap .ac-main,
body.theme-matte .ac-wrap .ac-stat,
body.theme-matte .ac-wrap .ac-section { background: #1a1a1a; }
body.theme-matte .ac-wrap .ac-msg-bubble { background: #232023; }
body.theme-matte .ac-wrap .ac-day-chip { background: #1a1a1a; border-color: rgba(123,92,255,.22); }

/* ─── END AFFILIATE_CHAT_PALANTIR_V1 ─── */

/* =============================================================
   MAILER_PALANTIR_V1 — monospace tactical polish for /#/mailer
   Themes covered:
     - default (Navy)         no body.theme-*
     - body.theme-light       Light
     - body.theme-matte       Black / matte
   Scope: single-email tool (backend) + "Em breve" bulk preview.
   ============================================================= */

.mlr-pal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 18px 80px;
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

/* --- HERO HEAD --- */
.mlr-pal-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mlr-pal-titlewrap { flex: 1; min-width: 240px; }
.mlr-pal-eyebrow {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(123,92,255,.85);
  margin-bottom: 4px;
  text-transform: lowercase;
}
.mlr-pal-title {
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: .02em;
  margin: 0;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF, #00D4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mlr-pal-title::after {
  content: '';
  display: block;
  width: 56px; height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 2px;
}
.mlr-pal-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .92rem;
  line-height: 1.45;
  margin: 8px 0 0;
  color: #94a3b8;
}

/* --- CTA --- */
.mlr-pal-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  border: 1px solid rgba(123,92,255,.55);
  border-radius: 10px;
  padding: 11px 18px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 700; font-size: .78rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 14px rgba(45,59,255,.22);
}
.mlr-pal-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45,59,255,.4); }
.mlr-pal-cta-ic { display: inline-flex; width: 14px; height: 14px; }
.mlr-pal-cta-ic svg { width: 14px; height: 14px; }

/* --- BANNER (beta / maint) --- */
.mlr-pal-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.35);
  background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.04));
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .88rem; line-height: 1.55;
  margin-bottom: 14px;
}
.mlr-pal-banner-tag {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 8px;
  border-radius: 6px;
  background: #F59E0B; color: #fff;
}

/* --- KPI ROW --- */
.mlr-pal-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.mlr-pal-kpi {
  position: relative;
  padding: 14px 14px 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(123,92,255,.18);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mlr-pal-kpi::before {
  content: '';
  position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 0 3px 3px 0;
  opacity: .7;
  transition: opacity .25s ease, top .25s ease, bottom .25s ease;
}
.mlr-pal-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(123,92,255,.5);
  box-shadow: 0 8px 22px rgba(123,92,255,.18);
}
.mlr-pal-kpi:hover::before { opacity: 1; top: 4%; bottom: 4%; }
.mlr-pal-kpi-ic {
  position: absolute; right: 10px; top: 10px;
  width: 18px; height: 18px;
  color: rgba(123,92,255,.6);
  opacity: .9;
}
.mlr-pal-kpi-ic svg { width: 100%; height: 100%; }
.mlr-pal-kpi-val {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 1.8rem; font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #cbd5e1;
}
.mlr-pal-kpi-lbl {
  font-family: ui-monospace, monospace;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .12em;
  color: #94a3b8;
  margin-top: 2px;
}
.mlr-pal-kpi--alert::before { background: linear-gradient(180deg, #DC2626, #EA580C); }
.mlr-pal-kpi--alert .mlr-pal-kpi-ic { color: rgba(220,38,38,.7); }
.mlr-pal-kpi--quota::before { background: linear-gradient(180deg, #00D4FF, #10b981); }
.mlr-pal-kpi--quota .mlr-pal-kpi-ic { color: rgba(0,212,255,.8); }
.mlr-pal-kpi--quota.is-low::before { background: linear-gradient(180deg, #F59E0B, #DC2626); }
.mlr-pal-kpi--quota.is-low { animation: mlrPalQuotaPulse 2.4s ease-in-out infinite; }
@keyframes mlrPalQuotaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%      { box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
}

/* --- STEPPER --- */
.mlr-pal-stepper {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.mlr-pal-step {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  font-family: ui-monospace, monospace;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em;
  color: #94a3b8;
  position: relative;
  transition: all .25s ease;
}
.mlr-pal-step::before {
  content: '';
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 2px; border-radius: 0 2px 2px 0;
  background: rgba(123,92,255,.25);
  transition: background .25s ease, top .25s ease, bottom .25s ease;
}
.mlr-pal-step.is-active {
  background: rgba(123,92,255,.10);
  border-color: rgba(123,92,255,.5);
  color: #c4b5fd;
}
.mlr-pal-step.is-active::before {
  top: 8%; bottom: 8%;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF);
}
.mlr-pal-step.is-done {
  border-color: rgba(16,185,129,.35);
  color: #6ee7b7;
}
.mlr-pal-step.is-done::before { background: #10b981; }
.mlr-pal-step-n {
  font-size: .68rem; opacity: .7;
}
.mlr-pal-step-ic {
  display: inline-flex; width: 14px; height: 14px;
}
.mlr-pal-step-ic svg { width: 14px; height: 14px; }

/* --- GRID (compose / preview) --- */
.mlr-pal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

/* --- CARDS --- */
.mlr-pal-card {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mlr-pal-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF, #00D4FF);
  opacity: 0;
  transition: opacity .25s ease;
}
.mlr-pal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(123,92,255,.15);
  border-color: rgba(123,92,255,.35);
}
.mlr-pal-card:hover::before { opacity: 1; }
.mlr-pal-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.mlr-pal-card-ic {
  display: inline-flex; width: 16px; height: 16px;
  color: rgba(123,92,255,.85);
}
.mlr-pal-card-ic svg { width: 16px; height: 16px; }
.mlr-pal-card-title {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-weight: 700; font-size: .78rem;
  letter-spacing: .1em;
  color: #cbd5e1;
}
.mlr-pal-card-badge {
  font-family: ui-monospace, monospace;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(123,92,255,.18);
  border: 1px solid rgba(123,92,255,.35);
  color: #c4b5fd;
  transition: background .2s ease, color .2s ease;
}
.mlr-pal-card-badge.is-warn { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.4); color: #fbbf24; }
.mlr-pal-card-badge.is-risk { background: rgba(220,38,38,.18); border-color: rgba(220,38,38,.45); color: #fca5a5; animation: mlrPalBadgePulse 2.4s ease-in-out infinite; }
@keyframes mlrPalBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  50%      { box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
}
.mlr-pal-card-badge--live { background: rgba(16,185,129,.16); border-color: rgba(16,185,129,.4); color: #6ee7b7; }
.mlr-pal-card-badge--live::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: #10b981;
  margin-right: 5px; vertical-align: middle;
  animation: mlrPalLiveDot 2s ease-in-out infinite;
}
@keyframes mlrPalLiveDot { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.mlr-pal-card-badge--soon { background: rgba(0,212,255,.14); border-color: rgba(0,212,255,.4); color: #67e8f9; }
.mlr-pal-card-body {
  padding: 18px;
}

/* --- FORM --- */
.mlr-pal-label {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em;
  color: #94a3b8;
  margin: 14px 0 6px;
}
.mlr-pal-label:first-child { margin-top: 0; }
.mlr-pal-req { color: #DC2626; }

.mlr-pal-input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.mlr-pal-input-ic {
  position: absolute; left: 12px;
  display: inline-flex; width: 14px; height: 14px;
  color: rgba(123,92,255,.7);
  pointer-events: none;
}
.mlr-pal-input-ic svg { width: 14px; height: 14px; }
.mlr-pal-input {
  width: 100%;
  padding: 11px 14px 11px 34px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .92rem;
  background: rgba(0,0,0,.18);
  color: #e2e8f0;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.mlr-pal-input::placeholder { color: #64748b; }
.mlr-pal-input:focus {
  outline: none;
  border-color: rgba(123,92,255,.6);
  box-shadow: 0 0 0 3px rgba(123,92,255,.18);
  background: rgba(0,0,0,.28);
}

.mlr-pal-textarea {
  width: 100%;
  padding: 13px 14px;
  min-height: 160px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .92rem;
  line-height: 1.55;
  background: rgba(0,0,0,.22);
  color: #e2e8f0;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.mlr-pal-textarea::placeholder { color: #64748b; }
.mlr-pal-textarea:focus {
  outline: none;
  border-color: rgba(123,92,255,.6);
  box-shadow: 0 0 0 3px rgba(123,92,255,.18);
  background: rgba(0,0,0,.32);
}

/* --- VARIABLE CHIPS --- */
.mlr-pal-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 4px;
}
.mlr-pal-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-family: ui-monospace, monospace;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .04em;
  background: rgba(123,92,255,.10);
  border: 1px solid rgba(123,92,255,.35);
  color: #c4b5fd;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mlr-pal-chip:hover {
  transform: scale(1.06);
  background: rgba(123,92,255,.22);
  border-color: rgba(123,92,255,.65);
  box-shadow: 0 0 14px rgba(123,92,255,.4);
}
.mlr-pal-chip.is-flash {
  animation: mlrPalChipFlash .48s ease-out;
}
@keyframes mlrPalChipFlash {
  0%   { background: rgba(16,185,129,.5); border-color: #10b981; transform: scale(1.15); }
  100% { background: rgba(123,92,255,.10); border-color: rgba(123,92,255,.35); transform: scale(1); }
}
.mlr-pal-chip-ic {
  display: inline-flex; width: 11px; height: 11px;
  color: inherit; opacity: .8;
}
.mlr-pal-chip-ic svg { width: 11px; height: 11px; }

/* --- TIP --- */
.mlr-pal-tip {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(0,212,255,.06);
  border-left: 3px solid rgba(0,212,255,.6);
  border-radius: 6px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .85rem; line-height: 1.5;
  color: #cbd5e1;
}
.mlr-pal-tip-ic {
  flex-shrink: 0;
  display: inline-flex; width: 16px; height: 16px;
  color: #00D4FF;
  margin-top: 1px;
}
.mlr-pal-tip-ic svg { width: 16px; height: 16px; }
.mlr-pal-tip b {
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  color: #67e8f9;
}

/* --- SEND BUTTON --- */
.mlr-pal-send {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 18px;
  width: 100%;
  padding: 14px 22px;
  border: 1px solid rgba(123,92,255,.55);
  border-radius: 10px;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 100%);
  background-size: 200% 200%;
  color: #fff;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .88rem; font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background-position .35s ease, filter .25s ease;
}
.mlr-pal-send-ic { display: inline-flex; width: 16px; height: 16px; }
.mlr-pal-send-ic svg { width: 16px; height: 16px; }
.mlr-pal-send:hover:not(:disabled) {
  transform: translateY(-1px);
  background-position: 100% 100%;
  box-shadow: 0 10px 32px rgba(123,92,255,.45);
}
.mlr-pal-send.is-ready {
  animation: mlrPalSendPulse 2.4s ease-in-out infinite;
}
@keyframes mlrPalSendPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(45,59,255,.30); }
  50%      { box-shadow: 0 8px 28px rgba(123,92,255,.55); }
}
.mlr-pal-send:disabled {
  filter: grayscale(.7) brightness(.7);
  cursor: not-allowed;
  animation: none;
}
.mlr-pal-send.is-loading .mlr-pal-send-ic {
  animation: mlrPalSendSpin 1s linear infinite;
}
@keyframes mlrPalSendSpin {
  0%   { transform: translateX(0) }
  50%  { transform: translateX(4px) }
  100% { transform: translateX(0) }
}

/* --- MSG --- */
.mlr-pal-msg {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-family: ui-monospace, monospace;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .04em;
  min-height: 18px;
}
.mlr-pal-msg.is-ok   { color: #10b981; }
.mlr-pal-msg.is-err  { color: #f87171; }
.mlr-pal-msg.is-info { color: #c4b5fd; }
.mlr-pal-msg-ic { display: inline-flex; width: 14px; height: 14px; }
.mlr-pal-msg-ic svg { width: 14px; height: 14px; }

/* --- PREVIEW CARD --- */
.mlr-pal-preview {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.mlr-pal-preview-row {
  display: flex; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
  font-family: ui-monospace, monospace;
  font-size: .8rem;
}
.mlr-pal-preview-row:last-child { border-bottom: none; }
.mlr-pal-preview-k {
  flex-shrink: 0;
  width: 70px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #94a3b8;
  font-size: .68rem;
  padding-top: 2px;
}
.mlr-pal-preview-v {
  flex: 1;
  color: #cbd5e1;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.mlr-pal-preview-body {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(0,0,0,.32);
  padding: 14px;
  min-height: 200px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .88rem; line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}
.mlr-pal-preview-empty {
  color: #64748b; font-style: italic;
  font-family: system-ui, sans-serif; font-size: .85rem;
}
.mlr-pal-var {
  background: rgba(123,92,255,.20);
  border: 1px solid rgba(123,92,255,.45);
  color: #c4b5fd;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .82rem;
  font-weight: 600;
}

/* --- HIST ROW --- */
.mlr-pal-hist-row {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mlr-pal-hist-row:last-child { border-bottom: none; }
.mlr-pal-hist-ic {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}
.mlr-pal-hist-ic svg { width: 14px; height: 14px; }
.mlr-pal-hist-row.is-sent   .mlr-pal-hist-ic { color: #10b981; background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.35); }
.mlr-pal-hist-row.is-failed .mlr-pal-hist-ic { color: #f87171; background: rgba(220,38,38,.10); border-color: rgba(220,38,38,.35); }
.mlr-pal-hist-row.is-queue  .mlr-pal-hist-ic { color: #fbbf24; background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.35); }
.mlr-pal-hist-body { flex: 1; min-width: 0; }
.mlr-pal-hist-subject {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: .92rem;
  color: #e2e8f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mlr-pal-hist-to {
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  color: #94a3b8;
  margin-top: 2px;
}
.mlr-pal-hist-to span { color: #c4b5fd; }
.mlr-pal-hist-status {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 5px;
}
.mlr-pal-hist-row.is-sent   .mlr-pal-hist-status { background: rgba(16,185,129,.12); color: #6ee7b7; }
.mlr-pal-hist-row.is-failed .mlr-pal-hist-status { background: rgba(220,38,38,.12); color: #fca5a5; }
.mlr-pal-hist-row.is-queue  .mlr-pal-hist-status { background: rgba(245,158,11,.12); color: #fbbf24; }

/* --- EMPTY --- */
.mlr-pal-empty {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 4px;
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  color: #94a3b8;
}
.mlr-pal-empty-ic {
  display: inline-flex; width: 20px; height: 20px;
  color: rgba(123,92,255,.5);
}
.mlr-pal-empty-ic svg { width: 20px; height: 20px; }

/* --- BULK SOON CARD --- */
.mlr-pal-card--soon { margin-top: 14px; }
.mlr-pal-soon-lead {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .92rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 14px;
}
.mlr-pal-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mlr-pal-soon-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border: 1px dashed rgba(0,212,255,.35);
  border-radius: 8px;
  background: rgba(0,212,255,.04);
  font-family: ui-monospace, monospace;
  font-size: .76rem;
  letter-spacing: .04em;
  color: #94a3b8;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.mlr-pal-soon-item:hover {
  transform: translateY(-1px);
  background: rgba(0,212,255,.10);
  border-color: rgba(0,212,255,.65);
  color: #cbd5e1;
}
.mlr-pal-soon-ic {
  display: inline-flex; width: 14px; height: 14px;
  color: #00D4FF;
}
.mlr-pal-soon-ic svg { width: 14px; height: 14px; }

/* --- CONFETTI --- */
.mlr-pal-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.mlr-pal-confetti span {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 10px;
  background: var(--c, #7B5CFF);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: mlrPalConfetti .9s ease-out forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes mlrPalConfetti {
  0%   { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -100px))) rotate(var(--r, 360deg)); opacity: 0; }
}

/* =============================================================
   THEME: LIGHT (body.theme-light)
   ============================================================= */
body.theme-light .mlr-pal-sub { color: #475569; }
body.theme-light .mlr-pal-eyebrow { color: #7B5CFF; }
body.theme-light .mlr-pal-banner {
  background: linear-gradient(180deg, #FEF3C7, #FEFCE8);
  border-color: #FCD34D;
  color: #78350F;
}
body.theme-light .mlr-pal-kpi {
  background: #fff;
  border-color: #e5e7eb;
}
body.theme-light .mlr-pal-kpi-val { color: #0f172a; }
body.theme-light .mlr-pal-kpi-lbl { color: #64748b; }
body.theme-light .mlr-pal-step {
  background: #fff;
  border-color: #e5e7eb;
  color: #64748b;
}
body.theme-light .mlr-pal-step.is-active {
  background: #F5F3FF;
  border-color: #c4b5fd;
  color: #6d28d9;
}
body.theme-light .mlr-pal-step.is-done { border-color: #6ee7b7; color: #047857; }
body.theme-light .mlr-pal-card {
  background: #fff;
  border-color: #e5e7eb;
}
body.theme-light .mlr-pal-card-head {
  background: #fafbfc;
  border-bottom-color: #e5e7eb;
}
body.theme-light .mlr-pal-card-title { color: #1F2937; }
body.theme-light .mlr-pal-card-badge {
  background: #F5F3FF;
  border-color: #c4b5fd;
  color: #6d28d9;
}
body.theme-light .mlr-pal-card-badge.is-warn { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
body.theme-light .mlr-pal-card-badge.is-risk { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
body.theme-light .mlr-pal-card-badge--live   { background: #DCFCE7; border-color: #86EFAC; color: #166534; }
body.theme-light .mlr-pal-card-badge--soon   { background: #CFFAFE; border-color: #67E8F9; color: #155E75; }
body.theme-light .mlr-pal-input,
body.theme-light .mlr-pal-textarea {
  background: #fff;
  border-color: #e5e7eb;
  color: #0f172a;
}
body.theme-light .mlr-pal-input::placeholder,
body.theme-light .mlr-pal-textarea::placeholder { color: #94a3b8; }
body.theme-light .mlr-pal-input:focus,
body.theme-light .mlr-pal-textarea:focus {
  background: #fff;
  border-color: #7B5CFF;
  box-shadow: 0 0 0 3px rgba(123,92,255,.15);
}
body.theme-light .mlr-pal-label { color: #475569; }
body.theme-light .mlr-pal-chip {
  background: #F5F3FF;
  border-color: #c4b5fd;
  color: #6d28d9;
}
body.theme-light .mlr-pal-chip:hover {
  background: #EDE9FE;
  border-color: #7B5CFF;
}
body.theme-light .mlr-pal-tip {
  background: #F0F9FF;
  border-left-color: #0EA5E9;
  color: #0C4A6E;
}
body.theme-light .mlr-pal-tip b { color: #075985; }
body.theme-light .mlr-pal-preview {
  background: #F9FAFB;
  border-color: #e5e7eb;
}
body.theme-light .mlr-pal-preview-k { color: #64748b; }
body.theme-light .mlr-pal-preview-v { color: #1F2937; }
body.theme-light .mlr-pal-preview-body {
  background: #fff;
  border-color: #e5e7eb;
  color: #1F2937;
}
body.theme-light .mlr-pal-var {
  background: #EDE9FE;
  border-color: #c4b5fd;
  color: #5B21B6;
}
body.theme-light .mlr-pal-hist-row { border-bottom-color: #f1f5f9; }
body.theme-light .mlr-pal-hist-subject { color: #1F2937; }
body.theme-light .mlr-pal-hist-to { color: #64748b; }
body.theme-light .mlr-pal-hist-to span { color: #6d28d9; }
body.theme-light .mlr-pal-empty { color: #64748b; }
body.theme-light .mlr-pal-soon-lead { color: #1F2937; }
body.theme-light .mlr-pal-soon-item {
  background: #F0FDFF;
  border-color: #67E8F9;
  color: #475569;
}
body.theme-light .mlr-pal-soon-item:hover {
  background: #CFFAFE;
  color: #155E75;
}

/* =============================================================
   THEME: MATTE (body.theme-matte) — already dark; minor tweaks
   ============================================================= */
body.theme-matte .mlr-pal-kpi { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.06); }
body.theme-matte .mlr-pal-card { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.06); }
body.theme-matte .mlr-pal-card-head { background: rgba(255,255,255,.015); border-bottom-color: rgba(255,255,255,.05); }
body.theme-matte .mlr-pal-step { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.05); }
body.theme-matte .mlr-pal-input,
body.theme-matte .mlr-pal-textarea { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.08); }

/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 768px) {
  .mlr-pal { padding: 16px 12px 60px; }
  .mlr-pal-head { flex-direction: column; align-items: flex-start; }
  .mlr-pal-cta { width: 100%; justify-content: center; }
  .mlr-pal-title { font-size: 1.5rem; }
  .mlr-pal-kpis { grid-template-columns: repeat(2, 1fr); }
  .mlr-pal-kpi--quota { grid-column: 1 / -1; }
  .mlr-pal-stepper { flex-direction: column; }
  .mlr-pal-step { font-size: .76rem; }
  .mlr-pal-grid { grid-template-columns: 1fr; }
  .mlr-pal-soon-grid { grid-template-columns: 1fr; }
  .mlr-pal-card-head { flex-wrap: wrap; }
  .mlr-pal-card-body { padding: 14px; }
  /* table-like rows: keep readable, no page horizontal scroll */
  .mlr-pal-hist-row { gap: 8px; }
  .mlr-pal-hist-status { font-size: .62rem; padding: 3px 7px; }
}

@media (max-width: 480px) {
  .mlr-pal-kpis { grid-template-columns: 1fr 1fr; }
  .mlr-pal-kpi-val { font-size: 1.4rem; }
  .mlr-pal-preview-row { flex-direction: column; gap: 2px; }
  .mlr-pal-preview-k { width: auto; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .mlr-pal-kpi,
  .mlr-pal-card,
  .mlr-pal-step,
  .mlr-pal-chip,
  .mlr-pal-send,
  .mlr-pal-cta,
  .mlr-pal-soon-item,
  .mlr-pal-card-badge,
  .mlr-pal-card-badge--live::before,
  .mlr-pal-card-badge.is-risk,
  .mlr-pal-kpi--quota.is-low {
    animation: none !important;
    transition: none !important;
  }
  .mlr-pal-confetti span { animation: none !important; opacity: 0 !important; }
  .mlr-pal-send.is-ready { box-shadow: 0 4px 14px rgba(45,59,255,.30); }
}
/* END MAILER_PALANTIR_V1 */

/* ================================================================
   NOTEPAD_PALANTIR_V1
   - Dual-action launcher popover (on tool card click)
   - Paper-fold open/close animation for overlay
   - Palantir polish for /#/notepad full page
   - Floating TTS selection toolbar
   - GPU/API gate banner (informative; TTS itself is browser-local)
   - Keyboard shortcuts (Ctrl+S, Ctrl+L, Esc)
   - 3-theme aware (light/navy/matte) + reduced-motion
   ================================================================ */

/* --- Paper-fold animation ---------------------------------------- */
@keyframes np-paper-unfold {
  0%   { opacity: 0; transform: scale(.05) rotate(-18deg); filter: blur(2px); box-shadow: 0 0 0 rgba(0,0,0,0); }
  35%  { opacity: .85; transform: scale(.45) rotate(-6deg); filter: blur(.5px); }
  70%  { opacity: 1; transform: scale(1.04) rotate(1.5deg); filter: blur(0); box-shadow: 0 18px 44px rgba(123,92,255,.32); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
}
@keyframes np-paper-fold {
  0%   { opacity: 1; transform: scale(1) rotate(0); }
  40%  { opacity: .9; transform: scale(1.04) rotate(2deg); }
  100% { opacity: 0; transform: scale(.05) rotate(-15deg); filter: blur(2px); }
}
.np-overlay.is-open.np-anim-open  { animation: np-paper-unfold 600ms cubic-bezier(.18,.89,.32,1.18) both; transform-origin: bottom right; }
.np-overlay.np-anim-close         { animation: np-paper-fold 420ms cubic-bezier(.55,.05,.78,.22) both; transform-origin: bottom right; }
@media (prefers-reduced-motion: reduce) {
  .np-overlay.is-open.np-anim-open  { animation: np-fade-in 220ms ease both; }
  .np-overlay.np-anim-close         { animation: np-fade-out 180ms ease both; }
  @keyframes np-fade-in  { from { opacity:0; } to { opacity:1; } }
  @keyframes np-fade-out { from { opacity:1; } to { opacity:0; } }
}

/* --- Dual-action launcher popover (over the tool card) ----------- */
.np-launcher-pop {
  position: fixed;
  z-index: 9999;
  min-width: 260px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(15,23,42,.22), 0 4px 12px rgba(123,92,255,.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transition: opacity .14s ease, transform .14s ease;
  font-family: inherit;
}
.np-launcher-pop.is-open { opacity: 1; transform: translateY(0) scale(1); }
.np-launcher-pop .np-lp-head {
  padding: 10px 14px;
  font: 700 .68rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5B21B6;
  background: linear-gradient(135deg, #F5F3FF, #EEF2FF);
  border-bottom: 1px solid #ddd6fe;
  display: flex; align-items: center; gap: 8px;
}
.np-launcher-pop .np-lp-head svg { width: 12px; height: 12px; color: #7B5CFF; }
.np-launcher-pop button.np-lp-opt {
  display: flex;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: #1f2937;
  gap: 12px;
  align-items: center;
  transition: background .12s, transform .12s;
  border-bottom: 1px solid #f1f5f9;
}
.np-launcher-pop button.np-lp-opt:last-child { border-bottom: none; }
.np-launcher-pop button.np-lp-opt:hover { background: #faf5ff; transform: translateX(2px); }
.np-launcher-pop .np-lp-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff; flex-shrink: 0;
}
.np-launcher-pop .np-lp-icon svg { width: 18px; height: 18px; }
.np-launcher-pop .np-lp-txt { display: flex; flex-direction: column; gap: 2px; }
.np-launcher-pop .np-lp-ttl { font-weight: 700; font-size: .88rem; color: #0f172a; }
.np-launcher-pop .np-lp-sub { font-size: .72rem; color: #64748b; }
.np-launcher-pop .np-lp-kbd { margin-left: auto; font: 600 .62rem/1 'JetBrains Mono', monospace; color: #7c3aed; background: #F5F3FF; border: 1px solid #ddd6fe; border-radius: 4px; padding: 4px 6px; }

body.theme-navy .np-launcher-pop,
body.theme-matte .np-launcher-pop { background: #0f1424; border-color: #1e293b; }
body.theme-navy .np-launcher-pop .np-lp-head,
body.theme-matte .np-launcher-pop .np-lp-head { background: linear-gradient(135deg, #1e1b3a, #0f1424); border-bottom-color: #2d2b4a; color: #c4b5fd; }
body.theme-navy .np-launcher-pop button.np-lp-opt,
body.theme-matte .np-launcher-pop button.np-lp-opt { color: #e7eaf2; border-bottom-color: #1e293b; }
body.theme-navy .np-launcher-pop button.np-lp-opt:hover,
body.theme-matte .np-launcher-pop button.np-lp-opt:hover { background: rgba(123,92,255,.10); }
body.theme-navy .np-launcher-pop .np-lp-ttl,
body.theme-matte .np-launcher-pop .np-lp-ttl { color: #f8fafc; }
body.theme-navy .np-launcher-pop .np-lp-sub,
body.theme-matte .np-launcher-pop .np-lp-sub { color: #94a3b8; }
body.theme-navy .np-launcher-pop .np-lp-kbd,
body.theme-matte .np-launcher-pop .np-lp-kbd { background: rgba(123,92,255,.16); border-color: #2d2b4a; color: #c4b5fd; }

/* --- Palantir polish for /#/notepad full page -------------------- */
.np-shell.np-palantir { max-width: 1120px; margin: 18px auto 60px; padding: 0 18px; display: grid; grid-template-columns: 260px 1fr; gap: 18px; position: relative; }
@media (max-width: 880px) { .np-shell.np-palantir { grid-template-columns: 1fr; } }
.np-shell.np-palantir .np-pal-header {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 4px 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 6px;
  gap: 12px;
}
.np-shell.np-palantir .np-pal-title {
  font: 800 1.55rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF, #00D4FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: flex; align-items: center; gap: 10px;
}
.np-shell.np-palantir .np-pal-title svg { width: 22px; height: 22px; color: #7B5CFF; -webkit-text-fill-color: initial; }
.np-shell.np-palantir .np-pal-sub {
  font: 500 .70rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
}
.np-shell.np-palantir .np-pal-toolbar {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 0 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
}
.np-pal-tbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  border-radius: 6px;
  font: 700 .68rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .14s;
}
.np-pal-tbtn svg { width: 13px; height: 13px; }
.np-pal-tbtn:hover { border-color: #7B5CFF; color: #5B21B6; background: #faf5ff; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(123,92,255,.14); }
.np-pal-tbtn.np-pal-primary { background: linear-gradient(135deg, #2D3BFF, #7B5CFF); border-color: transparent; color: #fff; }
.np-pal-tbtn.np-pal-primary:hover { color: #fff; filter: brightness(1.06); }
.np-pal-tbtn.np-pal-ghost { background: transparent; color: #64748b; }
.np-pal-tbtn.is-speaking { background: linear-gradient(135deg, #fde68a, #fca5a5); color: #7c2d12; border-color: transparent; }
.np-pal-tbtn .np-pal-kbd { margin-left: 4px; font-size: .58rem; opacity: .7; padding: 2px 4px; border: 1px solid currentColor; border-radius: 3px; }

.np-shell.np-palantir .np-side {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px;
  height: fit-content; max-height: calc(100vh - 180px); overflow-y: auto;
}
.np-shell.np-palantir .np-list li { position: relative; padding-left: 14px; }
.np-shell.np-palantir .np-list li::before {
  content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; background: linear-gradient(180deg, #7B5CFF, #00D4FF); border-radius: 2px;
  transition: height .18s;
}
.np-shell.np-palantir .np-list li:hover { transform: translateX(2px); }
.np-shell.np-palantir .np-list li:hover::before { height: 60%; }
.np-shell.np-palantir .np-list li.is-active::before { height: 80%; }

.np-shell.np-palantir .np-main { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; position: relative; }
.np-shell.np-palantir .np-title-row { display: flex; gap: 8px; align-items: center; }
.np-shell.np-palantir .np-title-input {
  font: 700 1.05rem/1.3 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  color: #0f172a;
  flex: 1;
}
.np-shell.np-palantir .np-body {
  font: 400 .94rem/1.7 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .005em;
  background: #fcfcfd;
  color: #1e293b;
  min-height: 420px;
}
.np-shell.np-palantir .np-statusbar {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font: 600 .66rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #64748b;
}
.np-shell.np-palantir .np-statusbar .np-st-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b98180;
}
.np-shell.np-palantir .np-statusbar .np-st-saving { background: #f59e0b; box-shadow: 0 0 8px #f59e0b80; }

.np-shell.np-palantir .np-tts-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff; border: none; border-radius: 6px;
  padding: 8px 12px;
  font: 700 .68rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .10em; text-transform: uppercase;
  cursor: pointer;
}
.np-shell.np-palantir .np-tts-btn.is-speaking { background: linear-gradient(135deg, #fde68a, #fca5a5); color: #7c2d12; }

/* GPU / API gate banner (informational) ---------------------------- */
.np-gpu-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(45,59,255,.06), rgba(123,92,255,.10));
  border: 1px solid #c4b5fd;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: .85rem;
  color: #4c1d95;
}
.np-gpu-banner .np-gb-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF); color: #fff;
}
.np-gpu-banner .np-gb-icon svg { width: 18px; height: 18px; }
.np-gpu-banner .np-gb-body { flex: 1; min-width: 220px; }
.np-gpu-banner .np-gb-body strong { display: block; font-size: .82rem; color: #5B21B6; margin-bottom: 2px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.np-gpu-banner .np-gb-body span { color: #6d28d9; font-size: .78rem; }
.np-gpu-banner .np-gb-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff; border: none; border-radius: 6px;
  font: 700 .68rem/1 'JetBrains Mono', monospace;
  letter-spacing: .10em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.np-gpu-banner .np-gb-cta.np-gb-ghost { background: transparent; border: 1px solid #7B5CFF; color: #5B21B6; }
.np-gpu-banner .np-gb-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(123,92,255,.22); }
.np-gpu-banner .np-gb-close {
  background: transparent; border: none; cursor: pointer; color: #7c3aed;
  font-size: 1.2rem; line-height: 1; padding: 4px 8px;
}

/* --- TTS floating selection toolbar ------------------------------ */
.np-tts-float {
  position: fixed;
  z-index: 99999;
  background: #0f172a;
  color: #fff;
  border: 1px solid #1e293b;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 14px 36px rgba(0,0,0,.32), 0 0 0 1px rgba(123,92,255,.18);
  display: flex; align-items: center; gap: 2px;
  opacity: 0;
  transform: translateY(6px) scale(.94);
  transition: opacity .14s ease, transform .14s ease;
  pointer-events: none;
  font-family: inherit;
}
.np-tts-float.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.np-tts-float button {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font: 700 .68rem/1 'JetBrains Mono', monospace;
  letter-spacing: .10em; text-transform: uppercase;
  cursor: pointer;
  transition: background .12s;
}
.np-tts-float button:hover { background: rgba(123,92,255,.32); }
.np-tts-float button.is-primary { background: linear-gradient(135deg, #2D3BFF, #7B5CFF); }
.np-tts-float button.is-primary:hover { filter: brightness(1.10); }
.np-tts-float button svg { width: 13px; height: 13px; }
.np-tts-float .np-tts-arrow {
  position: absolute; bottom: -6px; left: 16px;
  width: 12px; height: 12px;
  background: #0f172a; border-right: 1px solid #1e293b; border-bottom: 1px solid #1e293b;
  transform: rotate(45deg);
}

/* Highlight currently-spoken text */
.np-tts-reading-overlay {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(253,224,71,.65), rgba(252,165,165,.55));
  border-radius: 4px;
  transition: all .14s ease;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* --- Toast (Ctrl+S feedback) ------------------------------------- */
.np-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font: 600 .82rem/1 'JetBrains Mono', monospace;
  letter-spacing: .04em;
  box-shadow: 0 14px 36px rgba(0,0,0,.32);
  z-index: 100000;
  opacity: 0;
  transition: opacity .18s, transform .18s;
  display: flex; align-items: center; gap: 8px;
}
.np-toast.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }
.np-toast svg { width: 14px; height: 14px; color: #10b981; }

/* --- Theme overrides --------------------------------------------- */
body.theme-navy .np-shell.np-palantir .np-side,
body.theme-matte .np-shell.np-palantir .np-side,
body.theme-navy .np-shell.np-palantir .np-main,
body.theme-matte .np-shell.np-palantir .np-main { background: #0f1424; border-color: #1e293b; color: #e7eaf2; }
body.theme-navy .np-shell.np-palantir .np-pal-header,
body.theme-matte .np-shell.np-palantir .np-pal-header,
body.theme-navy .np-shell.np-palantir .np-pal-toolbar,
body.theme-matte .np-shell.np-palantir .np-pal-toolbar { border-bottom-color: #1e293b; }
body.theme-navy .np-shell.np-palantir .np-pal-sub,
body.theme-matte .np-shell.np-palantir .np-pal-sub { color: #94a3b8; }
body.theme-navy .np-pal-tbtn,
body.theme-matte .np-pal-tbtn { background: #131a2b; border-color: #1e293b; color: #e7eaf2; }
body.theme-navy .np-pal-tbtn:hover,
body.theme-matte .np-pal-tbtn:hover { background: rgba(123,92,255,.12); border-color: #7B5CFF; color: #c4b5fd; }
body.theme-navy .np-shell.np-palantir .np-title-input,
body.theme-matte .np-shell.np-palantir .np-title-input,
body.theme-navy .np-shell.np-palantir .np-body,
body.theme-matte .np-shell.np-palantir .np-body { background: #0b1020; border-color: #1e293b; color: #e7eaf2; }
body.theme-navy .np-shell.np-palantir .np-statusbar,
body.theme-matte .np-shell.np-palantir .np-statusbar { background: #131a2b; border-color: #1e293b; color: #94a3b8; }
body.theme-navy .np-gpu-banner,
body.theme-matte .np-gpu-banner { background: linear-gradient(135deg, rgba(45,59,255,.10), rgba(123,92,255,.16)); border-color: #2d2b4a; color: #c4b5fd; }
body.theme-navy .np-gpu-banner .np-gb-body strong,
body.theme-matte .np-gpu-banner .np-gb-body strong { color: #c4b5fd; }
body.theme-navy .np-gpu-banner .np-gb-body span,
body.theme-matte .np-gpu-banner .np-gb-body span { color: #a78bfa; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .np-shell.np-palantir .np-pal-title { font-size: 1.18rem; }
  .np-pal-tbtn { padding: 6px 8px; font-size: .60rem; }
  .np-pal-tbtn .np-pal-kbd { display: none; }
  .np-shell.np-palantir .np-statusbar { font-size: .58rem; gap: 8px; }
  .np-tts-float button { padding: 6px 8px; font-size: .60rem; }
}

/* END NOTEPAD_PALANTIR_V1 ========================================= */

/* ════════════════════════════════════════════════════════════
   LANDING_PROMO_VAGAS_V1 — Palantir + dopaminergic polish
   Layered on top of LANDING_PROMO_BALLOON_V3 + BALLOON_REFINED_V3
   Reference marker driven by /js/landing-balloon.js (V_VAGAS_1)
   Hero number, pre-trigger gold-star drop, pixel-star decor,
   slot-machine counter target, confetti burst host, ripple CTA.
   ════════════════════════════════════════════════════════════ */

#lp-promo-balloon { overflow: visible !important; }

/* Heroize the popup pop-in: spring scale */
#lp-promo-balloon {
  transition:
    opacity .42s cubic-bezier(.22, 1, .36, 1),
    transform .60s cubic-bezier(.34, 1.56, .64, 1) !important;
}
#lp-promo-balloon:not(.lp-promo-show):not(.lp-promo-leave) {
  transform: translate(-50%, -40px) scale(.22) !important;
}
#lp-promo-balloon.lp-promo-show {
  transform: translate(-50%, 0) scale(1) !important;
}

/* ─── Pre-trigger gold-star descender (the "spider drop") ─── */
.lp-promo-droplet {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 160px;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
.lp-promo-droplet.lp-promo-droplet--play {
  animation: lp-droplet-fade .9s ease-out .05s 1 forwards;
}
@keyframes lp-droplet-fade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}
.lp-promo-droplet-line {
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 215, 0, .55) 0 4px,
    transparent 4px 8px
  );
  transform: translateX(-50%);
  animation: lp-droplet-line 1.0s cubic-bezier(.55, .085, .68, .53) .05s 1 forwards;
}
@keyframes lp-droplet-line {
  0%   { height: 0; }
  100% { height: 130px; }
}
.lp-promo-droplet-star {
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  color: #FFD700;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, .8)) drop-shadow(0 2px 4px rgba(0,0,0,.35));
  animation: lp-droplet-star 1.0s cubic-bezier(.55, .085, .68, .53) .05s 1 forwards;
  transform-origin: center;
}
@keyframes lp-droplet-star {
  0%   { transform: translateY(-10px) rotate(-180deg); }
  100% { transform: translateY(130px) rotate(180deg); }
}

/* ─── Pixel star decorations (5 alternating blinks) ─── */
.lp-promo-pixstar {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #FFD700;
  box-shadow:
    -6px 0 0 #FFD700,
     6px 0 0 #FFD700,
     0 -6px 0 #FFD700,
     0  6px 0 #FFD700;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transform: scale(.5);
  border-radius: 1px;
}
#lp-promo-balloon.lp-promo-show .lp-promo-pixstar {
  animation: lp-pixstar-blink 2.4s ease-in-out infinite;
}
.lp-promo-pixstar--a { top: -18px; left:  6%; animation-delay: .15s !important; }
.lp-promo-pixstar--b { top: -10px; left: 24%; background: #FF6B35; box-shadow: -6px 0 0 #FF6B35, 6px 0 0 #FF6B35, 0 -6px 0 #FF6B35, 0 6px 0 #FF6B35; animation-delay: .7s !important; transform: scale(.4); }
.lp-promo-pixstar--c { top: -22px; right: 22%; animation-delay: 1.1s !important; }
.lp-promo-pixstar--d { top: -8px;  right:  8%; background: #FF0080; box-shadow: -6px 0 0 #FF0080, 6px 0 0 #FF0080, 0 -6px 0 #FF0080, 0 6px 0 #FF0080; animation-delay: 1.5s !important; transform: scale(.5); }
.lp-promo-pixstar--e { top: -14px; left: 50%; animation-delay: .4s !important; transform: scale(.6); }
@keyframes lp-pixstar-blink {
  0%, 40%, 100% { opacity: 0; transform: scale(.4); }
  20%           { opacity: 1; transform: scale(1); }
  60%           { opacity: .6; transform: scale(.7); }
}

/* ─── Hero number block ─── */
.lp-promo-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0 10px;
  text-align: center;
}
.lp-promo-hero-eyebrow {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}
#lp-promo-balloon .lp-promo-hero-eyebrow { color: #cbd5e1 !important; }

.lp-promo-hero-number {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(110deg, #FFD700 0%, #FF6B35 48%, #FF0080 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1px rgba(255, 215, 0, .12);
  filter: drop-shadow(0 6px 14px rgba(255, 107, 53, .22));
  padding: 0 .12em;
  animation: lp-hero-breathe 2.4s ease-in-out infinite;
  cursor: default;
  isolation: isolate;
  overflow: hidden;
}
@keyframes lp-hero-breathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 6px 14px rgba(255, 107, 53, .22)); }
  50%      { transform: scale(1.025); filter: drop-shadow(0 10px 22px rgba(255, 107, 53, .34)); }
}
.lp-promo-hero-cursorglow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    140px 140px at var(--lp-hero-mx, 50%) var(--lp-hero-my, 50%),
    rgba(255, 255, 255, .35),
    transparent 70%
  );
  opacity: 0;
  transition: opacity .25s ease;
  mix-blend-mode: overlay;
  z-index: 2;
}
.lp-promo-hero-number:hover .lp-promo-hero-cursorglow { opacity: 1; }

.lp-promo-hero-digits {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.lp-promo-hero-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.lp-promo-hero-badge {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .60rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: transparent;
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lp-promo-hero-badge[data-tier="critical"] { color: #dc2626; box-shadow: 0 0 12px rgba(220, 38, 38, .25); }
.lp-promo-hero-badge[data-tier="warning"]  { color: #f59e0b; }
.lp-promo-hero-badge[data-tier="ok"]       { color: #10b981; }
.lp-promo-hero-badge:not([data-tier])      { color: #f59e0b; }

/* ─── Confetti burst host ─── */
.lp-promo-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
}
.lp-promo-confetti-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  will-change: transform, opacity;
  opacity: 0;
}

/* ─── Primary CTA: ripple + glow pulse ─── */
#lp-promo-balloon .lp-promo-cta--primary,
#lp-promo-balloon #lp-promo-cta-register {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(110deg, #FFD700 0%, #FF6B35 48%, #FF0080 100%) !important;
  color: #1a0a00 !important;
  border: none !important;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  font-size: .82rem !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 18px rgba(255, 107, 53, .35), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .25s ease !important;
  animation: lp-cta-glow 2.4s ease-in-out infinite;
}
@keyframes lp-cta-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(255, 107, 53, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
  50%      { box-shadow: 0 6px 26px rgba(255, 0, 128, .45),  inset 0 1px 0 rgba(255, 255, 255, .25); }
}
#lp-promo-balloon .lp-promo-cta--primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 10px 28px rgba(255, 0, 128, .5), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}
#lp-promo-balloon .lp-promo-cta--primary:active {
  transform: scale(.97) !important;
}
.lp-promo-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  transform: scale(0);
  animation: lp-ripple .65s ease-out forwards;
  mix-blend-mode: screen;
}
@keyframes lp-ripple {
  to { transform: scale(3); opacity: 0; }
}

/* Tone down secondary so primary wins eyes */
#lp-promo-balloon .lp-promo-cta--secondary,
#lp-promo-balloon #lp-promo-cta-explore {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
}

/* ─── Mobile polish ─── */
@media (max-width: 640px) {
  #lp-promo-balloon {
    padding: 20px 18px 18px !important;
  }
  .lp-promo-hero-number { font-size: 3rem !important; }
  .lp-promo-hero-eyebrow { font-size: .54rem; letter-spacing: .14em; }
  .lp-promo-pixstar { display: none; }
  .lp-promo-droplet { display: none; }
  #lp-promo-balloon .lp-promo-cta--primary,
  #lp-promo-balloon .lp-promo-cta--secondary {
    flex: 1 1 100% !important;
    min-height: 48px !important;
  }
}

/* ─── Exit animation override ─── */
#lp-promo-balloon.lp-promo-leave {
  transform: translate(-50%, 20px) scale(.85) !important;
  opacity: 0 !important;
  transition: opacity .28s ease-in, transform .30s ease-in !important;
}
@media (max-width: 720px) {
  #lp-promo-balloon.lp-promo-leave {
    transform: translateY(120%) scale(.92) !important;
  }
}

/* ─── Reduced motion: kill all the extra animations ─── */
@media (prefers-reduced-motion: reduce) {
  #lp-promo-balloon,
  #lp-promo-balloon.lp-promo-show,
  #lp-promo-balloon .lp-promo-hero-number,
  #lp-promo-balloon .lp-promo-cta--primary,
  #lp-promo-balloon .lp-promo-pixstar,
  .lp-promo-droplet,
  .lp-promo-droplet-line,
  .lp-promo-droplet-star,
  .lp-promo-ripple,
  .lp-promo-confetti-piece {
    animation: none !important;
    transition: opacity .2s ease !important;
  }
  #lp-promo-balloon.lp-promo-show {
    transform: translate(-50%, 0) scale(1) !important;
  }
  .lp-promo-droplet, .lp-promo-pixstar { display: none !important; }
}
/* ════ /LANDING_PROMO_VAGAS_V1 ════════════════════════════════ */


/* KEEPALIVE_BTN_RESTYLE_20260526 — premium + theme-aware (override) */
.adbx-keepalive-toggle{height:30px !important;padding:0 7px 0 13px !important;gap:8px !important;border:1px solid rgba(123,92,255,.22) !important;background:var(--bg-card-2,#1f2430) !important;color:var(--text-2,#cfd6e4) !important;box-shadow:none !important;font-weight:600 !important}
.adbx-keepalive-toggle:hover{transform:none !important;border-color:rgba(123,92,255,.5) !important;box-shadow:0 2px 10px rgba(123,92,255,.18) !important}
.adbx-keepalive-toggle .adbx-ka-ico{display:none !important}
.adbx-keepalive-toggle .adbx-ka-state{font-size:.55rem !important;padding:3px 9px !important;border-radius:999px !important;background:rgba(123,92,255,.16) !important;color:var(--text-2,#cfd6e4) !important;opacity:.72 !important}
.adbx-keepalive-toggle.is-on{border-color:rgba(16,185,129,.5) !important;background:linear-gradient(135deg,rgba(16,185,129,.18),rgba(5,150,105,.10)) !important;color:#10b981 !important;box-shadow:0 0 0 1px rgba(16,185,129,.22) !important}
.adbx-keepalive-toggle.is-on .adbx-ka-state{background:#10b981 !important;color:#fff !important;opacity:1 !important}
.adbx-ka-status{font-style:normal !important;color:var(--text-2,#9aa3bd) !important;opacity:.62 !important}


/* ADBWEB_OB_THEME_20260526 — onboarding ADB Web theme-aware Palantir (override do injetado) */
.ob-shell .ob-eyebrow{color:var(--text-2,#8b91b8) !important;opacity:.6}
.ob-shell .ob-sub{color:var(--text-2,#9aa3bd) !important;opacity:.85}
.ob-shell .ob-step{background:var(--bg-card,#10141f) !important;border:1px solid rgba(123,92,255,.16) !important;box-shadow:0 1px 0 rgba(255,255,255,.02) inset}
.ob-shell .ob-step:hover{border-color:rgba(123,92,255,.42) !important}
.ob-shell .ob-step-num{box-shadow:0 0 0 1px rgba(6,182,212,.3),0 0 16px rgba(6,182,212,.28) !important}
.ob-shell .ob-step-title{color:var(--text,#eef0fb) !important}
.ob-shell .ob-step-desc{color:var(--text-2,#9aa3bd) !important;opacity:.92}
.ob-shell .ob-step-desc b,.ob-shell .ob-step-note b{color:var(--text,#eef0fb) !important}
.ob-shell .ob-step-note{background:var(--bg-soft,#0e1320) !important;color:var(--text-2,#9aa3bd) !important;border-left:3px solid #f59e0b !important}
.ob-shell .ob-cmd{background:var(--bg-soft,#0b0e17) !important;color:#10b981 !important;border:1px solid rgba(123,92,255,.16) !important;padding:6px 10px;border-radius:7px;display:inline-block;margin-top:6px;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.78rem}
.ob-shell .ob-dl{background:var(--bg-soft,#0e1320) !important;border:1px solid rgba(123,92,255,.16) !important;color:var(--text,#eef0fb) !important}
.ob-shell .ob-dl:hover{background:var(--bg-card-2,#141a2b) !important}
.ob-shell .ob-dl b{color:var(--text,#eef0fb) !important}
.ob-shell .ob-dl span{color:var(--text-2,#9aa3bd) !important;opacity:.72}
.ob-shell .ob-link{color:#7B5CFF !important;font-weight:600}
.ob-shell .ob-expand{background:var(--bg-card,#10141f) !important;border:1px solid rgba(123,92,255,.14) !important;border-radius:12px;margin-bottom:8px;overflow:hidden}
.ob-shell .ob-expand summary{color:var(--text-2,#cbd5e1) !important;padding:13px 16px;font-weight:600;cursor:pointer}
.ob-shell .ob-expand[open] summary{border-bottom:1px solid rgba(123,92,255,.12)}
.ob-shell .ob-expand-body{color:var(--text-2,#9aa3bd) !important;padding:4px 16px 14px}
.ob-shell .ob-expand-body b,.ob-shell .ob-expand-body i{color:var(--text,#eef0fb) !important}
.ob-shell .ob-cta{box-shadow:0 6px 20px -8px rgba(123,92,255,.6) !important}


/* VPV2_WELCOME_SPIRAL_20260526 — welcome Video Pipeline: reveal espiral + premium (Palantir/Airbnb) */
@keyframes vpv2SpiralIn{0%{opacity:0;transform:scale(.32) rotate(-300deg);filter:blur(7px)}55%{opacity:1;transform:scale(1.05) rotate(12deg);filter:blur(0)}74%{transform:scale(.985) rotate(-4deg)}88%{transform:scale(1.005) rotate(1.5deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes vpv2BackdropIn{from{opacity:0}to{opacity:1}}
@keyframes vpv2IconReveal{0%{opacity:0;transform:rotate(-200deg) scale(.4)}100%{opacity:1;transform:rotate(0) scale(1)}}
@keyframes vpv2RowIn{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}
.vpv2-modal-backdrop{animation:vpv2BackdropIn .38s ease both;-webkit-backdrop-filter:blur(9px) saturate(1.15);backdrop-filter:blur(9px) saturate(1.15)}
.vpv2-modal-backdrop .vpv2-modal{animation:vpv2SpiralIn .78s cubic-bezier(.16,1,.3,1) both;transform-origin:center center;position:relative;overflow:hidden;border:1px solid rgba(123,92,255,.20)!important;box-shadow:0 32px 90px -34px rgba(0,0,0,.72),0 0 0 1px rgba(123,92,255,.08),0 0 70px -22px rgba(123,92,255,.32)!important}
.vpv2-modal-backdrop .vpv2-modal::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#2D3BFF,#7B5CFF,#00D4FF,transparent);opacity:.9;z-index:2}
.vpv2-modal-backdrop .vpv2-modal-hero-icon{animation:vpv2IconReveal .85s cubic-bezier(.16,1,.3,1) .12s both}
.vpv2-modal-backdrop .vpv2-modal-li{animation:vpv2RowIn .5s ease both}
.vpv2-modal-backdrop .vpv2-modal-li:nth-child(1){animation-delay:.30s}
.vpv2-modal-backdrop .vpv2-modal-li:nth-child(2){animation-delay:.40s}
.vpv2-modal-backdrop .vpv2-modal-li:nth-child(3){animation-delay:.50s}
.vpv2-modal-backdrop .vpv2-modal-li:nth-child(4){animation-delay:.60s}
.vpv2-modal-backdrop .vpv2-modal-go{box-shadow:0 8px 24px -8px rgba(123,92,255,.6)!important;transition:transform .15s ease,box-shadow .2s ease}
.vpv2-modal-backdrop .vpv2-modal-go:hover{transform:translateY(-1px);box-shadow:0 12px 30px -8px rgba(123,92,255,.7)!important}
@media (prefers-reduced-motion: reduce){.vpv2-modal-backdrop .vpv2-modal,.vpv2-modal-backdrop .vpv2-modal-hero-icon,.vpv2-modal-backdrop .vpv2-modal-li{animation:vpv2BackdropIn .3s ease both!important}}


/* FLASH_FRAME_SONAR_20260526 — busca de frames VIVA (sonar/aurora), GPU-only, leve */
.fla-frames-grid .fla-frame-fetch{position:relative!important;overflow:hidden!important;isolation:isolate;background:radial-gradient(120% 150% at 50% -25%,rgba(123,92,255,.18),transparent 60%),linear-gradient(135deg,#0b0e1b,#11152a 58%,#0a0d18)!important;border:1px solid rgba(123,92,255,.22)!important;transition:transform .18s cubic-bezier(.16,1,.3,1),border-color .25s,box-shadow .25s!important}
.fla-frames-grid .fla-frame-fetch::after{content:"";position:absolute;inset:-45% -15%;z-index:-1;background:conic-gradient(from 0deg,transparent,rgba(0,212,255,.10),transparent 28%,rgba(123,92,255,.13),transparent 58%,rgba(0,212,255,.08),transparent);animation:flaAurora 9s linear infinite}
@keyframes flaAurora{to{transform:rotate(360deg)}}
.fla-frames-grid .fla-frame-fetch-icon{position:relative;animation:flaFloat 3.4s ease-in-out infinite;box-shadow:0 8px 26px -8px rgba(123,92,255,.55)!important}
@keyframes flaFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.fla-frames-grid .fla-frame-fetch-icon::before,.fla-frames-grid .fla-frame-fetch-icon::after{content:"";position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;border:2px solid rgba(0,212,255,.55);transform:scale(.4);opacity:0;animation:flaSonar 2.6s cubic-bezier(.2,.6,.2,1) infinite;pointer-events:none}
.fla-frames-grid .fla-frame-fetch-icon::after{animation-delay:1.3s;border-color:rgba(123,92,255,.55)}
@keyframes flaSonar{0%{transform:scale(.4);opacity:.7}70%{opacity:.18}100%{transform:scale(2.3);opacity:0}}
.fla-frames-grid .fla-frame-fetch:hover{transform:translateY(-2px)!important;border-color:rgba(0,212,255,.5)!important;box-shadow:0 22px 56px -22px rgba(0,212,255,.45),0 0 0 1px rgba(0,212,255,.2)!important}
.fla-frames-grid .fla-frame-fetch:hover .fla-frame-fetch-icon::before,.fla-frames-grid .fla-frame-fetch:hover .fla-frame-fetch-icon::after{animation-duration:1.5s}
.fla-frames-grid .fla-frame-fetch:active{transform:scale(.975)!important}
.fla-frames-grid .fla-frame-fetch:active .fla-frame-fetch-icon{animation:flaFloat 3.4s ease-in-out infinite,flaPunch .45s ease-out}
@keyframes flaPunch{0%{box-shadow:0 0 0 0 rgba(0,212,255,.6)}100%{box-shadow:0 0 0 26px rgba(0,212,255,0)}}
/* estado "procurando" — pulso forte */
.fla-frame-loader .fla-frame-loader-pulse,.fla-frame-loader-pulse{animation:flaLoaderPulse 1.4s ease-out infinite!important}
@keyframes flaLoaderPulse{0%{box-shadow:0 0 0 0 rgba(0,212,255,.55)}70%{box-shadow:0 0 0 24px rgba(0,212,255,0)}100%{box-shadow:0 0 0 0 rgba(0,212,255,0)}}
/* frames surgem em cascata */
.fla-frames-grid img{animation:flaFrameIn .5s cubic-bezier(.16,1,.3,1) both}
.fla-frames-grid > *:nth-child(1) img{animation-delay:.02s}.fla-frames-grid > *:nth-child(2) img{animation-delay:.07s}.fla-frames-grid > *:nth-child(3) img{animation-delay:.12s}.fla-frames-grid > *:nth-child(4) img{animation-delay:.17s}.fla-frames-grid > *:nth-child(5) img{animation-delay:.22s}.fla-frames-grid > *:nth-child(6) img{animation-delay:.27s}
@keyframes flaFrameIn{from{opacity:0;transform:scale(.9) translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fla-frames-grid .fla-frame-fetch::after,.fla-frames-grid .fla-frame-fetch-icon,.fla-frames-grid .fla-frame-fetch-icon::before,.fla-frames-grid .fla-frame-fetch-icon::after,.fla-frame-loader-pulse,.fla-frames-grid img{animation:none!important}}

/* ════════════════════════════════════════════════════════════════
 * RENTAL E4 VISIBILITY — Marketplace tab + Comunidade widget
 * Markers: MKT_RENTAL_TAB_V1, COMM_RENTAL_WIDGET_V1
 * ════════════════════════════════════════════════════════════════ */

/* ── Marketplace rental chip ─────────────────────────────────── */
.mkt-chip--rental {
  background: linear-gradient(135deg, rgba(123,92,255,.22), rgba(45,59,255,.18)) !important;
  border-color: rgba(123,92,255,.45) !important;
  color: #c4b5fd !important;
  font-weight: 700;
  position: relative;
}
.mkt-chip--rental.active {
  background: linear-gradient(135deg, #7B5CFF, #2D3BFF) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px -8px rgba(123,92,255,.65);
}
.mkt-chip-ico--rental { display: inline-flex; align-items: center; }

/* ── Marketplace rental section ──────────────────────────────── */
.mkt-rental-section { margin-top: 4px; }
.mkt-rental-section.hidden { display: none; }
.mkt-rental-header {
  background: linear-gradient(135deg, rgba(45,59,255,.08), rgba(123,92,255,.10));
  border: 1px solid rgba(123,92,255,.25);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.mkt-rental-title {
  display: flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 700; font-size: .98rem; letter-spacing: .03em;
  color: #e9e5ff;
  text-transform: uppercase;
}
.mkt-rental-title svg { color: #c4b5fd; }
.mkt-rental-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .62rem; font-weight: 700;
  background: rgba(74,222,128,.14);
  color: #4ade80;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(74,222,128,.3);
  letter-spacing: .08em;
  margin-left: 6px;
}
.mkt-rental-dot, .comm-rw-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,.7);
  animation: rentalPulseDot 2.4s ease-in-out infinite;
}
@keyframes rentalPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}
.mkt-rental-sub {
  color: #b8b3d6; font-size: .82rem; line-height: 1.5;
  margin-top: 8px;
}

/* ── Rental cards grid ────────────────────────────────────────── */
.mkt-rental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.rental-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(123,92,255,.18);
  border-radius: 11px;
  padding: 14px 14px 14px;
  display: flex; flex-direction: column; gap: 11px;
  transition: transform .18s cubic-bezier(.34,1.4,.6,1), border-color .15s, box-shadow .18s;
  position: relative;
}
.rental-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123,92,255,.5);
  box-shadow: 0 12px 28px -16px rgba(123,92,255,.55);
}
.rental-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.rental-card-label {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 700; font-size: .92rem;
  color: var(--text, #fff);
  word-break: break-word;
  line-height: 1.3;
  flex: 1;
}
.rental-pill-fee {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .62rem; font-weight: 700;
  background: rgba(123,92,255,.18);
  color: #c4b5fd;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(123,92,255,.3);
  white-space: nowrap;
  letter-spacing: .04em;
}
.rental-stat-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .76rem;
  color: #94a3b8;
}
.rental-stat { display: inline-flex; align-items: center; gap: 4px; }
.rental-stat b { color: var(--text, #fff); font-weight: 700; }
.rental-stat svg { opacity: .75; }
.rental-stat-sep { opacity: .35; }
.rental-slots--ok b { color: #4ade80; }
.rental-slots--warn b { color: #fbbf24; }
.rental-slots--low b { color: #f87171; }
.rental-stat--credits b { color: #c4b5fd; }
.rental-stat--days b { color: #93c5fd; }

.rental-card-cta {
  margin-top: auto;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .14s cubic-bezier(.34,1.4,.6,1), box-shadow .14s, filter .14s;
}
.rental-card-cta:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(45,59,255,.7);
  filter: brightness(1.08);
}
.rental-card-cta[disabled] {
  background: rgba(255,255,255,.05);
  color: #64748b;
  cursor: not-allowed;
}

/* ── Empty state ─────────────────────────────────────────────── */
.rental-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px 20px;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(123,92,255,.25);
  border-radius: 12px;
}
.rental-empty-ico { display: inline-flex; opacity: .5; margin-bottom: 8px; }
.rental-empty-ico svg { width: 28px; height: 28px; }
.rental-empty-title { font-weight: 700; color: var(--text, #fff); margin-bottom: 4px; }
.rental-empty-sub { color: #94a3b8; font-size: .85rem; }

/* ── Modal ───────────────────────────────────────────────────── */
.rental-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,10,18,.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .28s cubic-bezier(.34,1.4,.6,1);
}
.rental-modal-overlay.is-open { opacity: 1; }
.rental-modal-card {
  background: #0f1424;
  border: 1px solid rgba(123,92,255,.3);
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  transform: scale(.85) translateY(20px);
  transition: transform .4s cubic-bezier(.34,1.56,.6,1);
}
.rental-modal-overlay.is-open .rental-modal-card { transform: scale(1) translateY(0); }
.rental-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(135deg, rgba(45,59,255,.08), rgba(123,92,255,.10));
}
.rental-modal-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 700; font-size: .92rem;
  color: #e9e5ff;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rental-modal-title svg { color: #c4b5fd; }
.rental-modal-x {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  width: 30px; height: 30px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.rental-modal-x:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.rental-modal-body { padding: 18px; }
.rental-modal-listing {
  background: rgba(123,92,255,.08);
  border: 1px solid rgba(123,92,255,.2);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .88rem;
  margin-bottom: 12px;
  color: var(--text, #fff);
  word-break: break-word;
}
.rental-modal-row {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  padding: 6px 0;
}
.rental-modal-row b { color: var(--text, #fff); font-family: 'JetBrains Mono', 'SF Mono', monospace; }
.rental-modal-row svg { color: #94a3b8; flex-shrink: 0; }
.rental-bal--ok b { color: #4ade80 !important; }
.rental-bal--low b { color: #f87171 !important; }
.rental-modal-foot-note {
  font-size: .76rem;
  color: #94a3b8;
  display: flex; align-items: flex-start; gap: 6px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 8px;
}
.rental-modal-foot-note svg { flex-shrink: 0; margin-top: 2px; }
.rental-modal-actions {
  display: flex; gap: 10px; padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.rental-modal-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .12s, filter .12s, box-shadow .14s;
}
.rental-modal-btn--cancel {
  background: rgba(255,255,255,.05);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.1);
}
.rental-modal-btn--cancel:hover { background: rgba(255,255,255,.08); }
.rental-modal-btn--confirm {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
}
.rental-modal-btn--confirm:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 8px 22px -8px rgba(123,92,255,.7);
}

/* ── Spinner inside CTA ─────────────────────────────────────── */
.rental-spin {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rentalSpin .7s linear infinite;
}
@keyframes rentalSpin { to { transform: rotate(360deg); } }

/* ── Confetti ────────────────────────────────────────────────── */
.rental-confetti {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  z-index: 10000;
  pointer-events: none;
  animation: rentalConfetti .85s cubic-bezier(.34,1.4,.6,1) forwards;
}
@keyframes rentalConfetti {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(540deg); opacity: 0; }
}

/* ── Comunidade widget ───────────────────────────────────────── */
.comm-rental-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 260px;
  max-height: 380px;
  background: rgba(15,20,36,.96);
  border: 1px solid rgba(123,92,255,.3);
  border-radius: 12px;
  box-shadow: 0 20px 48px -16px rgba(0,0,0,.6);
  z-index: 80;
  display: flex; flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rentalSlideIn .42s cubic-bezier(.34,1.4,.6,1);
}
@keyframes rentalSlideIn {
  0% { transform: translateX(30px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.comm-rw-head {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(45,59,255,.12), rgba(123,92,255,.15));
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.comm-rw-ico { display: inline-flex; color: #c4b5fd; }
.comm-rw-title {
  font-weight: 700; font-size: .72rem;
  letter-spacing: .1em;
  color: #e9e5ff;
}
.comm-rw-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .55rem; font-weight: 700;
  background: rgba(74,222,128,.14);
  color: #4ade80;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(74,222,128,.3);
  letter-spacing: .08em;
}
.comm-rw-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.comm-rw-list::-webkit-scrollbar { width: 6px; }
.comm-rw-list::-webkit-scrollbar-thumb { background: rgba(123,92,255,.3); border-radius: 3px; }
.comm-rw-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 10px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
  transition: transform .14s cubic-bezier(.34,1.4,.6,1), border-color .14s, background .14s;
}
.comm-rw-item:hover {
  transform: translateY(-2px);
  background: rgba(123,92,255,.10);
  border-color: rgba(123,92,255,.4);
  box-shadow: 0 8px 18px -10px rgba(123,92,255,.5);
}
.comm-rw-item-label {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 700; font-size: .76rem;
  color: var(--text, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comm-rw-item-meta {
  display: flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .65rem;
  color: #94a3b8;
}
.comm-rw-item-slots.rental-slots--ok { color: #4ade80; }
.comm-rw-item-slots.rental-slots--warn { color: #fbbf24; }
.comm-rw-item-slots.rental-slots--low { color: #f87171; }
.comm-rw-item-price { color: #c4b5fd; }
.comm-rw-item-arrow { margin-left: auto; color: #7B5CFF; display: inline-flex; }
.comm-rw-loading, .comm-rw-empty {
  font-size: .76rem;
  color: #64748b;
  text-align: center;
  padding: 16px 8px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.comm-rw-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  text-decoration: none;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: filter .14s;
}
.comm-rw-cta:hover { filter: brightness(1.1); }

/* ── Theme: LIGHT ────────────────────────────────────────────── */
body.theme-light .rental-card {
  background: rgba(255,255,255,.95);
  border-color: rgba(123,92,255,.22);
}
body.theme-light .rental-card:hover {
  border-color: rgba(123,92,255,.55);
  box-shadow: 0 12px 28px -16px rgba(123,92,255,.4);
}
body.theme-light .rental-card-label { color: #1e293b; }
body.theme-light .rental-stat b { color: #1e293b; }
body.theme-light .mkt-rental-header {
  background: linear-gradient(135deg, rgba(45,59,255,.05), rgba(123,92,255,.06));
  border-color: rgba(123,92,255,.18);
}
body.theme-light .mkt-rental-title { color: #1e1b4b; }
body.theme-light .mkt-rental-sub { color: #475569; }
body.theme-light .rental-pill-fee {
  background: rgba(123,92,255,.10);
  color: #6d28d9;
  border-color: rgba(123,92,255,.25);
}
body.theme-light .rental-stat { color: #475569; }
body.theme-light .rental-empty {
  background: rgba(0,0,0,.02);
  border-color: rgba(123,92,255,.18);
}
body.theme-light .rental-empty-title { color: #1e293b; }
body.theme-light .rental-empty-sub { color: #64748b; }
body.theme-light .rental-modal-card {
  background: #fff;
  border-color: rgba(123,92,255,.2);
  color: #1e293b;
}
body.theme-light .rental-modal-head {
  background: linear-gradient(135deg, rgba(45,59,255,.05), rgba(123,92,255,.07));
  border-bottom-color: rgba(0,0,0,.06);
}
body.theme-light .rental-modal-title { color: #1e1b4b; }
body.theme-light .rental-modal-x {
  border-color: rgba(0,0,0,.1);
  color: #64748b;
}
body.theme-light .rental-modal-x:hover { color: #1e293b; border-color: rgba(0,0,0,.25); }
body.theme-light .rental-modal-listing {
  background: rgba(123,92,255,.05);
  border-color: rgba(123,92,255,.15);
  color: #1e293b;
}
body.theme-light .rental-modal-row { color: #475569; }
body.theme-light .rental-modal-row b { color: #1e293b; }
body.theme-light .rental-modal-foot-note { color: #64748b; border-top-color: rgba(0,0,0,.06); }
body.theme-light .rental-modal-btn--cancel {
  background: rgba(0,0,0,.04);
  color: #475569;
  border-color: rgba(0,0,0,.08);
}
body.theme-light .rental-modal-btn--cancel:hover { background: rgba(0,0,0,.07); }
body.theme-light .rental-modal-actions { border-top-color: rgba(0,0,0,.06); }
body.theme-light .comm-rental-widget {
  background: rgba(255,255,255,.98);
  border-color: rgba(123,92,255,.22);
  box-shadow: 0 20px 48px -16px rgba(123,92,255,.25);
}
body.theme-light .comm-rw-head {
  background: linear-gradient(135deg, rgba(45,59,255,.06), rgba(123,92,255,.08));
  border-bottom-color: rgba(0,0,0,.05);
}
body.theme-light .comm-rw-title { color: #1e1b4b; }
body.theme-light .comm-rw-item {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.04);
}
body.theme-light .comm-rw-item:hover {
  background: rgba(123,92,255,.06);
  border-color: rgba(123,92,255,.3);
}
body.theme-light .comm-rw-item-label { color: #1e293b; }
body.theme-light .comm-rw-item-meta { color: #64748b; }

/* ── Theme: MATTE ────────────────────────────────────────────── */
body.theme-matte .rental-card {
  background: rgba(20,20,24,.6);
  border-color: rgba(123,92,255,.15);
}
body.theme-matte .rental-card:hover { border-color: rgba(123,92,255,.45); }
body.theme-matte .mkt-rental-header {
  background: linear-gradient(135deg, rgba(45,59,255,.05), rgba(123,92,255,.07));
  border-color: rgba(123,92,255,.18);
}
body.theme-matte .rental-pill-fee {
  background: rgba(123,92,255,.10);
  border-color: rgba(123,92,255,.22);
}
body.theme-matte .rental-modal-card { background: #14141c; border-color: rgba(123,92,255,.22); }
body.theme-matte .comm-rental-widget { background: rgba(20,20,28,.96); border-color: rgba(123,92,255,.22); }
body.theme-matte .comm-rw-item:hover { background: rgba(123,92,255,.08); }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mkt-rental-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .mkt-rental-header { padding: 12px 14px; }
  .mkt-rental-title { font-size: .88rem; }
  .mkt-rental-sub { font-size: .76rem; }
  .mkt-cat-chips { flex-wrap: wrap !important; }
  .mkt-chip--rental { font-size: .8rem; }
  .comm-rental-widget {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 14px 0;
    max-height: none;
  }
  .comm-rw-list { max-height: 260px; }
  .rental-modal-card { max-width: 92vw; }
  .rental-modal-actions { flex-direction: column; }
}

/* END RENTAL E4 VISIBILITY ═════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
 * U1/U2/U3 — Rental marketplace UI styles
 * Markers: U1_CKEEPER_PUBLISH_V1 / U2_MKT_RENTAL_RICH_V1 / U3_COMM_RENTAL_SECTION_V1
 * Palantir aesthetic + glass + 3-theme aware (light/navy/matte)
 * ════════════════════════════════════════════════════════════════ */

/* ── shared modal shell (used by U1 publish + jar picker) ──────── */
.u123-modal-overlay {
  position: fixed; inset: 0; z-index: 99500;
  background: rgba(8, 12, 24, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .22s ease;
}
.u123-modal-overlay.is-open { opacity: 1; }
.u123-modal-card {
  width: 100%; max-width: 520px;
  background: linear-gradient(160deg, rgba(28, 32, 56, .96), rgba(20, 24, 44, .96));
  border: 1px solid rgba(123, 92, 255, 0.32);
  border-radius: 14px; color: #f1f5f9;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: scale(.94) translateY(12px); transition: transform .28s cubic-bezier(.22,1,.36,1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.u123-modal-overlay.is-open .u123-modal-card { transform: scale(1) translateY(0); }
.u123-modal-head {
  padding: 14px 18px; border-bottom: 1px solid rgba(123, 92, 255, .18);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, rgba(45, 59, 255, .08), rgba(123, 92, 255, .08));
  border-radius: 14px 14px 0 0;
}
.u123-modal-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: #e0e7ff;
}
.u123-modal-title svg { width: 16px; height: 16px; color: #c4b5fd; }
.u123-modal-x {
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  color: #cbd5e1; width: 28px; height: 28px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.u123-modal-x:hover { color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.u123-modal-x svg { width: 14px; height: 14px; }

.u123-modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.u123-modal-listing {
  padding: 10px 12px;
  background: rgba(45, 59, 255, .12);
  border: 1px solid rgba(123, 92, 255, .24);
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .85rem; color: #f1f5f9;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.u123-modal-listing-slug {
  font-size: .7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em;
}
.u123-warn {
  padding: 10px 12px; background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .4); border-radius: 8px;
  color: #fde68a; font-size: .82rem;
  display: flex; align-items: flex-start; gap: 8px;
}
.u123-warn svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: #fbbf24; }

.u123-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.u123-field label {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  color: #a5b4fc; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 6px;
}
.u123-hint { font-weight: 400; letter-spacing: 0; text-transform: none; color: #94a3b8; font-size: .7rem; }
.u123-field input,
.u123-field select {
  background: rgba(15, 18, 32, .8);
  border: 1px solid rgba(123, 92, 255, .22);
  color: #f1f5f9;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  width: 100%; box-sizing: border-box;
}
.u123-field input:focus,
.u123-field select:focus {
  outline: none; border-color: #7B5CFF;
  background: rgba(15, 18, 32, 1);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, .18);
}
.u123-field-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
@media (max-width: 480px) { .u123-field-row { grid-template-columns: 1fr; } }
.u123-err {
  font-size: .72rem; color: #fca5a5; min-height: 0;
  font-family: 'JetBrains Mono', monospace;
}
.u123-err:not(:empty) { padding-top: 2px; }

.u123-preview {
  padding: 12px;
  background: linear-gradient(135deg, rgba(45, 59, 255, .14), rgba(0, 212, 255, .08));
  border: 1px solid rgba(0, 212, 255, .3);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.u123-preview-row {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #cbd5e1;
}
.u123-preview-row svg { width: 12px; height: 12px; color: #00D4FF; flex-shrink: 0; }
.u123-preview-row b {
  font-family: 'JetBrains Mono', monospace;
  color: #fff; font-weight: 700;
}

.u123-modal-actions {
  padding: 12px 18px 16px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,.06);
}
.u123-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer; transition: all .18s;
  border: 1px solid transparent;
}
.u123-btn svg { width: 14px; height: 14px; }
.u123-btn:disabled { opacity: .5; cursor: not-allowed; }
.u123-btn--cancel {
  background: transparent;
  color: #cbd5e1; border-color: rgba(255,255,255,.18);
}
.u123-btn--cancel:hover { color: #fff; border-color: rgba(255,255,255,.36); }
.u123-btn--primary {
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(45, 59, 255, .42);
}
.u123-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px); box-shadow: 0 10px 26px rgba(123, 92, 255, .52);
}
.u123-spin {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: u123-spin 0.8s linear infinite;
}
@keyframes u123-spin { to { transform: rotate(360deg); } }

/* jar picker */
.u123-jar-picker {
  display: flex; flex-direction: column; gap: 8px;
}
.u123-jar-pick {
  text-align: left; padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(123, 92, 255, .18);
  border-radius: 9px; cursor: pointer;
  color: #f1f5f9; transition: all .15s;
  display: flex; flex-direction: column; gap: 4px;
}
.u123-jar-pick:hover {
  background: rgba(123, 92, 255, .14);
  border-color: rgba(123, 92, 255, .42);
  transform: translateY(-1px);
}
.u123-jar-pick-name { font-weight: 600; font-size: .92rem; }
.u123-jar-pick-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: #94a3b8; letter-spacing: .04em;
}

/* confetti particles (U1 + U2) */
.u123-confetti {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  pointer-events: none; z-index: 99999;
  animation: u123-confetti-fly 880ms cubic-bezier(.2,.7,.4,1) forwards;
}
@keyframes u123-confetti-fly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx,0), var(--dy,0)) scale(.4) rotate(360deg); opacity: 0; }
}

/* ── U1: Cookie Keeper publish button ─────────────────────────── */
.ck-chip-btn.ck-chip-btn--publish.u123-publish-btn {
  background: linear-gradient(135deg, rgba(45, 59, 255, .22), rgba(123, 92, 255, .22));
  border: 1px solid rgba(123, 92, 255, .42);
  color: #c4b5fd;
}
.ck-chip-btn.ck-chip-btn--publish.u123-publish-btn:hover {
  background: linear-gradient(135deg, rgba(45, 59, 255, .38), rgba(123, 92, 255, .38));
  color: #fff;
  border-color: rgba(123, 92, 255, .72);
}

/* ── U2: Marketplace rental toolbar + cards ───────────────────── */
.urw-toolbar {
  display: flex; align-items: flex-end; flex-wrap: wrap;
  gap: 12px; padding: 12px 0 16px;
  border-bottom: 1px solid rgba(123, 92, 255, .14);
  margin-bottom: 16px;
}
.urw-filter-group {
  display: flex; flex-direction: column; gap: 4px; min-width: 130px;
}
.urw-filter-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  color: #94a3b8; text-transform: uppercase;
}
.urw-select {
  background: rgba(15, 18, 32, .72);
  border: 1px solid rgba(123, 92, 255, .26);
  color: #f1f5f9;
  padding: 8px 10px; border-radius: 7px;
  font-size: .85rem; font-family: inherit;
  cursor: pointer; transition: border-color .15s;
}
.urw-select:hover, .urw-select:focus {
  outline: none; border-color: #7B5CFF;
}
.urw-publish-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%);
  color: #fff; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(45, 59, 255, .38);
  transition: all .18s;
}
.urw-publish-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(123, 92, 255, .5); }
.urw-publish-cta svg { width: 14px; height: 14px; }

.urw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.urw-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(123, 92, 255, .22);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .2s;
}
.urw-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 92, 255, .48);
  box-shadow: 0 12px 32px rgba(45, 59, 255, .18);
}
.urw-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.urw-card-label {
  font-size: .96rem; font-weight: 600; color: #f1f5f9;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.urw-card-owner {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; color: #94a3b8; flex-shrink: 0;
  padding: 2px 6px; background: rgba(255,255,255,.04);
  border-radius: 4px; border: 1px solid rgba(255,255,255,.06);
}
.urw-card-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; font-weight: 700;
  padding: 5px 8px; border-radius: 5px;
  letter-spacing: .04em;
  align-self: flex-start;
}
.urw-card-badge b { font-weight: 800; }
.urw-card-badge--urw-slots--ok   { background: rgba(74, 222, 128, .14); color: #4ade80; border: 1px solid rgba(74, 222, 128, .3); }
.urw-card-badge--urw-slots--warn { background: rgba(251, 191, 36, .14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .3); }
.urw-card-badge--urw-slots--low  { background: rgba(248, 113, 113, .14); color: #f87171; border: 1px solid rgba(248, 113, 113, .3); }

.urw-slots-bar {
  height: 4px; background: rgba(255,255,255,.06);
  border-radius: 99px; overflow: hidden;
}
.urw-slots-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF, #00D4FF);
  border-radius: 99px; transition: width .4s;
}
.urw-slots-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: #94a3b8;
}
.urw-card-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%);
  color: #fff; cursor: pointer; margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .18s;
}
.urw-card-cta:hover:not([disabled]) {
  transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45, 59, 255, .42);
}
.urw-card-cta[disabled] {
  background: rgba(255,255,255,.08); color: #64748b; cursor: not-allowed;
}
.urw-card-cta svg { width: 14px; height: 14px; }

.urw-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 40px 20px;
  border: 1px dashed rgba(123, 92, 255, .24);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.urw-empty-ico {
  width: 64px; height: 64px; margin: 0 auto 12px;
  color: #7B5CFF; opacity: .5;
}
.urw-empty-ico svg { width: 100%; height: 100%; }
.urw-empty-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  color: #cbd5e1; margin-bottom: 6px;
}
.urw-empty-sub { font-size: .82rem; color: #94a3b8; }

/* skeletons */
.urw-skel {
  padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.urw-skel-line {
  height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: urw-shimmer 1.4s ease-in-out infinite;
}
.urw-skel-line--lg { height: 18px; width: 80%; }
.urw-skel-line--md { width: 55%; }
.urw-skel-line--sm { width: 40%; height: 8px; }
.urw-skel-cta { height: 36px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: urw-shimmer 1.4s ease-in-out infinite;
  margin-top: auto;
}
@keyframes urw-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── U3: Comunidade rental section ─────────────────────────────── */
.u3-rental-section {
  margin: 0 0 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(123, 92, 255, .22);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.u3-rental-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45, 59, 255, .04), rgba(0, 212, 255, .04));
  pointer-events: none; z-index: 0;
}
.u3-head, .u3-list, .u3-cta-all { position: relative; z-index: 1; }
.u3-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(123, 92, 255, .16);
  margin-bottom: 12px; gap: 12px; flex-wrap: wrap;
}
.u3-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  color: #e0e7ff; text-transform: uppercase;
}
.u3-title svg { width: 16px; height: 16px; color: #00D4FF; }
.u3-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: #94a3b8; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.u3-list { display: flex; flex-direction: column; gap: 8px; }
.u3-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  transition: all .15s;
}
.u3-row:hover {
  background: rgba(123, 92, 255, .1);
  border-color: rgba(123, 92, 255, .3);
}
.u3-row-main { min-width: 0; flex: 1; }
.u3-row-label {
  font-size: .9rem; font-weight: 600; color: #f1f5f9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.u3-row-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: #94a3b8; letter-spacing: .04em;
}
.u3-sep { opacity: .5; }
.u3-row-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 6px;
  background: rgba(0, 212, 255, .12);
  border: 1px solid rgba(0, 212, 255, .3);
  color: #00D4FF;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  transition: all .15s; flex-shrink: 0;
}
.u3-row-cta:hover {
  background: rgba(0, 212, 255, .22);
  border-color: rgba(0, 212, 255, .58);
  color: #fff;
}
.u3-row-cta svg { width: 11px; height: 11px; }
.u3-loading, .u3-empty {
  text-align: center; padding: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem; color: #94a3b8;
}
.u3-cta-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #2D3BFF 0%, #7B5CFF 50%, #00D4FF 100%);
  color: #fff; border-radius: 8px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .18s;
  box-shadow: 0 4px 14px rgba(45, 59, 255, .3);
}
.u3-cta-all:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(123, 92, 255, .48); }
.u3-cta-all svg { width: 12px; height: 12px; }

/* ── Theme: LIGHT — invert glass + text on light bg ─────────────── */
body.theme-light .u3-rental-section,
body.theme-light .urw-card,
body.theme-light .urw-skel {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(45, 59, 255, .18);
}
body.theme-light .u3-rental-section::before { background: linear-gradient(135deg, rgba(45, 59, 255, .03), rgba(0, 212, 255, .03)); }
body.theme-light .urw-card-label,
body.theme-light .u3-row-label,
body.theme-light .u3-title { color: #1e293b; }
body.theme-light .urw-slots-meta,
body.theme-light .u3-row-meta,
body.theme-light .u3-counter,
body.theme-light .urw-filter-label,
body.theme-light .urw-card-owner { color: #475569; }
body.theme-light .urw-card-owner { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.06); }
body.theme-light .urw-select {
  background: #fff; color: #1e293b; border-color: #e2e8f0;
}
body.theme-light .urw-empty {
  background: rgba(255,255,255,.6); border-color: rgba(45,59,255,.2);
}
body.theme-light .urw-empty-title { color: #1e293b; }
body.theme-light .urw-empty-sub { color: #475569; }
body.theme-light .u3-row {
  background: rgba(255,255,255,.6); border-color: rgba(0,0,0,.06);
}
body.theme-light .u3-row:hover { background: rgba(45,59,255,.06); border-color: rgba(45,59,255,.24); }
body.theme-light .u3-loading, body.theme-light .u3-empty { color: #475569; }

/* ── Theme: NAVY — keep dark glass, slightly warmer accent ─────── */
body.theme-navy .u3-rental-section,
body.theme-navy .urw-card { background: rgba(15, 23, 42, 0.62); border-color: rgba(123, 92, 255, .28); }
body.theme-navy .u3-row { background: rgba(15, 23, 42, .42); }

/* ── Theme: MATTE — flatter, less blur ─────────────────────────── */
body.theme-matte .u3-rental-section,
body.theme-matte .urw-card,
body.theme-matte .urw-skel {
  background: #1a1d2e;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-color: rgba(123, 92, 255, .26);
}
body.theme-matte .u3-row { background: #232638; }
body.theme-matte .u123-modal-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.theme-matte .urw-select, body.theme-matte .u123-field input, body.theme-matte .u123-field select {
  background: #232638;
}

/* WCAG: focus ring everywhere */
.urw-select:focus-visible,
.urw-card-cta:focus-visible,
.urw-publish-cta:focus-visible,
.u3-row-cta:focus-visible,
.u3-cta-all:focus-visible,
.u123-btn:focus-visible,
.u123-jar-pick:focus-visible,
.u123-modal-x:focus-visible {
  outline: 2px solid #00D4FF; outline-offset: 2px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .urw-toolbar { gap: 8px; }
  .urw-filter-group { min-width: calc(50% - 4px); }
  .urw-publish-cta { width: 100%; margin-left: 0; justify-content: center; }
  .urw-grid { grid-template-columns: 1fr; }
  .u3-row { flex-direction: column; align-items: stretch; }
  .u3-row-cta { justify-content: center; }
}
/* END U1/U2/U3 styles ════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════
 * P1_MKT_COMPARTILHAMENTO_CTA_V1 / P1_MKT_RENTAL_POLISH_V1
 * Palantir polish for Marketplace > Aluguel + COMPARTILHAMENTO FLOW button.
 * Theme-safe across .theme-light / .theme-navy / .theme-matte.
 * ════════════════════════════════════════════════════════════════ */

/* ── COMPARTILHAMENTO FLOW CTA button (shine loop animation) ───────────── */
.mkt-new-btn--compartilhamento {
  position: relative;
  overflow: hidden;
  /* G1_RENTAL_GREEN_THEME_V1 — emerald gradient (was violet/cyan) */
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%) !important;
  background-size: 200% 200% !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  box-shadow:
    0 6px 22px rgba(16,185,129,.42),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 12px 30px -10px rgba(52,211,153,.40) !important;
  padding: 12px 22px !important;
  font-size: .94rem !important;
  animation: p1-bg-pan 6s ease-in-out infinite alternate;
}
.mkt-new-btn--compartilhamento:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(16,185,129,.55),
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 18px 44px -10px rgba(52,211,153,.60) !important;
}
.mkt-new-btn--compartilhamento .mkt-new-btn-bolt,
.mkt-new-btn--compartilhamento .mkt-new-btn-pizza {
  filter: drop-shadow(0 0 6px rgba(255,255,255,.55));
}
/* PIZZA_SLICE_V1 — fatia se desencaixa devagar (sharing/dividing vibe) */
.mkt-new-btn--compartilhamento .mkt-pizza-slice {
  animation: p1-pizza-pull 2.4s cubic-bezier(.5,0,.3,1) infinite;
  transform-origin: 16px 3px;
}
@keyframes p1-pizza-pull {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(2.2px, -2.2px); }
}
.mkt-new-btn-shine-overlay {
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  animation: p1-shine 3s ease-in-out infinite;
}
@keyframes p1-shine {
  0%   { left: -60%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
@keyframes p1-bg-pan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Light theme adjustments for the button */
body.theme-light .mkt-new-btn--compartilhamento {
  box-shadow:
    0 8px 24px rgba(45,59,255,.32),
    0 0 0 1px rgba(255,255,255,.40) inset !important;
}

/* ────────────────────────────────────────────────────────────── */
/* QUICK GUIDE overlay (no jar yet)                                */
/* ────────────────────────────────────────────────────────────── */
.p1-guide-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 12, 24, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  opacity: 0; transition: opacity .24s;
}
.p1-guide-overlay.is-open { opacity: 1; }
.p1-guide-card {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  background: linear-gradient(135deg, rgba(35,38,58,0.96), rgba(20,22,40,0.96));
  border: 1px solid rgba(123,92,255,.38);
  border-radius: 18px;
  padding: 28px 26px 22px;
  color: #f1f5f9;
  text-align: center;
  box-shadow:
    0 30px 90px rgba(0,0,0,.6),
    0 0 0 1px rgba(0,212,255,.08) inset;
  transform: translateY(20px) scale(.96);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.p1-guide-overlay.is-open .p1-guide-card {
  transform: translateY(0) scale(1);
}
.p1-guide-x {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #cbd5e1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .14s;
}
.p1-guide-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.p1-guide-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border-radius: 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #7B5CFF, #2D3BFF, #00D4FF);
  color: #fff;
  box-shadow: 0 12px 32px rgba(123,92,255,.45);
}
.p1-guide-title {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 1.4rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #c4b5fd, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.p1-guide-sub {
  font-size: .94rem; color: #cbd5e1;
  line-height: 1.5; margin-bottom: 18px;
}
.p1-guide-steps {
  text-align: left;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(123,92,255,.18);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.p1-guide-step {
  font-size: .88rem; color: #e2e8f0;
}
.p1-guide-step b {
  color: #00D4FF; font-family: 'JetBrains Mono', monospace;
  margin-right: 4px;
}
.p1-guide-actions {
  display: flex; gap: 10px; justify-content: stretch;
}
.p1-guide-btn {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.p1-guide-btn--ghost {
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.10);
}
.p1-guide-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.p1-guide-btn--primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF, #00D4FF);
  color: #fff;
  box-shadow: 0 8px 22px rgba(45,59,255,.45);
}
.p1-guide-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(45,59,255,.6);
}

/* Light theme guide */
body.theme-light .p1-guide-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: rgba(45,59,255,.28);
  color: #18181b;
}
body.theme-light .p1-guide-sub { color: #475569; }
body.theme-light .p1-guide-steps {
  background: rgba(45,59,255,.04);
  border-color: rgba(45,59,255,.14);
}
body.theme-light .p1-guide-step { color: #1e293b; }

/* ────────────────────────────────────────────────────────────── */
/* RENTAL HEADER polish (glass + animated underline pulse)         */
/* ────────────────────────────────────────────────────────────── */
.p1-rental-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(45,59,255,.16) 0%, rgba(123,92,255,.10) 45%, rgba(0,212,255,.10) 100%) !important;
  border: 1px solid rgba(123,92,255,.36) !important;
  border-radius: 16px !important;
  padding: 18px 22px 22px !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 38px rgba(45,59,255,.18),
    0 0 0 1px rgba(255,255,255,.04) inset;
}
.p1-rental-header .mkt-rental-title {
  font-size: 1.06rem !important;
  letter-spacing: .06em !important;
}
.p1-rental-header .mkt-rental-sub {
  color: #cbd5e1;
  margin-top: 8px;
  line-height: 1.55;
  font-size: .92rem;
}
.p1-rental-pulse-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(123,92,255,0) 0%,
    #7B5CFF 30%, #00D4FF 50%, #7B5CFF 70%,
    rgba(123,92,255,0) 100%
  );
  background-size: 200% 100%;
  animation: p1-line-pulse 3.2s ease-in-out infinite;
  opacity: .85;
}
@keyframes p1-line-pulse {
  0%   { background-position: -100% 0; opacity: .65; }
  50%  { background-position:    0% 0; opacity: 1;   }
  100% { background-position:  100% 0; opacity: .65; }
}

body.theme-light .p1-rental-header {
  background:
    linear-gradient(135deg, rgba(45,59,255,.07) 0%, rgba(123,92,255,.05) 45%, rgba(0,212,255,.06) 100%) !important;
  border-color: rgba(123,92,255,.30) !important;
  color: #1e293b;
}
body.theme-light .p1-rental-header .mkt-rental-sub { color: #475569; }

body.theme-matte .p1-rental-header,
body.theme-navy  .p1-rental-header {
  background:
    linear-gradient(135deg, rgba(123,92,255,.14) 0%, rgba(45,59,255,.10) 45%, rgba(0,212,255,.08) 100%) !important;
}

/* ────────────────────────────────────────────────────────────── */
/* TOOLBAR polish — publish CTA on top, filter pills below         */
/* ────────────────────────────────────────────────────────────── */
.p1-toolbar-top {
  display: flex; justify-content: flex-end;
  margin-top: 18px;
  margin-bottom: 12px;
}
.p1-toolbar-top .urw-publish-cta {
  margin-left: 0;
  font-size: .82rem !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  box-shadow:
    0 8px 22px rgba(45,59,255,.42),
    0 0 0 1px rgba(255,255,255,.10) inset !important;
}

/* Glow pulse for important CTAs */
.p1-glow {
  position: relative;
  animation: p1-glow-pulse 3.6s ease-in-out infinite;
}
@keyframes p1-glow-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(45,59,255,.38), 0 0 0 1px rgba(255,255,255,.10) inset; }
  50%      { box-shadow: 0 10px 30px rgba(123,92,255,.55), 0 0 0 1px rgba(0,212,255,.20) inset; }
}

.p1-urw-toolbar {
  align-items: stretch !important;
  padding: 4px 0 18px !important;
  border-bottom: 1px solid rgba(123,92,255,.18) !important;
}
.p1-urw-toolbar .urw-filter-group { min-width: auto; flex: 1; max-width: 100%; }
.p1-urw-toolbar .urw-filter-label {
  font-size: .68rem !important;
  margin-bottom: 6px;
}
.p1-pill-bar {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  padding: 0;
}
.p1-pill {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(123,92,255,.18);
  color: #cbd5e1;
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
}
.p1-pill:hover {
  background: rgba(123,92,255,.12);
  border-color: rgba(123,92,255,.42);
  color: #fff;
}
.p1-pill.is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(45,59,255,.42);
}

body.theme-light .p1-pill {
  background: rgba(0,0,0,.03);
  border-color: rgba(45,59,255,.16);
  color: #475569;
}
body.theme-light .p1-pill:hover {
  background: rgba(45,59,255,.08);
  color: #1e293b;
}
body.theme-light .p1-pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
}

/* Hide native selects after pillify */
.p1-urw-toolbar .urw-select[style*="display: none"] { display: none !important; }

/* ────────────────────────────────────────────────────────────── */
/* CARDS polish                                                    */
/* ────────────────────────────────────────────────────────────── */
.p1-urw-card .urw-card-label {
  font-family: 'JetBrains Mono', 'SF Mono', monospace !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .88rem !important;
  font-weight: 700 !important;
}

/* LIVE pulsing green badge */
.p1-live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: .58rem; font-weight: 700;
  background: rgba(74,222,128,.14);
  color: #4ade80;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(74,222,128,.36);
  letter-spacing: .12em;
  margin-left: 6px;
  flex-shrink: 0;
}
.p1-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,.7);
  animation: p1-live-blink 1.4s ease-in-out infinite;
}
@keyframes p1-live-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74,222,128,.9); }
  50%      { opacity: .55; box-shadow: 0 0 3px rgba(74,222,128,.4); }
}

/* Hide legacy combined badge, replaced by price-block */
.urw-card-badge.p1-badge-hidden { display: none !important; }

.p1-price-block {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: 8px 0 4px;
  border-top: 1px dashed rgba(123,92,255,.18);
  border-bottom: 1px dashed rgba(123,92,255,.18);
}
.p1-price-main {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.p1-price-num {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c4b5fd, #00D4FF 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.p1-price-tail {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #94a3b8;
  text-transform: uppercase;
}
.p1-price-vagas {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  line-height: 1.15;
}
.p1-vagas-num {
  font-size: 1.05rem; font-weight: 800;
  color: #4ade80;
}
.p1-vagas-label {
  font-size: .64rem;
  letter-spacing: .08em;
  color: #94a3b8;
  text-transform: uppercase;
}

body.theme-light .p1-price-num {
  background: linear-gradient(135deg, #4f46e5, #06b6d4 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.theme-light .p1-price-tail,
body.theme-light .p1-vagas-label { color: #64748b; }
body.theme-light .p1-price-block {
  border-top-color: rgba(45,59,255,.18);
  border-bottom-color: rgba(45,59,255,.18);
}

/* Shimmer effect on slots progress bar */
.urw-slots-bar {
  position: relative;
  overflow: hidden;
}
.p1-shimmer {
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: p1-bar-shimmer 2.4s linear infinite;
  pointer-events: none;
}
@keyframes p1-bar-shimmer {
  0%   { left: -50%; }
  100% { left: 110%; }
}

/* CTA with arrow + extra glow on hover */
.p1-cta-arrow .p1-cta-arrow-svg {
  display: inline-flex; align-items: center;
  margin-left: 4px;
  transition: transform .18s;
}
.p1-cta-arrow:hover .p1-cta-arrow-svg {
  transform: translateX(4px);
}
.urw-card-cta.p1-glow:hover:not([disabled]) {
  box-shadow:
    0 12px 32px rgba(123,92,255,.55),
    0 0 0 1px rgba(0,212,255,.30) inset !important;
}

/* No sidebar, fluid grid (defensive — keep horizontal) */
.p1-rental-section { width: 100%; }
.p1-rental-section .urw-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .p1-urw-toolbar { flex-direction: column; align-items: stretch !important; }
  .p1-toolbar-top { justify-content: stretch; }
  .p1-toolbar-top .urw-publish-cta { width: 100%; justify-content: center; }
  .p1-pill { font-size: .7rem; padding: 6px 10px; }
  .mkt-new-btn--compartilhamento { width: 100%; justify-content: center; }
  .p1-price-num { font-size: 1.45rem; }
}

/* Focus rings */
.p1-pill:focus-visible,
.p1-guide-btn:focus-visible,
.mkt-new-btn--compartilhamento:focus-visible {
  outline: 2px solid #00D4FF;
  outline-offset: 2px;
}
/* END P1_MKT_COMPARTILHAMENTO_CTA_V1 / P1_MKT_RENTAL_POLISH_V1 */


/* ════════════════════════════════════════════════════════════════
 * G1_RENTAL_GREEN_THEME_V1 — verde emerald no #mkt-rental-section
 * Mantem estrutura/layout do P1, troca apenas paleta violet/cyan
 * por emerald (#10B981 / #34D399 / #059669).
 * ════════════════════════════════════════════════════════════════ */

/* Hero header */
.mkt-rental-section .mkt-rental-header {
  background:
    radial-gradient(ellipse 70% 80% at 25% 0%, rgba(16,185,129,.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 80% 100%, rgba(110,231,183,.08) 0%, transparent 70%),
    linear-gradient(135deg, rgba(16,185,129,.06), rgba(52,211,153,.04)) !important;
  border: 1px solid rgba(16,185,129,.30) !important;
  position: relative;
}
.mkt-rental-section .mkt-rental-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(16,185,129,.55) 25%, rgba(52,211,153,.55) 75%, transparent 100%);
  animation: g1-pulse-line 3.2s ease-in-out infinite;
}
@keyframes g1-pulse-line {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
.mkt-rental-section .mkt-rental-title { color: #047857 !important; }
.mkt-rental-section .mkt-rental-title svg { color: #34D399 !important; }
.mkt-rental-section .mkt-rental-live {
  background: rgba(16,185,129,.18) !important;
  color: #047857 !important;
  border: 1px solid rgba(16,185,129,.4) !important;
}
.mkt-rental-section .mkt-rental-dot,
.mkt-rental-section .comm-rw-dot { background: #10B981 !important; }
.mkt-rental-section .mkt-rental-sub { color: #064E3B !important; }

/* Toolbar pills */
.mkt-rental-section .p1-toolbar-pill,
.mkt-rental-section [class*="p1-pill"] {
  border-color: rgba(16,185,129,.28) !important;
}
.mkt-rental-section .p1-toolbar-pill.is-active,
.mkt-rental-section [class*="p1-pill"].is-active {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  border-color: #10B981 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px -4px rgba(16,185,129,.5) !important;
}

/* Publish CTA top-right */
.mkt-rental-section .p1-publish-cta,
.mkt-rental-section [class*="p1-publish"] {
  background: linear-gradient(135deg, #34D399, #10B981, #059669) !important;
  box-shadow:
    0 6px 18px rgba(16,185,129,.42),
    0 0 0 1px rgba(255,255,255,.12) inset !important;
  color: #fff !important;
}

/* Rental cards */
.mkt-rental-section .rental-card {
  border: 1px solid rgba(16,185,129,.20) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,253,244,.85)) !important;
  box-shadow: 0 2px 12px rgba(16,185,129,.06) !important;
}
.mkt-rental-section .rental-card:hover {
  border-color: rgba(16,185,129,.45) !important;
  box-shadow: 0 8px 22px -4px rgba(16,185,129,.20) !important;
}
.mkt-rental-section .rental-card-label { color: #064E3B !important; }
.mkt-rental-section .rental-card .p1-live-badge,
.mkt-rental-section .rental-card [class*="badge"] {
  background: rgba(16,185,129,.16) !important;
  color: #047857 !important;
  border-color: rgba(16,185,129,.45) !important;
}
.mkt-rental-section .rental-card [class*="price"],
.mkt-rental-section .rental-card .p1-price-big {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.mkt-rental-section .rental-card .p1-slots-bar,
.mkt-rental-section .rental-card [class*="slots-bar"] {
  background: rgba(16,185,129,.12) !important;
}
.mkt-rental-section .rental-card .p1-slots-fill,
.mkt-rental-section .rental-card [class*="slots-fill"] {
  background: linear-gradient(90deg, #34D399, #10B981) !important;
}

/* CTA ADERIR — verde */
.mkt-rental-section .rental-card-cta {
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%) !important;
  box-shadow:
    0 1px 2px rgba(5,150,105,.18),
    0 8px 20px -4px rgba(16,185,129,.42),
    inset 0 1px 0 rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.mkt-rental-section .rental-card-cta:hover:not([disabled]) {
  box-shadow:
    0 1px 2px rgba(5,150,105,.22),
    0 14px 28px -4px rgba(16,185,129,.55),
    inset 0 1px 0 rgba(255,255,255,.22) !important;
}

/* Theme adaptations */
body.theme-light .mkt-rental-section .mkt-rental-header { border-color: rgba(16,185,129,.32) !important; }
body.theme-navy  .mkt-rental-section .mkt-rental-header { background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(52,211,153,.08)) !important; }
body.theme-matte .mkt-rental-section .rental-card { background: linear-gradient(135deg, rgba(20,40,30,.72), rgba(10,25,18,.86)) !important; border-color: rgba(52,211,153,.28) !important; }
body.theme-matte .mkt-rental-section .rental-card:hover { border-color: rgba(52,211,153,.5) !important; }
body.theme-matte .mkt-rental-section .rental-card-label { color: #6EE7B7 !important; }
body.theme-matte .mkt-rental-section .mkt-rental-title { color: #6EE7B7 !important; }
body.theme-matte .mkt-rental-section .mkt-rental-sub  { color: #A7F3D0 !important; }

/* END G1_RENTAL_GREEN_THEME_V1 */


/* ════════════════════════════════════════════════════════════════
 * FIX_RENTAL_VISIBILITY_V1 + FIX_GUIDE_MODAL_THEME_V1 (2026-05-27)
 * 1) Section so aparece com chip Aluguel ativo
 * 2) Modal p1-guide theme-aware (light=preto, matte/navy=branco)
 * ════════════════════════════════════════════════════════════════ */

/* ── (1) Rental section visibility hard-gate ───────────────────── */
#mkt-rental-section.hidden { display: none !important; }
#mkt-rental-section:not(.hidden) { display: block; }
/* When rental view active, hide the marketplace grid for sure */
#mkt-rental-section:not(.hidden) ~ #mkt-grid,
.mkt-page:has(#mkt-rental-section:not(.hidden)) #mkt-grid { display: none !important; }

/* ── (2) Modal p1-guide: light theme polish (clean, black text) ── */
body.theme-light .p1-guide-overlay {
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body.theme-light .p1-guide-card {
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  color: #0f172a !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,.05),
    0 12px 32px -8px rgba(15,23,42,.18),
    0 32px 80px -16px rgba(15,23,42,.12) !important;
}
body.theme-light .p1-guide-x {
  background: rgba(15,23,42,.04) !important;
  border-color: rgba(15,23,42,.10) !important;
  color: #475569 !important;
}
body.theme-light .p1-guide-x:hover {
  background: rgba(15,23,42,.08) !important;
  color: #0f172a !important;
}
body.theme-light .p1-guide-icon {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  box-shadow: 0 8px 20px -4px rgba(16,185,129,.36) !important;
}
body.theme-light .p1-guide-title {
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  font-weight: 700;
  letter-spacing: -.005em;
  text-transform: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  font-size: 1.35rem;
}
body.theme-light .p1-guide-sub {
  color: #475569 !important;
  font-size: .95rem;
}
body.theme-light .p1-guide-steps {
  background: #F8FAFC !important;
  border: 1px solid rgba(15,23,42,.06) !important;
}
body.theme-light .p1-guide-step {
  color: #0f172a !important;
  font-size: .9rem;
}
body.theme-light .p1-guide-step b {
  color: #059669 !important;
  font-weight: 600;
}
body.theme-light .p1-guide-btn--ghost {
  background: rgba(15,23,42,.04) !important;
  color: #475569 !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  font-weight: 500 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif !important;
}
body.theme-light .p1-guide-btn--ghost:hover {
  background: rgba(15,23,42,.08) !important;
  color: #0f172a !important;
}
body.theme-light .p1-guide-btn--primary {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  box-shadow: 0 8px 22px -4px rgba(16,185,129,.42) !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif !important;
}
body.theme-light .p1-guide-btn--primary:hover {
  box-shadow: 0 12px 28px -4px rgba(16,185,129,.55) !important;
}

/* ── Matte theme: white text mantém (clean dark) ───────────────── */
body.theme-matte .p1-guide-card {
  background: linear-gradient(180deg, #18181B 0%, #0F0F11 100%) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #F4F4F5 !important;
  box-shadow:
    0 1px 2px rgba(0,0,0,.4),
    0 24px 60px -8px rgba(0,0,0,.7) !important;
}
body.theme-matte .p1-guide-x {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #A1A1AA !important;
}
body.theme-matte .p1-guide-x:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
body.theme-matte .p1-guide-title {
  background: none !important;
  -webkit-text-fill-color: #FAFAFA !important;
  color: #FAFAFA !important;
  font-weight: 600;
  letter-spacing: -.005em;
  text-transform: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  font-size: 1.35rem;
}
body.theme-matte .p1-guide-sub { color: #D4D4D8 !important; }
body.theme-matte .p1-guide-steps {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
body.theme-matte .p1-guide-step { color: #F4F4F5 !important; }
body.theme-matte .p1-guide-step b { color: #10B981 !important; }
body.theme-matte .p1-guide-btn--ghost {
  background: rgba(255,255,255,.06) !important;
  color: #D4D4D8 !important;
  border-color: rgba(255,255,255,.12) !important;
  text-transform: none !important;
  font-weight: 500 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif !important;
  letter-spacing: -.005em !important;
}
body.theme-matte .p1-guide-btn--ghost:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
body.theme-matte .p1-guide-btn--primary {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  text-transform: none !important;
  font-weight: 600 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif !important;
  letter-spacing: -.005em !important;
}

/* ── Navy theme: mantém dark + texto branco ───────────────────── */
body.theme-navy .p1-guide-card {
  background: linear-gradient(135deg, #1E293B, #0F172A) !important;
  border-color: rgba(45,59,255,.28) !important;
  color: #F1F5F9 !important;
}
body.theme-navy .p1-guide-title {
  background: none !important;
  -webkit-text-fill-color: #F1F5F9 !important;
  color: #F1F5F9 !important;
  font-weight: 600;
  text-transform: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  font-size: 1.35rem;
  letter-spacing: -.005em;
}
body.theme-navy .p1-guide-sub { color: #CBD5E1 !important; }
body.theme-navy .p1-guide-steps { background: rgba(0,0,0,.25) !important; border-color: rgba(45,59,255,.18) !important; }

/* END FIX_RENTAL_VISIBILITY_V1 + FIX_GUIDE_MODAL_THEME_V1 */


/* ════════════════════════════════════════════════════════════════
 * MP_REBRAND_V1 — Multi-provider styling
 * Markers: MP_PUBLISH_PROVIDER_PICKER_V1 / MP_PROVIDER_BADGE_V1 /
 *          MP_PROVIDER_FILTER_V1 / MP_CKEEPER_PROVIDER_V1 / MP_GUIDE_GENERIC_V1
 * Theme-safe (light/navy/matte).
 * ════════════════════════════════════════════════════════════════ */

/* ── Provider badge on listing cards ─────────────────────────── */
.mp-prov-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
  background: var(--mp-prov-color, #94A3B8);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  white-space: nowrap;
  flex-shrink: 0;
}
.urw-card-head { flex-wrap: wrap; gap: 4px; }
.urw-card[data-provider] { position: relative; }
.urw-card[data-provider]::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--mp-prov-color, transparent);
  border-radius: 12px 12px 0 0;
  opacity: .85;
  pointer-events: none;
}
.urw-card[data-provider="google_flow"] { --mp-prov-color: #7B5CFF; }
.urw-card[data-provider="dreamface"]   { --mp-prov-color: #EC4899; }
.urw-card[data-provider="heygen"]      { --mp-prov-color: #0EA5E9; }
.urw-card[data-provider="synthesys"]   { --mp-prov-color: #14B8A6; }
.urw-card[data-provider="d_id"]        { --mp-prov-color: #F59E0B; }
.urw-card[data-provider="elevenlabs"]  { --mp-prov-color: #EF4444; }
.urw-card[data-provider="hedra"]       { --mp-prov-color: #6366F1; }
.urw-card[data-provider="pika"]        { --mp-prov-color: #10B981; }

/* U3 row badge tweaks */
.u3-row .mp-prov-badge { margin-left: 0; margin-right: 0; }

/* ── Provider sub-chip filter row ────────────────────────────── */
.mp-provider-subchips {
  margin: 10px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(123, 92, 255, 0.04);
  border: 1px dashed rgba(123, 92, 255, 0.18);
}
.mp-provider-subchips-hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 8px;
}
.mp-provider-subchips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mp-prov-chip {
  appearance: none;
  border: 1px solid rgba(100, 116, 139, .25);
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .14s ease;
  letter-spacing: .01em;
}
.mp-prov-chip:hover {
  border-color: var(--mp-prov-color, #7B5CFF);
  color: var(--mp-prov-color, #7B5CFF);
  background: color-mix(in srgb, var(--mp-prov-color, #7B5CFF) 8%, transparent);
}
.mp-prov-chip.is-active {
  background: var(--mp-prov-color, #7B5CFF);
  border-color: var(--mp-prov-color, #7B5CFF);
  color: #fff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--mp-prov-color, #7B5CFF) 30%, transparent);
}
.mp-prov-chip[data-prov="all"].is-active {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  border-color: #7B5CFF;
}

/* ── Publish modal provider picker ───────────────────────────── */
.mp-modal-card { max-width: 480px; }
.mp-field-hint {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: rgba(59, 130, 246, .06);
  border-left: 3px solid #3B82F6;
  border-radius: 4px;
}
.mp-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(100, 116, 139, .25);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.mp-jar-area { margin-top: 14px; }
.mp-loading { font-size: 12.5px; color: #94A3B8; padding: 12px; text-align: center; }
.mp-jar-list-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}
.mp-jar-list { display: flex; flex-direction: column; gap: 6px; }
.mp-jar-pick { text-align: left; padding: 10px 12px; }

.mp-empty-jars {
  text-align: center;
  padding: 20px 16px;
  border-radius: 10px;
  background: rgba(245, 158, 11, .06);
  border: 1px dashed rgba(245, 158, 11, .3);
}
.mp-empty-title { font-weight: 700; font-size: 13.5px; color: #334155; margin-bottom: 6px; }
.mp-empty-sub { font-size: 12px; color: #64748B; line-height: 1.5; margin-bottom: 12px; }
.mp-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #7B5CFF;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  transition: filter .14s ease, transform .14s ease;
}
.mp-empty-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Cookie Keeper provider picker ───────────────────────────── */
.ck-mp-provider-wrap {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(45, 59, 255, .04);
  border: 1px solid rgba(45, 59, 255, .12);
}
.ck-mp-provider {
  padding: 8px 10px !important;
  font-size: 13.5px !important;
  border-radius: 6px !important;
}

/* ── Theme: light ────────────────────────────────────────────── */
body.theme-light .mp-prov-chip { color: #475569; }
body.theme-light .mp-select { background: #fff; color: #1E293B; }

/* ── Theme: navy ─────────────────────────────────────────────── */
body.theme-navy .mp-provider-subchips {
  background: rgba(123, 92, 255, .08);
  border-color: rgba(123, 92, 255, .26);
}
body.theme-navy .mp-provider-subchips-hint { color: #94A3B8; }
body.theme-navy .mp-prov-chip {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, .25);
  background: rgba(15, 23, 42, .42);
}
body.theme-navy .mp-select {
  background: rgba(15, 23, 42, .78);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, .25);
}
body.theme-navy .mp-field-hint { color: #cbd5e1; background: rgba(59, 130, 246, .12); }
body.theme-navy .mp-jar-list-label { color: #cbd5e1; }
body.theme-navy .mp-empty-jars { background: rgba(245, 158, 11, .1); }
body.theme-navy .mp-empty-title { color: #e2e8f0; }
body.theme-navy .mp-empty-sub { color: #94A3B8; }
body.theme-navy .ck-mp-provider-wrap {
  background: rgba(45, 59, 255, .08);
  border-color: rgba(45, 59, 255, .22);
}

/* ── Theme: matte ────────────────────────────────────────────── */
body.theme-matte .mp-provider-subchips {
  background: rgba(123, 92, 255, .06);
  border-color: rgba(123, 92, 255, .2);
}
body.theme-matte .mp-prov-chip {
  color: #475569;
  border-color: rgba(71, 85, 105, .2);
  background: rgba(255, 255, 255, .5);
}
body.theme-matte .mp-select {
  background: rgba(255, 255, 255, .8);
  color: #1E293B;
  border-color: rgba(71, 85, 105, .22);
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mp-prov-badge { font-size: 8.5px; padding: 1px 5px; }
  .mp-provider-subchips { padding: 8px 10px; }
  .mp-prov-chip { padding: 5px 10px; font-size: 11.5px; }
}

/* END MP_REBRAND_V1 styling */


/* ════════════════════════════════════════════════════════════════
 * TOOLS_DOWNLOADS_SECTION_V1_20260528 — Downloads cards em /#/tools
 * ════════════════════════════════════════════════════════════════ */
.tp-dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 10px 0 24px;
}
.tp-dl-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-elev, #fff);
  border: 1px solid var(--line, rgba(148,163,184,.16));
  border-radius: 14px;
  padding: 16px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tp-dl-card:hover {
  border-color: rgba(123,92,255,.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px -6px rgba(45,59,255,.18);
}
.tp-dl-card--primary {
  background: linear-gradient(135deg, rgba(45,59,255,.04), rgba(123,92,255,.06));
  border-color: rgba(123,92,255,.28);
}
.tp-dl-card--primary:hover { border-color: rgba(123,92,255,.6); }
.tp-dl-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF, #00D4FF);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(123,92,255,.35);
}
.tp-dl-icon--win  { background: linear-gradient(135deg, #0078D4, #00BCF2); }
.tp-dl-icon--mac  { background: linear-gradient(135deg, #555, #1c1c1c); }
.tp-dl-icon--linux{ background: linear-gradient(135deg, #FF9900, #CC6600); }
.tp-dl-body { flex: 1; min-width: 0; }
.tp-dl-title {
  font-size: .98rem; font-weight: 700; color: var(--text, #0f172a);
  margin-bottom: 5px; letter-spacing: -.005em;
}
.tp-dl-desc {
  font-size: .82rem; color: var(--muted, #64748B);
  line-height: 1.45; margin-bottom: 11px;
}
.tp-dl-desc code {
  background: rgba(15,23,42,.06); padding: 1px 6px; border-radius: 4px;
  font-size: .82em; font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.tp-dl-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tp-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff !important; text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .005em;
  border: none; cursor: pointer;
  box-shadow: 0 2px 8px -2px rgba(45,59,255,.35);
  transition: transform .12s, box-shadow .12s;
}
.tp-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -2px rgba(45,59,255,.5); }
.tp-dl-btn--primary {
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF, #00D4FF);
  background-size: 200% 200%;
  animation: tp-dl-shimmer 4s ease-in-out infinite alternate;
}
@keyframes tp-dl-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.tp-dl-btn--ghost {
  background: transparent; color: var(--muted, #64748B) !important;
  border: 1px solid var(--line, rgba(148,163,184,.3));
  box-shadow: none;
}
.tp-dl-btn--ghost:hover { color: var(--text, #0f172a) !important; border-color: rgba(123,92,255,.4); }
.tp-dl-meta {
  font-size: .72rem; color: var(--muted, #94A3B8);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .02em;
}

/* Themes */
body.theme-light .tp-dl-card  { background: #FFF; }
body.theme-navy  .tp-dl-card  { background: rgba(255,255,255,.04); }
body.theme-matte .tp-dl-card  { background: #1A1A1A; border-color: rgba(255,255,255,.08); }
body.theme-matte .tp-dl-card:hover { border-color: rgba(123,92,255,.45); }
/* END TOOLS_DOWNLOADS_SECTION_V1 */


/* ═══════════════════════════════════════════════════════════════
 * MKT_UX_V2_20260528 — Marketplace polish (filter + my-leases)
 * SCOPED under .mkt-page only. NO position:fixed/absolute escapes.
 * ═══════════════════════════════════════════════════════════════ */

/* --- Filter polish (compact + Palantir mono uppercase pills) --- */
.mkt-page .mkt-cat-chips { gap: 6px; flex-wrap: wrap; }
.mkt-page .mkt-chip {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.mkt-page .mkt-chip .mkt-chip-ico { width: 12px; height: 12px; }
.mkt-page .mkt-chip.active {
  box-shadow: 0 0 0 1px rgba(45, 59, 255, 0.4), 0 2px 8px rgba(45, 59, 255, 0.18);
}

/* Active chip for "Minhas Assinaturas" → green to match wallet semantics */
.mkt-page .mkt-chip--my-leases.active {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(16, 185, 129, 0.22);
}
.mkt-page .mkt-my-leases-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  background: #10B981;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.mkt-page .mkt-chip--my-leases.active .mkt-my-leases-badge { background: rgba(255,255,255,0.25); }

/* --- Minhas Assinaturas section --- */
.mkt-page .mkt-my-leases-section { margin-top: 16px; }
.mkt-page .mkt-my-leases-section.hidden { display: none !important; }
.mkt-page .mkt-my-leases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mkt-page .mkt-my-lease-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(5, 150, 105, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mkt-page .mkt-my-lease-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}
.mkt-page .mkt-my-lease-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mkt-page .mkt-my-lease-label {
  font-weight: 700; font-size: 14px; color: var(--text, #0f172a);
}
.mkt-page .mkt-my-lease-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: #059669;
  padding: 3px 7px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 4px;
  font-weight: 700;
}
.mkt-page .mkt-my-lease-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  animation: mkt-my-lease-pulse 1.5s ease-in-out infinite;
}
@keyframes mkt-my-lease-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.mkt-page .mkt-my-lease-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted, #64748b);
}
.mkt-page .mkt-my-lease-meta-item b { color: var(--text, #0f172a); font-weight: 600; }
.mkt-page .mkt-my-lease-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.mkt-page .mkt-my-lease-open:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.32);
}
.mkt-page .mkt-my-lease-open:disabled { opacity: 0.6; cursor: not-allowed; }

/* Empty state */
.mkt-page .mkt-empty-card {
  grid-column: 1/-1;
  text-align: center;
  padding: 32px 20px;
  background: rgba(45, 59, 255, 0.02);
  border: 1px dashed rgba(45, 59, 255, 0.18);
  border-radius: 12px;
}
.mkt-page .mkt-empty-ico { font-size: 28px; margin-bottom: 8px; opacity: 0.55; }
.mkt-page .mkt-empty-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.mkt-page .mkt-empty-sub { font-size: 12px; color: var(--muted, #64748b); }

/* END MKT_UX_V2_20260528 */


/* ═══════════════════════════════════════════════════════════════
 * SIDEBAR_MY_LEASES_V1_20260528 — global sidebar widget for active rental leases
 * Scoped under .rail-my-leases. NO position:fixed/absolute escapes.
 * ═══════════════════════════════════════════════════════════════ */
.rail-widget.rail-my-leases { margin-top: 8px; padding: 0; }
.rail-widget.rail-my-leases.hidden { display: none !important; }

.rail-widget-head.rail-widget-head--leases {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px 6px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #059669;
  font-weight: 700;
}
.rail-leases-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  animation: rail-leases-pulse 1.6s ease-in-out infinite;
}
@keyframes rail-leases-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.45); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}
.rail-leases-count {
  margin-left: auto;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.rail-lease-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.rail-lease-item:hover {
  background-color: rgba(16, 185, 129, 0.04);
  border-left-color: rgba(16, 185, 129, 0.55);
}
.rail-lease-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #0f172a);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.rail-lease-meta {
  font-size: 10px;
  color: var(--muted, #64748b);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}
.rail-lease-open {
  grid-row: 1 / 3;
  grid-column: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.12s ease;
}
.rail-lease-open:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}
.rail-lease-open:disabled { opacity: 0.6; cursor: wait; }
/* JAR_ATTENTION_V1_20260601 — maintenance state (red glow, non-clickable) */
.rail-lease-open--maintenance,
.mkt-my-lease-open--maintenance {
  background: linear-gradient(135deg, #DC2626, #991B1B) !important;
  color: #FEE2E2 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  animation: rail-lease-maint-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.4), 0 0 12px rgba(220,38,38,0.35);
}
.rail-lease-open--maintenance:hover,
.mkt-my-lease-open--maintenance:hover {
  transform: none !important;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.5), 0 0 18px rgba(220,38,38,0.5) !important;
}
@keyframes rail-lease-maint-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(239,68,68,0.4), 0 0 12px rgba(220,38,38,0.35); }
  50%     { box-shadow: 0 0 0 1px rgba(239,68,68,0.6), 0 0 22px rgba(220,38,38,0.55); }
}

/* JAR_ATTENTION_V1_20260601 — admin alert banner + row highlight */
.mc-attn-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(220,38,38,0.18), rgba(127,29,29,0.22));
  border: 1px solid rgba(239,68,68,0.45);
  color: #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  font-size: 12px;
  box-shadow: 0 0 18px rgba(220,38,38,0.18);
  animation: mc-attn-banner-pulse 3s ease-in-out infinite;
}
@keyframes mc-attn-banner-pulse {
  0%,100% { box-shadow: 0 0 12px rgba(220,38,38,0.18); }
  50%     { box-shadow: 0 0 22px rgba(220,38,38,0.32); }
}
.mc-attn-icon { font-size: 16px; line-height: 1; }
.mc-attn-text { flex: 1; }
.mc-attn-chip {
  display: inline-block;
  background: rgba(239,68,68,0.18);
  color: #fee2e2;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
  border: 1px solid rgba(239,68,68,0.4);
  transition: background 0.15s ease;
}
.mc-attn-chip:hover { background: rgba(239,68,68,0.32); }
.mc-attn-more { opacity: 0.75; font-size: 11px; margin-left: 4px; }
.mc-row--attention {
  background: rgba(220,38,38,0.05) !important;
  border-left: 3px solid #ef4444 !important;
  animation: mc-row-attn-pulse 3s ease-in-out infinite;
}
@keyframes mc-row-attn-pulse {
  0%,100% { background: rgba(220,38,38,0.05); }
  50%     { background: rgba(220,38,38,0.12); }
}
.mc-row--attention td { color: #fecaca !important; }
.mc-btn-clear-attn:hover { background: #ef4444 !important; color: #fff !important; transform: translateY(-1px); }

/* WATER_WAVE_RECOVERING_V1_20260601 — substituido orange-pulse por agua reverberando */
.mkt-my-lease-open--recovering,
.rail-lease-open--recovering {
  background: linear-gradient(135deg, #FCD34D, #F59E0B) !important;
  color: #78350F !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: wait !important;
  animation: lease-wave-bg 3s ease-in-out infinite;
}
@keyframes lease-wave-bg {
  0%,100% { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
  50%     { background: linear-gradient(135deg, #FBBF24, #D97706); }
}
.lease-wave {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.lease-wave i {
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  animation: lease-wave-ripple 2.2s ease-out infinite;
  opacity: 0;
}
.lease-wave i:nth-child(2) { animation-delay: 0.73s; }
.lease-wave i:nth-child(3) { animation-delay: 1.46s; }
@keyframes lease-wave-ripple {
  0%   { width: 4px;  height: 4px;  opacity: 0.85; }
  100% { width: 90px; height: 90px; opacity: 0;    }
}
.lease-wave-text {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* EXPIRY_BADGE_V1_20260601 — admin "(EXPIRA EM Xh)" chip next to label */
.mc-exp-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
  border: 1px solid transparent;
}
.mc-exp-soon   { background: rgba(239,68,68,0.12);  color: #fca5a5; border-color: rgba(239,68,68,0.4); animation: exp-pulse 2s ease-in-out infinite; }
.mc-exp-day    { background: rgba(251,191,36,0.12); color: #fde68a; border-color: rgba(251,191,36,0.4); }
.mc-exp-far    { background: rgba(34,211,154,0.08); color: #86efac; border-color: rgba(34,211,154,0.3); }
.mc-exp-unknown{ background: rgba(148,163,184,0.1); color: #94a3b8; border-color: rgba(148,163,184,0.3); }
@keyframes exp-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.0); }
  50%     { box-shadow: 0 0 8px 1px rgba(239,68,68,0.35); }
}
/* END SIDEBAR_MY_LEASES_V1_20260528 */


/* FLASH_MODE_DEFAULT_V1_20260528 — RECOMENDADO badge on Auto mode button */
.fla-mode-btn--auto .fla-mode-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 0.08em;
  font-weight: 700;
  vertical-align: middle;
}
.fla-mode-btn--auto.is-active .fla-mode-badge {
  background: rgba(255,255,255,0.25);
}
/* END FLASH_MODE_DEFAULT_V1_20260528 */


/* SESSION_AUTOHEAL_V1_UI_20260528 — auto-heal UI styles */
.u123-autoheal-section {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
}
.u123-autoheal-toggle {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px;
}
.u123-autoheal-toggle input { width: 16px; height: 16px; cursor: pointer; }
.u123-autoheal-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.u123-autoheal-hint {
  font-size: 11px; color: var(--muted, #64748b);
  margin: 6px 0 8px;
  line-height: 1.4;
}
.u123-autoheal-fields { margin-top: 8px; }
.u123-autoheal-warn {
  font-size: 11px; color: #d97706;
  background: rgba(245, 158, 11, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Glow pulse on recovering buttons (sidebar + marketplace) */
.mkt-my-lease-open--recovering,
.rail-lease-open.is-recovering {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  animation: lease-recovering-pulse 1.5s ease-in-out infinite;
  cursor: wait !important;
}
@keyframes lease-recovering-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); opacity: 0.85; }
}
/* END SESSION_AUTOHEAL_V1_UI_20260528 */


/* ═══════════════════════════════════════════════════════════════
 * MKT_FILTER_DECLUTTER_V1_20260528 — marketplace filter polish
 * ═══════════════════════════════════════════════════════════════ */

/* "+ Filtros avançados" toggle */
.mkt-adv-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px dashed rgba(123, 92, 255, 0.35);
  color: var(--muted, #64748b);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  margin: 8px 0 6px;
  transition: all 0.15s ease;
}
.mkt-adv-toggle:hover {
  border-color: rgba(123, 92, 255, 0.6);
  color: var(--text, #0f172a);
  background: rgba(123, 92, 255, 0.05);
}
.mkt-adv-toggle svg { opacity: 0.6; }

/* Collapse the toolbar when in collapsed state */
.p1-urw-toolbar.is-collapsed { display: none !important; }

/* Provider filter polish */
.mp-filter-declutter {
  margin-top: 10px;
}
.mp-filter-declutter .mp-filter-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mp-filter-declutter .mp-filter-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  font-weight: 700;
}
.mp-prov-search {
  flex: 1;
  max-width: 280px;
  padding: 6px 10px;
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.5);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mp-prov-search:focus {
  border-color: #7B5CFF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.12);
}

/* Listing count badge inside chip */
.mp-prov-chip-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  vertical-align: middle;
}
.mp-prov-chip.is-active .mp-prov-chip-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* "Ver todos" expander */
.mp-prov-expand {
  display: inline-flex; align-items: center;
  background: transparent;
  border: 1px dashed rgba(100, 116, 139, 0.4);
  color: var(--muted, #64748b);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  margin: 2px 4px;
  transition: all 0.15s ease;
}
.mp-prov-expand:hover {
  border-color: rgba(123, 92, 255, 0.5);
  color: var(--text, #0f172a);
  background: rgba(123, 92, 255, 0.03);
}

.mp-prov-extra { display: contents; }
.mp-prov-extra.hidden { display: none !important; }

/* Compact card mode when many providers shown */
.mp-filter-declutter .mp-provider-subchips-row { gap: 6px; }
.mp-filter-declutter .mp-prov-chip {
  font-size: 11px;
  padding: 5px 10px;
}
/* END MKT_FILTER_DECLUTTER_V1_20260528 */


/* ═══════════════════════════════════════════════════════════════
 * MKT_PALANTIR_POLISH_V1_20260528 — tactical Palantir styling for marketplace
 * (COMPARTILHAMENTO DE CONTAS section + cards + filters)
 * ═══════════════════════════════════════════════════════════════ */

/* COMPARTILHAMENTO DE CONTAS header — tactical mono with neon green LIVE pulse */
.mkt-rental-section .mkt-rental-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(45, 59, 255, 0.03));
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-left: 3px solid #10B981;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.mkt-rental-section .mkt-rental-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}
.mkt-rental-section .mkt-rental-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text, #0f172a);
}
.mkt-rental-section .mkt-rental-title > span:first-of-type {
  letter-spacing: 0.18em;
}
.mkt-rental-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.mkt-rental-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #10B981;
  animation: mkt-rental-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
@keyframes mkt-rental-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.45); }
  50% { opacity: 0.55; transform: scale(1.35); box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
.mkt-rental-section .mkt-rental-sub {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #64748b);
}

/* Card grid spacing tighter */
.mkt-rental-grid, .urw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

/* COMPARTILHAMENTO CARDS — Palantir tactical card */
.urw-card {
  background: linear-gradient(135deg, rgba(45, 59, 255, 0.02), rgba(123, 92, 255, 0.01));
  border: 1px solid rgba(123, 92, 255, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.urw-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #2D3BFF, #7B5CFF);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.urw-card:hover {
  border-color: rgba(123, 92, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(45, 59, 255, 0.1);
}
.urw-card:hover::before { opacity: 1; }

/* Title in cards becomes mono uppercase tactical */
.urw-card .urw-card-title {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text, #0f172a);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Price + slots in mono with neon green */
.urw-card .urw-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #2D3BFF;
  letter-spacing: -0.02em;
}
.urw-card .urw-card-price-unit {
  font-size: 11px;
  color: var(--muted, #64748b);
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.urw-card .urw-card-slots-free {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #10B981;
}

/* Aderir button — tactical glow */
.urw-card .urw-card-cta {
  width: 100%;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.1s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.urw-card .urw-card-cta::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}
.urw-card:hover .urw-card-cta::after { left: 150%; }
.urw-card .urw-card-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 59, 255, 0.35);
}

/* Slots bar Palantir style */
.urw-card .urw-card-slots-bar {
  height: 4px;
  background: rgba(45, 59, 255, 0.08);
  border-radius: 2px;
  margin: 8px 0 4px;
  overflow: hidden;
}
.urw-card .urw-card-slots-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2D3BFF, #7B5CFF);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Owner handle bottom-aligned mono small */
.urw-card .urw-card-owner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted, #64748b);
  letter-spacing: 0.04em;
}

/* Provider tag — tactical Palantir badge */
.urw-card .urw-card-provider-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--mp-prov-color, rgba(45,59,255,0.1));
  color: #fff;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 6px;
}

/* PUBLICAR MEU ACESSO — tactical neon green CTA */
.urw-publish-cta, .p1-glow {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
/* END MKT_PALANTIR_POLISH_V1_20260528 */


/* MKT_UX_REFACTOR_V1_20260528 — clean section labels + cleaner layout */
.mkt-grid-wrap { margin-top: 18px; }
.mkt-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 4px;
}
.mkt-section-label-text {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  white-space: nowrap;
}
.mkt-section-label-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 92, 255, 0.22), transparent);
}
body.theme-matte .mkt-section-label-line,
body.theme-navy .mkt-section-label-line {
  background: linear-gradient(90deg, rgba(123, 92, 255, 0.35), transparent);
}

/* Cleaner ordering: rental section comes AFTER mkt-grid-wrap visually */
.mkt-page #mkt-grid-wrap { order: 1; }
.mkt-page #mkt-rental-section { order: 2; margin-top: 18px; }
.mkt-page #mkt-my-leases-section { order: 3; margin-top: 18px; }
/* END MKT_UX_REFACTOR_V1_20260528 */


/* ═══════════════════════════════════════════════════════════════════════
 * PALANTIR_MISSION_CONTROL_V1_20260528 — tactical UI for admin pool + cookie keeper
 * Dark monospace tactical / Mission Control aesthetic
 * ═══════════════════════════════════════════════════════════════════════ */

/* ── Mission Control Card (container) ──────────────────────────────────── */
.mc-card {
  margin-top: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(45,59,255,0.025), rgba(15,23,42,0.02));
  border: 1px solid rgba(123, 92, 255, 0.15);
  border-left: 3px solid #7B5CFF;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.mc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 255, 0.4), transparent);
}
body.theme-matte .mc-card,
body.theme-navy .mc-card {
  background: linear-gradient(180deg, rgba(45,59,255,0.06), rgba(15,23,42,0.4));
  border-color: rgba(123, 92, 255, 0.25);
}

.mc-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(123, 92, 255, 0.18);
}
.mc-section-eyebrow {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #7B5CFF;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(123, 92, 255, 0.1);
  border-radius: 3px;
}
.mc-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #0f172a);
}
.mc-section-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted, #64748b);
  margin-left: auto;
  text-transform: uppercase;
}

/* ── Mission Control Table ─────────────────────────────────────────────── */
.mc-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
}
.mc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 11px;
}
.mc-table thead th {
  text-align: left;
  padding: 8px 10px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted, #64748b);
  font-weight: 700;
  border-bottom: 1px solid rgba(123, 92, 255, 0.2);
  background: transparent;
  white-space: nowrap;
}
.mc-table tbody tr {
  transition: background-color 0.12s ease;
}
.mc-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(123, 92, 255, 0.08);
}
.mc-table tbody tr:hover {
  background: rgba(123, 92, 255, 0.04);
}
.mc-table td {
  padding: 11px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.mc-cell-label {
  font-weight: 700;
  color: var(--text, #0f172a);
  font-size: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.mc-cell-owner {
  color: var(--muted, #64748b);
  font-size: 11px;
}
body.theme-matte .mc-cell-owner,
body.theme-navy .mc-cell-owner { color: rgba(248,250,252,0.6); }

/* Provider tag — solid color, readable on any theme */
.mc-provider-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-family: 'JetBrains Mono', monospace;
  background: #2D3BFF;
  color: #fff;
}
.mc-provider-google_flow { background: #4285F4; }
.mc-provider-veo3 { background: #4285F4; }
.mc-provider-gemini { background: #8E75F1; }
.mc-provider-dreamface { background: #34D399; }
.mc-provider-heygen { background: #00D4FF; }
.mc-provider-hedra { background: #FF6B6B; }
.mc-provider-pika { background: #F97316; }
.mc-provider-runway { background: #8B5CF6; }
.mc-provider-submagic { background: #EC4899; }
.mc-provider-perplexity { background: #20808D; }
.mc-provider-suno { background: #ec4899; }
.mc-provider-elevenlabs { background: #14B8A6; }
.mc-provider-amazon_seller_us, .mc-provider-amazon_seller_br { background: #FF9900; color: #0f172a; }
.mc-provider-tiktok_seller_br, .mc-provider-tiktok_seller_us, .mc-provider-tiktok_affiliate_br { background: #fe2c55; }

/* Listings pill */
.mc-pill-listings {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  background: linear-gradient(135deg, #2D3BFF, #7B5CFF);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
}
.mc-em-dash {
  color: var(--muted, #64748b);
  opacity: 0.5;
}

/* Status cells (ping, heal, creds) — solid badges */
.mc-cell-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.mc-status-ok {
  color: #059669;
}
.mc-status-warn {
  color: #D97706;
}
.mc-status-err {
  color: #DC2626;
}
.mc-status-idle {
  color: var(--muted, #64748b);
  opacity: 0.7;
}
body.theme-matte .mc-status-ok, body.theme-navy .mc-status-ok { color: #10B981; }
body.theme-matte .mc-status-warn, body.theme-navy .mc-status-warn { color: #F59E0B; }
body.theme-matte .mc-status-err, body.theme-navy .mc-status-err { color: #EF4444; }

.mc-cell-bundle {
  font-size: 10px;
  color: var(--muted, #64748b);
}
.mc-ls-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
}
.mc-fail-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  background: rgba(220, 38, 38, 0.18);
  color: #DC2626;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
}

.mc-creds-mark {
  display: inline-block;
  margin-right: 4px;
  color: #10B981;
  font-weight: 800;
}

.mc-btn-heal {
  background: linear-gradient(135deg, #7B5CFF, #5B3DCC);
  color: #fff;
  border: none;
  padding: 5px 11px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.mc-btn-heal:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 92, 255, 0.35);
}
.mc-btn-heal:disabled { opacity: 0.5; cursor: wait; }

/* ── Cookie Keeper Mission Control polish ──────────────────────────────── */
/* Section header */
.ck-list-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(123, 92, 255, 0.2);
}
.ck-list-h3 {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #0f172a);
}
.ck-list-h3-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted, #64748b);
  margin-left: auto;
}

/* Categorize cards by their state inline via attribute selector */
.ck-card {
  position: relative;
  margin-bottom: 10px;
  background: rgba(123, 92, 255, 0.02) !important;
  border: 1px solid rgba(123, 92, 255, 0.12) !important;
  border-left: 3px solid rgba(148, 163, 184, 0.4) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ck-card:hover {
  border-color: rgba(123, 92, 255, 0.3) !important;
  box-shadow: 0 4px 14px rgba(45, 59, 255, 0.06);
}
/* Live cards (active rental listings or keep-alive) — green */
.ck-card.ck-card--live {
  border-left-color: #10B981 !important;
}
/* Stale */
.ck-card.ck-card--stale {
  border-left-color: #F59E0B !important;
}
/* Expired/dead */
.ck-card.ck-card--expired {
  border-left-color: #EF4444 !important;
}

/* Add a category eyebrow header above grouped lists */
.ck-category-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  font-weight: 700;
  margin: 22px 0 8px;
  padding: 4px 0;
  border-top: 1px solid rgba(123, 92, 255, 0.08);
}
.ck-category-eyebrow:first-of-type { margin-top: 8px; border-top: 0; }
.ck-category-eyebrow .ck-cat-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(123, 92, 255, 0.15);
  color: #7B5CFF;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0;
}

/* Anônimos Pool de Contas section polish */
.ap-head, .ap-stats, .ap-section h3 {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
/* Tactical separator above each section */
.card.ap-card, section.card {
  position: relative;
}
section.card + section.card {
  margin-top: 18px;
}

/* "Banir" + "Liberar" buttons in alerts — tactical mono */
[data-ap-block], [data-ap-unblock], [data-ap-clearrate] {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
/* END PALANTIR_MISSION_CONTROL_V1_20260528 */


/* ═══════════════════════════════════════════════════════════════
 * MKT_BOOMER_POLISH_V2_20260528 — declutter marketplace compartilhamento UI
 * Boomer-friendly: tighter Palantir, bigger CTAs, less visual noise.
 * Affects: provider chip strip, advanced-filters toggle, urw-card layout.
 * SCOPED to .mkt-page #mkt-rental-section ONLY.
 * ═══════════════════════════════════════════════════════════════ */

/* ── 1. Provider chip strip: kill the dashed box, inline-ify ──── */
.mkt-page #mkt-rental-section .mp-provider-subchips,
.mkt-page #mkt-rental-section .mp-provider-subchips.mp-filter-declutter {
  margin: 6px 0 10px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
}
.mkt-page #mkt-rental-section .mp-filter-declutter .mp-filter-head {
  margin-bottom: 6px;
  padding: 0 2px;
}
.mkt-page #mkt-rental-section .mp-filter-declutter .mp-filter-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-weight: 700;
  opacity: 0.85;
}
.mkt-page #mkt-rental-section .mp-provider-subchips-row {
  gap: 5px;
  padding: 2px 0;
}
/* Single-line provider chips: scrollable on overflow, no wrap-wall */
.mkt-page #mkt-rental-section .mp-provider-subchips-row {
  flex-wrap: wrap;        /* keep wrap for mobile */
}
@media (min-width: 1100px) {
  .mkt-page #mkt-rental-section .mp-provider-subchips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .mkt-page #mkt-rental-section .mp-provider-subchips-row::-webkit-scrollbar { height: 4px; }
  .mkt-page #mkt-rental-section .mp-provider-subchips-row::-webkit-scrollbar-thumb {
    background: rgba(123,92,255,0.25); border-radius: 2px;
  }
}
.mkt-page #mkt-rental-section .mp-prov-chip {
  flex-shrink: 0;
  font-family: JetBrains Mono, SF Mono, Menlo, monospace;
  font-size: 10.5px;
  padding: 5px 11px;
  letter-spacing: 0.05em;
  border-radius: 5px;          /* boxy tactical, not pill */
  border-width: 1px;
}
.mkt-page #mkt-rental-section .mp-prov-chip-count {
  margin-left: 5px;
  padding: 0 5px;
  font-size: 9px;
}

/* ── 2. Advanced filters toggle: ghost link, not dashed pill ──── */
.mkt-page #mkt-rental-section .mkt-adv-toggle {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 4px 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin: 2px 0 4px;
  opacity: 0.75;
  border-radius: 4px;
}
.mkt-page #mkt-rental-section .mkt-adv-toggle:hover {
  background: rgba(123,92,255,0.06);
  color: #7B5CFF;
  opacity: 1;
}
.mkt-page #mkt-rental-section .mkt-adv-toggle svg { opacity: 0.55; }

/* When expanded, advanced toolbar pulls in cleanly */
.mkt-page #mkt-rental-section .p1-urw-toolbar:not(.is-collapsed) {
  padding: 8px 10px;
  background: rgba(123,92,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(123,92,255,0.1);
  margin: 4px 0 12px;
  gap: 8px;
}

/* ── 3. Card declutter: hide legacy badge ALWAYS (not only when polished) ── */
.mkt-page #mkt-rental-section .urw-card .urw-card-badge {
  display: none !important;
}
/* Show price-block (P1 polish) cleanly */
.mkt-page #mkt-rental-section .urw-card .p1-price-block {
  border-top: 1px solid rgba(123,92,255,0.12);
  padding: 10px 0 6px;
  margin: 4px 0 2px;
}

/* ── 4. Boomer-friendly card hierarchy ─────────────────────────── */
.mkt-page #mkt-rental-section .urw-card {
  padding: 16px 16px 14px;
  gap: 11px;
  min-height: 200px;
}
.mkt-page #mkt-rental-section .urw-card .urw-card-label {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;          /* override P1 uppercase: easier to read for boomers */
  font-family: inherit !important;
}
.mkt-page #mkt-rental-section .urw-card .urw-card-owner {
  font-size: 0.65rem;
  opacity: 0.7;
}
.mkt-page #mkt-rental-section .urw-card .urw-slots-meta {
  font-size: 0.74rem;
  opacity: 0.78;
}

/* Bigger, more tappable CTA for 55+ users */
.mkt-page #mkt-rental-section .urw-card .urw-card-cta {
  padding: 12px 14px;
  min-height: 44px;        /* iOS tap target */
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 9px;
}

/* ── 5. Provider badge on card (top-right corner) ──────────────── */
.mkt-page #mkt-rental-section .urw-card .mp-prov-badge {
  font-family: JetBrains Mono, monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--mp-prov-color, #7B5CFF) 14%, transparent);
  color: var(--mp-prov-color, #7B5CFF);
  border: 1px solid color-mix(in srgb, var(--mp-prov-color, #7B5CFF) 28%, transparent);
  font-weight: 700;
}

/* ── 6. Smooth section reveal (kill the "vai descer um tanto" jank) ── */
.mkt-page #mkt-rental-section {
  scroll-margin-top: 80px;                /* anchor scroll lands cleanly */
}
.mkt-page #mkt-rental-section:not(.hidden) {
  animation: mkt-rental-fadein 0.22s ease-out;
}
@keyframes mkt-rental-fadein {
  from { opacity: 0.6; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 7. Mobile: extra tightening ───────────────────────────────── */
@media (max-width: 640px) {
  .mkt-page #mkt-rental-section .mp-provider-subchips-row { gap: 4px; }
  .mkt-page #mkt-rental-section .mp-prov-chip { font-size: 10px; padding: 5px 9px; }
  .mkt-page #mkt-rental-section .urw-card { min-height: auto; padding: 14px; }
  .mkt-page #mkt-rental-section .urw-card .urw-card-cta { width: 100%; }
}

/* ── 8. Theme: navy/matte tonings ──────────────────────────────── */
body.theme-navy  .mkt-page #mkt-rental-section .mkt-adv-toggle { color: #94a3b8; }
body.theme-navy  .mkt-page #mkt-rental-section .mp-filter-declutter .mp-filter-title { color: #94a3b8; }
body.theme-matte .mkt-page #mkt-rental-section .mkt-adv-toggle { color: #cbd5e1; }
body.theme-matte .mkt-page #mkt-rental-section .mp-filter-declutter .mp-filter-title { color: #cbd5e1; }
body.theme-light .mkt-page #mkt-rental-section .mkt-adv-toggle { color: #64748b; }
body.theme-light .mkt-page #mkt-rental-section .urw-card .urw-card-label { color: #0f172a !important; }

/* END MKT_BOOMER_POLISH_V2_20260528 */

/* ════════════════════════════════════════════════════════════════
 * MKT_REFORMA_V3_20260528 — Marketplace inteiro reformulado
 *
 * Missão:
 *   1. Visual calmo, boomer-friendly (55+ BR, baixa literacia)
 *   2. Fix CRÍTICO: overflow horizontal não vaza outras interfaces
 *      em zoom 50/100/150/200% nem em scroll horizontal forçado.
 *
 * Estratégia: sobrescreve TODOS os estilos antigos do marketplace
 * (.mkt-*, .urw-*, .mp-*, .rental-*) sem mexer nos data-attrs/IDs
 * que o JS depende. Markers antigos respeitados.
 *
 * Preserva: ADMIN_INVISIBLE_SLOT_UI_V1_20260528 (botão TESTAR admin),
 *           MKT_BOOMER_POLISH_V2_20260528, MP_PROVIDER_FILTER_V1,
 *           _u2CardHtml/_u2HandleSubscribe/_u2HandleAdminUse,
 *           populateMyLeasesRail, todas classes urw-* e mkt-*.
 * ════════════════════════════════════════════════════════════════ */

/* ── 0. GLOBAL OVERFLOW GUARD ──────────────────────────────────
 * Antes existia apenas dentro de @media (max-width: 879px). Em
 * desktop com zoom ou scroll horizontal, elementos position:fixed
 * (radar TikTok, painéis Amazon, etc) vazavam pra fora. Trava agora
 * em TODA viewport. */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
#app, .main-content, main {
  max-width: 100vw;
  box-sizing: border-box;
}
/* Defesa secundária: qualquer position:fixed dentro do marketplace
 * agora respeita a viewport. */
.mkt-page,
.mkt-page * {
  box-sizing: border-box;
}
.mkt-page {
  max-width: min(1100px, 100%) !important;
  overflow-x: hidden;
}

/* ── 1. PAGE SHELL ────────────────────────────────────────────── */
.mkt-page[data-marker],
.mkt-page {
  margin: 0 auto !important;
  padding: 24px 20px 96px !important;
}

/* ── 2. HEADER — limpo, hierarquia clara ─────────────────────── */
.mkt-page .mkt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mkt-page .mkt-head h1 {
  font-size: 1.9rem !important;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text, #f1f5f9);
  margin: 0 0 6px !important;
  line-height: 1.15;
}
.mkt-page .mkt-sub {
  color: #94a3b8;
  font-size: .98rem !important;
  line-height: 1.5;
  max-width: 580px !important;
  margin: 0;
}

/* ── 3. CTA ROW — COMPARTILHAMENTO destaque verde, anúncio neutro ─────── */
.mkt-page .mkt-new-row {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  align-items: center;
}
.mkt-page .mkt-new-row .mkt-new-btn,
.mkt-page .mkt-new-row a.mkt-new-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  height: 44px;                              /* boomer-friendly touch */
  min-width: 0;
  padding: 0 18px !important;
  border-radius: 10px;
  font-size: .92rem !important;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none !important;
  font-family: var(--ui, system-ui) !important;
  transition: transform .15s, box-shadow .15s, filter .15s;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--text, #f1f5f9);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.mkt-page .mkt-new-row .mkt-new-btn:hover,
.mkt-page .mkt-new-row a.mkt-new-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
/* COMPARTILHAMENTO — verde calmo, sem shimmer/shine ruidoso */
.mkt-page .mkt-new-row .mkt-new-btn--compartilhamento {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  background-size: 100% 100% !important;
  border-color: rgba(16,185,129,.55) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.32) !important;
  animation: none !important;
}
.mkt-page .mkt-new-row .mkt-new-btn--compartilhamento .mkt-new-btn-shine-overlay,
.mkt-page .mkt-new-row .mkt-new-btn--compartilhamento .mkt-pizza-slice {
  display: none !important;                  /* corta shine animado polui */
}
.mkt-page .mkt-new-row .mkt-new-btn--landing {
  background: linear-gradient(135deg, #6366F1, #4F46E5) !important;
  border-color: rgba(99,102,241,.55) !important;
  color: #fff !important;
}

/* ── 4. TOOLBAR — busca + chips, alinhado e respirável ──────── */
.mkt-page .mkt-toolbar {
  display: flex !important;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px !important;
  padding: 0 !important;
}
.mkt-page .mkt-search-input {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 420px;
  height: 44px;
  padding: 0 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.04) !important;
  color: var(--text, #f1f5f9) !important;
  font-size: 1rem !important;                /* leitura confortável */
  transition: border-color .15s, background .15s;
}
.mkt-page .mkt-search-input:focus {
  outline: none;
  border-color: rgba(99,102,241,.6) !important;
  background: rgba(255,255,255,.06) !important;
}
.mkt-page .mkt-cat-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  align-items: center;
}
.mkt-page .mkt-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #cbd5e1 !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all .15s;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.mkt-page .mkt-chip:hover {
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: var(--text, #fff) !important;
}
.mkt-page .mkt-chip.active {
  background: linear-gradient(135deg, #6366F1, #06B6D4) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(99,102,241,.32) !important;
}
.mkt-page .mkt-chip svg.mkt-chip-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── 5. SECTION HEADERS — slim, claros ──────────────────────── */
.mkt-page .mkt-section-label,
.mkt-page .mkt-rental-header {
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
.mkt-page .mkt-section-label-text,
.mkt-page .mkt-rental-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text, #f1f5f9) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: var(--ui, system-ui) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mkt-page .mkt-rental-title svg { width: 18px; height: 18px; color: #06B6D4; }
.mkt-page .mkt-section-label-line { display: none !important; }
.mkt-page .mkt-rental-live {
  background: rgba(74,222,128,.14) !important;
  color: #4ade80 !important;
  font-family: var(--ui, system-ui) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(74,222,128,.3) !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
}
.mkt-page .mkt-rental-sub {
  color: #94a3b8 !important;
  font-size: .92rem !important;
  line-height: 1.55 !important;
  margin: 8px 0 0 !important;
  max-width: 680px;
}

/* ── 6. URW GRID (compartilhamento cards) — boomer-friendly ───────────── */
.mkt-page #mkt-rental-section .urw-grid,
.urw-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 14px;
}
.urw-card {
  padding: 16px !important;
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  min-width: 0;                              /* permite truncar texto */
  overflow: hidden;                           /* evita vazar conteúdo */
}
.urw-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,.4) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
}
.urw-card-head {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.urw-card-label {
  font-family: var(--ui, system-ui) !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: var(--text, #f1f5f9) !important;
  line-height: 1.3 !important;
  min-width: 0;
  flex: 1;
}
.urw-card-owner {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: .68rem !important;
  color: #94a3b8 !important;
  padding: 3px 7px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 6px !important;
  flex-shrink: 0;
}
.urw-card-badge {
  display: inline-block !important;
  font-family: var(--ui, system-ui) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  align-self: flex-start;
}
.urw-slots-bar {
  height: 6px !important;
  background: rgba(255,255,255,.06) !important;
  border-radius: 999px !important;
  overflow: hidden;
}
.urw-slots-bar-fill {
  background: linear-gradient(90deg, #10B981, #06B6D4) !important;
}
.urw-slots-meta {
  font-family: var(--ui, system-ui) !important;
  font-size: .8rem !important;
  color: #94a3b8 !important;
}
/* ADERIR — botão grande, claro, calmo */
.urw-card-cta {
  margin-top: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px !important;                   /* boomer touch target */
  padding: 0 16px !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, #6366F1, #4F46E5) !important;
  color: #fff !important;
  font-family: var(--ui, system-ui) !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 12px rgba(99,102,241,.32);
}
.urw-card-cta:hover:not([disabled]) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(99,102,241,.45) !important;
}
.urw-card-cta[disabled] {
  background: rgba(255,255,255,.06) !important;
  color: #64748b !important;
  cursor: not-allowed;
  box-shadow: none !important;
}
.urw-card-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ADMIN_INVISIBLE_SLOT_UI_V1_20260528 — botão TESTAR admin
 * Mantido funcional mas secundário, visualmente discreto */
.urw-card-admin-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px !important;
  padding: 0 12px !important;
  margin-top: 6px;
  border-radius: 8px !important;
  background: rgba(251,191,36,.10) !important;
  border: 1px dashed rgba(251,191,36,.45) !important;
  color: #fbbf24 !important;
  font-family: var(--ui, system-ui) !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: all .15s;
}
.urw-card-admin-cta:hover:not([disabled]) {
  background: rgba(251,191,36,.18) !important;
  border-color: rgba(251,191,36,.7) !important;
  color: #fcd34d !important;
}
.urw-card-admin-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── 7. PROVIDER FILTER (MP_PROVIDER_FILTER_V1) — slim ─────── */
.mkt-page .mp-provider-subchips,
.mkt-page .mp-filter-declutter {
  margin: 14px 0 !important;
  padding: 12px 14px !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 10px;
}
.mkt-page .mp-filter-head {
  margin-bottom: 8px !important;
}
.mkt-page .mp-filter-title {
  color: #94a3b8 !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--ui, system-ui) !important;
}
.mkt-page .mp-provider-subchips-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px !important;
  align-items: center;
}
.mkt-page .mp-prov-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #cbd5e1 !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  font-family: var(--ui, system-ui) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: all .15s;
}
.mkt-page .mp-prov-chip:hover {
  background: rgba(255,255,255,.08) !important;
  color: var(--text, #fff) !important;
}
.mkt-page .mp-prov-chip.is-active {
  background: var(--mp-prov-color, #6366F1) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.mkt-page .mp-prov-chip-count {
  margin-left: 4px;
  background: rgba(0,0,0,.22);
  color: inherit;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
}
.mkt-page .mp-prov-expand {
  display: inline-flex !important;
  align-items: center;
  height: 32px;
  padding: 0 12px !important;
  background: transparent !important;
  border: 1px dashed rgba(255,255,255,.15) !important;
  border-radius: 999px !important;
  color: #94a3b8 !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  font-family: var(--ui, system-ui) !important;
  cursor: pointer;
  transition: all .15s;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.mkt-page .mp-prov-expand:hover {
  border-color: rgba(255,255,255,.3) !important;
  color: var(--text, #fff) !important;
}
.mkt-page .mp-prov-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  margin-top: 8px;
}
.mkt-page .mp-prov-extra.hidden { display: none; }
.mkt-page .mp-prov-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: .62rem;
  font-weight: 800;
  border-radius: 4px;
  background: var(--mp-prov-color, #6366F1);
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 8. MY-LEASES section — minha lista ativa ──────────────── */
.mkt-page .mkt-my-leases-section .mkt-rental-header {
  margin-bottom: 16px !important;
}
.mkt-page #mkt-my-leases-grid,
.mkt-page .mkt-my-leases-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 14px !important;
}
.mkt-my-lease-card {
  padding: 16px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0;
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.mkt-my-lease-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,.4) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.24) !important;
}
.mkt-my-lease-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.mkt-my-lease-label {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: var(--text, #f1f5f9) !important;
  line-height: 1.3 !important;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.mkt-my-lease-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px !important;
  background: rgba(74,222,128,.14) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74,222,128,.3) !important;
  border-radius: 999px !important;
  font-size: .66rem !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mkt-my-lease-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px rgba(74,222,128,.7);
}
.mkt-my-lease-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .86rem;
  color: #94a3b8;
}
.mkt-my-lease-meta-item b { color: var(--text, #f1f5f9); font-weight: 700; }
.mkt-my-lease-open {
  margin-top: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #fff !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
  font-family: var(--ui, system-ui) !important;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 12px rgba(16,185,129,.32);
}
.mkt-my-lease-open:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(16,185,129,.45) !important;
}
.mkt-my-lease-open svg { width: 16px; height: 16px; }

/* ── 9. EMPTY STATES — convidativos ─────────────────────────── */
.mkt-page .mkt-empty-card,
.mkt-page .urw-empty,
.mkt-page .rental-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px dashed rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
}
.mkt-page .mkt-empty-title,
.mkt-page .urw-empty-title,
.mkt-page .rental-empty-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text, #f1f5f9) !important;
  font-family: var(--ui, system-ui) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 8px !important;
}
.mkt-page .mkt-empty-sub,
.mkt-page .urw-empty-sub,
.mkt-page .rental-empty-sub {
  font-size: .92rem !important;
  color: #94a3b8 !important;
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}

/* ── 10. LIGHT THEME OVERRIDES ──────────────────────────────── */
body.theme-light .mkt-page .mkt-head h1 { color: #0f172a; }
body.theme-light .mkt-page .mkt-sub { color: #475569; }
body.theme-light .mkt-page .mkt-head { border-bottom-color: rgba(0,0,0,.08); }
body.theme-light .mkt-page .mkt-chip {
  background: rgba(0,0,0,.04) !important;
  border-color: rgba(0,0,0,.08) !important;
  color: #475569 !important;
}
body.theme-light .mkt-page .mkt-chip:hover {
  background: rgba(0,0,0,.07) !important;
  color: #0f172a !important;
}
body.theme-light .mkt-page .mkt-search-input {
  background: #fff !important;
  border-color: rgba(0,0,0,.12) !important;
  color: #0f172a !important;
}
body.theme-light .mkt-page .urw-card,
body.theme-light .mkt-page .mkt-my-lease-card {
  background: #fff !important;
  border-color: rgba(0,0,0,.08) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.theme-light .mkt-page .urw-card-label,
body.theme-light .mkt-page .mkt-my-lease-label,
body.theme-light .mkt-page .mkt-section-label-text,
body.theme-light .mkt-page .mkt-rental-title { color: #0f172a !important; }
body.theme-light .mkt-page .urw-slots-meta,
body.theme-light .mkt-page .mkt-my-lease-meta,
body.theme-light .mkt-page .mkt-rental-sub,
body.theme-light .mkt-page .mkt-empty-sub,
body.theme-light .mkt-page .urw-empty-sub { color: #475569 !important; }
body.theme-light .mkt-page .mp-provider-subchips,
body.theme-light .mkt-page .mp-filter-declutter {
  background: rgba(0,0,0,.025) !important;
  border-color: rgba(0,0,0,.08) !important;
}
body.theme-light .mkt-page .mp-prov-chip {
  background: rgba(0,0,0,.04) !important;
  border-color: rgba(0,0,0,.08) !important;
  color: #475569 !important;
}
body.theme-light .mkt-page .mp-filter-title { color: #64748b !important; }
body.theme-light .mkt-page .mkt-empty-card,
body.theme-light .mkt-page .urw-empty,
body.theme-light .mkt-page .rental-empty {
  background: rgba(0,0,0,.025) !important;
  border-color: rgba(0,0,0,.10) !important;
}
body.theme-light .mkt-page .mkt-empty-title,
body.theme-light .mkt-page .urw-empty-title,
body.theme-light .mkt-page .rental-empty-title { color: #0f172a !important; }

/* ── 11. MATTE THEME — flatter, sem blur ─────────────────────── */
body.theme-matte .mkt-page .urw-card,
body.theme-matte .mkt-page .mkt-my-lease-card {
  background: #1a1d2e !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── 12. NAVY THEME — accent ajustado ────────────────────────── */
body.theme-navy .mkt-page .urw-card,
body.theme-navy .mkt-page .mkt-my-lease-card {
  background: rgba(15,23,42,.6) !important;
  border-color: rgba(99,102,241,.22) !important;
}

/* ── 13. RESPONSIVE — boomer-friendly mobile ─────────────────── */
@media (max-width: 768px) {
  .mkt-page,
  .mkt-page[data-marker] {
    padding: 16px 14px 96px !important;
    max-width: 100vw !important;
  }
  .mkt-page .mkt-head { flex-direction: column; align-items: stretch !important; }
  .mkt-page .mkt-head h1 { font-size: 1.5rem !important; }
  .mkt-page .mkt-new-row { flex-direction: column !important; width: 100%; }
  .mkt-page .mkt-new-row > * { width: 100% !important; }
  .mkt-page .mkt-toolbar { flex-direction: column; align-items: stretch; }
  .mkt-page .mkt-search-input { max-width: 100%; width: 100%; }
  .mkt-page .mkt-cat-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .mkt-page .mkt-cat-chips::-webkit-scrollbar { display: none; }
  .mkt-page .mkt-chip { flex-shrink: 0; }
  .mkt-page .urw-grid,
  .mkt-page .mkt-my-leases-grid {
    grid-template-columns: 1fr !important;
  }
  .urw-card-cta,
  .mkt-my-lease-open { width: 100%; }
}

/* ── 14. RESPONSIVE — mid-zoom desktop (zoom 150/200%) ──────── */
@media (max-width: 1100px) {
  .mkt-page { max-width: calc(100vw - 32px) !important; }
}

/* ── 15. KILL antigos backgrounds chamativos demais ─────────── */
.mkt-page .mkt-rental-header {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.mkt-page .mp-provider-subchips::before,
.mkt-page .mkt-rental-header::before,
.mkt-page .u3-rental-section::before { display: none !important; }

/* ── 16. ICONOGRAFIA — tamanho consistente ──────────────────── */
.mkt-page .mkt-section-label svg { width: 16px; height: 16px; }
.mkt-page .mkt-new-btn svg { width: 16px; height: 16px; }
.mkt-page .mkt-chip svg { width: 14px; height: 14px; }

/* END MKT_REFORMA_V3_20260528 */


/* TRIPLE_FIX_V2_20260529 — fix #1: search input gigante (parent flex stretch) */
.mkt-search-input, .mkt-page .mkt-search-input, input.mkt-search-input {
  height: 44px !important; max-height: 44px !important; min-height: 44px !important;
  align-self: flex-start !important; flex: 0 0 auto !important;
  box-sizing: border-box !important;
}
.mkt-toolbar, .mkt-page .mkt-toolbar { align-items: center !important; }


/* FEAT_ANIM_POLISH_V1_20260529 — anim dos featured tools (HaonFlash, Copywriting, Haon Studio, ADB Web)
   tava sobrepondo o texto da descrição. Fix:
   1. Opacity reduzida 0.18 -> 0.08 (0.18 hover)
   2. Anim só no canto inferior direito (bottom 4px + width menor)
   3. Mix-blend "soft-light" em vez de "lighten" pra não esbranquiçar texto
   4. text-shadow sutil no .tp-feat-desc + .tp-feat-name pra pop contra anim
   5. opacity da .tp-feat-bg reduzida pra não competir com texto
*/
.tp-feat-anim {
  opacity: 0.08 !important;
  bottom: 4px !important;
  right: 6px !important;
  width: 60px !important;
  height: 36px !important;
  mix-blend-mode: soft-light !important;
}
.tp-feat-card:hover .tp-feat-anim {
  opacity: 0.18 !important;
  transform: translateY(-1px) scale(1.02) !important;
}
.tp-feat-anim-adb-web        { width: 50px !important; height: 40px !important; bottom: 4px !important; right: 6px !important; }
.tp-feat-anim-studio-browser { width: 72px !important; height: 36px !important; bottom: 4px !important; right: 6px !important; }
.tp-feat-anim-video-pipeline { width: 72px !important; height: 32px !important; bottom: 4px !important; right: 6px !important; }
.tp-feat-anim-copywriting    { width: 64px !important; height: 36px !important; bottom: 4px !important; right: 6px !important; }
/* WA_FEAT_V1_20260604 — WhatsApp: robo mandando msgs pra devices (refinado, leve, GPU transforms) */
.tp-feat-anim-whatsapp-bot { width: 96px !important; height: 52px !important; bottom: 3px !important; right: 4px !important; opacity: .17 !important; mix-blend-mode: normal !important; }
.tp-feat-card:hover .tp-feat-anim-whatsapp-bot { opacity: .32 !important; transform: translateY(-1px) scale(1.02) !important; }
.tp-feat-anim-whatsapp-bot .wa-bot { animation: wa-bob 3.2s ease-in-out infinite; }
.tp-feat-anim-whatsapp-bot .wa-eye { animation: wa-blink 4s steps(1,end) infinite; }
.tp-feat-anim-whatsapp-bot .wa-phone { animation: wa-glow 2s ease-in-out infinite; }
.tp-feat-anim-whatsapp-bot .wa-msg { opacity: 0; }
.tp-feat-anim-whatsapp-bot .wa-msg1 { animation: wa-fly1 2.7s cubic-bezier(.4,0,.3,1) infinite; }
.tp-feat-anim-whatsapp-bot .wa-msg2 { animation: wa-fly2 2.7s cubic-bezier(.4,0,.3,1) infinite .55s; }
.tp-feat-anim-whatsapp-bot .wa-msg3 { animation: wa-fly3 2.7s cubic-bezier(.4,0,.3,1) infinite 1.1s; }
.tp-feat-anim-whatsapp-bot .wa-dev1 { animation: wa-recv 2.7s ease-out infinite; }
.tp-feat-anim-whatsapp-bot .wa-dev2 { animation: wa-recv 2.7s ease-out infinite .55s; }
.tp-feat-anim-whatsapp-bot .wa-dev3 { animation: wa-recv 2.7s ease-out infinite 1.1s; }
@keyframes wa-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-1.5px)} }
@keyframes wa-blink { 0%,92%,100%{opacity:1} 95%{opacity:.12} }
@keyframes wa-glow { 0%,100%{fill-opacity:.12} 50%{fill-opacity:.32} }
@keyframes wa-fly1 { 0%{transform:translate(0,0);opacity:0} 14%{opacity:1} 74%{opacity:1} 100%{transform:translate(72px,-28px);opacity:0} }
@keyframes wa-fly2 { 0%{transform:translate(0,0);opacity:0} 14%{opacity:1} 74%{opacity:1} 100%{transform:translate(77px,-6px);opacity:0} }
@keyframes wa-fly3 { 0%{transform:translate(0,0);opacity:0} 14%{opacity:1} 74%{opacity:1} 100%{transform:translate(72px,12px);opacity:0} }
@keyframes wa-recv { 0%,68%{fill-opacity:.05} 80%{fill-opacity:.5} 100%{fill-opacity:.05} }

/* Background overlay menos opaco pra não competir */
.tp-feat-bg { opacity: 0.35 !important; }
.tp-feat-card:hover .tp-feat-bg { opacity: 0.60 !important; }

/* Texto com text-shadow sutil pra "pop" contra qualquer anim que ainda toque */
.tp-feat-name, .tp-feat-desc {
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
.tp-feat-desc { font-weight: 500 !important; }
.tp-feat-name { font-weight: 800 !important; }

/* Garante padding-bottom maior pra descrição NUNCA passar do espaço da anim */
.tp-feat-desc {
  padding-bottom: 4px !important;
  padding-right: 70px !important; /* deixa espaço pro canto direito da anim */
}
.tp-feat-cta {
  padding-top: 10px !important;
}


/* FEAT_ANIM_POLISH_V2_20260529 — corrige V1 que cortou texto.
   Volta padding normal, anim tiny só no canto, text-shadow só dark. */

/* Anim TINY no canto, opacity baixa mas visível */
.tp-feat-anim {
  opacity: 0.10 !important;
  bottom: 8px !important;
  right: 8px !important;
  width: 44px !important;
  height: 32px !important;
  mix-blend-mode: normal !important;  /* normal funciona em qualquer tema */
  z-index: 0 !important;
}
.tp-feat-card:hover .tp-feat-anim {
  opacity: 0.22 !important;
  transform: translateY(-1px) scale(1.05) !important;
}
.tp-feat-anim-adb-web        { width: 38px !important; height: 36px !important; bottom: 8px !important; right: 8px !important; }
.tp-feat-anim-studio-browser { width: 52px !important; height: 32px !important; bottom: 8px !important; right: 8px !important; }
.tp-feat-anim-video-pipeline { width: 52px !important; height: 28px !important; bottom: 8px !important; right: 8px !important; }
.tp-feat-anim-copywriting    { width: 48px !important; height: 32px !important; bottom: 8px !important; right: 8px !important; }

/* Background overlay normal */
.tp-feat-bg { opacity: 0.45 !important; z-index: -2 !important; }
.tp-feat-card:hover .tp-feat-bg { opacity: 0.70 !important; }

/* Texto: REMOVE o padding-right que cortou. Apenas 16px pra clear do icon top-right. */
.tp-feat-desc {
  padding-right: 0 !important;
  padding-bottom: 4px !important;
  position: relative !important;
  z-index: 2 !important;
  -webkit-line-clamp: 3 !important; /* 3 linhas em vez de 2 */
  line-clamp: 3 !important;
}
.tp-feat-name {
  padding-right: 50px !important; /* só pra clear icon */
  position: relative !important;
  z-index: 2 !important;
}
.tp-feat-cta {
  position: relative !important;
  z-index: 2 !important;
  padding-top: 8px !important;
}

/* Text-shadow só pra DARK themes (light bg não precisa) */
body.theme-dark .tp-feat-name,
body.theme-dark .tp-feat-desc,
body.theme-navy .tp-feat-name,
body.theme-navy .tp-feat-desc,
body.theme-matte .tp-feat-name,
body.theme-matte .tp-feat-desc {
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* Font-weights moderados (não excessivo) */
.tp-feat-name { font-weight: 700 !important; }
.tp-feat-desc { font-weight: 400 !important; }

/* COMPARTILHAMENTO_COPY_PALANTIR_V1_20260529 */
.mkt-rental-sub--palantir {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  line-height: 1.55 !important;
}
.mkt-rental-tagline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.6px !important;
  text-transform: uppercase !important;
  color: #6EE7B7 !important;
  margin-bottom: 2px !important;
}
body.theme-light .mkt-rental-tagline { color: #059669 !important; }
.mkt-rental-desc {
  font-size: 13.5px !important;
  color: rgba(241,245,249,.85) !important;
  font-weight: 400 !important;
  max-width: 720px !important;
}
body.theme-light .mkt-rental-desc { color: rgba(15,23,42,.78) !important; }


/* GPU_PAGE_PALANTIR_V1_20260529 */
.gpu-quick-install {
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gpu-qi-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: 14px;
}
@media (max-width: 1000px) {
  .gpu-qi-grid { grid-template-columns: 1fr; }
}
.gpu-qi-card {
  background: linear-gradient(135deg, #0f1729 0%, #1a2540 50%, #0f1729 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.gpu-qi-card--featured {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.18), 0 8px 24px rgba(0,0,0,0.3);
}
.gpu-qi-card--featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #7C3AED, #00D4FF, #7C3AED);
  background-size: 200% 100%;
  animation: gpuQiShine 3s linear infinite;
}
@keyframes gpuQiShine {
  to { background-position: 200% 0; }
}
.gpu-qi-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #A78BFA;
  text-transform: uppercase;
}
.gpu-qi-title {
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.3;
}
.gpu-qi-cmd-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}
.gpu-qi-cmd {
  flex: 1;
  background: #020617;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 7px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: #6EE7B7;
  overflow-x: auto;
  white-space: nowrap;
  line-height: 1.5;
}
.gpu-qi-copy {
  background: linear-gradient(135deg, #7C3AED, #6366F1);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 7px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.gpu-qi-copy:hover {
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}
.gpu-qi-copy.is-copied {
  background: linear-gradient(135deg, #059669, #10B981);
}
.gpu-qi-hint {
  font-size: 11.5px;
  color: rgba(241, 245, 249, 0.65);
  line-height: 1.5;
}
.gpu-qi-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.gpu-qi-btn {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  color: #F1F5F9;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.15s;
}
.gpu-qi-btn:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}
.gpu-qi-btn-ico { font-size: 22px; line-height: 1; }
.gpu-qi-btn b { display: block; font-size: 12px; }
.gpu-qi-btn small { font-family: monospace; opacity: 0.6; font-size: 10px; }
.gpu-qi-ollama-details {
  background: rgba(15, 23, 41, 0.4);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  padding: 0;
}
.gpu-qi-ollama-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.75);
}
.gpu-qi-ollama-summary::-webkit-details-marker { display: none; }
.gpu-qi-summary-dot {
  width: 8px; height: 8px;
  background: #F59E0B;
  border-radius: 50%;
  box-shadow: 0 0 8px #F59E0B;
}
.gpu-qi-summary-meta {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 1px;
  color: #94A3B8;
  text-transform: uppercase;
}
.gpu-qi-ollama-details[open] .gpu-qi-ollama-summary { border-bottom: 1px solid rgba(124, 58, 237, 0.15); }
.gpu-qi-ollama-body {
  padding: 16px;
}

body.theme-light .gpu-qi-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #F8FAFC 100%);
  border-color: rgba(124, 58, 237, 0.2);
}
body.theme-light .gpu-qi-title { color: #0F172A; }
body.theme-light .gpu-qi-cmd { background: #1E293B; color: #6EE7B7; }
body.theme-light .gpu-qi-hint { color: #475569; }
body.theme-light .gpu-qi-btn { color: #1F2937; background: #fff; }
body.theme-light .gpu-qi-ollama-details { background: rgba(241, 245, 249, 0.6); }
body.theme-light .gpu-qi-ollama-summary { color: #475569; }


/* GPU_PAGE_PALANTIR_V2_20260529 — hero + 2 cards layout */
.gpu-quick-install { gap: 14px !important; }
.gpu-qi-grid, .gpu-qi-grid-2 { display: grid; gap: 14px; }
.gpu-qi-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .gpu-qi-grid-2 { grid-template-columns: 1fr; } }

.gpu-qi-hero {
  background: linear-gradient(135deg, #0f1729 0%, #1e1a3a 50%, #0f1729 100%);
  border: 1px solid rgba(124, 58, 237, 0.45);
  border-radius: 14px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 48px rgba(124, 58, 237, 0.22), 0 12px 32px rgba(0,0,0,0.35);
}
.gpu-qi-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #7C3AED, #00D4FF, #7C3AED);
  background-size: 200% 100%;
  animation: gpuQiShine 3.5s linear infinite;
}
.gpu-qi-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.gpu-qi-pill {
  background: linear-gradient(135deg, #7C3AED, #00D4FF);
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}
.gpu-qi-hero-title {
  font-size: 19px;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.3;
  margin-bottom: 14px;
}
.gpu-qi-hero-cmd-row {
  display: flex; gap: 10px; align-items: stretch;
  margin-bottom: 12px;
}
.gpu-qi-hero-cmd {
  flex: 1;
  background: #020617;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: #6EE7B7;
  line-height: 1.5;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  display: flex; align-items: center;
}
.gpu-qi-copy--big {
  padding: 14px 22px;
  font-size: 12px;
  flex-shrink: 0;
}
.gpu-qi-hero-hint {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.7);
  margin-top: 8px;
}
.gpu-qi-sep { color: rgba(124, 58, 237, 0.4); margin: 0 2px; }
.gpu-qi-hint-ok { color: #6EE7B7; font-weight: 600; margin-left: auto; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .6px; }

/* Row 2 cards */
.gpu-qi-card {
  background: linear-gradient(135deg, #0f1729 0%, #1a2540 50%, #0f1729 100%);
  border: 1px solid rgba(124, 58, 237, 0.22) !important;
  border-radius: 12px;
  padding: 20px 22px !important;
  display: flex !important; flex-direction: column !important;
  gap: 12px !important;
}
.gpu-qi-btns-row {
  display: flex; gap: 8px;
  margin-top: 4px;
}
.gpu-qi-btn {
  flex: 1;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  gap: 4px !important;
  background: rgba(99, 102, 241, 0.08) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  border-radius: 9px !important;
  padding: 14px 8px !important;
  color: #F1F5F9 !important;
  text-decoration: none;
  transition: all 0.15s;
  min-height: 88px;
}
.gpu-qi-btn:hover {
  background: rgba(124, 58, 237, 0.18) !important;
  border-color: rgba(124, 58, 237, 0.55) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25);
}
.gpu-qi-btn-ico { font-size: 26px !important; line-height: 1 !important; }
.gpu-qi-btn-txt { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.gpu-qi-btn-txt b { font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
.gpu-qi-btn-txt small { font-family: ui-monospace, monospace; opacity: 0.55; font-size: 10px; letter-spacing: .4px; }

/* Cmd wrap em cards (não-hero) */
.gpu-qi-card .gpu-qi-cmd-wrap { display: flex !important; gap: 8px; align-items: stretch; margin-top: 4px; }
.gpu-qi-card .gpu-qi-cmd {
  flex: 1;
  background: #020617 !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  border-radius: 7px !important;
  padding: 12px 14px !important;
  font-family: ui-monospace, monospace;
  font-size: 13px !important;
  color: #6EE7B7 !important;
  word-break: break-all;
  white-space: pre-wrap !important;
  line-height: 1.5;
  display: flex; align-items: center;
}

body.theme-light .gpu-qi-hero { background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F8FAFC 100%); border-color: rgba(124, 58, 237, 0.3); box-shadow: 0 0 32px rgba(124, 58, 237, 0.10), 0 8px 24px rgba(0,0,0,0.06); }
body.theme-light .gpu-qi-hero-title { color: #0F172A; }
body.theme-light .gpu-qi-hero-cmd { background: #1E293B; color: #6EE7B7; }
body.theme-light .gpu-qi-hero-hint { color: #475569; }
body.theme-light .gpu-qi-card { background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%) !important; }
body.theme-light .gpu-qi-card .gpu-qi-cmd { background: #1E293B !important; }
body.theme-light .gpu-qi-btn { background: #fff !important; color: #1F2937 !important; }


/* INSTALL_PAGE_PALANTIR_V1_20260529 — install page Palantir + dark contrast fix */
.install-palantir {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  padding: 28px 4px 60px !important;
}
.install-palantir-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #A78BFA;
  margin-bottom: 8px;
}
.install-palantir-h1 { font-weight: 800 !important; line-height: 1.15 !important; margin-bottom: 8px !important; }
.install-palantir h3 { font-weight: 700 !important; letter-spacing: -.01em !important; font-size: 1.05rem !important; }
.install-palantir h4 { font-weight: 700 !important; }
.install-palantir p { line-height: 1.65 !important; }
.install-palantir ul { line-height: 1.85 !important; }

/* Step number badges - bigger, more visible */
.install-palantir h3 > span[style*="background:#2D3BFF"] {
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  font-family: ui-monospace, monospace !important;
  background: linear-gradient(135deg, #7C3AED, #4F46E5) !important;
  box-shadow: 0 4px 12px rgba(124,58,237,.4) !important;
  margin-right: 10px !important;
}

/* Cards — generous padding + glow border on hover */
.install-palantir > div[style*="border-radius:14px"] {
  padding: 24px 26px !important;
  margin-bottom: 18px !important;
  transition: border-color .2s, box-shadow .2s;
}

/* Code blocks — bigger, more readable */
.install-palantir code, .install-palantir pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

/* ─── DARK THEME OVERRIDES ─── */
body.theme-dark .install-palantir > div[style*="background:#fff"],
body.theme-dark .install-palantir > div[style*="background:#ffffff"],
body.theme-navy .install-palantir > div[style*="background:#fff"],
body.theme-navy .install-palantir > div[style*="background:#ffffff"],
body.theme-matte .install-palantir > div[style*="background:#fff"],
body.theme-matte .install-palantir > div[style*="background:#ffffff"] {
  background: linear-gradient(135deg, #0F1729 0%, #1A2540 50%, #0F1729 100%) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.02) !important;
}
body.theme-dark .install-palantir > div[style*="background:#fff"]:hover,
body.theme-navy .install-palantir > div[style*="background:#fff"]:hover,
body.theme-matte .install-palantir > div[style*="background:#fff"]:hover {
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 4px 16px rgba(124,58,237,.15), inset 0 0 0 1px rgba(255,255,255,.04) !important;
}

/* Text contrast in dark themes */
body.theme-dark .install-palantir h3,
body.theme-navy .install-palantir h3,
body.theme-matte .install-palantir h3,
body.theme-dark .install-palantir h4,
body.theme-navy .install-palantir h4,
body.theme-matte .install-palantir h4 { color: #F1F5F9 !important; }

body.theme-dark .install-palantir p,
body.theme-navy .install-palantir p,
body.theme-matte .install-palantir p,
body.theme-dark .install-palantir li,
body.theme-navy .install-palantir li,
body.theme-matte .install-palantir li { color: rgba(241, 245, 249, 0.82) !important; }

body.theme-dark .install-palantir [style*="color:#64748b"],
body.theme-navy .install-palantir [style*="color:#64748b"],
body.theme-matte .install-palantir [style*="color:#64748b"] { color: rgba(148, 163, 184, 0.85) !important; }

body.theme-dark .install-palantir [style*="color:#334155"],
body.theme-navy .install-palantir [style*="color:#334155"],
body.theme-matte .install-palantir [style*="color:#334155"] { color: rgba(241, 245, 249, 0.88) !important; }

body.theme-dark .install-palantir [style*="color:#0f172a"],
body.theme-navy .install-palantir [style*="color:#0f172a"],
body.theme-matte .install-palantir [style*="color:#0f172a"] { color: #F1F5F9 !important; }

body.theme-dark .install-palantir code,
body.theme-navy .install-palantir code,
body.theme-matte .install-palantir code,
body.theme-dark .install-palantir pre,
body.theme-navy .install-palantir pre,
body.theme-matte .install-palantir pre {
  background: #020617 !important;
  color: #6EE7B7 !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
}

body.theme-dark .install-palantir a:not([class]),
body.theme-navy .install-palantir a:not([class]),
body.theme-matte .install-palantir a:not([class]) { color: #A78BFA !important; }

/* Back button on dark */
body.theme-dark .install-palantir a[href="#/connect-gpu"],
body.theme-navy .install-palantir a[href="#/connect-gpu"],
body.theme-matte .install-palantir a[href="#/connect-gpu"] {
  background: rgba(124,58,237,.08) !important;
  border-color: rgba(124,58,237,.25) !important;
  color: #CBD5E1 !important;
}
body.theme-dark .install-palantir a[href="#/connect-gpu"]:hover,
body.theme-navy .install-palantir a[href="#/connect-gpu"]:hover,
body.theme-matte .install-palantir a[href="#/connect-gpu"]:hover {
  background: rgba(124,58,237,.18) !important;
  color: #F1F5F9 !important;
}

/* PowerShell hero card (gradient border) — extra punch dark */
body.theme-dark .install-palantir div[style*="linear-gradient(135deg,#7B5CFF,#00D4FF) border-box"],
body.theme-navy .install-palantir div[style*="linear-gradient(135deg,#7B5CFF,#00D4FF) border-box"],
body.theme-matte .install-palantir div[style*="linear-gradient(135deg,#7B5CFF,#00D4FF) border-box"] {
  background: linear-gradient(#0F1729,#1A2540) padding-box, linear-gradient(135deg,#7B5CFF,#00D4FF) border-box !important;
  box-shadow: 0 0 32px rgba(124,58,237,.25), 0 0 0 3px rgba(124,58,237,.08) !important;
}

/* Light theme polish — also more premium */
body.theme-light .install-palantir > div[style*="border-radius:14px"] {
  box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06) !important;
  border-color: rgba(124,58,237,.15) !important;
}
body.theme-light .install-palantir > div[style*="border-radius:14px"]:hover {
  border-color: rgba(124,58,237,.35) !important;
  box-shadow: 0 4px 16px rgba(124,58,237,.12), 0 8px 24px rgba(15,23,42,.06) !important;
}

/* GPU_PAGE_PALANTIR_V2_LINUXFIX_20260529 — fix Linux button cortado */
.gpu-qi-btns-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
.gpu-qi-btn {
  flex: 1 1 calc(33% - 6px) !important;
  min-width: 88px !important;
  padding: 12px 6px !important;
  min-height: 82px !important;
}
.gpu-qi-btn-ico { font-size: 22px !important; }
.gpu-qi-btn-txt b { font-size: 11.5px !important; }
.gpu-qi-btn-txt small { font-size: 9.5px !important; }
@media (max-width: 1100px) {
  .gpu-qi-btn { flex: 1 1 calc(33% - 6px) !important; min-width: 78px !important; padding: 10px 4px !important; }
  .gpu-qi-btn-ico { font-size: 20px !important; }
}


/* MKT_PALANTIR_DEEP_POLISH_V1_20260529 — cards, overlay, top buttons, comm card */

/* ─── CARD PALANTIR (substitui visual antigo) ─── */
.urw-card--pal {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  border: 1px solid rgba(124, 58, 237, 0.12) !important;
  border-radius: 14px !important;
  padding: 0 !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06);
}
body.theme-dark .urw-card--pal,
body.theme-navy .urw-card--pal,
body.theme-matte .urw-card--pal {
  background: linear-gradient(135deg, #0F1729 0%, #1A2540 50%, #0F1729 100%) !important;
  border-color: rgba(124, 58, 237, 0.22) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.urw-card--pal:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.18), 0 12px 32px rgba(15,23,42,.08);
}

/* Card head */
.urw-card--pal .urw-card-head {
  padding: 16px 20px 12px !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.10);
}
body.theme-dark .urw-card--pal .urw-card-head,
body.theme-navy .urw-card--pal .urw-card-head,
body.theme-matte .urw-card--pal .urw-card-head {
  border-bottom-color: rgba(124, 58, 237, 0.18);
}
.urw-card-head-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.urw-card--pal .urw-card-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A;
  letter-spacing: -.005em;
  line-height: 1.3;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.theme-dark .urw-card--pal .urw-card-label,
body.theme-navy .urw-card--pal .urw-card-label,
body.theme-matte .urw-card--pal .urw-card-label { color: #F1F5F9; }
.urw-card-owner-pal {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .8px;
  color: rgba(100, 116, 139, .8);
  background: rgba(100, 116, 139, .08);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Pricing block — destaque máximo */
.urw-card-pricing {
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, rgba(124,58,237,.04), rgba(0,212,255,.02));
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}
body.theme-dark .urw-card-pricing,
body.theme-navy .urw-card-pricing,
body.theme-matte .urw-card-pricing {
  background: linear-gradient(180deg, rgba(124,58,237,.08), rgba(0,212,255,.04));
  border-bottom-color: rgba(124, 58, 237, 0.15);
}
.urw-card-price-big {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #10B981;
  line-height: 1.1;
  letter-spacing: -.01em;
}
body.theme-dark .urw-card-price-big,
body.theme-navy .urw-card-price-big,
body.theme-matte .urw-card-price-big { color: #6EE7B7; }
.urw-card-price-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(100, 116, 139, .88);
}
body.theme-dark .urw-card-price-meta,
body.theme-navy .urw-card-price-meta,
body.theme-matte .urw-card-price-meta { color: rgba(203, 213, 225, .8); }
.urw-cp-credits { font-family: ui-monospace, monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .3px; }
.urw-cp-sep { color: rgba(124, 58, 237, .4); }
.urw-cp-days { font-weight: 600; }
.urw-card-pricing-per-day {
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(100, 116, 139, .65);
  font-family: ui-monospace, monospace;
}
body.theme-dark .urw-card-pricing-per-day,
body.theme-navy .urw-card-pricing-per-day,
body.theme-matte .urw-card-pricing-per-day { color: rgba(148, 163, 184, .55); }

/* Slots block */
.urw-card-slots-block { padding: 14px 20px 12px; }
.urw-card-slots-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.urw-card-slots-label {
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: rgba(100, 116, 139, .65);
  text-transform: uppercase;
}
body.theme-dark .urw-card-slots-label,
body.theme-navy .urw-card-slots-label,
body.theme-matte .urw-card-slots-label { color: rgba(148, 163, 184, .6); }
.urw-card-slots-count {
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 700;
}
.urw-card-slots-count--ok { color: #10B981; }
.urw-card-slots-count--warn { color: #F59E0B; }
.urw-card-slots-count--full { color: #DC2626; }
body.theme-dark .urw-card-slots-count--ok,
body.theme-navy .urw-card-slots-count--ok,
body.theme-matte .urw-card-slots-count--ok { color: #6EE7B7; }
.urw-card--pal .urw-slots-bar {
  height: 4px !important;
  border-radius: 3px !important;
  background: rgba(100, 116, 139, .12) !important;
}
.urw-slots-bar-fill--ok { background: linear-gradient(90deg, #10B981, #34D399) !important; }
.urw-slots-bar-fill--warn { background: linear-gradient(90deg, #F59E0B, #FCD34D) !important; }
.urw-slots-bar-fill--full { background: linear-gradient(90deg, #DC2626, #F87171) !important; }
.urw-slots-meta-pal {
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(100, 116, 139, .6);
  font-family: ui-monospace, monospace;
}
body.theme-dark .urw-slots-meta-pal,
body.theme-navy .urw-slots-meta-pal,
body.theme-matte .urw-slots-meta-pal { color: rgba(148, 163, 184, .55); }

/* CTAs */
.urw-card--pal .urw-card-cta {
  margin: 0 20px 14px !important;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6366F1 100%) !important;
  border-radius: 8px !important;
  padding: 13px 16px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: .6px !important;
  text-transform: uppercase !important;
  font-family: ui-monospace, monospace !important;
  color: #fff !important;
  border: 0 !important;
  cursor: pointer;
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  transition: all .15s;
  position: relative; overflow: hidden;
}
.urw-card--pal .urw-card-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
}
.urw-card--pal .urw-card-cta:disabled {
  background: rgba(100, 116, 139, .2) !important;
  cursor: not-allowed;
  opacity: .6;
}
.urw-card--pal .urw-card-admin-cta {
  margin: 0 20px 14px !important;
  padding: 9px 14px !important;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(167,139,250,.05)) !important;
  border: 1px dashed rgba(245, 158, 11, .5) !important;
  border-radius: 7px !important;
  font-family: ui-monospace, monospace !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .8px !important;
  text-transform: uppercase !important;
  color: #B45309 !important;
}
body.theme-dark .urw-card--pal .urw-card-admin-cta,
body.theme-navy .urw-card--pal .urw-card-admin-cta,
body.theme-matte .urw-card--pal .urw-card-admin-cta {
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(252,211,77,.04)) !important;
  color: #FCD34D !important;
  border-color: rgba(245, 158, 11, .35) !important;
}

/* ─── OVERLAY JÁ ASSINADO (Palantir) ─── */
.urw-card--subscribed { position: relative !important; }
.urw-subscribed-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(15, 23, 41, 0.92) 0%, rgba(5, 150, 105, 0.78) 100%) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  z-index: 10 !important;
  border-radius: 14px !important;
  padding: 24px !important;
  text-align: center !important;
}
.urw-sub-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #059669, #10B981, #34D399) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-family: ui-monospace, monospace !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 1.6px !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.7), 0 0 60px rgba(16, 185, 129, 0.3) !important;
}
.urw-sub-sub {
  color: #E2E8F0 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  max-width: 240px;
}
.urw-sub-go {
  display: inline-block !important;
  margin-top: 4px !important;
  padding: 11px 22px !important;
  background: #fff !important;
  color: #0F172A !important;
  border-radius: 8px !important;
  font-family: ui-monospace, monospace !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: all .15s !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.urw-sub-go:hover {
  background: #F1F5F9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.4) !important;
}

/* ─── 3 TOP BUTTONS (COMPARTILHAMENTO / + Novo anúncio / + Landing Page) ─── */
.mkt-new-row { gap: 10px !important; padding: 4px 0 !important; }
.mkt-new-btn {
  padding: 11px 18px !important;
  border-radius: 9px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .8px !important;
  text-transform: uppercase !important;
  border: 0 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  position: relative;
  overflow: hidden;
}
.mkt-new-btn:hover { transform: translateY(-1px); }
.mkt-new-btn--compartilhamento {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.mkt-new-btn--compartilhamento:hover { box-shadow: 0 6px 20px rgba(16, 185, 129, .55); }
.mkt-new-btn--landing {
  background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}
.mkt-new-btn--landing:hover { box-shadow: 0 6px 20px rgba(124, 58, 237, .55); }
.mkt-new-btn:not(.mkt-new-btn--compartilhamento):not(.mkt-new-btn--landing) {
  background: rgba(100, 116, 139, .08) !important;
  color: #1F2937 !important;
  border: 1px solid rgba(100, 116, 139, .2) !important;
}
.mkt-new-btn:not(.mkt-new-btn--compartilhamento):not(.mkt-new-btn--landing):hover {
  background: rgba(100, 116, 139, .14) !important;
  border-color: rgba(100, 116, 139, .35) !important;
}
body.theme-dark .mkt-new-btn:not(.mkt-new-btn--compartilhamento):not(.mkt-new-btn--landing),
body.theme-navy .mkt-new-btn:not(.mkt-new-btn--compartilhamento):not(.mkt-new-btn--landing),
body.theme-matte .mkt-new-btn:not(.mkt-new-btn--compartilhamento):not(.mkt-new-btn--landing) {
  background: rgba(148, 163, 184, .08) !important;
  color: #F1F5F9 !important;
  border-color: rgba(148, 163, 184, .2) !important;
}

/* ─── COMM ANNOUNCEMENT CARD (Anúncios da Comunidade · Compartilhamento de contas) ─── */
.mkt-rental-section {
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, .04) 0%, rgba(16, 185, 129, .03) 50%, rgba(124, 58, 237, .04) 100%) !important;
  border: 1px solid rgba(124, 58, 237, 0.18) !important;
  padding: 18px 22px !important;
  margin: 14px 0 18px !important;
}
body.theme-dark .mkt-rental-section,
body.theme-navy .mkt-rental-section,
body.theme-matte .mkt-rental-section {
  background: linear-gradient(135deg, rgba(124, 58, 237, .12) 0%, rgba(16, 185, 129, .06) 50%, rgba(124, 58, 237, .12) 100%) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
}
.mkt-rental-section .mkt-rental-title { font-size: 1.05rem !important; font-weight: 700 !important; }
.mkt-rental-section .mkt-rental-live {
  background: linear-gradient(135deg, #10B981, #34D399) !important;
  color: #fff !important;
  font-family: ui-monospace, monospace !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, .5);
}
.mkt-rental-section .mkt-rental-dot {
  background: #fff !important;
  width: 6px !important; height: 6px !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, .8);
  animation: mktRentalPulse 1.5s ease-in-out infinite;
}
@keyframes mktRentalPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}





/* LEASE_PALANTIR_MINIMAL_V2_20260529 — tactical Palantir overlay matching Flash aesthetic.
   FLAT dark, mono, LED dot 5px, border-left 3px solid green, sharp corners, ZERO halo glow. */

/* ─── OVERLAY: flat tactical, scan-line top, no radial breath ─── */
.urw-subscribed-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 41, 0.97) 100%) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border-radius: 14px !important;
  border-left: 3px solid #10B981 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  z-index: 10 !important;
  padding: 28px 24px !important;
  text-align: center !important;
  overflow: hidden;
  animation: none !important;
}
.urw-subscribed-overlay::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .65), transparent);
  pointer-events: none;
}
.urw-subscribed-overlay::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .25), transparent);
  pointer-events: none;
}

/* ─── BADGE: tactical pill mono, tiny LED dot, no halo ─── */
.urw-sub-badge {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  background: rgba(16, 185, 129, 0.10) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  padding: 7px 14px !important;
  border-radius: 5px !important;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.6px !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  animation: none !important;
}
.urw-sub-badge::before, .urw-sub-badge::after { display: none !important; content: none !important; }
.urw-sub-badge span {
  letter-spacing: 1.6px !important;
  font-weight: 700 !important;
  color: #6EE7B7 !important;
}
/* Replace the ✓ with a tactical LED dot using ::first-letter trick is unreliable;
   we add the dot via the badge::before below */
.urw-sub-badge {
  /* prepend dot via box-shadow on inner span - cleaner: use a sibling dot */
}

/* Add a LED dot (sibling element inserted via JS would be cleanest; for now style ✓ as the dot) */
.urw-sub-badge {
  font-size: 0 !important;  /* hide the ✓ */
}
.urw-sub-badge span {
  font-size: 10.5px !important;  /* restore for the text span only */
  position: relative;
  padding-left: 13px;
}
.urw-sub-badge span::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, .8);
  animation: leaseSubDotPulse 1.6s ease-in-out infinite;
}
@keyframes leaseSubDotPulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: .6; transform: translateY(-50%) scale(1.2); box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ─── SUB TEXT: mono small, neutral slate ─── */
.urw-sub-sub {
  color: rgba(203, 213, 225, 0.78) !important;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace !important;
  font-size: 10.5px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.35px !important;
  max-width: 260px;
  text-align: center;
  font-weight: 500;
  text-shadow: none !important;
}
.urw-sub-sub b {
  color: #E2E8F0 !important;
  font-weight: 700 !important;
  letter-spacing: .8px;
}

/* ─── ABRIR BUTTON: sharp tactical, transparent bg + green border ─── */
.urw-sub-go {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: 0 !important;
  padding: 10px 22px !important;
  background: rgba(16, 185, 129, 0.06) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 5px !important;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  transition: all .15s ease !important;
  box-shadow: none !important;
  overflow: visible;
}
.urw-sub-go::before, .urw-sub-go::after { display: none !important; content: none !important; }
.urw-sub-go:hover {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: #10B981 !important;
  color: #A7F3D0 !important;
  transform: none !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10), 0 0 12px rgba(16, 185, 129, .25) !important;
}
.urw-sub-go:active {
  background: rgba(16, 185, 129, 0.20) !important;
}

/* ─── CANCEL LINK (no overlay): minúsculo tactical ─── */
.urw-sub-cancel {
  display: inline-block;
  margin-top: 2px;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(148, 163, 184, .55);
  cursor: pointer;
  transition: all .15s;
  position: relative;
  z-index: 2;
}
.urw-sub-cancel:hover {
  color: #FCA5A5;
  border-color: rgba(220, 38, 38, .35);
  background: rgba(220, 38, 38, .06);
}

/* ─── MINHAS ASSINATURAS — cancel button in card ─── */
.mkt-my-lease-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.mkt-my-lease-open { flex: 1; }
.mkt-my-lease-cancel {
  flex-shrink: 0;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 5px;
  color: rgba(100, 116, 139, .85);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}
body.theme-dark .mkt-my-lease-cancel,
body.theme-navy .mkt-my-lease-cancel,
body.theme-matte .mkt-my-lease-cancel {
  border-color: rgba(148, 163, 184, .25);
  color: rgba(148, 163, 184, .7);
}
.mkt-my-lease-cancel:hover {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .4);
  color: #DC2626;
}
body.theme-dark .mkt-my-lease-cancel:hover,
body.theme-navy .mkt-my-lease-cancel:hover,
body.theme-matte .mkt-my-lease-cancel:hover {
  background: rgba(220, 38, 38, .12);
  border-color: rgba(252, 165, 165, .5);
  color: #FCA5A5;
}

/* ─── CANCEL CONFIRM MODAL (Palantir minimal) ─── */
.lease-cancel-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, .85);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: lcmFadeIn .15s ease-out;
}
@keyframes lcmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lease-cancel-modal {
  background: #0B1220;
  border: 1px solid rgba(220, 38, 38, .35);
  border-left: 3px solid #DC2626;
  border-radius: 8px;
  padding: 24px 26px;
  max-width: 460px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  animation: lcmSlideUp .2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}
.lease-cancel-modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, .6), transparent);
}
@keyframes lcmSlideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.lease-cancel-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #F87171;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.lease-cancel-eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  background: #DC2626;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(220, 38, 38, .7);
  animation: leaseSubDotPulse 1.6s ease-in-out infinite;
}
.lease-cancel-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.lease-cancel-body {
  color: rgba(203, 213, 225, .82);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.lease-cancel-refund-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, .3);
  border-left: 3px solid #10B981;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.lease-cancel-refund-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(110, 231, 183, .85);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.lease-cancel-refund-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: #6EE7B7;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.lease-cancel-refund-sub {
  font-size: 10.5px;
  color: rgba(148, 163, 184, .7);
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .3px;
}
.lease-cancel-actions {
  display: flex; gap: 10px;
  margin-top: 16px;
}
.lease-cancel-btn-no {
  flex: 1;
  padding: 11px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 5px;
  color: #CBD5E1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
}
.lease-cancel-btn-no:hover {
  background: rgba(148, 163, 184, .08);
  border-color: rgba(148, 163, 184, .45);
  color: #F1F5F9;
}
.lease-cancel-btn-yes {
  flex: 1;
  padding: 11px;
  background: rgba(220, 38, 38, .12);
  border: 1px solid rgba(220, 38, 38, .5);
  border-radius: 5px;
  color: #FCA5A5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
}
.lease-cancel-btn-yes:hover {
  background: rgba(220, 38, 38, .22);
  border-color: #DC2626;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.lease-cancel-btn-yes:disabled { opacity: .5; cursor: not-allowed; }


/* TOOLS_LEASES_PALANTIR_V1_20260529 — tactical cards p/ Minhas Assinaturas Alugadas em /#/tools */
.tp-lease-card--pal {
  position: relative;
  background: linear-gradient(135deg, #0F1729 0%, #1A2540 50%, #0F1729 100%);
  border: 1px solid rgba(148, 163, 184, .14);
  border-left: 3px solid var(--accent, #4F46E5);
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
}
.tp-lease-card--pal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #4F46E5), transparent);
  opacity: .35;
}
.tp-lease-card--pal:hover {
  border-color: rgba(148, 163, 184, .28);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.4), 0 0 0 1px var(--accent, #4F46E5) inset;
}
.tp-lease-card--pal:hover::before { opacity: .8; }

/* Head row */
.tp-lease-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.tp-lease-label {
  flex: 1; min-width: 0;
  font-size: 13.5px; font-weight: 700; color: #F1F5F9;
  letter-spacing: -.005em; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tp-lease-badge {
  flex-shrink: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--accent, #4F46E5);
  border: 1px solid var(--accent, #4F46E5);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #4F46E5) 25%, transparent);
}

/* Meta line: LED + days */
.tp-lease-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .4px;
}
.tp-lease-led {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.tp-lease-led--ok   { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, .8);  animation: tplLed 1.8s ease-in-out infinite; }
.tp-lease-led--warn { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, .8);  animation: tplLed 1.4s ease-in-out infinite; }
.tp-lease-led--crit { background: #EF4444; box-shadow: 0 0 6px rgba(239, 68, 68, .9);   animation: tplLed 1s ease-in-out infinite; }
@keyframes tplLed {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
  50%     { opacity: .55; transform: scale(1.25); box-shadow: 0 0 0 4px transparent; }
}
.tp-lease-days {
  font-weight: 700;
}
.tp-lease-days--ok   { color: #6EE7B7; }
.tp-lease-days--warn { color: #FCD34D; }
.tp-lease-days--crit { color: #FCA5A5; }
.tp-lease-divider { color: rgba(148, 163, 184, .35); }
.tp-lease-total { color: rgba(148, 163, 184, .65); font-weight: 500; }

/* Progress bar */
.tp-lease-bar {
  height: 3px;
  background: rgba(148, 163, 184, .12);
  border-radius: 2px;
  overflow: hidden;
}
.tp-lease-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width .4s ease;
}
.tp-lease-bar-fill--ok   { background: linear-gradient(90deg, #059669, #34D399); }
.tp-lease-bar-fill--warn { background: linear-gradient(90deg, #D97706, #FCD34D); }
.tp-lease-bar-fill--crit { background: linear-gradient(90deg, #B91C1C, #F87171); }

/* CTA button */
.tp-lease-cta {
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(16, 185, 129, .12);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, .45);
  border-radius: 6px;
  padding: 11px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
}
.tp-lease-cta:hover {
  background: rgba(16, 185, 129, .22);
  border-color: #10B981;
  color: #A7F3D0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .10), 0 4px 14px rgba(16, 185, 129, .25);
}
.tp-lease-cta:active { transform: translateY(1px); }
.tp-lease-cta svg { flex-shrink: 0; }


/* PUBLISH_BRL_V1_20260529 — preço em BRL no modal de publicar */
.u123-field--price { position: relative; }
.u123-brl-wrap {
  position: relative;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  transition: all .15s;
}
.u123-brl-wrap:focus-within {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}
.u123-brl-prefix {
  display: flex; align-items: center;
  padding: 0 12px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 14px; font-weight: 800;
  color: #6EE7B7;
  background: rgba(16, 185, 129, .08);
  border-right: 1px solid rgba(16, 185, 129, .25);
  border-radius: 7px 0 0 7px;
  letter-spacing: .5px;
}
.u123-brl-wrap input[type="number"] {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  padding: 10px 12px !important;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: inherit !important;
  -moz-appearance: textfield;
}
.u123-brl-wrap input[type="number"]::-webkit-outer-spin-button,
.u123-brl-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.u123-brl-conv {
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(148, 163, 184, .8);
  letter-spacing: .3px;
}
.u123-brl-conv b {
  color: rgba(203, 213, 225, 1);
  font-weight: 700;
}
.u123-preview--brl .u123-preview-secondary {
  font-size: 11px;
  color: rgba(148, 163, 184, .7);
  font-family: 'JetBrains Mono', monospace;
  margin-left: 4px;
}
.u123-preview--brl .u123-preview-row b {
  color: #6EE7B7;
  font-weight: 800;
}
.u123-preview--brl .u123-preview-row .u123-preview-secondary b {
  color: rgba(203, 213, 225, .95);
  font-weight: 700;
}


/* FEATURE_FLAGS_V1_FE_20260529 — admin tab styling */
.ff-admin-header {
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(0,212,255,.04));
  border: 1px solid rgba(124, 58, 237, .25);
  border-left: 3px solid #7C3AED;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.ff-admin-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: #A78BFA; text-transform: uppercase; margin-bottom: 6px;
}
.ff-admin-title {
  font-size: 18px; font-weight: 800; color: var(--text, #F1F5F9); margin-bottom: 6px;
}
.ff-admin-sub {
  font-size: 12.5px; color: var(--muted, #94A3B8); line-height: 1.55;
}
.ff-admin-sub b { color: var(--text, #F1F5F9); font-weight: 700; }
.ff-cat-block {
  background: rgba(15, 23, 42, .35);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.ff-cat-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px;
  color: rgba(148, 163, 184, .8);
  text-transform: uppercase; margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
}
.ff-flag-row {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, .08);
}
.ff-flag-row:first-of-type { border-top: 0; }
.ff-flag-info { flex: 1; min-width: 0; }
.ff-flag-label {
  font-size: 13.5px; font-weight: 700; color: var(--text, #F1F5F9);
  margin-bottom: 3px;
}
.ff-flag-desc {
  font-size: 11.5px; color: var(--muted, #94A3B8); line-height: 1.4;
  margin-bottom: 4px;
}
.ff-flag-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(148, 163, 184, .55);
  letter-spacing: .3px;
}
.ff-flag-control {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.ff-flag-select {
  padding: 8px 12px;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 6px;
  color: var(--text, #F1F5F9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px;
  cursor: pointer;
  min-width: 95px;
}
.ff-flag-select:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}
.ff-flag-state {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 60px; text-align: center;
}
.ff-flag-state--admin {
  background: rgba(245, 158, 11, .15);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, .4);
}
.ff-flag-state--pro {
  background: rgba(124, 58, 237, .15);
  color: #A78BFA;
  border: 1px solid rgba(124, 58, 237, .4);
}
.ff-flag-state--all {
  background: rgba(16, 185, 129, .15);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, .4);
}
.ff-flag-state--none {
  background: rgba(220, 38, 38, .15);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, .4);
}


/* OVERLAY_DETAILS_GLOW_V1_20260529 — overlay rico + glow no card de destino */

/* Overlay nome do compartilhamento (Capcut, Dreamface, etc) */
.urw-sub-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #F1F5F9 !important;
  letter-spacing: -.01em !important;
  margin-top: 6px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Meta line: LED + dias */
.urw-sub-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .5px;
}
.urw-sub-led {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.urw-sub-led--ok   { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, .8); animation: leaseSubDotPulse 1.6s ease-in-out infinite; }
.urw-sub-led--warn { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, .8); animation: leaseSubDotPulse 1.3s ease-in-out infinite; }
.urw-sub-led--crit { background: #EF4444; box-shadow: 0 0 6px rgba(239, 68, 68, .9); animation: leaseSubDotPulse 0.9s ease-in-out infinite; }
.urw-sub-days {
  color: #6EE7B7;
  font-weight: 700;
}
.urw-sub-led--warn ~ .urw-sub-days { color: #FCD34D; }
.urw-sub-led--crit ~ .urw-sub-days { color: #FCA5A5; }

/* Button (não <a>) precisa do mesmo style do <a> */
.urw-sub-go--btn {
  background: rgba(16, 185, 129, 0.06) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 5px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  padding: 10px 22px !important;
}

/* Highlight no card de destino em Minhas Assinaturas (5s) */
.mkt-my-lease-card--highlight {
  position: relative;
  animation: leaseHighlightGlow 1.6s ease-in-out infinite;
  z-index: 10;
}
.mkt-my-lease-card--highlight::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .4), rgba(52, 211, 153, .25), rgba(16, 185, 129, .4));
  filter: blur(14px);
  z-index: -1;
  animation: leaseHighlightAura 1.6s ease-in-out infinite;
  pointer-events: none;
}
.mkt-my-lease-card--highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #10B981;
  border-radius: 10px;
  pointer-events: none;
  animation: leaseHighlightRing 1.6s ease-in-out infinite;
}
@keyframes leaseHighlightGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(16, 185, 129, .35), 0 0 60px rgba(16, 185, 129, .15); }
  50% { transform: scale(1.015); box-shadow: 0 0 50px rgba(16, 185, 129, .65), 0 0 100px rgba(16, 185, 129, .3); }
}
@keyframes leaseHighlightAura {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes leaseHighlightRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}


/* EXT_DOWNLOAD_FRONTEND_V1_20260529 — Bridge download section + Pro gate modal */
.ext-bridge-section {
  background: linear-gradient(135deg, #0F1729 0%, #1A2540 50%, #0F1729 100%);
  border: 1px solid rgba(124, 58, 237, .25);
  border-left: 3px solid #7C3AED;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}
.ext-bridge-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .6), transparent);
}
.ext-bridge-row {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.ext-bridge-info { flex: 1; min-width: 260px; }
.ext-bridge-eyebrow {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  color: #A78BFA; text-transform: uppercase; margin-bottom: 6px;
}
.ext-bridge-title {
  font-size: 18px; font-weight: 800; color: #F1F5F9;
  margin-bottom: 6px; letter-spacing: -.01em;
}
.ext-bridge-desc {
  font-size: 12.5px; color: rgba(203, 213, 225, .82); line-height: 1.55;
}
.ext-bridge-desc b { color: #E2E8F0; font-weight: 700; }
.ext-bridge-meta {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: rgba(148, 163, 184, .65);
}
.ext-bridge-meta code {
  background: rgba(148, 163, 184, .08);
  padding: 2px 6px; border-radius: 3px;
  color: rgba(167, 139, 250, .9);
}
.ext-bridge-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  cursor: pointer; border: 0;
  transition: all .15s ease;
  flex-shrink: 0;
}
.ext-bridge-btn--pro {
  background: linear-gradient(135deg, #6366F1, #7C3AED);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}
.ext-bridge-btn--pro:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .55);
}
.ext-bridge-btn--pro:disabled { opacity: .6; cursor: progress; }
.ext-bridge-btn--locked {
  background: rgba(148, 163, 184, .1);
  color: rgba(148, 163, 184, .7);
  border: 1px solid rgba(148, 163, 184, .2);
}
.ext-bridge-btn--locked:hover {
  background: rgba(245, 158, 11, .12);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, .4);
}
.ext-dl-spin {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: edSpin .6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes edSpin { to { transform: rotate(360deg); } }

/* Pro Gate Modal */
.ext-pro-gate-modal {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, .85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: edFade .2s ease-out;
}
@keyframes edFade { from { opacity: 0; } to { opacity: 1; } }
.ext-pro-gate-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  border: 1px solid rgba(245, 158, 11, .35);
  border-left: 3px solid #F59E0B;
  border-radius: 14px;
  padding: 28px;
  max-width: 460px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  font-family: 'Inter', system-ui, sans-serif;
}
.ext-pro-gate-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 800; letter-spacing: 2.2px;
  color: #FCD34D; text-transform: uppercase; margin-bottom: 10px;
}
.ext-pro-gate-title {
  font-size: 20px; font-weight: 800; color: #F1F5F9;
  margin-bottom: 12px; letter-spacing: -.01em;
}
.ext-pro-gate-body {
  font-size: 13px; line-height: 1.6; color: rgba(203, 213, 225, .85);
  margin-bottom: 22px;
}
.ext-pro-gate-body b { color: #F1F5F9; }
.ext-pro-gate-actions { display: flex; gap: 10px; }
.ext-pro-gate-close, .ext-pro-gate-upgrade {
  flex: 1; padding: 12px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  text-align: center;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.ext-pro-gate-close {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, .25);
  color: #CBD5E1;
}
.ext-pro-gate-close:hover {
  background: rgba(148, 163, 184, .08);
  border-color: rgba(148, 163, 184, .45);
}
.ext-pro-gate-upgrade {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
  display: inline-flex; align-items: center; justify-content: center;
}
.ext-pro-gate-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, .55);
}


/* PRO_PLAN_PHASE_C_V1_20260529 - Pro Borrow UI tactical */
.urw-pb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer; border: 0;
  transition: all .15s ease;
}
.urw-pb-btn--avail {
  background: linear-gradient(135deg, rgba(167,139,250,.18), rgba(124,58,237,.12));
  color: #C4B5FD;
  border: 1px solid rgba(167, 139, 250, .45);
}
.urw-pb-btn--avail:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(167,139,250,.3), rgba(124,58,237,.22));
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .12), 0 4px 14px rgba(124, 58, 237, .35);
  transform: translateY(-1px);
  color: #DDD6FE;
}
.urw-pb-btn--full {
  background: rgba(148, 163, 184, .08);
  color: rgba(148, 163, 184, .55);
  border: 1px dashed rgba(148, 163, 184, .25);
  cursor: not-allowed;
}
.urw-pb-btn:disabled { opacity: .55; cursor: not-allowed; }
.pb-spin {
  display: inline-block; width: 11px; height: 11px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: pbSpin .6s linear infinite;
  margin-right: 4px; vertical-align: middle;
}
@keyframes pbSpin { to { transform: rotate(360deg); } }

/* Status widget */
.pb-status-widget {
  background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(167,139,250,.03));
  border: 1px solid rgba(124, 58, 237, .22);
  border-left: 3px solid #7C3AED;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 12px 0;
}
.pb-status-row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  flex-wrap: wrap;
}
.pb-status-led {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.pb-led--active { background: #10B981; box-shadow: 0 0 8px rgba(16, 185, 129, .8); animation: pbLed 1.6s infinite; }
.pb-led--cooldown { background: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, .8); animation: pbLed 1.3s infinite; }
.pb-led--ready { background: #A78BFA; box-shadow: 0 0 8px rgba(167, 139, 250, .8); animation: pbLed 2s infinite; }
@keyframes pbLed { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.25); } }
.pb-status-label {
  font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: rgba(148, 163, 184, .8); font-size: 9.5px;
}
.pb-status-value { color: var(--text, #F1F5F9); font-weight: 700; }
.pb-status-countdown {
  color: #C4B5FD; font-weight: 700;
  margin-left: auto;
  background: rgba(124, 58, 237, .12);
  padding: 3px 9px; border-radius: 4px;
  border: 1px solid rgba(124, 58, 237, .35);
}
body.theme-dark .pb-status-countdown,
body.theme-navy .pb-status-countdown,
body.theme-matte .pb-status-countdown {
  color: #DDD6FE;
}

/* Pro Upgrade Modal */
.pb-upgrade-modal {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, .88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: pbFade .2s ease-out;
}
@keyframes pbFade { from { opacity: 0; } to { opacity: 1; } }
.pb-up-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  border: 1px solid rgba(124, 58, 237, .4);
  border-left: 3px solid #7C3AED;
  border-radius: 14px;
  padding: 32px;
  max-width: 500px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 60px rgba(124, 58, 237, .25);
  font-family: 'Inter', system-ui, sans-serif;
}
.pb-up-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 800; letter-spacing: 2.4px;
  color: #C4B5FD; text-transform: uppercase; margin-bottom: 14px;
}
.pb-up-title {
  font-size: 22px; font-weight: 800; color: #F1F5F9;
  margin-bottom: 14px; letter-spacing: -.01em;
  line-height: 1.25;
}
.pb-up-body {
  font-size: 13px; line-height: 1.65; color: rgba(203, 213, 225, .9);
  margin-bottom: 20px;
}
.pb-up-body b { color: #F1F5F9; font-weight: 700; }
.pb-up-features {
  background: rgba(124, 58, 237, .06);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.pb-up-feat {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
  font-size: 12.5px; color: rgba(203, 213, 225, .9);
  font-family: 'JetBrains Mono', monospace;
}
.pb-up-tick {
  color: #6EE7B7; font-weight: 900;
  width: 16px; text-align: center;
  font-size: 14px;
}
.pb-up-actions { display: flex; gap: 10px; }
.pb-up-close, .pb-up-upgrade {
  flex: 1; padding: 13px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  text-align: center;
  cursor: pointer; text-decoration: none;
  transition: all .15s; border: 0;
}
.pb-up-close {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, .3);
  color: #CBD5E1;
}
.pb-up-close:hover { background: rgba(148, 163, 184, .08); border-color: rgba(148, 163, 184, .5); }
.pb-up-upgrade {
  background: linear-gradient(135deg, #6366F1, #7C3AED);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .4);
  display: inline-flex; align-items: center; justify-content: center;
}
.pb-up-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .6);
}


/* INSTALL_TUTORIAL_V1_20260529 - Tutorial modal Palantir tactical */
.it-modal-bg {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, .9);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: itFade .2s ease-out;
  font-family: 'Inter', system-ui, sans-serif;
}
@keyframes itFade { from { opacity: 0; } to { opacity: 1; } }
.it-modal {
  background: linear-gradient(135deg, #0B1220 0%, #0F1729 50%, #0B1220 100%);
  border: 1px solid rgba(124, 58, 237, .3);
  border-left: 3px solid #7C3AED;
  border-radius: 14px;
  max-width: 580px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 80px rgba(124, 58, 237, .15);
  position: relative;
}
.it-modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .65), transparent);
}
.it-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 22px 26px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}
.it-head-eyebrow {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: #A78BFA; text-transform: uppercase; margin-bottom: 4px;
}
.it-head-title { font-size: 19px; font-weight: 800; color: #F1F5F9; letter-spacing: -.01em; }
.it-close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 8px;
  color: #94A3B8; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.it-close:hover {
  background: rgba(220, 38, 38, .1);
  border-color: rgba(220, 38, 38, .35);
  color: #FCA5A5;
}
.it-dots-row { padding: 14px 26px 0; }
.it-dots { display: flex; gap: 6px; }
.it-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(148, 163, 184, .15);
  transition: all .25s;
}
.it-dot--active { background: #A78BFA; box-shadow: 0 0 8px rgba(167, 139, 250, .6); }
.it-dot--done { background: #10B981; }
.it-body { padding: 18px 26px 6px; }
.it-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 800; letter-spacing: 1.8px;
  color: rgba(148, 163, 184, .65); text-transform: uppercase;
  margin-bottom: 12px;
}
.it-step-svg {
  background: rgba(15, 23, 41, .6);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 10px;
  padding: 16px 12px;
  margin-bottom: 16px;
  position: relative;
}
.it-step-svg svg { width: 100%; max-height: 220px; display: block; }
.it-step-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 800; letter-spacing: .8px;
  color: #F1F5F9; text-transform: uppercase;
  margin-bottom: 10px;
}
.it-step-desc {
  font-size: 13px; line-height: 1.65; color: rgba(203, 213, 225, .9);
  margin-bottom: 12px;
}
.it-step-desc b { color: #F1F5F9; font-weight: 700; }
.it-step-desc code.it-code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(124, 58, 237, .12);
  color: #C4B5FD;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid rgba(124, 58, 237, .25);
}
.it-step-tip {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(245, 158, 11, .06);
  border: 1px solid rgba(245, 158, 11, .25);
  border-left: 3px solid #F59E0B;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11.5px; line-height: 1.55;
  color: #FCD34D;
  font-family: 'JetBrains Mono', monospace;
}
.it-step-tip svg { flex-shrink: 0; margin-top: 1px; }
.it-foot {
  display: flex; gap: 10px;
  padding: 14px 26px 22px;
  border-top: 1px solid rgba(148, 163, 184, .08);
  margin-top: 8px;
}
.it-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  cursor: pointer; border: 0;
  transition: all .15s;
}
.it-btn-prev {
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .2);
  color: #CBD5E1;
}
.it-btn-prev:hover:not(:disabled) {
  background: rgba(148, 163, 184, .14);
  border-color: rgba(148, 163, 184, .35);
}
.it-btn-prev:disabled { opacity: .35; cursor: not-allowed; }
.it-btn-next--primary {
  background: linear-gradient(135deg, #6366F1, #7C3AED);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}
.it-btn-next--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .55);
}
.it-help-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 6px;
  color: #A78BFA;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer; transition: all .15s;
}
.it-help-link:hover {
  background: rgba(167, 139, 250, .08);
  border-color: #A78BFA;
  color: #C4B5FD;
}


/* QUARANTINE_FE_V1_20260529 - banner + admin UI tactical */
.qrn-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #B91C1C, #DC2626);
  color: #fff;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  box-shadow: 0 4px 14px rgba(220, 38, 38, .35);
  animation: qrnSlideDown .3s ease-out;
}
@keyframes qrnSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.qrn-banner-inner {
  display: flex; align-items: center; gap: 14px;
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px;
}
.qrn-banner-dot {
  width: 10px; height: 10px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, .8);
  animation: qrnDot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes qrnDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.7); } }
.qrn-banner-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
}
.qrn-banner-sub {
  font-size: 11px; margin-top: 2px;
  opacity: .95; font-weight: 500; letter-spacing: .3px;
  font-family: 'Inter', system-ui, sans-serif;
}
.qrn-banner-sub a { color: #fff; text-decoration: underline; font-weight: 700; }
body.has-qrn-banner { padding-top: 70px; }

/* Admin UI */
.qrn-admin-header {
  background: linear-gradient(135deg, rgba(220, 38, 38, .08), rgba(220, 38, 38, .03));
  border: 1px solid rgba(220, 38, 38, .25);
  border-left: 3px solid #DC2626;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.qrn-admin-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: #FCA5A5; text-transform: uppercase; margin-bottom: 6px;
}
.qrn-admin-title { font-size: 18px; font-weight: 800; color: var(--text, #F1F5F9); margin-bottom: 6px; }
.qrn-admin-sub { font-size: 12.5px; line-height: 1.55; color: var(--muted, #94A3B8); }
.qrn-admin-add {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(15, 23, 42, .35);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.qrn-input {
  flex: 1; min-width: 180px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, .5);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 6px;
  color: var(--text, #F1F5F9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.qrn-input:focus { outline: none; border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.qrn-btn-add {
  padding: 9px 18px;
  background: linear-gradient(135deg, #B91C1C, #DC2626);
  border: 0; border-radius: 6px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .3);
  transition: all .15s;
}
.qrn-btn-add:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(220, 38, 38, .5); }
.qrn-list { display: flex; flex-direction: column; gap: 8px; }
.qrn-empty {
  padding: 24px; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: rgba(148, 163, 184, .6);
}
.qrn-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(15, 23, 42, .35);
  border: 1px solid rgba(148, 163, 184, .12);
  border-left: 3px solid #DC2626;
  border-radius: 8px;
  padding: 12px 14px;
}
.qrn-row-info { flex: 1; min-width: 0; }
.qrn-row-name { font-size: 13.5px; color: var(--text, #F1F5F9); }
.qrn-row-name b { font-weight: 700; }
.qrn-row-handle { color: rgba(148, 163, 184, .8); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.qrn-row-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: rgba(148, 163, 184, .65);
  margin-top: 3px;
}
.qrn-row-reason {
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(252, 165, 165, .85);
  background: rgba(220, 38, 38, .06);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid rgba(220, 38, 38, .35);
}
.qrn-btn-unq {
  flex-shrink: 0;
  padding: 9px 14px;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .45);
  border-radius: 6px;
  color: #6EE7B7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; cursor: pointer;
  transition: all .15s;
}
.qrn-btn-unq:hover { background: rgba(16, 185, 129, .22); border-color: #10B981; }


/* MKT_WALLET_WIDGET_V1_20260529 */
.mkt-wallet-widget {
  position: relative;
  margin: 16px 0 18px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(123, 92, 255, 0.04) 50%, rgba(0, 212, 255, 0.02) 100%), #0a1014;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.04), 0 0 40px rgba(0, 212, 255, 0.04) inset;
  font-family: 'Inter', system-ui, sans-serif;
}
.mkt-wallet-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.mkt-wallet-widget::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 150px at 0% -20%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 400px 120px at 100% 120%, rgba(123, 92, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.mkt-wallet-loading {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #6b7480;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mkt-wallet-left {
  position: relative;
  z-index: 1;
  padding: 22px 24px;
  border-right: 1px solid rgba(0, 212, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(10, 16, 20, 0.4);
}
.mkt-wallet-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.20em;
  color: rgba(0, 212, 255, 0.65);
  text-transform: uppercase;
  font-weight: 600;
}
.mkt-wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #c9d1d9;
}
.mkt-wallet-currency {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: rgba(0, 212, 255, 0.85);
  font-weight: 600;
}
.mkt-wallet-value {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #7B5CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.mkt-wallet-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.mkt-wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
}
.mkt-wallet-btn--primary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(123, 92, 255, 0.12));
  color: #00d4ff;
}
.mkt-wallet-btn--primary:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.32), rgba(123, 92, 255, 0.22));
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.30);
  transform: translateY(-1px);
}
.mkt-wallet-btn--ghost {
  background: transparent;
  color: rgba(0, 212, 255, 0.7);
  padding: 8px 10px;
}
.mkt-wallet-btn--ghost:hover {
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.7);
}
.mkt-wallet-right {
  position: relative;
  z-index: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.mkt-wallet-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.14);
}
.mkt-wallet-right-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.20em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  font-weight: 700;
}
.mkt-wallet-right-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  color: rgba(0, 212, 255, 0.6);
  letter-spacing: 0.10em;
  padding: 2px 7px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
}
.mkt-wallet-tx-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 192px;
  overflow-y: auto;
}
.mkt-wallet-tx-list::-webkit-scrollbar {
  width: 4px;
}
.mkt-wallet-tx-list::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.25);
  border-radius: 2px;
}
.mkt-wallet-tx {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.mkt-wallet-tx:hover {
  background: rgba(0, 212, 255, 0.04);
}
.mkt-wallet-tx-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mkt-wallet-tx.tx-credit .mkt-wallet-tx-ico { color: #10b981; }
.mkt-wallet-tx.tx-debit  .mkt-wallet-tx-ico { color: #ef4444; }
.mkt-wallet-tx.tx-other  .mkt-wallet-tx-ico { color: rgba(0, 212, 255, 0.6); }
.mkt-wallet-tx-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-wallet-tx-time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.40);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}
.mkt-wallet-tx-amount {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.mkt-wallet-tx.tx-credit .mkt-wallet-tx-amount { color: #10b981; }
.mkt-wallet-tx.tx-debit  .mkt-wallet-tx-amount { color: #ef4444; }
.mkt-wallet-tx.tx-other  .mkt-wallet-tx-amount { color: rgba(0, 212, 255, 0.7); }
.mkt-wallet-tx-empty {
  padding: 26px 14px;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .mkt-wallet-widget {
    grid-template-columns: 1fr;
  }
  .mkt-wallet-left {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.10);
  }
  .mkt-wallet-value { font-size: 26px; }
}


/* MKT_V3_PALANTIR_REFACTOR_V1_20260529 */
/* ==================================================================
   MARKETPLACE V3 — PALANTIR / TESLA AESTHETIC
   Dark tactical, mono fonts, cyan/violet accents, glow on hover
   ================================================================== */

.mkt-v3-shell {
  --v3-bg: #0a1014;
  --v3-bg-card: #0f1419;
  --v3-bg-elev: #131a22;
  --v3-border: rgba(0, 212, 255, 0.16);
  --v3-border-strong: rgba(0, 212, 255, 0.35);
  --v3-cyan: #00d4ff;
  --v3-cyan-soft: rgba(0, 212, 255, 0.65);
  --v3-violet: #7B5CFF;
  --v3-green: #10b981;
  --v3-red: #ef4444;
  --v3-text: #c9d1d9;
  --v3-text-muted: rgba(255, 255, 255, 0.48);
  --v3-text-faint: rgba(255, 255, 255, 0.28);
  --v3-mono: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace;

  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--v3-text);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ===== HEAD ===== */
.mkt-v3-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 0 4px 4px;
  border-bottom: 1px dashed var(--v3-border);
  padding-bottom: 18px;
}
.mkt-v3-eyebrow {
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--v3-cyan-soft);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.mkt-v3-eyebrow-small {
  font-family: var(--v3-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--v3-text-faint);
  text-transform: uppercase;
}
.mkt-v3-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--v3-cyan) 60%, var(--v3-violet) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mkt-v3-sub {
  font-size: 12.5px;
  color: var(--v3-text-muted);
  margin: 4px 0 0;
  font-weight: 500;
}
.mkt-v3-head-right {
  display: flex;
  gap: 8px;
}
.mkt-v3-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--v3-border-strong);
  border-radius: 6px;
  font-family: var(--v3-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(.4,.2,.2,1);
  background: transparent;
  color: var(--v3-cyan);
}
.mkt-v3-btn:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
}
.mkt-v3-btn--primary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(123, 92, 255, 0.10));
}
.mkt-v3-btn--primary:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.30), rgba(123, 92, 255, 0.20));
}
.mkt-v3-btn--rateio {
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--v3-green);
}
.mkt-v3-btn--rateio:hover {
  background: rgba(16, 185, 129, 0.10);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.30);
}

/* ===== GENERIC CARD ===== */
.mkt-v3-card {
  position: relative;
  border: 1px solid var(--v3-border);
  border-radius: 10px;
  background: var(--v3-bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mkt-v3-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.mkt-v3-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--v3-border);
  gap: 12px;
}
.mkt-v3-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.mkt-v3-badge {
  font-family: var(--v3-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  color: var(--v3-text-muted);
  letter-spacing: 0.08em;
}
.mkt-v3-badge--accent {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.20), rgba(123, 92, 255, 0.15));
  border-color: var(--v3-border-strong);
  color: var(--v3-cyan);
}
.mkt-v3-loading,
.mkt-v3-empty {
  position: relative;
  z-index: 1;
  padding: 32px;
  text-align: center;
  font-family: var(--v3-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--v3-text-faint);
  text-transform: uppercase;
}

/* ===== 2-COL GRID ===== */
.mkt-v3-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== SUBSCRIPTIONS ===== */
.mkt-v3-subs-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
  flex: 1;
  max-height: 320px;
  overflow-y: auto;
}
.mkt-v3-sub-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.15s;
}
.mkt-v3-sub-row:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: var(--v3-border);
}
.mkt-v3-sub-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--v3-cyan), var(--v3-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--v3-mono);
  font-size: 11px;
  font-weight: 700;
  color: white;
  position: relative;
}
.mkt-v3-sub-icon::after {
  content: attr(data-provider);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.mkt-v3-sub-info {
  min-width: 0;
}
.mkt-v3-sub-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-v3-sub-meta {
  font-family: var(--v3-mono);
  font-size: 10px;
  color: var(--v3-text-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.mkt-v3-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--v3-border-strong);
  border-radius: 5px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--v3-cyan);
  font-family: var(--v3-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.mkt-v3-sub-btn:hover {
  background: rgba(0, 212, 255, 0.18);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.40);
}

/* ===== PLANS ===== */
.mkt-v3-plans-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.mkt-v3-plan {
  position: relative;
  padding: 14px 14px 12px;
  border: 1px solid var(--v3-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.18s;
}
.mkt-v3-plan:hover {
  border-color: var(--v3-border-strong);
  background: rgba(0, 212, 255, 0.03);
}
.mkt-v3-plan--accent {
  border-color: rgba(0, 212, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(123, 92, 255, 0.05));
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12) inset;
}
.mkt-v3-plan--current::before {
  content: 'ATUAL';
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--v3-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--v3-green);
  border-radius: 3px;
}
.mkt-v3-plan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mkt-v3-plan-name {
  font-family: var(--v3-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #ffffff;
}
.mkt-v3-plan-flame {
  color: var(--v3-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}
.mkt-v3-plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 8px;
}
.mkt-v3-plan-currency {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.mkt-v3-plan--accent .mkt-v3-plan-currency {
  background: linear-gradient(135deg, var(--v3-cyan), var(--v3-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mkt-v3-plan-period {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-text-muted);
}
.mkt-v3-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mkt-v3-plan-features li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--v3-text);
}
.mkt-v3-plan-features li svg {
  color: var(--v3-cyan);
  flex-shrink: 0;
}
.mkt-v3-plan-btn {
  display: block;
  width: 100%;
  padding: 9px;
  text-align: center;
  border: 1px solid var(--v3-border-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--v3-cyan);
  font-family: var(--v3-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
}
.mkt-v3-plan-btn:hover {
  background: rgba(0, 212, 255, 0.10);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.30);
}
.mkt-v3-plan-btn--accent {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(123, 92, 255, 0.18));
}
.mkt-v3-plan-btn--accent:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.36), rgba(123, 92, 255, 0.30));
}
.mkt-v3-plan-btn--current {
  pointer-events: none;
  opacity: 0.55;
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--v3-green);
  background: rgba(16, 185, 129, 0.06);
}

/* ===== COMMUNITY ===== */
.mkt-v3-community .mkt-v3-toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--v3-border);
  align-items: center;
}
.mkt-v3-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mkt-v3-search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--v3-text-faint);
  pointer-events: none;
}
.mkt-v3-search-wrap input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--v3-border);
  border-radius: 6px;
  background: var(--v3-bg-elev);
  color: var(--v3-text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  transition: all 0.15s;
}
.mkt-v3-search-wrap input:focus {
  outline: none;
  border-color: var(--v3-border-strong);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
.mkt-v3-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mkt-v3-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--v3-border);
  border-radius: 16px;
  background: transparent;
  color: var(--v3-text-muted);
  font-family: var(--v3-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}
.mkt-v3-chip:hover {
  border-color: var(--v3-border-strong);
  color: var(--v3-cyan);
}
.mkt-v3-chip.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.20), rgba(123, 92, 255, 0.12));
  border-color: var(--v3-border-strong);
  color: var(--v3-cyan);
}
.mkt-v3-listings-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  padding: 16px 18px 20px;
}
/* Inherit existing #mkt-grid > .mkt-card styles from old CSS — they still work */

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .mkt-v3-grid-2 { grid-template-columns: 1fr; }
  .mkt-v3-head { grid-template-columns: 1fr; gap: 12px; }
  .mkt-v3-head-right { justify-content: flex-start; flex-wrap: wrap; }
  .mkt-v3-community .mkt-v3-toolbar { grid-template-columns: 1fr; }
  .mkt-v3-chips { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .mkt-v3-shell { padding: 14px 12px 40px; }
  .mkt-v3-title { font-size: 22px; }
}


/* MKT_V3_POLISH_V2_20260529 */
/* PLAN COLLAPSIBLE (details/summary) */
.mkt-v3-plan {
  display: block !important;
  cursor: pointer;
  padding: 0 !important;
  overflow: hidden;
}
.mkt-v3-plan > .mkt-v3-plan-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto 18px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.mkt-v3-plan > .mkt-v3-plan-summary::-webkit-details-marker { display: none; }
.mkt-v3-plan > .mkt-v3-plan-summary:hover {
  background: rgba(0, 212, 255, 0.04);
}
.mkt-v3-plan .mkt-v3-plan-chev {
  color: var(--v3-text-faint);
  transition: transform 0.2s;
}
.mkt-v3-plan[open] .mkt-v3-plan-chev {
  transform: rotate(180deg);
  color: var(--v3-cyan);
}
.mkt-v3-plan .mkt-v3-plan-head {
  margin-bottom: 0;
}
.mkt-v3-plan .mkt-v3-plan-price {
  margin-bottom: 0;
}
.mkt-v3-plan .mkt-v3-plan-body {
  padding: 0 16px 14px;
  border-top: 1px dashed var(--v3-border);
  margin-top: 0;
}
.mkt-v3-plan .mkt-v3-plan-features {
  margin: 10px 0;
}
.mkt-v3-plan--current::before {
  top: 14px !important;
}
.mkt-v3-plan--accent .mkt-v3-plan-summary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(123, 92, 255, 0.03));
}

/* DISPONÍVEIS PRA ALUGAR */
.mkt-v3-avail-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
}
.mkt-v3-avail-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.mkt-v3-avail-row:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: var(--v3-border);
}
.mkt-v3-avail-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.20), rgba(123, 92, 255, 0.15));
  border: 1px solid var(--v3-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--v3-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--v3-cyan);
}
.mkt-v3-avail-info { min-width: 0; }
.mkt-v3-avail-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-v3-avail-meta {
  font-family: var(--v3-mono);
  font-size: 10px;
  color: var(--v3-text-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.mkt-v3-avail-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.mkt-v3-avail-cur {
  font-family: var(--v3-mono);
  font-size: 10px;
  color: var(--v3-cyan-soft);
  font-weight: 700;
}
.mkt-v3-avail-val {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.mkt-v3-avail-btn {
  padding: 7px 14px;
  border: 1px solid var(--v3-border-strong);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(123, 92, 255, 0.10));
  color: var(--v3-cyan);
  font-family: var(--v3-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.18s;
}
.mkt-v3-avail-btn:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.32), rgba(123, 92, 255, 0.20));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.40);
}

/* SUB ICON FIX — short abbrev */
.mkt-v3-sub-icon::after {
  font-size: 11px !important;
  letter-spacing: 0.04em;
}

/* COMMUNITY GRID — more compact cards */
.mkt-v3-listings-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
}
.mkt-v3-listings-grid .mkt-card,
.mkt-v3-listings-grid > div {
  font-size: 12px;
}
.mkt-v3-listings-grid .mkt-card .mkt-card-title,
.mkt-v3-listings-grid .mkt-card h3,
.mkt-v3-listings-grid .mkt-card h4 {
  font-size: 12.5px !important;
  line-height: 1.3 !important;
}
.mkt-v3-listings-grid .mkt-card-img,
.mkt-v3-listings-grid .mkt-card-image,
.mkt-v3-listings-grid img {
  max-height: 110px !important;
}

/* SCROLLBAR for subs list */
.mkt-v3-subs-list::-webkit-scrollbar { width: 4px; }
.mkt-v3-subs-list::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.25); border-radius: 2px; }

/* ════════════════════════════════════════════════════════════════════
   MKTV4_CONSOLE_V1_20260529 — Palantir/Tesla ops console
   Forces dark scope inside .mktv4-console regardless of body theme.
   Rails of the app stay in current theme (we don't touch :root tokens).
   ════════════════════════════════════════════════════════════════════ */
.mktv4-console {
  /* Console-scoped tokens — independent of body theme */
  --mk-bg:        #0a0e1a;
  --mk-bg-elev:   #0e1422;
  --mk-bg-solid:  #0f1726;
  --mk-bg-sunk:   #070b14;
  --mk-fg:        #e7edf5;
  --mk-fg-soft:   rgba(231,237,245,0.74);
  --mk-fg-mute:   rgba(231,237,245,0.46);
  --mk-line:      rgba(120,160,220,0.14);
  --mk-line-2:    rgba(120,160,220,0.22);
  --mk-line-3:    rgba(120,160,220,0.34);
  --mk-cyan:      #00d4ff;
  --mk-cyan-soft: rgba(0,212,255,0.62);
  --mk-violet:    #7b5cff;
  --mk-blue:      #3b82f6;
  --mk-green:     #10b981;
  --mk-amber:     #f59e0b;
  --mk-red:       #ef4444;
  --mk-pink:      #ec4899;
  --mk-purple:    #a78bfa;
  --mk-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --mk-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  position: relative;
  isolation: isolate;
  background: var(--mk-bg);
  color: var(--mk-fg);
  font-family: var(--mk-sans);
  border-radius: 8px;
  padding: 20px clamp(14px, 3vw, 28px) 56px;
  margin: 12px 0 32px;
  min-height: calc(100vh - 140px);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px var(--mk-line-2),
    0 24px 64px -20px rgba(0,0,0,0.55);
}
/* Subtle grid texture + violet/cyan halos */
.mktv4-console .mktv4-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg,  rgba(120,160,220,0.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(120,160,220,0.045) 0 1px, transparent 1px 32px),
    radial-gradient(ellipse 680px 220px at 12% -8%, rgba(123,92,255,0.14), transparent 60%),
    radial-gradient(ellipse 720px 240px at 88% 108%, rgba(0,212,255,0.10), transparent 60%);
}
.mktv4-console > * { position: relative; z-index: 1; }

/* Body theme spacers — ensure no leaking text colors override scope */
body.theme-light .mktv4-console,
body.theme-matte .mktv4-console,
body.theme-navy  .mktv4-console { color: var(--mk-fg); }

/* ── Top bar ───────────────────────────────────────────────────────── */
.mktv4-topbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--mk-line);
  margin-bottom: 14px; flex-wrap: wrap;
}
.mktv4-topbar-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mktv4-topbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.mktv4-eyebrow {
  font-family: var(--mk-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mk-fg-mute);
}
.mktv4-eyebrow--accent { color: var(--mk-cyan-soft); }
.mktv4-eyebrow-xs {
  font-family: var(--mk-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--mk-fg-mute);
}
.mktv4-eyebrow-sm {
  font-family: var(--mk-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mk-fg-mute);
}
.mktv4-title {
  font-family: var(--mk-mono); font-size: 22px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--mk-fg); margin: 0;
  text-transform: uppercase;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.mktv4-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 9px 16px;
  border: 1px solid var(--mk-line-2);
  border-radius: 5px;
  background: rgba(255,255,255,0.02);
  color: var(--mk-fg-soft);
  font-family: var(--mk-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .12s;
}
.mktv4-btn:hover { border-color: var(--mk-line-3); color: var(--mk-fg); background: rgba(255,255,255,0.04); }
.mktv4-btn:active { transform: translateY(1px); }
.mktv4-btn--primary {
  border-color: rgba(0,212,255,0.45);
  color: var(--mk-cyan);
  background: linear-gradient(180deg, rgba(0,212,255,0.14), rgba(123,92,255,0.10));
  box-shadow: 0 6px 18px -6px rgba(0,212,255,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.mktv4-btn--primary:hover { color: #fff; border-color: var(--mk-cyan); background: linear-gradient(180deg, rgba(0,212,255,0.28), rgba(123,92,255,0.18)); }
.mktv4-btn--ghost { background: transparent; }

/* ── Tabs (sticky) ─────────────────────────────────────────────────── */
.mktv4-tabs {
  position: sticky; top: 80px; z-index: 5;
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px; margin: 0 0 18px;
  background: linear-gradient(180deg, rgba(10,14,26,0.92), rgba(10,14,26,0.78));
  border: 1px solid var(--mk-line); border-radius: 6px;
  backdrop-filter: blur(8px);
}
.mktv4-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 4px; background: transparent; cursor: pointer;
  font-family: var(--mk-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mk-fg-mute);
  transition: color .15s, border-color .15s, background .15s;
}
.mktv4-tab:hover { color: var(--mk-fg-soft); border-color: var(--mk-line-2); }
.mktv4-tab.is-active {
  color: var(--mk-cyan);
  border-color: rgba(0,212,255,0.45);
  background: rgba(0,212,255,0.06);
  box-shadow: inset 0 -2px 0 var(--mk-cyan);
}
.mktv4-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px;
  background: rgba(255,255,255,0.06); border-radius: 9px;
  font-family: var(--mk-mono); font-size: 10px; font-weight: 700;
  color: var(--mk-fg-soft); font-variant-numeric: tabular-nums;
}
.mktv4-tab.is-active .mktv4-tab-count { background: rgba(0,212,255,0.18); color: var(--mk-cyan); }

/* ── Card primitives ───────────────────────────────────────────────── */
.mktv4-card {
  position: relative;
  border: 1px solid var(--mk-line); border-radius: 6px;
  background: var(--mk-bg-elev);
  padding: 18px 18px 16px;
  margin: 0 0 16px;
}
.mktv4-card--solid { background: var(--mk-bg-solid); }
.mktv4-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--mk-line);
}
.mktv4-card-head-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mktv4-count-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 20px; padding: 0 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--mk-line-2);
  border-radius: 10px;
  font-family: var(--mk-mono); font-size: 10px; font-weight: 700;
  color: var(--mk-fg-soft); font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.mktv4-count-pill--accent { color: var(--mk-cyan); border-color: rgba(0,212,255,0.35); background: rgba(0,212,255,0.08); }
.mktv4-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mktv4-status-dot--ok { background: var(--mk-green); box-shadow: 0 0 8px var(--mk-green); }

.mktv4-loading {
  padding: 26px 14px; text-align: center;
  font-family: var(--mk-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mk-fg-mute);
}
.mktv4-empty {
  padding: 22px 14px; text-align: center;
  font-family: var(--mk-sans); font-size: 13px;
  color: var(--mk-fg-mute);
}

/* ── Ledger ───────────────────────────────────────────────────────── */
.mktv4-ledger {
  display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 0;
  padding: 0; overflow: hidden;
}
.mktv4-ledger-left {
  padding: 22px 22px; display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid var(--mk-line);
  background: linear-gradient(180deg, rgba(0,212,255,0.04), transparent);
}
.mktv4-balance-row { display: flex; align-items: baseline; gap: 8px; }
.mktv4-balance-cur {
  font-family: var(--mk-mono); font-size: 15px; font-weight: 600;
  color: var(--mk-cyan-soft); letter-spacing: 0.04em;
}
.mktv4-balance-val {
  font-family: var(--mk-mono); font-size: 38px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mktv4-balance-mini {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px;
}
.mktv4-mini-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mk-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mk-fg-mute);
}
.mktv4-mini-item b { color: var(--mk-fg-soft); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mktv4-mini-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.mktv4-mini-in  .mktv4-mini-dot { background: var(--mk-green); box-shadow: 0 0 6px var(--mk-green); }
.mktv4-mini-out .mktv4-mini-dot { background: var(--mk-red);   box-shadow: 0 0 6px var(--mk-red); }
.mktv4-ledger-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

.mktv4-ledger-right {
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
  background: var(--mk-bg-sunk); min-width: 0;
}
.mktv4-ledger-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px dashed var(--mk-line);
}
.mktv4-tx-list {
  display: flex; flex-direction: column; gap: 1px;
  max-height: 232px; overflow-y: auto;
}
.mktv4-tx-list::-webkit-scrollbar { width: 5px; }
.mktv4-tx-list::-webkit-scrollbar-thumb { background: var(--mk-line-2); border-radius: 3px; }
.mktv4-tx-row {
  display: grid; grid-template-columns: 48px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 8px 8px; border-radius: 3px;
  transition: background .12s;
}
.mktv4-tx-row + .mktv4-tx-row { border-top: 1px solid rgba(120,160,220,0.06); }
.mktv4-tx-row:hover { background: rgba(255,255,255,0.025); }
.mktv4-tx-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 18px; border-radius: 2px;
  font-family: var(--mk-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid currentColor;
  background: rgba(255,255,255,0.02);
}
.mktv4-tx-row.tx-in   .mktv4-tx-tag    { color: var(--mk-green);  }
.mktv4-tx-row.tx-sub  .mktv4-tx-tag    { color: var(--mk-blue);   }
.mktv4-tx-row.tx-rent .mktv4-tx-tag    { color: var(--mk-amber);  }
.mktv4-tx-row.tx-pur  .mktv4-tx-tag    { color: var(--mk-purple); }
.mktv4-tx-row.tx-out  .mktv4-tx-tag    { color: var(--mk-red);    }
.mktv4-tx-label {
  font-family: var(--mk-sans); font-size: 13px; color: var(--mk-fg-soft);
  font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mktv4-tx-time {
  font-family: var(--mk-mono); font-size: 10px; color: var(--mk-fg-mute);
  font-variant-numeric: tabular-nums; padding: 2px 7px;
  background: rgba(255,255,255,0.03); border-radius: 3px; letter-spacing: 0.04em;
}
.mktv4-tx-amount {
  font-family: var(--mk-mono); font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: right;
  min-width: 92px;
}
.mktv4-tx-row.tx-in   .mktv4-tx-amount { color: var(--mk-green); }
.mktv4-tx-row.tx-sub  .mktv4-tx-amount { color: var(--mk-blue); }
.mktv4-tx-row.tx-rent .mktv4-tx-amount { color: var(--mk-amber); }
.mktv4-tx-row.tx-pur  .mktv4-tx-amount { color: var(--mk-purple); }
.mktv4-tx-row.tx-out  .mktv4-tx-amount { color: var(--mk-red); }
.mktv4-tx-empty {
  padding: 22px 14px; text-align: center;
  font-family: var(--mk-sans); font-size: 13px; color: var(--mk-fg-mute);
}

/* ── Assinaturas (subs row, cards) ─────────────────────────────────── */
.mktv4-subs-list {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.mktv4-sub-card {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--mk-line); border-radius: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color .15s, transform .12s;
}
.mktv4-sub-card:hover { border-color: var(--mk-line-3); }
.mktv4-sub-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 4px;
  background: linear-gradient(135deg, rgba(0,212,255,0.16), rgba(123,92,255,0.20));
  border: 1px solid rgba(0,212,255,0.30);
  color: #fff;
  font-family: var(--mk-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em;
}
.mktv4-sub-mid { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mktv4-sub-label {
  font-family: var(--mk-sans); font-size: 13px; font-weight: 600;
  color: var(--mk-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mktv4-sub-meta {
  font-family: var(--mk-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mk-fg-mute);
}
.mktv4-sub-bar {
  height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
}
.mktv4-sub-bar > span {
  display: block; height: 100%; background: var(--mk-green);
  transition: width .3s ease;
}
.mktv4-sub-card[data-tone="warn"]   .mktv4-sub-bar > span { background: var(--mk-amber); }
.mktv4-sub-card[data-tone="danger"] .mktv4-sub-bar > span { background: var(--mk-red); }
.mktv4-sub-card[data-tone="warn"]   .mktv4-sub-meta { color: var(--mk-amber); }
.mktv4-sub-card[data-tone="danger"] .mktv4-sub-meta { color: var(--mk-red); }
.mktv4-sub-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 36px; padding: 8px 14px;
  border: 1px solid rgba(0,212,255,0.40); border-radius: 4px;
  background: rgba(0,212,255,0.08);
  color: var(--mk-cyan);
  font-family: var(--mk-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.mktv4-sub-btn:hover { background: var(--mk-cyan); color: #001220; border-color: var(--mk-cyan); }

/* ── Planos (3 linhas) ─────────────────────────────────────────────── */
.mktv4-plans-list { display: flex; flex-direction: column; gap: 8px; }
.mktv4-plan-row {
  border: 1px solid var(--mk-line); border-radius: 5px;
  background: var(--mk-bg-elev);
  overflow: hidden;
  transition: border-color .15s;
}
.mktv4-plan-row:hover { border-color: var(--mk-line-3); }
.mktv4-plan-row[open] { border-color: var(--mk-line-3); }
.mktv4-plan-row--accent {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.12), 0 8px 28px -8px rgba(59,130,246,0.35);
  background: linear-gradient(180deg, rgba(59,130,246,0.06), var(--mk-bg-elev));
}
.mktv4-plan-row--accent:hover { border-color: rgba(59,130,246,0.6); }
.mktv4-plan-row--current { box-shadow: inset 3px 0 0 var(--mk-green); }

.mktv4-plan-summary {
  list-style: none; cursor: pointer; user-select: none;
  display: grid; grid-template-columns: 1fr auto 18px;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  min-height: 36px;
}
.mktv4-plan-summary::-webkit-details-marker { display: none; }
.mktv4-plan-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mktv4-plan-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mk-fg-mute);
}
.mktv4-plan-row--accent .mktv4-plan-dot { background: var(--mk-blue); box-shadow: 0 0 8px var(--mk-blue); }
.mktv4-plan-row--current .mktv4-plan-dot { background: var(--mk-green); box-shadow: 0 0 8px var(--mk-green); }
.mktv4-plan-name {
  font-family: var(--mk-mono); font-size: 14px; font-weight: 700;
  letter-spacing: 0.10em; color: var(--mk-fg);
}
.mktv4-plan-tag {
  font-family: var(--mk-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mk-green); padding: 2px 6px;
  border: 1px solid rgba(16,185,129,0.4); border-radius: 3px;
}
.mktv4-plan-price { display: inline-flex; align-items: baseline; gap: 4px; }
.mktv4-plan-cur {
  font-family: var(--mk-mono); font-size: 15px; font-weight: 700;
  color: var(--mk-fg); font-variant-numeric: tabular-nums;
}
.mktv4-plan-per {
  font-family: var(--mk-mono); font-size: 11px; font-weight: 500;
  color: var(--mk-fg-mute);
}
.mktv4-plan-chev {
  color: var(--mk-fg-mute);
  transition: transform .15s, color .15s;
}
.mktv4-plan-row[open] .mktv4-plan-chev { transform: rotate(180deg); color: var(--mk-cyan); }

.mktv4-plan-body {
  padding: 4px 16px 16px;
  border-top: 1px dashed var(--mk-line);
}
.mktv4-plan-features {
  list-style: none; padding: 12px 0 14px; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
}
.mktv4-plan-features li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mk-sans); font-size: 13px; color: var(--mk-fg-soft);
}
.mktv4-plan-features svg { color: var(--mk-cyan); flex-shrink: 0; }
.mktv4-plan-foot { display: flex; justify-content: flex-end; }
.mktv4-plan-cta {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 9px 18px;
  border: 1px solid var(--mk-line-2); border-radius: 4px;
  background: rgba(255,255,255,0.02);
  color: var(--mk-fg-soft);
  font-family: var(--mk-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: all .15s;
}
.mktv4-plan-cta:hover { color: var(--mk-fg); border-color: var(--mk-line-3); }
.mktv4-plan-cta--accent {
  color: #fff;
  border-color: rgba(59,130,246,0.5);
  background: linear-gradient(180deg, rgba(59,130,246,0.30), rgba(123,92,255,0.20));
  box-shadow: 0 6px 18px -6px rgba(59,130,246,0.55);
}
.mktv4-plan-cta--accent:hover {
  background: linear-gradient(180deg, rgba(59,130,246,0.45), rgba(123,92,255,0.30));
  border-color: var(--mk-blue);
}
.mktv4-plan-current {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 9px 18px;
  font-family: var(--mk-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mk-green);
  border: 1px solid rgba(16,185,129,0.4); border-radius: 4px;
  background: rgba(16,185,129,0.06);
}

/* ── Disponíveis (tabela) ──────────────────────────────────────────── */
.mktv4-avail-table { display: flex; flex-direction: column; }
.mktv4-avail-thead,
.mktv4-avail-row {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) minmax(140px, 1.2fr) 80px 110px 110px;
  gap: 12px; align-items: center;
  padding: 10px 12px;
}
.mktv4-avail-thead {
  font-family: var(--mk-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mk-fg-mute);
  border-bottom: 1px solid var(--mk-line);
  padding-bottom: 12px;
}
.mktv4-avail-tbody { display: flex; flex-direction: column; }
.mktv4-avail-row {
  border-bottom: 1px solid rgba(120,160,220,0.06);
  transition: background .12s;
}
.mktv4-avail-row:hover { background: rgba(255,255,255,0.025); }
.mktv4-avail-row.is-full { opacity: 0.55; }
.mktv4-avail-c1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mktv4-avail-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 4px;
  background: linear-gradient(135deg, rgba(0,212,255,0.14), rgba(123,92,255,0.18));
  border: 1px solid rgba(0,212,255,0.28);
  font-family: var(--mk-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; color: #fff; flex-shrink: 0;
}
.mktv4-avail-label {
  font-family: var(--mk-sans); font-size: 13px; font-weight: 600;
  color: var(--mk-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.mktv4-badge {
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 3px;
  font-family: var(--mk-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid currentColor;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.mktv4-badge--hot { color: var(--mk-pink); box-shadow: 0 0 8px rgba(236,72,153,0.35); }
.mktv4-avail-c2 { display: flex; align-items: center; gap: 8px; }
.mktv4-dots { display: inline-flex; gap: 3px; }
.mktv4-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mk-green);
  box-shadow: 0 0 4px rgba(16,185,129,0.55);
}
.mktv4-dot.is-used {
  background: rgba(120,160,220,0.18);
  box-shadow: none;
}
.mktv4-avail-frac {
  font-family: var(--mk-mono); font-size: 11px; font-weight: 700;
  color: var(--mk-fg-soft); font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.mktv4-mono-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 9px; border-radius: 3px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--mk-line);
  font-family: var(--mk-mono); font-size: 11px; font-weight: 600;
  color: var(--mk-fg-soft); font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.mktv4-avail-c4 { display: inline-flex; align-items: baseline; gap: 4px; }
.mktv4-avail-cur {
  font-family: var(--mk-mono); font-size: 11px; font-weight: 600;
  color: var(--mk-cyan-soft);
}
.mktv4-avail-val {
  font-family: var(--mk-mono); font-size: 15px; font-weight: 700;
  color: var(--mk-fg); font-variant-numeric: tabular-nums;
}
.mktv4-avail-c5 { display: flex; justify-content: flex-end; }
.mktv4-avail-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; min-width: 96px; padding: 8px 16px;
  border: 1px solid rgba(16,185,129,0.45); border-radius: 4px;
  background: rgba(16,185,129,0.08);
  color: var(--mk-green);
  font-family: var(--mk-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: all .15s;
}
.mktv4-avail-btn:hover { background: var(--mk-green); color: #002418; border-color: var(--mk-green); }
.mktv4-avail-btn.is-full,
.mktv4-avail-btn:disabled {
  background: transparent; color: var(--mk-fg-mute);
  border-color: var(--mk-line); cursor: not-allowed;
}

/* ── Feed (community) ──────────────────────────────────────────────── */
.mktv4-feed-search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--mk-line-2); border-radius: 4px;
  background: rgba(255,255,255,0.02);
  color: var(--mk-fg-mute);
  min-width: 240px;
}
.mktv4-feed-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--mk-fg); font-family: var(--mk-sans); font-size: 13px;
  min-width: 0;
}
.mktv4-feed-search input::placeholder { color: var(--mk-fg-mute); }
.mktv4-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 0 14px; }
.mktv4-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 6px 12px;
  border: 1px solid var(--mk-line); border-radius: 14px;
  background: transparent;
  color: var(--mk-fg-mute);
  font-family: var(--mk-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: all .15s;
}
.mktv4-chip:hover { color: var(--mk-fg-soft); border-color: var(--mk-line-3); }
.mktv4-chip.active {
  color: var(--mk-cyan); border-color: rgba(0,212,255,0.45);
  background: rgba(0,212,255,0.08);
}
.mktv4-feed-grid {
  display: flex; flex-direction: column; gap: 18px;
}
.mktv4-feed-grid .mkt-grid,
.mktv4-feed-grid .mkt-mine-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.mktv4-feed-grid .mkt-section { display: flex; flex-direction: column; gap: 10px; }
/* override card text colors inside dark scope so legacy .mkt-card still reads */
.mktv4-console .mkt-card {
  background: var(--mk-bg-elev) !important;
  border: 1px solid var(--mk-line) !important;
  color: var(--mk-fg) !important;
  border-radius: 5px !important;
  overflow: hidden;
}
.mktv4-console .mkt-card:hover { border-color: var(--mk-line-3) !important; }
.mktv4-console .mkt-card-title { color: var(--mk-fg) !important; }
.mktv4-console .mkt-card-desc,
.mktv4-console .mkt-card-author { color: var(--mk-fg-soft) !important; }
.mktv4-console .mkt-price { color: var(--mk-cyan) !important; font-family: var(--mk-mono); font-variant-numeric: tabular-nums; }
.mktv4-console .mkt-section-head { color: var(--mk-fg-mute); font-family: var(--mk-mono); letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.mktv4-console .mkt-section-count { color: var(--mk-cyan-soft); }
.mktv4-console .mkt-card-img { background-color: var(--mk-bg-sunk); }
.mktv4-console .mkt-card-contact,
.mktv4-console .mkt-card-edit,
.mktv4-console .mkt-card-del,
.mktv4-console .mkt-card-report {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--mk-line-2) !important;
  color: var(--mk-fg-soft) !important;
  border-radius: 4px;
  font-family: var(--mk-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.mktv4-console .mkt-card-contact:hover { border-color: rgba(0,212,255,0.5) !important; color: var(--mk-cyan) !important; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .mktv4-ledger { grid-template-columns: 1fr; }
  .mktv4-ledger-left { border-right: 0; border-bottom: 1px solid var(--mk-line); }
  .mktv4-avail-thead,
  .mktv4-avail-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "c1 c5"
      "c2 c4"
      "c3 c3";
    gap: 8px;
    padding: 12px;
  }
  .mktv4-avail-thead { display: none; }
  .mktv4-avail-c1 { grid-area: c1; }
  .mktv4-avail-c2 { grid-area: c2; }
  .mktv4-avail-c3 { grid-area: c3; justify-self: start; }
  .mktv4-avail-c4 { grid-area: c4; justify-self: end; }
  .mktv4-avail-c5 { grid-area: c5; }
  .mktv4-plan-features { grid-template-columns: 1fr; }
  .mktv4-balance-val { font-size: 30px; }
  .mktv4-tabs { top: 60px; }
  .mktv4-feed-search { min-width: 0; flex: 1; }
}
@media (max-width: 600px) {
  .mktv4-console { padding: 14px 12px 40px; border-radius: 6px; }
  .mktv4-card { padding: 14px 12px; }
  .mktv4-title { font-size: 18px; }
  .mktv4-topbar-right { width: 100%; }
  .mktv4-btn { flex: 1; justify-content: center; }
  .mktv4-tab { padding: 8px 10px; font-size: 10px; letter-spacing: 0.12em; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .mktv4-console *, .mktv4-console *::before, .mktv4-console *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   HAON_GENERATOR_V1_20260529 — Palantir/Tesla cream-light, clone do Flash.
   Tokens: #FBFAF5 bg, #FFFFFF elev, #F5F2EA sunk, #0E1F2E ink,
   #2D3BFF → #7B5CFF → #00B8E0 gradient. Theme-safe via overrides.
   ════════════════════════════════════════════════════════════════════ */
.gen-page {
  --gen-bg: #FBFAF5; --gen-elev: #FFFFFF; --gen-sunk: #F5F2EA;
  --gen-ink: #0E1F2E; --gen-ink-2: #1F2D3D; --gen-mute: #6B7B8C;
  --gen-line: rgba(14,31,46,0.12); --gen-line-soft: rgba(14,31,46,0.06);
  --gen-blue: #2D3BFF; --gen-violet: #7B5CFF; --gen-cyan: #00B8E0;
  --gen-ok: #16a34a; --gen-warn: #d97706; --gen-err: #dc2626;
  background: var(--gen-bg); color: var(--gen-ink);
  font-family: var(--ui);
  min-height: calc(100vh - 60px);
  padding: 22px clamp(14px, 4vw, 32px) 48px;
}
body.theme-light .gen-page,
body:not(.theme-light):not(.theme-matte):not(.theme-navy) .gen-page { /* light + default */
  background: var(--gen-bg);
}
body.theme-matte .gen-page {
  --gen-bg: #0a0a0a; --gen-elev: #161616; --gen-sunk: #111;
  --gen-ink: #ffffff; --gen-ink-2: #e8e8e8; --gen-mute: #a0a0a0;
  --gen-line: rgba(255,255,255,0.10); --gen-line-soft: rgba(255,255,255,0.06);
}
body.theme-navy .gen-page {
  --gen-bg: #0F172A; --gen-elev: #1E293B; --gen-sunk: #131C2E;
  --gen-ink: #F8FAFC; --gen-ink-2: #E2E8F0; --gen-mute: #94A3B8;
  --gen-line: rgba(255,255,255,0.08); --gen-line-soft: rgba(255,255,255,0.04);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.gen-hero { max-width: 1280px; margin: 0 auto 22px; padding: 0 4px; }
.gen-hero-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gen-violet); font-weight: 700; margin-bottom: 8px;
}
.gen-hero-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  margin: 0 0 6px; color: var(--gen-ink); letter-spacing: -0.01em;
  line-height: 1.15;
}
.gen-hero-sub { font-size: 14.5px; color: var(--gen-mute); margin: 0 0 14px; line-height: 1.55; max-width: 720px; }
.gen-hero-quota { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gen-quota-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--gen-elev); border: 1px solid var(--gen-line); color: var(--gen-ink);
}
.gen-quota-pill--free { background: linear-gradient(135deg, rgba(123,92,255,.10), rgba(45,59,255,.06)); border-color: rgba(123,92,255,.30); color: var(--gen-violet); }
.gen-quota-pill--pay  { background: var(--gen-sunk); }
.gen-quota-pill--warn { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.30); color: var(--gen-err); }
.gen-quota-pill--loading { opacity: .6; }
.gen-quota-sep { color: var(--gen-mute); font-size: 13px; }

/* ── SHELL ────────────────────────────────────────────────────── */
.gen-shell {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px; align-items: start;
}
@media (max-width: 920px) { .gen-shell { grid-template-columns: 1fr; } }

/* ── FORM ─────────────────────────────────────────────────────── */
.gen-form {
  background: var(--gen-elev);
  border: 1px solid var(--gen-line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 0 var(--gen-line-soft), 0 8px 24px -16px rgba(14,31,46,.10);
}
body.theme-matte .gen-form,
body.theme-navy .gen-form { box-shadow: none; }
.gen-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.gen-mode-btn {
  display: grid; grid-template-rows: auto auto auto; gap: 4px; align-items: center; justify-items: start;
  padding: 14px 16px; border-radius: 10px;
  background: var(--gen-sunk); border: 1px solid var(--gen-line);
  color: var(--gen-ink); font-family: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .2s;
  text-align: left;
}
.gen-mode-btn span { font-size: 15px; font-weight: 700; color: var(--gen-ink); }
.gen-mode-btn small { font-size: 11px; color: var(--gen-mute); letter-spacing: .04em; }
.gen-mode-btn svg { color: var(--gen-mute); }
.gen-mode-btn:hover { border-color: rgba(123,92,255,.40); background: var(--gen-elev); }
.gen-mode-btn.is-active {
  border-color: var(--gen-violet); background: linear-gradient(135deg, rgba(45,59,255,.06), rgba(0,184,224,.05));
  box-shadow: 0 0 0 1px var(--gen-violet), 0 8px 24px -10px rgba(123,92,255,.40);
}
.gen-mode-btn.is-active svg { color: var(--gen-violet); }

.gen-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gen-mute); font-weight: 700; margin: 16px 0 6px;
}
.gen-label-hint { color: var(--gen-mute); font-weight: 600; letter-spacing: .02em; }
.gen-textarea {
  width: 100%; box-sizing: border-box;
  background: var(--gen-bg); border: 1px solid var(--gen-line);
  border-radius: 10px; padding: 12px 14px; resize: vertical;
  font-family: inherit; font-size: 14.5px; line-height: 1.55;
  color: var(--gen-ink); outline: none; min-height: 120px;
  transition: border-color .15s, box-shadow .15s;
}
.gen-textarea::placeholder { color: var(--gen-mute); }
.gen-textarea:focus { border-color: var(--gen-violet); box-shadow: 0 0 0 3px rgba(123,92,255,.12); }
body.theme-matte .gen-textarea { background: #0a0a0a; }

/* ── INGREDIENTS ──────────────────────────────────────────────── */
.gen-ingredients { margin-top: 18px; border: 1px solid var(--gen-line); border-radius: 10px; background: var(--gen-sunk); }
.gen-ingredients[open] { background: var(--gen-elev); }
.gen-ingredients-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; list-style: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gen-ink-2); font-weight: 700;
}
.gen-ingredients-head::-webkit-details-marker { display: none; }
.gen-ingredients-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.gen-ing-count { color: var(--gen-violet); font-size: 11px; }
.gen-ing-body { padding: 0 14px 14px; }
.gen-ing-hint { font-size: 12.5px; color: var(--gen-mute); margin: 0 0 10px; }
.gen-ing-drop {
  border: 1.5px dashed var(--gen-line); border-radius: 10px;
  padding: 22px 14px; text-align: center;
  background: repeating-linear-gradient(135deg, transparent 0 8px, var(--gen-line-soft) 8px 9px);
  transition: border-color .15s, background .15s;
}
.gen-ing-drop.is-drag { border-color: var(--gen-violet); background: rgba(123,92,255,.06); }
.gen-ing-drop-text { font-size: 13px; color: var(--gen-mute); }
.gen-link { background: none; border: none; color: var(--gen-blue); cursor: pointer; font-family: inherit; padding: 0; text-decoration: underline; font-weight: 600; }
.gen-link:hover { color: var(--gen-violet); }
.gen-ing-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gen-ing-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gen-bg); border: 1px solid var(--gen-line);
  border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 12px;
  max-width: 240px;
}
.gen-ing-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.gen-ing-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.gen-ing-x { background: none; border: none; color: var(--gen-mute); cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 50%; }
.gen-ing-x:hover { color: var(--gen-err); background: rgba(220,38,38,.08); }

/* ── MODALITY (chips) ──────────────────────────────────────────── */
.gen-modality { margin-top: 6px; }
.gen-modality-row { margin-top: 12px; }
.gen-modality-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gen-chip {
  background: var(--gen-sunk); border: 1px solid var(--gen-line);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px;
  font-family: inherit; font-weight: 600; color: var(--gen-ink-2); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.gen-chip:hover { border-color: rgba(123,92,255,.40); color: var(--gen-ink); }
.gen-chip.is-active {
  background: linear-gradient(135deg, var(--gen-blue), var(--gen-violet));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(123,92,255,.40);
}

/* ── SUBMIT ────────────────────────────────────────────────────── */
.gen-submit {
  margin-top: 22px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--gen-blue), var(--gen-violet), var(--gen-cyan));
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: filter .15s, transform .1s, box-shadow .2s;
  box-shadow: 0 8px 24px -8px rgba(123,92,255,.55);
}
.gen-submit:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 12px 32px -8px rgba(123,92,255,.65); }
.gen-submit:active:not(:disabled) { transform: scale(.985); }
.gen-submit:disabled { opacity: .65; cursor: progress; }
.gen-submit-meta { margin-top: 10px; font-size: 12.5px; min-height: 18px; text-align: center; }
.gen-meta-ok   { color: var(--gen-ok); display: inline-flex; align-items: center; gap: 4px; }
.gen-meta-warn { color: var(--gen-warn); }

/* ── STATUS ────────────────────────────────────────────────────── */
.gen-status {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.5;
  display: flex; align-items: center; gap: 8px;
}
.gen-status--info { background: rgba(45,59,255,.06); border: 1px solid rgba(45,59,255,.20); color: var(--gen-ink); }
.gen-status--ok   { background: rgba(22,163,74,.10); border: 1px solid rgba(22,163,74,.30); color: var(--gen-ok); }
.gen-status--err  { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.30); color: var(--gen-err); }

/* ── HISTORY ───────────────────────────────────────────────────── */
.gen-history {
  background: var(--gen-elev); border: 1px solid var(--gen-line);
  border-radius: 14px; padding: 18px; position: sticky; top: 84px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
body.theme-matte .gen-history, body.theme-navy .gen-history { box-shadow: none; }
.gen-history-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--gen-line);
}
.gen-history-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gen-mute); font-weight: 700;
}
.gen-history-body { display: grid; gap: 12px; }
.gen-history-empty {
  text-align: center; color: var(--gen-mute); font-size: 13px; padding: 24px 12px;
  font-style: italic;
}
.gen-job-card {
  display: grid; grid-template-rows: auto auto auto auto; gap: 6px;
  padding: 10px; background: var(--gen-sunk);
  border: 1px solid var(--gen-line-soft); border-radius: 10px;
}
.gen-job-media {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 7px; background: var(--gen-bg);
  display: block;
}
.gen-job-media--ph { display: grid; place-items: center; color: var(--gen-mute); }
.gen-job-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gen-job-st {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.gen-job-st--queued  { background: rgba(107,123,140,.15); color: var(--gen-mute); }
.gen-job-st--running { background: rgba(45,59,255,.12); color: var(--gen-blue); }
.gen-job-st--done    { background: rgba(22,163,74,.12); color: var(--gen-ok); }
.gen-job-st--failed  { background: rgba(220,38,38,.10); color: var(--gen-err); }
.gen-job-mode {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: .12em; color: var(--gen-mute); font-weight: 700;
}
.gen-job-cost { font-size: 11px; color: var(--gen-mute); margin-left: auto; }
.gen-job-prompt { font-size: 12.5px; color: var(--gen-ink-2); line-height: 1.4; }
.gen-job-time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--gen-mute); letter-spacing: .06em;
}

@keyframes gen-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .gen-page { padding: 16px 12px 32px; }
  .gen-history { position: static; max-height: none; }
  .gen-modality-row--split { grid-template-columns: 1fr; }
}


/* ──────────────────────────────────────────────────────────────────
   PRICING_FREE_V3_20260530 — Polish: glass + soft aurora + delightful
   Overrides V2 (cascade order). Same markup, modern aesthetic.
   ────────────────────────────────────────────────────────────────── */
.pricing-free-zone {
  margin: 36px auto 28px;
  text-align: center;
  padding: 0 16px;
}
.pricing-free-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.16em !important;
  color: rgba(123,92,255,0.85) !important;
  margin: 0 auto 22px !important;
  position: relative;
}
.pricing-free-label::before,
.pricing-free-label::after {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,92,255,0.45));
  display: block;
}
.pricing-free-label::after {
  background: linear-gradient(270deg, transparent, rgba(123,92,255,0.45));
}

.pricing-free-grid--single {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto 18px !important;
}

.pricing-free-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 26px 24px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    linear-gradient(140deg, rgba(15,23,42,0.94), rgba(20,16,44,0.97)) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: #F8FAFC;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.18,1.18,.42,1), border-color .3s, box-shadow .35s !important;
  --mx: 50%;
  --my: 50%;
  box-shadow:
    0 22px 58px -18px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(255,255,255,0.05) inset !important;
  animation: none !important;
}

/* Aurora line at top */
.pricing-free-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--brand1, #7B5CFF), var(--brand2, #00D4FF), transparent 95%);
  opacity: 0.65;
  pointer-events: none;
  z-index: 3;
}

/* Soft outer aura — REPLACES aggressive conic spin */
.pricing-free-card-halo {
  position: absolute !important;
  inset: -40% !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: radial-gradient(circle, var(--glow, rgba(123,92,255,0.35)), transparent 55%) !important;
  -webkit-mask: none !important;
          mask: none !important;
  opacity: 0.45 !important;
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
  animation: pfcAuraBreathe 6s ease-in-out infinite !important;
}

.pricing-free-card-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(440px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--brand1) 20%, transparent),
    transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.pricing-free-card:hover .pricing-free-card-spotlight { opacity: 1; }

.pricing-free-card-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, var(--brand1), var(--brand2)) !important;
  box-shadow:
    0 16px 32px -10px var(--glow, rgba(0,0,0,0.4)),
    inset 0 -3px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.22) !important;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  transition: transform .4s cubic-bezier(.18,1.32,.42,1);
}
.pricing-free-card:hover .pricing-free-card-icon {
  transform: translateY(-3px) rotate(-3deg) scale(1.04);
}
.pricing-free-card-icon svg {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  width: 34px !important;
  height: 34px !important;
}

.pricing-free-card-name {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--brand1), var(--brand2)) !important;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.018em !important;
  line-height: 1.12 !important;
  z-index: 1;
  position: relative;
  margin-top: 2px;
}
.pricing-free-card-sub {
  font-size: 0.86rem !important;
  color: rgba(255,255,255,0.72) !important;
  font-weight: 500 !important;
  z-index: 1;
  position: relative;
  line-height: 1.4;
}

.pricing-free-card-cta {
  margin-top: 12px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--brand1), var(--brand2)) !important;
  border: none !important;
  box-shadow:
    0 10px 22px -7px var(--glow, rgba(123,92,255,0.55)),
    inset 0 1px 0 rgba(255,255,255,0.22) !important;
  z-index: 1;
  position: relative;
  transition: transform .25s, box-shadow .3s, padding .3s;
}
.pricing-free-card-cta .pfc-arrow {
  display: inline-block;
  transition: transform .35s cubic-bezier(.18,1.18,.42,1);
}
.pricing-free-card:hover .pricing-free-card-cta {
  padding-right: 26px !important;
  box-shadow:
    0 16px 32px -7px var(--glow, rgba(123,92,255,0.7)),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
.pricing-free-card:hover .pricing-free-card-cta .pfc-arrow {
  transform: translateX(4px);
}

.pricing-free-card:hover {
  transform: translateY(-5px) !important;
  border-color: color-mix(in srgb, var(--brand1) 38%, rgba(255,255,255,0.07)) !important;
  box-shadow:
    0 32px 70px -18px rgba(0,0,0,0.6),
    0 0 0 1px color-mix(in srgb, var(--brand1) 32%, transparent),
    0 0 50px -8px var(--glow, rgba(123,92,255,0.35)) !important;
}

.pricing-free-fine {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.55) !important;
  margin: 16px auto 0 !important;
  max-width: 380px;
  line-height: 1.55;
  font-weight: 500;
}

/* Override V2 animations */
@keyframes pfcPulse { 0%, 100% { box-shadow: 0 22px 58px -18px rgba(0,0,0,0.55); } }
@keyframes pfcAuraBreathe {
  0%, 100% { opacity: 0.38; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.1); }
}
@keyframes pfcHaloSpin { to {} }  /* neutralize V2 spin */

@media (prefers-reduced-motion: reduce) {
  .pricing-free-card,
  .pricing-free-card-halo,
  .pricing-free-card-icon,
  .pricing-free-card-cta,
  .pricing-free-card-cta .pfc-arrow {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .pricing-free-grid--single { max-width: calc(100vw - 32px); }
  .pricing-free-card { padding: 24px 20px 20px !important; gap: 10px; }
  .pricing-free-card-name { font-size: 1.08rem !important; }
  .pricing-free-card-icon { width: 56px !important; height: 56px !important; }
  .pricing-free-card-icon svg { width: 30px !important; height: 30px !important; }
}
/* END PRICING_FREE_V3_20260530 */
