/* ND78 — pages.css (reconstruído) */
.nd-page { padding: 26px 18px 60px; max-width: 1280px; margin: 0 auto; }
.nd-page-hero { margin-bottom: 24px; }
.nd-page-hero h1 { font-size: 34px; font-weight: 800; color: var(--nd-ink, #17191d); margin: 0 0 8px; }
.nd-page-hero .nd-page-lead { font-size: 16px; color: var(--nd-muted, #6b6f7d); max-width: 720px; line-height: 1.6; }
.nd-page-body { display: grid; gap: 24px; }
.nd-page-note { font-size: 14px; color: var(--nd-muted, #6b6f7d); margin: 6px 0; line-height: 1.6; }
.nd-page-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.nd-page-sec { margin-top: 8px; }
.nd-sec-title { font-size: 20px; font-weight: 800; color: var(--nd-ink, #17191d); margin: 0 0 12px; }

.nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid var(--nd-line, #e6e8f0); background: #fff; color: var(--nd-ink, #17191d); cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.nd-btn:hover { background: var(--nd-bg-soft, #f7f8fd); }
.nd-btn-primary { background: var(--nd-grad-orange, linear-gradient(135deg, #ff8a3d, #ff5e1a)); color: #fff; border: none; box-shadow: 0 8px 22px rgba(255, 120, 45, .32); }
.nd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 120, 45, .42); }
.nd-btn-ghost { background: #fff; color: var(--nd-ink, #17191d); }

.nd-auth-card { max-width: 420px; margin: 0 auto; padding: 28px; background: #fff; border: 1px solid var(--nd-line, #e6e8f0); border-radius: 16px; box-shadow: var(--nd-shadow-sm, 0 6px 18px rgba(23,25,29,.06)); }
.nd-auth-card h2 { margin: 0 0 6px; font-size: 22px; }
.nd-auth-card .nd-page-note { margin-bottom: 16px; }

.nd-faq { display: grid; gap: 10px; margin-top: 12px; }
.nd-faq-item { background: #fff; border: 1px solid var(--nd-line, #e6e8f0); border-radius: 12px; padding: 12px 16px; }
.nd-faq-item summary { font-weight: 700; cursor: pointer; color: var(--nd-ink, #17191d); }
.nd-faq-item p { margin: 8px 0 0; color: var(--nd-muted, #6b6f7d); font-size: 14px; line-height: 1.6; }

.nd-link-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--nd-line, #e6e8f0); border-radius: 12px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.nd-link-card:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-sm, 0 6px 18px rgba(23,25,29,.06)); }
.nd-link-card-title { font-weight: 700; color: var(--nd-ink, #17191d); }
.nd-link-card-sub { font-size: 13px; color: var(--nd-muted, #6b6f7d); }

.nd-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.nd-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--nd-line, #e6e8f0); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--nd-ink, #17191d); }
.nd-tab.active { background: var(--nd-orange, #ff782d); color: #fff; border-color: var(--nd-orange, #ff782d); }
.nd-tab:hover { background: var(--nd-bg-soft, #f7f8fd); }

.nd-search-note { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--nd-bg-soft, #f7f8fd); border-radius: 10px; font-size: 13px; color: var(--nd-muted, #6b6f7d); }
.nd-search-note a { color: var(--nd-orange, #ff782d); font-weight: 700; text-decoration: none; }

.nd-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nd-muted, #6b6f7d); margin-bottom: 12px; }
.nd-crumb-sep { opacity: .5; }
.nd-crumb-current { color: var(--nd-ink, #17191d); font-weight: 600; }

.nd-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.nd-tpl-host { margin-top: 8px; }
.nd-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.nd-tpl-empty { padding: 40px; text-align: center; color: var(--nd-muted, #6b6f7d); }
.nd-tpl-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--nd-bg-soft, #f7f8fd); aspect-ratio: 16/9; }
.nd-tpl-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }

.nd-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 16px; }
.nd-pricing-view { margin-top: 16px; }
.nd-account-bar-host { margin: 12px 0; }

.nd-editor-template { margin-top: 20px; padding: 16px; background: var(--nd-bg-soft, #f7f8fd); border: 1px solid var(--nd-line, #e6e8f0); border-radius: 12px; }
.nd-editor-template h3 { margin: 0 0 6px; font-size: 15px; }
.nd-editor-template .nd-page-cta { margin-top: 10px; }
.nd-template-start { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 28px; border:1px solid #e8e7f0; border-radius:18px; background:linear-gradient(115deg,#f7f4ff,#fff 58%,#fff5ed); }
.nd-template-start-copy h2 { margin:5px 0 3px; font-size:22px; }
.nd-template-start-copy .nd-page-note { margin:0; }
.nd-template-eyebrow { color:#7951c7; font-size:10px; font-weight:800; letter-spacing:.12em; }

.nd-article-hero-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; }
.nd-article-hero { width: 100%; height: 100%; object-fit: cover; }
.nd-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.nd-article { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nd-line, #e6e8f0); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.nd-article:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-sm, 0 6px 18px rgba(23,25,29,.06)); }
.nd-article-cover { aspect-ratio: 16/9; overflow: hidden; }
.nd-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.nd-article-body { padding: 14px; display: grid; gap: 6px; }
.nd-article-cat { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--nd-orange, #ff782d); }
.nd-article-title { font-size: 15px; font-weight: 700; color: var(--nd-ink, #17191d); line-height: 1.35; }
.nd-article-desc { font-size: 13px; color: var(--nd-muted, #6b6f7d); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nd-article-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--nd-muted, #6b6f7d); }
.nd-article-meta span { padding: 3px 10px; background: var(--nd-bg-soft, #f7f8fd); border-radius: 999px; }
.nd-article-lead { font-size: 15px; color: var(--nd-muted, #6b6f7d); line-height: 1.7; margin: 0 0 16px; }

@media (max-width: 860px) {
  .nd-page { padding: 20px 14px 40px; }
  .nd-page-hero h1 { font-size: 26px; }
  .nd-page-cta .nd-btn { flex: 1 1 auto; }
}


/* --------------------------- editor (novo layout) ----------------------- */
.nd-editor-page { padding: 0; }
.nd-page--editor > .nd-page-hero { display:none; }
.nd-editor2 {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  grid-template-rows: 58px minmax(300px, 1fr) 190px;
  gap: 0;
  min-height: 690px;
  height: calc(100vh - 82px);
  margin: -26px -18px 0;
  color:#f4f3f8; background:#17171c; overflow:hidden;
}
.nd-editor-topbar { grid-column:1/-1; display:flex; align-items:center; gap:20px; padding:0 20px; background:#202026; border-bottom:1px solid #34343c; }
.nd-editor-back { color:#c8c5d0; text-decoration:none; font-size:12px; }
.nd-editor-brand { color:#fff; font-size:12px; letter-spacing:.1em; }
.nd-editor-project-name { color:#aaa7b2; font-size:12px; }
.nd-editor-top-actions { display:flex; gap:8px; margin-left:auto; }
.nd-editor-action,.nd-editor-export { border:1px solid #4a4852; background:transparent; color:#fff; padding:8px 13px; border-radius:8px; font-size:12px; }
.nd-editor-export { background:#8654e8; border-color:#8654e8; font-weight:700; }
.nd-ed-sidebar {
  grid-row: 2 / 4;
  background:#202026;
  border-right:1px solid #34343c;
  padding: 14px;
  overflow: auto;
}
.nd-ed-sidebar-head { font-weight:700; font-size:15px; margin-bottom:10px; color:#f4f3f8; }
.nd-ed-sidetabs { display: flex; gap: 6px; margin-bottom: 12px; }
.nd-ed-sidetab {
  flex: 1; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--nd-line, #e6e8f0);
  background:#2b2a31; font-size:12px; font-weight:600; cursor:pointer; color:#dedbe5; border-color:#403e48;
}
.nd-ed-sidetab.active { background: var(--nd-orange, #ff782d); color: #fff; border-color: var(--nd-orange, #ff782d); }
.nd-ed-sidepanel { margin-bottom: 12px; }
.nd-ed-panel h4 { font-size: 13px; margin: 0 0 6px; color: var(--nd-ink, #17191d); }
.nd-ed-panel .nd-page-note { font-size: 12px; margin: 4px 0; }
.nd-ed-tools { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.nd-ed-tool {
  width:100%; text-align:left; padding:8px 10px; border-radius:8px;
  border:1px solid transparent; background:#29282f; font-size:13px; font-weight:600;
  color:#e6e3eb; cursor:pointer;
}
.nd-ed-tool:hover { border-color: var(--nd-orange, #ff782d); background: #fff7f2; }
.nd-ed-medialist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.nd-ed-mediaitem img, .nd-ed-mediaitem video { width: 100%; height: 60px; object-fit: cover; border-radius: 6px; }
.nd-ed-canvas {
  background:#121216; display:flex; align-items:center; justify-content:center;
  position: relative; overflow: hidden;
}
.nd-ed-workspace { grid-column:2; grid-row:2; display:flex; flex-direction:column; min-width:0; background:#121216; }
.nd-ed-workspace-tools { height:38px; display:flex; justify-content:flex-end; align-items:center; gap:14px; padding:0 18px; color:#aaa7b2; font-size:12px; }
.nd-ed-workspace-tools span { cursor:pointer; }
.nd-ed-canvas { flex:1; }
.nd-ed-canvas-inner { width:min(78%,850px); aspect-ratio:16/9; background:radial-gradient(ellipse at 50% 45%,#292437,#1b1a20 70%); border:1px solid #393640; display:flex; align-items:center; justify-content:center; }
.nd-ed-canvas-empty { display:grid; justify-items:center; gap:12px; color:#d9d5df; font-size:14px; }
.nd-ed-play { display:grid; place-items:center; width:42px; height:42px; border:1px solid #777180; border-radius:50%; padding-left:3px; }
.nd-ed-aspect { color:#aaa7b2; font-weight:500; font-size:11px; }
.nd-ed-timeline {
  grid-column:2; grid-row:3; background:#1d1c22; border-top:1px solid #34343c;
  padding:12px 16px; display:flex; flex-direction:column; gap:10px; overflow:auto;
}
.nd-ed-scenes { display: flex; gap: 6px; flex-wrap: wrap; }
.nd-ed-scene {
  width:78px; height:46px; border-radius:6px; background:linear-gradient(145deg,#34303e,#28262e); border:1px solid #484550;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; color:#e1dee6; cursor:pointer;
}
.nd-ed-scene:hover { border-color: var(--nd-orange, #ff782d); }
.nd-ed-audio { height: 36px; border-radius: 8px; background: #fff; border: 1px dashed var(--nd-line, #e6e8f0);
  display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: var(--nd-muted, #6b6f7d); }

/* --------------------------- Criar IA assistant ------------------------ */
.nd-createai { display: grid; gap: 18px; }
.nd-createai-head h2 { margin: 0 0 4px; }
.nd-createai-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px; align-items: start; }
.nd-ai-preview { background: #fff; border: 1px solid var(--nd-line, #e6e8f0); border-radius: 16px; padding: 16px; }
.nd-ai-player { min-height: 200px; background: #0f1115; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.nd-ai-scenes { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.nd-ai-scene { width: 36px; height: 36px; border-radius: 6px; background: var(--nd-bg-soft, #f7f8fd); border: 1px solid var(--nd-line, #e6e8f0); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.nd-ai-config { background: #fff; border: 1px solid var(--nd-line, #e6e8f0); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.nd-ai-config h3 { margin: 0 0 4px; font-size: 15px; }
.nd-ai-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nd-ink, #17191d); }
.nd-ai-field span { font-size: 12px; color: var(--nd-muted, #6b6f7d); }
.nd-ai-select, .nd-ai-input {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--nd-line, #e6e8f0); font-size: 13px; background: #fff;
}
.nd-ai-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 90px; padding: 14px; text-align: center; background: var(--nd-bg-soft, #f7f8fd);
  border: 2px dashed var(--nd-line, #e6e8f0); border-radius: 12px; cursor: pointer; transition: border-color .18s, background .18s;
}
.nd-ai-drop.is-drag { border-color: var(--nd-orange, #ff782d); background: #fff7f2; }
.nd-ai-drop strong { font-size: 14px; color: var(--nd-ink, #17191d); }
.nd-ai-drop span { font-size: 12px; color: var(--nd-muted, #6b6f7d); }
.nd-ai-fileinput { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nd-ai-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.nd-ai-thumb img, .nd-ai-thumb video { width: 100%; height: 56px; object-fit: cover; border-radius: 6px; }
.nd-ai-counter { font-size: 12px; font-weight: 700; color: var(--nd-orange, #ff782d); }
.nd-ai-note { font-size: 12px; color: var(--nd-muted, #6b6f7d); margin: 0; }

/* --------------------------- modais ------------------------------------ */
.nd-modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 17, 21, 0.55); display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.nd-modal {
  background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: 80vh; overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.nd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--nd-line, #e6e8f0); }
.nd-modal-head h3 { margin: 0; font-size: 16px; }
.nd-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--nd-muted, #6b6f7d); }
.nd-modal-body { padding: 18px; }
.nd-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--nd-line, #e6e8f0); }

/* responsivo */
@media (max-width: 860px) {
  .nd-editor2 { grid-template-columns:1fr; grid-template-rows:58px auto minmax(340px,55vh) 170px; height:auto; min-height:0; margin:-20px -14px 0; }
  .nd-editor-topbar { gap:10px; padding:0 12px; }
  .nd-editor-project-name { display:none; }
  .nd-ed-sidebar { grid-row:auto; max-height:260px; }
  .nd-ed-workspace { grid-column:1; grid-row:3; }
  .nd-ed-timeline { grid-column:1; grid-row:4; }
  .nd-template-start { align-items:flex-start; flex-direction:column; padding:20px; }
  .nd-createai-body { grid-template-columns: 1fr; }
}
