/* ==========================================================================
   PostAI — tema escuro vibrante
   ========================================================================== */
:root {
  --bg: #0b0a12;
  --bg-2: #12111c;
  --card: #16151f;
  --card-2: #1d1b29;
  --line: #2a2838;
  --line-2: #3a3750;
  --ink: #f5f3fb;
  --muted: #9b97b2;
  --violet: #6d5cf6;
  --pink: #4f7dff;
  --orange: #ec4899;
  --grad: linear-gradient(120deg, #2563eb 0%, #6d5cf6 50%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, rgba(37, 99, 235, .16), rgba(109, 92, 246, .12) 50%, rgba(236, 72, 153, .12));
  --ig: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5);
  --tt-cyan: #25f4ee;
  --tt-pink: #fe2c55;
  --yt: #ff2d55;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --radius: 18px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --tabbar-h: 72px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
}
.glow {
  position: fixed; inset: -20% -10% auto; height: 60vh; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 20% 20%, rgba(236, 72, 153, .28), transparent 70%),
              radial-gradient(40% 50% at 85% 10%, rgba(59, 130, 246, .22), transparent 70%),
              radial-gradient(35% 45% at 60% 40%, rgba(37, 99, 235, .12), transparent 70%);
  filter: blur(10px);
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small-text { font-size: 13px; margin: 4px 0 0; }
em { font-style: normal; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- topo --- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  background: rgba(11, 10, 18, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.tab-title { font-weight: 600; color: var(--muted); font-size: 14px; }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px 0; }

/* -------------------------------------------------------------- cards --- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)) , var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.hero-card { background: var(--grad-soft), var(--card); border-color: rgba(59, 130, 246, .25); }
h1, h2, h3 { margin: 0 0 10px; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3.sub { font-size: 15px; font-weight: 700; color: var(--muted); margin: 22px 4px 10px; text-transform: uppercase; letter-spacing: .06em; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ------------------------------------------------------------- campos --- */
label { display: block; margin: 14px 0; font-weight: 600; font-size: 14px; }
input[type=email], input[type=password], input[type=url], input:not([type]), input[type=datetime-local], textarea, select {
  width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: 500 15px var(--sans); background: var(--bg-2); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #66627d; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
input:disabled { opacity: .45; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--pink); width: 17px; height: 17px; }
input[type=range] { width: 100%; accent-color: var(--pink); }
::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }

/* ------------------------------------------------------------- botões --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 12px; padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--grad); color: #fff; font: 700 15px var(--sans); text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, .55); transition: transform .12s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.small { width: auto; padding: 9px 14px; font-size: 13px; margin: 0; border-radius: 11px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--pink); }
a.btn { display: inline-flex; }
.link { background: none; border: 0; color: #f9a8d4; font: 600 14px var(--sans); cursor: pointer; padding: 8px 0; }
#btn-signup { display: block; margin: 8px auto 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink); font: 600 14px var(--sans);
}
.icon-btn svg { width: 18px; height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink); font: 600 13px var(--sans);
}
.pill svg { width: 16px; height: 16px; }
.pill.grad { background: var(--grad); border: 0; color: #fff; }

/* -------------------------------------------------------------- login --- */
.auth { max-width: 420px; margin: 4vh auto 0; }
.auth-hero { text-align: center; margin-bottom: 22px; }
.auth-logo { width: 68px; height: 68px; border-radius: 20px; box-shadow: 0 12px 40px -10px rgba(59, 130, 246, .7); margin-bottom: 18px; }
.auth-hero p { margin: 8px 0 0; }

/* ---------------------------------------------------------- calendário --- */
.cal-card { padding: 14px 14px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.cal-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 10px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.legend .d { margin-left: 6px; }
.d { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.d.instagram { background: var(--ig); }
.d.tiktok { background: linear-gradient(135deg, var(--tt-cyan) 50%, var(--tt-pink) 50%); }
.d.youtube { background: var(--yt); }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-week span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1.15; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  background: var(--bg-2); color: var(--ink); font: 700 13px var(--sans); padding: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: border-color .15s, transform .1s;
}
.cal-day:active { transform: scale(.96); }
.cal-day.out { opacity: .3; }
.cal-day .num { margin-top: 6px; line-height: 20px; min-width: 22px; text-align: center; }
.cal-day.today .num { background: var(--grad); color: #fff; border-radius: 999px; padding: 0 6px; }
.cal-day.sel { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset, 0 6px 18px -8px rgba(59, 130, 246, .7); }
.cal-day.has { background: linear-gradient(180deg, rgba(236, 72, 153, .16), rgba(59, 130, 246, .08)), var(--bg-2); }
.cal-day .mini { width: 46%; aspect-ratio: 4 / 5; border-radius: 5px; object-fit: cover; background: var(--card-2); }
.cal-day .dots { display: flex; gap: 3px; margin-bottom: 6px; min-height: 7px; }
.cal-day .count { font-size: 9px; font-weight: 800; color: #93c5fd; line-height: 7px; margin-left: 1px; }
.cal-day .mini { display: none; }
@media (min-width: 560px) { .cal-day .mini { display: block; } }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 2px 12px; }
.day-head h2 { margin: 0; font-size: 16px; }
.day-head .pill { white-space: nowrap; flex: none; }

/* ----------------------------------------------------- lista de posts --- */
.agenda { display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; padding: 26px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.thumb { width: 76px; height: 104px; border-radius: 12px; object-fit: cover; background: var(--card-2); }
.item .date { font-weight: 800; font-size: 15px; }
.item .cap { color: var(--muted); font-size: 13px; margin: 3px 0 9px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.chip.published::before, .chip.scheduled_on_platform::before { background: var(--ok); }
.chip.published, .chip.scheduled_on_platform { color: #a7f3d0; border-color: rgba(52, 211, 153, .3); }
.chip.sent_inbox::before { background: var(--warn); }
.chip.sent_inbox { color: #fde68a; border-color: rgba(251, 191, 36, .3); }
.chip.error::before { background: var(--bad); }
.chip.error { color: #fecdd3; border-color: rgba(251, 113, 133, .35); cursor: help; }
.chip.pending::before, .chip.processing::before, .chip.uploading::before { background: #a78bfa; }
.item-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.err-line { font-size: 12px; margin: 6px 0 0; color: #fda4af; }

/* -------------------------------------------------------- novo post --- */
.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 26px 16px; text-align: center; background: var(--grad-soft); cursor: pointer; transition: border-color .15s; }
.drop:hover { border-color: var(--pink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#drop-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 6px; }
.editor { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--bg-2); }
#video-prev { width: 100%; max-height: 380px; border-radius: 12px; background: #000; }
.cover-box { margin-top: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.seg label, .seg button { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.seg label:has(input:checked), .seg button.on { border-color: transparent; background: var(--grad); color: #fff; }
.seg input[type=radio] { display: none; }
.cover-canvas { display: block; max-width: 150px; max-height: 266px; border-radius: 10px; margin: 10px 0; border: 1px solid var(--line); }
.crop-stage { position: relative; overflow: hidden; width: 100%; max-width: 380px; margin: 10px auto; border-radius: 12px; background: #000; touch-action: none; cursor: grab; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; transform-origin: 0 0; user-select: none; pointer-events: none; max-width: none; }

.nets { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.nets legend { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.net { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 14px; font-weight: 700; cursor: pointer; background: var(--bg-2); transition: all .15s; }
.net input { display: none; }
.net:has(input:checked) { border-color: var(--pink); background: rgba(59, 130, 246, .12); box-shadow: 0 0 0 1px var(--pink) inset; }
.net:has(input:disabled) { opacity: .4; cursor: not-allowed; }

.counter { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }
.custom { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: var(--bg-2); }
.custom summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.custom summary::-webkit-details-marker { display: none; }
.custom summary::after { content: '＋'; color: var(--pink); font-weight: 800; }
.custom[open] summary::after { content: '－'; }
.auto-inline { border-color: rgba(59, 130, 246, .3); background: var(--grad-soft), var(--bg-2); }
.when { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.when label:first-child { flex: 1; min-width: 200px; }
.inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }

/* --------------------------------------------------------- automações --- */
.auto-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.scope { border: 0; padding: 0; margin: 14px 0; }
.scope legend { font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.scope .inline { display: flex; margin: 8px 0; font-weight: 500; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.ig-grid button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; background: var(--card-2); cursor: pointer; }
.ig-grid button.on { border-color: var(--pink); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.autos { display: flex; flex-direction: column; gap: 10px; }
.auto { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.auto.off { opacity: .5; }
.auto .t { font-weight: 700; }
.auto .d { font-size: 13px; color: var(--muted); width: auto; height: auto; border-radius: 0; display: block; background: none; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::before { transform: translateX(20px); }
.events { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ev { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.ev b { font-weight: 700; }

/* -------------------------------------------------------------- conta --- */
.accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.acc { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); overflow: hidden; }
.acc::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; }
.acc.instagram::before { background: var(--ig); }
.acc.tiktok::before { background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink)); }
.acc.youtube::before { background: var(--yt); }
.acc .name { font-weight: 800; }
.acc .who { font-size: 13px; color: var(--ok); font-weight: 600; }
.acc-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.acc-block .item-actions { margin-top: 8px; }
.tag-master { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; margin-left: 6px; }
.install-card { background: var(--grad-soft), var(--card); border-color: rgba(37, 99, 235, .35); }

/* ------------------------------------------------------- barra de abas --- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  width: min(440px, calc(100% - 24px)); height: var(--tabbar-h);
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: 6px;
  background: rgba(22, 21, 31, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; padding: 0 6px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: 600 11px var(--sans); padding: 8px 0; border-radius: 16px; transition: color .15s;
}
.tabbar button.on { color: var(--ink); }
.tabbar button.create svg { width: 26px; height: 26px; padding: 9px; box-sizing: content-box; border-radius: 16px; background: var(--grad); color: #fff; stroke-width: 2.4; margin-top: -26px; box-shadow: 0 10px 24px -6px rgba(59, 130, 246, .75); }
.tabbar button.create.on svg { color: #fff; }

/* -------------------------------------------------------------- aviso --- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--card-2); color: var(--ink); padding: 12px 18px; border-radius: 14px; max-width: 90vw; z-index: 40;
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); font-weight: 600; font-size: 14px;
}

@media (max-width: 420px) {
  h1 { font-size: 26px; }
  .card { padding: 15px; }
  .cal-week, .cal-grid { gap: 4px; }
  .cal-day { border-radius: 10px; font-size: 12px; }
  .legend { display: none; }
}
@media (min-width: 900px) {
  main { padding-top: 26px; }
}

/* ------------------------------------------------------- ícones redes --- */
.net-ic { display: inline-block; width: 26px; height: 26px; border-radius: 8px; flex: none; object-fit: cover; }
.net-ic svg { width: 16px; height: 16px; stroke-width: 2.1; }
.net { padding: 8px 14px 8px 8px; }
.chip { padding: 3px 10px 3px 3px; }
.chip::before { display: none; }
.chip .net-ic { width: 20px; height: 20px; border-radius: 999px; }
.net:has(input:disabled) .net-ic { filter: grayscale(1); }
.chip .net-ic svg { width: 12px; height: 12px; }
.acc-top { display: flex; align-items: center; gap: 10px; }
.acc-top .net-ic { width: 34px; height: 34px; border-radius: 11px; }
.acc-top .net-ic svg { width: 19px; height: 19px; }
.acc .btn.small { justify-content: center; }

/* ---------------------------------------------------------------- capa --- */
.h-ic { display: flex; align-items: center; gap: 8px; margin: 0; }
.h-ic svg { width: 20px; height: 20px; color: #93c5fd; }
.cover-card #cover-hint { margin-top: 8px; }

/* ------------------------------------------------------- separador seção --- */
.section-sep { display: flex; align-items: center; gap: 12px; margin: 28px 2px 14px; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.section-sep::before, .section-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ----------------------------------------------------------------- menu --- */
.top-right { display: flex; align-items: center; gap: 12px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(5, 4, 10, .6); backdrop-filter: blur(3px); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 60;
  background: var(--card); border-left: 1px solid var(--line); padding: max(18px, env(safe-area-inset-top)) 14px 18px;
  transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 4px;
}
.drawer.open { transform: none; box-shadow: -20px 0 60px -10px rgba(0, 0, 0, .7); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 4px 4px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.drawer-head strong { display: block; font-size: 14px; word-break: break-all; }
.drawer-head .small-text { display: block; }
.drawer-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; text-align: left; }
.drawer-item svg { color: var(--muted); }
.drawer-item:hover, .drawer-item.on { background: var(--card-2); }
.drawer-item.on svg { color: #93c5fd; }
.drawer-item.danger { color: #fda4af; }
.drawer-item.danger svg { color: #fda4af; }
.drawer-sep { height: 1px; background: var(--line); margin: 8px 0; }
.tabbar button { flex-direction: row; gap: 8px; font-size: 14px; height: 52px; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.on { background: var(--card-2); }
.tabbar button.create svg { width: 22px; height: 22px; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; }
.tabbar button.create { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(59, 130, 246, .7); }
.tabbar button.create.on { background: var(--grad); filter: brightness(1.1); }
.tabbar button.on:not(.create) svg { color: #93c5fd; }

.nowrap { white-space: nowrap; flex: none; }

/* WhatsApp */
.d.whatsapp { background: #22c55e; }
.btn.wa { background: #22c55e; box-shadow: 0 8px 22px -10px rgba(34, 197, 94, .8); color: #062b14; }
.chip.reminder { color: #bbf7d0; border-color: rgba(34, 197, 94, .35); }

/* capa estilo Reels */
.block { display: block; }
.cover-stage { display: flex; justify-content: center; margin: 12px 0 10px; }
.cover-preview { width: 46%; max-width: 220px; aspect-ratio: 9 / 16; height: auto; border-radius: 14px; background: #12111c; border: 1px solid var(--line); box-shadow: 0 16px 40px -18px rgba(59, 130, 246, .6); }
.strip { position: relative; height: 74px; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); touch-action: none; cursor: grab; margin: 6px 0 8px; user-select: none; }
.strip-thumbs { display: flex; height: 100%; }
.strip-thumbs canvas { flex: 1; min-width: 0; height: 100%; object-fit: cover; opacity: .55; }
.strip-loading { margin: auto; }
.strip-win { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 9 / 16; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 999px rgba(5, 4, 10, .35), 0 6px 18px rgba(0, 0, 0, .6); pointer-events: none; }
.cover-text { border-top: 1px solid var(--line); margin-top: 12px; }
.file-btn { position: relative; margin: 6px 0; }
/* assistente */
.ai-assist { margin: 4px 0 12px; }
#ai-open svg { width: 18px; height: 18px; color: #93c5fd; }
.ai-panel { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(59, 130, 246, .35); border-radius: 14px; background: var(--grad-soft), var(--bg-2); }
.ai-panel label { margin: 10px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#ai-go { margin: 6px 0 8px; }

/* planos / recursos */
.mini-h { font-size: 15px; margin: 0 0 4px; }
.feat-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 10px 0; background: var(--bg-2); }
.feat-box .inline { display: flex; margin: 8px 0; font-weight: 600; }
.ai-pick { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.ai-pick .inline { font-weight: 500; }
.feat-box label:last-child { margin-bottom: 4px; }
input[type=date] { width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 500 15px var(--sans); background: var(--bg-2); color: var(--ink); }
.plan-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--grad); color: #fff; margin-left: 4px; vertical-align: middle; }
.plan-badge.bad { background: #be123c; }
.plan-line { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.plan-line .plan-badge { margin: 0 6px 0 0; }
.user-row { flex-direction: column; align-items: stretch; }
.user-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.user-edit { margin-top: 6px; }
.danger-link { color: #fda4af; }
.warn-card { border-color: rgba(251, 113, 133, .45); background: rgba(190, 18, 60, .12); }
.warn-card p { margin: 4px 0 0; }

.period-pick { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.period-pick .seg { margin: 8px 0 0; }

/* resultados */
.tabbar button { font-size: 13px; padding: 0 6px; }
.tabbar button svg { width: 20px; height: 20px; }
.res-nets { margin: 0 0 14px; }
.res-nets button { padding: 6px 12px 6px 6px; }
.res-nets .net-ic { width: 22px; height: 22px; border-radius: 7px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi-v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.kpi-l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (min-width: 620px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.heat { display: grid; grid-template-columns: 34px repeat(8, 1fr); gap: 4px; margin-top: 12px; align-items: center; }
.hx, .hy { font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: center; }
.hy { text-align: left; }
.hc { display: block; aspect-ratio: 1.25; border-radius: 6px; background: #1a1928; }
.hc.l1 { background: #1e2a55; } .hc.l2 { background: #23408f; } .hc.l3 { background: #2557c7; } .hc.l4 { background: #3b75f0; } .hc.l5 { background: #8fb4ff; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.heat-legend .hc { width: 16px; aspect-ratio: 1; }
.sort-seg { margin: 0; }
.sort-seg button { padding: 5px 10px; font-size: 12px; }
.tops { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.top { display: grid; grid-template-columns: 18px 46px 1fr auto; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.top img, .top .ph { width: 46px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--card-2); }
.rank { font-weight: 800; color: var(--muted); font-size: 13px; text-align: center; }
.tcap { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tcap small { display: block; font-size: 11px; }
.tnum { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.tnum b { color: var(--ink); font-size: 14px; }

/* formatos */
.format-seg { margin: 0 0 12px; }
.format-seg button { padding: 9px 14px; }
.fmt-hint { margin: 0 0 10px; }
.multi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 12px; }
.mi { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.mi img, .mi video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-n { position: absolute; top: 5px; left: 5px; background: rgba(0,0,0,.65); color: #fff; font: 800 11px var(--sans); border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; }
.mi-act { position: absolute; inset: auto 4px 4px 4px; display: flex; gap: 4px; justify-content: flex-end; }
.mi-act button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0,0,0,.65); color: #fff; font: 700 14px var(--sans); cursor: pointer; }
.mi-count { grid-column: 1 / -1; margin: 0; }
.bk-preview { margin: 10px 0; }
.bk-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk-list span { font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; text-transform: capitalize; }
.two input { margin-top: 0; }
.two .btn { margin: 0; align-self: center; }
.fmt-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--grad-soft), var(--card-2); border: 1px solid var(--line); margin-left: 6px; vertical-align: middle; }

/* nome: Post branco + AI em degradê */
.wordmark { color: #fff; }
/* lista do modo em massa */
.multi-list.as-rows { display: flex; flex-direction: column; gap: 10px; }
.bi { display: grid; grid-template-columns: 74px 1fr; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.bi-thumb { position: relative; width: 74px; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: #000; }
.bi-thumb img, .bi-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bi-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bi-when { font-size: 12.5px; font-weight: 700; text-transform: capitalize; }
.bi-act { display: flex; gap: 4px; }
.bi-act button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 14px var(--sans); cursor: pointer; }
.bi textarea { margin-top: 0; font-size: 13px; padding: 8px 10px; }
.bi-cov { font-size: 13px; padding: 2px 0; margin: 0; display: inline-block; cursor: pointer; }
