/* Lucifer BOT — tema "Asas Negras" */
:root {
  --bg: #050405;
  --bg2: rgba(10, 8, 9, .82);
  --card: rgba(16, 13, 15, .74);
  --card2: rgba(24, 19, 22, .85);
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --text: #f2ecee;
  --muted: #a79da1;
  --dim: #6c6267;
  --red: #e0142c;
  --red-hi: #ff2b3d;
  --red2: #8e0a1b;
  --ember: #ff5a3c;
  --green: #3ddc84;
  --yellow: #ffc145;
  --blue: #8fb4ff;
  --radius: 16px;
  --glow: 0 0 24px rgba(255, 43, 61, .35);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-family: Cinzel, Georgia, serif; font-size: 24px; letter-spacing: .4px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.red-text { color: var(--red-hi); text-shadow: var(--glow); }

/* ---------- céu de tempestade (fundo fixo) ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background:
  radial-gradient(900px 500px at 70% -10%, rgba(224, 20, 44, .16), transparent 60%),
  radial-gradient(700px 600px at 0% 110%, rgba(224, 20, 44, .07), transparent 60%),
  linear-gradient(180deg, #0a0809 0%, #050405 60%); }
.sky .cl { -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); position: absolute; left: 0; width: 200%; height: 340px; background: url('/img/clouds.jpg') repeat-x; background-size: 50% 100%; opacity: .5; mix-blend-mode: screen; animation: drift 140s linear infinite; }
.sky .cl.a { top: -40px; }
.sky .cl.b { top: 120px; opacity: .22; transform: scaleY(-1); animation-duration: 220s; animation-direction: reverse; filter: blur(2px); }
.sky .cl.c { bottom: -120px; top: auto; opacity: .18; animation-duration: 260s; filter: blur(3px); }
.sky::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.75) 100%); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-105vh) translateX(40px); opacity: 0; } }

/* ---------- layout ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, rgba(8,6,7,.92), rgba(5,4,5,.96)); backdrop-filter: blur(10px); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(255,43,61,.35)); }
.brand b { font-family: Cinzel, Georgia, serif; font-size: 19px; letter-spacing: 2px; color: #f6eef0; text-shadow: 0 0 18px rgba(255,43,61,.45); }
.brand b em { font-style: normal; color: var(--red-hi); }
.brand span { display: block; font-size: 10.5px; color: var(--dim); letter-spacing: .3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); margin-bottom: 2px; font-weight: 500; transition: .15s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav a.on { background: linear-gradient(90deg, rgba(224,20,44,.22), rgba(224,20,44,.02)); color: #fff; box-shadow: inset 2px 0 0 var(--red-hi); }
.nav a.on svg { color: var(--red-hi); opacity: 1; filter: drop-shadow(0 0 6px rgba(255,43,61,.6)); }
.nav .sep { font-size: 10px; letter-spacing: 1.6px; color: var(--dim); padding: 16px 12px 6px; text-transform: uppercase; }
.side .me { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.side .me img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,43,61,.45); box-shadow: 0 0 12px rgba(255,43,61,.25); object-fit: cover; }
.side .me .btn svg { width: 16px; height: 16px; }
.side .me b { display: block; font-size: 13px; }
.main { padding: 22px 28px 60px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.top p { margin: 4px 0 0; }

/* ---------- banner do início ---------- */
.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 210px; margin-bottom: 18px; border: 1px solid var(--line2);
  background: #050405 url('/img/lucifer.jpg') no-repeat; background-size: 640px auto; background-position: right -60px top 34%; box-shadow: 0 20px 60px -30px rgba(224,20,44,.45); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #070506 0%, #070506 47%, rgba(7,5,6,.7) 63%, rgba(7,5,6,.12) 100%), linear-gradient(0deg, rgba(5,4,5,.75), transparent 45%), linear-gradient(180deg, rgba(5,4,5,.5), transparent 30%); }
.hero .in { position: relative; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.hero h1 { font-size: 30px; }
.hero .goal { background: rgba(0,0,0,.45); }

/* ---------- cards ---------- */
.card { background: var(--card); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 40px -20px rgba(0,0,0,.8); }
.card + .card { margin-top: 14px; }
.grid > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 14px; align-items: start; }
.card h2 { margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; background: radial-gradient(circle, rgba(224,20,44,.16), transparent 70%); }
.stat .label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.stat .label svg { width: 15px; height: 15px; color: var(--red-hi); }
.stat .value { font-size: 27px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -.5px; }
.stat .foot { color: var(--dim); font-size: 12px; }
.bar { height: 6px; background: rgba(255,255,255,.07); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red2), var(--red-hi)); border-radius: 6px; box-shadow: 0 0 10px rgba(255,43,61,.6); }
.goal { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; min-width: 240px; max-width: 360px; }
.goal .bar { margin-top: 6px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: rgba(255,43,61,.45); }
.btn.red { background: linear-gradient(180deg, #ef1c34, #9c0b1d); border-color: rgba(255,90,100,.6); color: #fff; box-shadow: 0 8px 26px -10px rgba(255,43,61,.9), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.red:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff7b72; }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.burger { display: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- formulários ---------- */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: rgba(5,4,5,.75); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; outline: none; transition: .15s;
}
select option { background: #0d0a0b; }
input:focus, select:focus, textarea:focus { border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(255,43,61,.15); }
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.hint { font-size: 12px; color: var(--dim); margin-top: 6px; line-height: 1.45; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch i { width: 38px; height: 22px; border-radius: 22px; background: rgba(255,255,255,.12); position: relative; transition: .2s; }
.switch i::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.switch input:checked + i { background: var(--red); box-shadow: 0 0 12px rgba(255,43,61,.6); }
.switch input:checked + i::after { left: 19px; }

/* ---------- tabela ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: var(--dim); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(224,20,44,.04); }
.scroll { overflow-x: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; border: 1px solid transparent; }
.pill.green { color: var(--green); background: rgba(61,220,132,.1); border-color: rgba(61,220,132,.25); }
.pill.red { color: #ff6b72; background: rgba(255,43,61,.1); border-color: rgba(255,43,61,.3); }
.pill.yellow { color: var(--yellow); background: rgba(255,193,69,.1); border-color: rgba(255,193,69,.25); }
.pill.blue { color: var(--blue); background: rgba(143,180,255,.1); border-color: rgba(143,180,255,.25); }
.pill.gray { color: var(--muted); background: rgba(255,255,255,.05); border-color: var(--line2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 7px 13px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 12px; }
.tabs button.on { background: rgba(224,20,44,.18); border-color: rgba(255,43,61,.55); color: #fff; box-shadow: 0 0 14px -4px rgba(255,43,61,.6); }

/* ---------- log ---------- */
.log { max-height: 420px; overflow: auto; }
.log .it { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.log .dot svg { width: 16px; height: 16px; }
.log .dot.venda { color: var(--green); border-color: rgba(61,220,132,.3); }
.log .dot.erro { color: var(--yellow); }
.log .dot.pix, .log .dot.lead { color: var(--red-hi); }
.log .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(0,0,0,.4); border: 1px solid var(--line2); }
.log .it b { display: block; font-size: 13px; }
.log .it .t { margin-left: auto; text-align: right; color: var(--dim); font-size: 11px; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--red-hi); margin-left: 8px; font-weight: 600; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- robôs / fluxos ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tile { background: var(--card); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: .2s; }
.tile:hover { border-color: rgba(255,43,61,.3); box-shadow: 0 0 30px -12px rgba(255,43,61,.5); }
.tile .head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: radial-gradient(circle at 50% 30%, #3a0c14, #0c0809); border: 1px solid rgba(255,43,61,.35); color: var(--red-hi); flex: none; font-family: Cinzel, serif; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis div { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; }
.kpis b { display: block; font-size: 16px; }
.kpis span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }

/* ---------- editor de fluxo ---------- */
.editor { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.steps { position: sticky; top: 16px; }
.steps a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 500; }
.steps a.on { background: rgba(224,20,44,.16); color: #fff; box-shadow: inset 2px 0 0 var(--red-hi); }
.steps .grp { font-size: 10px; letter-spacing: 1.4px; color: var(--dim); padding: 12px 10px 4px; text-transform: uppercase; }
.plan { border: 1px solid var(--line2); background: rgba(0,0,0,.35); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.plan .ph { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.plan .ph b { flex: 1; }
.plan .pb { margin-top: 12px; }

/* ---------- mídia ---------- */
.media-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0,0,0,.4) center/cover no-repeat; position: relative; display: grid; place-items: center; font-size: 11px; color: var(--muted); overflow: hidden; }
.thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.7); border: 0; cursor: pointer; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.thumb.add { cursor: pointer; border-style: dashed; font-size: 22px; color: var(--red-hi); }
.thumb.sel { outline: 2px solid var(--red-hi); box-shadow: 0 0 14px rgba(255,43,61,.5); }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: linear-gradient(180deg, rgba(22,17,20,.97), rgba(12,9,11,.98)); border: 1px solid var(--line2); border-radius: 18px; padding: 20px; width: min(580px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px -20px rgba(224,20,44,.35); }
.modal h2 { margin-bottom: 14px; font-family: Cinzel, serif; font-size: 18px; }
#toast { position: fixed; bottom: 20px; right: 20px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
#toast div { background: rgba(20,16,18,.97); border: 1px solid var(--line2); border-left: 3px solid var(--green); padding: 11px 14px; border-radius: 10px; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: in .2s; }
#toast div.err { border-left-color: var(--red-hi); }
@keyframes in { from { transform: translateY(8px); opacity: 0; } }

/* ---------- login ---------- */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth .art { position: relative; background: #050405 url('/img/lucifer.jpg') center 30% / cover no-repeat; }
.auth .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #050405 100%), linear-gradient(0deg, #050405 0%, transparent 35%); }
.auth .art .quote { position: absolute; left: 40px; bottom: 44px; z-index: 1; max-width: 420px; }
.auth .art .quote h1 { font-size: 46px; letter-spacing: 6px; text-shadow: 0 0 30px rgba(255,43,61,.55); }
.auth .art .quote h1 em { font-style: normal; color: var(--red-hi); }
.auth .art .quote p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.auth .side-form { display: grid; place-items: center; padding: 30px 24px; }
.auth .box { width: min(400px, 100%); }
.auth .logo { text-align: center; margin-bottom: 22px; }
.auth .logo img { width: 70px; filter: drop-shadow(0 0 16px rgba(255,43,61,.5)); }
.auth .logo h2 { font-family: Cinzel, serif; font-size: 26px; letter-spacing: 3px; margin-top: 8px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; font-family: Cinzel, serif; }
.callout { background: rgba(255,193,69,.06); border: 1px solid rgba(255,193,69,.22); border-radius: 12px; padding: 12px 14px; color: #ecd7a9; font-size: 13px; line-height: 1.5; }
.callout.red { background: rgba(255,43,61,.07); border-color: rgba(255,43,61,.3); color: #ffc2c6; }
.callout.green { background: rgba(61,220,132,.06); border-color: rgba(61,220,132,.22); color: #bdf2d4; }
code.k { background: rgba(0,0,0,.5); border: 1px solid var(--line2); padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.chart svg { width: 100%; height: 200px; display: block; }
.loading { padding: 40px; text-align: center; color: var(--dim); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2226; border-radius: 10px; border: 2px solid #050405; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) { .sky .cl, .embers i { animation: none; } }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; width: 260px; transform: translateX(-100%); transition: .2s; }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.7); }
  .btn.burger { display: inline-flex; }
  .main { padding: 16px 14px 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .steps { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .steps .grp { display: none; }
  .steps a { white-space: nowrap; }
  .hero { background-size: 380px auto; background-position: right -110px top -40px; }
  .hero::before { background: linear-gradient(90deg, rgba(7,5,6,.95) 0%, rgba(7,5,6,.75) 60%, rgba(7,5,6,.35) 100%); }
  .hero h1 { font-size: 24px; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { position: absolute; inset: 0; opacity: .45; }
  .auth .art .quote { display: none; }
  .auth .side-form { position: relative; }
}

.thumb .vd { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px; }
.acc { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: rgba(0,0,0,.25); }
.acc > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: '▸'; margin-left: auto; color: var(--dim); }
.acc[open] > summary::after { content: '▾'; }
.acc > .in { padding: 0 14px 14px; }
.ck-editor { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.ck-form { max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; position: sticky; top: 12px; }
.ck-prev { display: flex; flex-direction: column; align-items: center; position: sticky; top: 12px; }
.tplcard { margin-bottom: 10px; padding: 12px; }
.acc > summary svg { width: 17px; height: 17px; color: var(--red-hi); flex: none; }
.acc > summary::after { content: '⌄'; font-size: 16px; line-height: 1; }
.acc[open] > summary::after { content: '⌃'; }
.discbox { border: 1px solid rgba(255,43,61,.35); background: rgba(224,20,44,.06); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; padding: 3px; margin-bottom: 10px; background: rgba(0,0,0,.35); }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.seg button.on { background: var(--card2); color: #fff; box-shadow: 0 0 0 1px var(--line2); }
.revrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: rgba(0,0,0,.25); }
.revrow .media-strip .thumb { width: 56px; height: 56px; border-radius: 50%; }
.revrow label.f { margin: 0; }
.phone .notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 20px; background: #1b1418; border-radius: 0 0 14px 14px; z-index: 2; }
.phone { position: relative; width: 390px; max-width: 100%; border: 10px solid #1b1418; border-radius: 40px; overflow: hidden; height: min(780px, calc(100vh - 170px)); background: #000; box-shadow: 0 20px 60px -20px rgba(224,20,44,.35); }
.phone iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice label { border: 1px solid var(--line2); border-radius: 12px; padding: 12px; cursor: pointer; background: rgba(0,0,0,.3); }
.choice label.on { border-color: var(--red-hi); background: rgba(224,20,44,.12); box-shadow: 0 0 14px -6px rgba(255,43,61,.6); }
.choice input { display: none; }
.choice b { display: block; font-size: 13px; }
.choice span { font-size: 11.5px; color: var(--muted); }
.ck-tile .img { height: 170px; border-radius: 12px; background: #120d0f center/cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); }
.area-tile .cv { height: 110px; border-radius: 12px; background: #120d0f center/cover; border: 1px solid var(--line); }
.area-tile .av { width: 58px; height: 58px; border-radius: 50%; background: #1d1316 center/cover; border: 3px solid #0b0809; margin: -30px 0 0 12px; box-shadow: 0 0 0 1px rgba(255,43,61,.45); }
.postrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.postrow .th { width: 54px; height: 54px; border-radius: 10px; background: #120d0f center/cover; flex: none; display: grid; place-items: center; font-size: 11px; color: var(--muted); position: relative; overflow: hidden; }
.postrow .txt { flex: 1; min-width: 0; }
.postrow .txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
input[type=color] { width: 46px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; }
@media (max-width: 1100px) { .ck-editor { grid-template-columns: 1fr; } .ck-form { max-height: none; position: static; } .ck-prev { position: static; } .phone { height: 640px; } }
.ck-tile .kpis, .area-tile .kpis { grid-template-columns: repeat(2, 1fr); }

/* ---------- Início ---------- */
.dateline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clock { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: #fff; background: rgba(224,20,44,.14); border: 1px solid rgba(255,43,61,.35); padding: 1px 8px; border-radius: 7px; text-shadow: 0 0 10px rgba(255,43,61,.5); font-variant-numeric: tabular-nums; }
.hero .in > div:first-child .small { text-transform: none; font-size: 14px; }
#hdate { display: inline-block; }
#hdate::first-letter { text-transform: uppercase; }
.perbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; }
.perbar svg { width: 18px; height: 18px; }
.seg2 { display: inline-flex; background: rgba(0,0,0,.45); border: 1px solid var(--line2); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg2 button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13px; }
.seg2 button:hover { color: var(--text); }
.seg2 button.on { background: rgba(224,20,44,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,43,61,.5), 0 0 14px -4px rgba(255,43,61,.6); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: stretch; }
.dash-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-cards .card + .card { margin-top: 0; }
.dc { min-height: 200px; display: flex; flex-direction: column; }
.dc .value { font-size: 30px; }
.ib { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(224,20,44,.12); border: 1px solid rgba(255,43,61,.3); color: var(--red-hi); flex: none; }
.ib svg { width: 17px; height: 17px; }
.ib.big { width: 40px; height: 40px; }
.stat .label .ib svg { color: var(--red-hi); }
.stat .label { font-size: 14px; color: var(--text); font-weight: 600; }
.gauge { width: 190px; margin: 8px auto 2px; display: block; }
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: auto; padding-top: 10px; }
.minibars i { flex: 1; background: linear-gradient(180deg, #ff2b3d, #6e0814); border-radius: 4px 4px 2px 2px; opacity: .85; min-height: 4px; }
.minibars i:last-child { opacity: 1; box-shadow: 0 0 10px rgba(255,43,61,.6); }
.perf { display: flex; flex-direction: column; }
.perf h2 { margin: 0; }
.perfbox { position: relative; flex: 1; min-height: 300px; margin-top: 6px; }
.perfbox svg { display: block; cursor: crosshair; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); margin-right: 4px; }
.ptip { position: absolute; background: rgba(10,8,9,.96); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; pointer-events: none; min-width: 170px; box-shadow: 0 10px 30px rgba(0,0,0,.6); z-index: 3; }
.ptip .pt-h { font-weight: 700; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid var(--line); }
.ptip .pt-h span { color: var(--dim); font-weight: 500; font-size: 12px; margin-left: 4px; }
.ptip .pt-r { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); letter-spacing: .5px; margin-top: 3px; }
.ptip .pt-r b { margin-left: auto; color: #fff; font-size: 14px; letter-spacing: 0; }
.ptip .pt-r.dim2 b { font-size: 12.5px; color: var(--muted); }
.ptip .pt-r i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); }
@media (max-width: 1200px) { .dash { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dash-cards { grid-template-columns: 1fr; } }

.hidden { display: none !important; }
