/* ============ Painel do assinante ============ */
.muted { color: var(--muted); }
code { background: var(--card2); padding: 2px 6px; border-radius: 6px; color: var(--gold); }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; position: relative; overflow: hidden; }
.auth-card { position: relative; z-index: 1; width: min(440px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: 0 30px 80px -30px rgba(177, 77, 255, .6); }
.auth-card .logo { margin-bottom: 22px; }
.auth-ticket { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--gold); background: linear-gradient(135deg, rgba(245, 197, 66, .14), rgba(245, 197, 66, .03)); color: #f5e3a6; font-size: .9rem; margin-bottom: 22px; }
.auth-ticket b { color: var(--gold); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tabs button { background: none; border: 0; color: var(--muted); font: 600 .95rem var(--font); padding: 10px; border-radius: 9px; cursor: pointer; }
.tabs button.active { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .35); }
form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
form input { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--text); font: 500 1rem var(--font); outline: none; transition: border-color .2s; }
form input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(177, 77, 255, .2); }
.hint { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 12px; }

/* Layout */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 24px 18px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; background: var(--bg2); }
.side nav { display: grid; gap: 4px; }
.side nav a { padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; }
.side nav a:hover { color: var(--text); background: var(--card); }
.side nav a.on { background: rgba(245, 197, 66, .12); color: var(--gold); font-weight: 600; }
.plan-box { margin-top: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: .88rem; }
.plan-box.trial { border: 1px dashed var(--gold); background: linear-gradient(160deg, rgba(245, 197, 66, .12), var(--card)); }
.plan-box b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.plan-box .bar { margin: 12px 0 6px; }
.main { padding: 30px clamp(18px, 4vw, 48px) 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.8rem; }
.block-title { font-size: 1.2rem; margin: 36px 0 14px; }

/* Barra de progresso */
.bar { height: 8px; background: var(--card2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); border-radius: 999px; transition: width .4s; }

/* Banner do teste */
.trial-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; margin-bottom: 20px; border: 2px dashed var(--gold); background: linear-gradient(135deg, #3a2700, #1d1400); flex-wrap: wrap; }
.trial-banner .tb-left { display: grid; gap: 2px; }
.trial-banner .tb-left > b { color: var(--gold); letter-spacing: 2px; font-size: .8rem; }
.trial-banner .tb-left span b { color: var(--gold); }

/* Dropzone */
.drop { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 50px 20px; border: 2px dashed rgba(177, 77, 255, .5); border-radius: 22px; background: radial-gradient(circle at 50% 0, rgba(177, 77, 255, .14), transparent 70%), var(--card); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--gold); background: radial-gradient(circle at 50% 0, rgba(245, 197, 66, .14), transparent 70%), var(--card); }
.drop.disabled { opacity: .5; pointer-events: none; }
.drop-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--neon-grad); box-shadow: 0 0 40px -6px var(--neon); margin-bottom: 6px; }
.drop h3 { font-size: 1.25rem; }

/* Escolha de layout */
.layouts { display: flex; gap: 14px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.layout { cursor: pointer; }
.layout input { display: none; }
.layout > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.layout small { color: var(--muted); grid-column: 2; font-size: .78rem; }
.layout b { font-size: .92rem; }
.layout input:checked + div { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.lprev { grid-row: span 2; width: 34px; height: 56px; border-radius: 6px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.lprev.blur { background: linear-gradient(160deg, #6b4ea8, #3a2a5c); }
.lprev.blur i { position: absolute; left: 0; right: 0; top: 50%; height: 20px; transform: translateY(-50%); background: linear-gradient(90deg, #ff7a3d, #f5c542); }
.lprev.crop { background: linear-gradient(160deg, #ff7a3d, #b14dff); }

.upload-progress { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.up-row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; }

/* Jobs / lista de vídeos */
.jobs, .video-list { display: grid; gap: 12px; }
.job, .vrow { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.job .up-row b { font-weight: 600; }
.job.error { border-color: rgba(255, 59, 78, .5); }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; transition: border-color .2s; }
.vrow:hover { border-color: rgba(245, 197, 66, .45); }
.vrow .meta { color: var(--muted); font-size: .85rem; }
.status { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.status.done { color: var(--promo); background: rgba(34, 224, 107, .12); }
.status.processing, .status.queued { color: #d9a8ff; background: rgba(177, 77, 255, .14); }
.status.error { color: var(--save); background: rgba(255, 59, 78, .12); }

/* Cortes */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 230px)); gap: 18px; }
.clip { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.clip video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.clip .body { padding: 14px; display: grid; gap: 8px; }
.clip .score { color: var(--gold); font-weight: 700; font-size: .85rem; }
.clip h4 { font-size: .98rem; }
.clip .tags { color: #d9a8ff; font-size: .78rem; }
.clip .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Assinatura */
.billing-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.billing-card h3 { font-size: 1.4rem; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side nav { grid-auto-flow: column; overflow-x: auto; }
  .plan-box { display: none; }
  .side #logoutBtn { width: auto; margin-left: auto; }
}
