/* Wizard "Creează conținut" — multi-step composer */
.wiz-wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 120px; }
.wiz-wrap.wiz-compact { padding: 10px 14px 70px; }
.wiz-wrap.wiz-compact .wiz-card { padding: 16px 18px; border-radius: 12px; }
.wiz-wrap.wiz-compact .wiz-card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.wiz-wrap.wiz-compact .wiz-card .wiz-sub { margin-bottom: 12px; font-size: 0.78rem; }
.wiz-wrap.wiz-compact .wiz-pf { padding: 10px 6px; }
.wiz-wrap.wiz-compact .wiz-pf .ico { font-size: 1.25rem; }
.wiz-wrap.wiz-compact .wiz-toggle { margin-top: 12px; padding: 10px 12px; }
.wiz-wrap.wiz-compact .wiz-type { padding: 10px 12px; }
.wiz-wrap.wiz-compact .wiz-type-cards { gap: 8px; }
.wiz-wrap.wiz-compact .wiz-field { margin-top: 10px; }
.wiz-wrap.wiz-compact .wiz-field textarea { min-height: 64px; padding: 8px 10px; }
.wiz-wrap.wiz-compact .wiz-actions { margin-top: 14px; }
.wiz-wrap.wiz-compact .wiz-btn { padding: 8px 16px; font-size: 0.82rem; }
.wiz-wrap.wiz-compact .wiz-rdetail textarea { min-height: 140px; }
.wiz-wrap.wiz-compact .wiz-ideas { margin-top: 10px; padding: 10px; }

.top-bar, .desktop-topbar { position: relative; }
/* Steps relocated inline to topbar */
.wiz-steps-inline {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: nowrap; overflow-x: auto; pointer-events: auto;
}
.wiz-steps-inline .wiz-steps { margin-bottom: 0; gap: 4px; }
.wiz-steps-inline .wiz-step { padding: 3px 8px; font-size: 0.68rem; }
.wiz-steps-inline .wiz-step .num { width: 16px; height: 16px; font-size: 0.62rem; }
.wiz-steps-inline .sep { font-size: 0.62rem; }

/* Version history */
.wiz-history { margin-top: 16px; padding: 10px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden; }
.wiz-history-head { font-size: 0.75rem; font-weight: 600; color: var(--text-muted,#94a3b8); margin-bottom: 8px; }
.wiz-history-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.wiz-hist-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 6px; background: rgba(0,0,0,0.2);
  font-size: 0.70rem; min-width: 0;
}
.wiz-hist-label { color: #a78bfa; font-weight: 600; flex-shrink: 0; min-width: 70px; }
.wiz-hist-preview { flex: 1; color: rgba(240,240,255,0.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-hist-restore {
  flex-shrink: 0; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  background: rgba(124,92,255,0.15); border: 1px solid rgba(124,92,255,0.35);
  color: #c4b5fd; font-size: 0.7rem; font-weight: 600;
}
.wiz-hist-restore:hover { background: rgba(124,92,255,0.28); }


.wiz-steps {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.wiz-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-muted, #94a3b8);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .2s;
}
.wiz-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: inherit;
  font-weight: 700; font-size: 0.72rem;
}
.wiz-step.active { color: #fff; border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.12); }
.wiz-step.active .num { background: #6366f1; color: #fff; }
.wiz-step.done { color: #10b981; border-color: rgba(16,185,129,0.4); }
.wiz-step.done .num { background: #10b981; color: #fff; }
.wiz-steps .sep { color: rgba(255,255,255,0.2); font-size: 0.7rem; }

.wiz-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(8px);
}
.wiz-card h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; }
.wiz-card .wiz-sub { color: var(--text-muted,#94a3b8); margin: 0 0 22px; font-size: 0.88rem; }

/* Platforms grid */
.wiz-platform-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
@media (max-width: 720px) { .wiz-platform-grid { grid-template-columns: repeat(2, 1fr); } }
.wiz-pf {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  transition: all .15s; user-select: none;
}
.wiz-pf:hover { border-color: rgba(99,102,241,0.4); }
.wiz-pf.checked { border-color: #6366f1; background: rgba(99,102,241,0.12); }
.wiz-pf .ico { font-size: 1.6rem; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.wiz-pf .ico svg { width: 24px; height: 24px; }
.wiz-pf .lbl { font-size: 0.78rem; font-weight: 600; }

/* Variants per platform */
.wiz-variants { margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); }
.wiz-variants-head { font-size: 0.72rem; font-weight: 700; color: var(--text-muted,#94a3b8); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.wiz-var-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.04); }
.wiz-var-row:first-of-type { border-top: 0; }
.wiz-var-plat { min-width: 90px; font-size: 0.8rem; font-weight: 600; color: #f0f0ff; }
.wiz-var-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wiz-var-pill { padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
  color: var(--text-muted,#94a3b8); font-size: 0.72rem; font-weight: 600; transition: all .15s; }
.wiz-var-pill:hover { border-color: rgba(124,92,255,0.4); color: #fff; }
.wiz-var-pill.active { border-color: #6366f1; background: rgba(99,102,241,0.18); color: #fff; }

/* Toggle row */
.wiz-toggle {
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.02);
}
.wiz-toggle .lbl { font-size: 0.88rem; }
.wiz-toggle .lbl small { display: block; color: var(--text-muted,#94a3b8); font-size: 0.72rem; margin-top: 2px; }
.wiz-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.wiz-switch input { opacity: 0; width: 0; height: 0; }
.wiz-switch span {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.1); border-radius: 999px; transition: .2s;
}
.wiz-switch span::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s;
}
.wiz-switch input:checked + span { background: #6366f1; }
.wiz-switch input:checked + span::before { transform: translateX(20px); }

/* Type cards */
.wiz-type-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 600px) { .wiz-type-cards { grid-template-columns: 1fr; } }
.wiz-type {
  padding: 16px; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  transition: all .15s;
}
.wiz-type:hover { border-color: rgba(99,102,241,0.4); }
.wiz-type.checked { border-color: var(--c, #6366f1); background: rgba(99,102,241,0.1); }
.wiz-type .t-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.wiz-type .t-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, #6366f1); }
.wiz-type .t-name { font-weight: 700; font-size: 0.95rem; }
.wiz-type .t-desc { font-size: 0.78rem; color: var(--text-muted,#94a3b8); margin: 0; }

/* Generic form */
.wiz-field { margin-top: 18px; }
.wiz-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.wiz-field textarea, .wiz-field select, .wiz-field input[type=text] {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2);
  color: inherit; font: inherit; resize: vertical;
}
.wiz-field textarea { min-height: 110px; }

/* Footer actions */
.wiz-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 12px;
}
.wiz-btn {
  padding: 11px 22px; border-radius: 10px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 0.88rem; transition: all .15s;
}
.wiz-btn-primary { background: #6366f1; color: #fff; }
.wiz-btn-primary:hover:not(:disabled) { background: #4f46e5; }
.wiz-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.wiz-btn-ghost { background: transparent; color: var(--text-muted,#94a3b8); border: 1px solid rgba(255,255,255,0.1); }
.wiz-btn-ghost:hover { color: #fff; }

/* Step 3 — results */
.wiz-results { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
@media (max-width: 760px) { .wiz-results { grid-template-columns: 1fr; } }
.wiz-rlist { display: flex; flex-direction: column; gap: 6px; }
.wiz-ritem {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem;
}
.wiz-ritem.active { border-color: #6366f1; background: rgba(99,102,241,0.12); }
.wiz-ritem .ico { font-size: 1.1rem; }
.wiz-ritem .ok { margin-left: auto; color: #10b981; font-size: 0.7rem; }

.wiz-rdetail {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 18px; background: rgba(255,255,255,0.02);
  min-width: 0; overflow: hidden;
}
.wiz-rdetail .pf-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(99,102,241,0.18); color: #c7d2fe;
  font-size: 0.7rem; font-weight: 700; margin-bottom: 12px;
}
.wiz-rdetail textarea {
  width: 100%; min-height: 200px; padding: 12px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25); color: inherit; font: inherit; resize: vertical;
}
.wiz-rate-row {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.wiz-rate-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); cursor: pointer; font-size: 0.85rem;
  color: #e2e8f0;
}
.wiz-rate-btn:hover { color: #fff; border-color: rgba(255,255,255,0.22); }
.wiz-rate-btn.active.up { border-color: #10b981; background: rgba(16,185,129,0.15); color: #6ee7b7; }
.wiz-rate-btn.active.down { border-color: #f43f5e; background: rgba(244,63,94,0.15); color: #fda4af; }

.wiz-tone-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wiz-tone {
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
  font-size: 0.72rem; user-select: none;
}
.wiz-tone:hover { border-color: rgba(99,102,241,0.5); }
.wiz-tone.active { border-color: #6366f1; background: rgba(99,102,241,0.18); color: #fff; }

.wiz-note {
  width: 100%; margin-top: 10px; padding: 8px 10px; min-height: 50px;
  border-radius: 8px; border: 1px dashed rgba(255,255,255,0.12);
  background: transparent; color: inherit; font: inherit; font-size: 0.8rem;
}

/* Step 4 — destination */
.wiz-dest-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .wiz-dest-cards { grid-template-columns: 1fr; } }
.wiz-dest {
  padding: 22px; border-radius: 14px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  transition: all .15s; text-align: center;
}
.wiz-dest:hover { border-color: #6366f1; transform: translateY(-2px); }
.wiz-dest .ico { font-size: 2rem; margin-bottom: 8px; }
.wiz-dest h3 { margin: 4px 0; font-size: 1rem; }
.wiz-dest p { color: var(--text-muted,#94a3b8); font-size: 0.78rem; margin: 0; }

/* Per-type dynamic form */
.wiz-type-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.wiz-type-form .wiz-field { margin-bottom: 12px; }
.wiz-type-form .wiz-field label { display:block; font-size:.78rem; font-weight:600; color:var(--text,#f0f0ff); margin-bottom:6px; }
.wiz-type-form textarea, .wiz-type-form input[type=text], .wiz-type-form select {
  width:100%; padding:10px 12px; border-radius:10px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1);
  color:var(--text,#f0f0ff); font-size:.85rem; font-family:inherit; box-sizing:border-box;
}
.wiz-type-form textarea { resize:vertical; min-height:60px; }
.wiz-type-form textarea:focus, .wiz-type-form input:focus, .wiz-type-form select:focus {
  outline:none; border-color:rgba(124,92,255,0.5); background:rgba(124,92,255,0.05);
}
.wiz-seg { display:flex; gap:8px; flex-wrap:wrap; }
.wiz-seg-btn {
  flex:1; min-width:180px; padding:10px 14px; border-radius:10px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1);
  color:var(--text-muted,#94a3b8); font-size:.8rem; font-weight:600; cursor:pointer;
  transition:all .15s;
}
.wiz-seg-btn:hover { border-color:rgba(124,92,255,0.35); color:var(--text,#f0f0ff); }
.wiz-seg-btn.active {
  background:linear-gradient(135deg, rgba(124,92,255,0.18), rgba(34,211,238,0.12));
  border-color:rgba(124,92,255,0.55); color:#fff;
}

/* Content ideas block */
.wiz-ideas { margin-top: 16px; padding: 14px; border-radius: 12px;
  background: rgba(124,92,255,0.05); border: 1px solid rgba(124,92,255,0.2); }
.wiz-ideas-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; font-size:.78rem; font-weight:600; color:#f0f0ff; }
.wiz-ideas-refresh { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); color:#c4b5fd; font-size:.72rem; padding:5px 10px; border-radius:8px; cursor:pointer; }
.wiz-ideas-refresh:hover { background:rgba(124,92,255,0.15); }
.wiz-ideas-loading, .wiz-ideas-empty { padding:16px; text-align:center; color:rgba(240,240,255,0.5); font-size:.78rem; }
.wiz-ideas-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:10px; }
.wiz-idea { padding:12px; border-radius:10px; background:rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.08); transition:all .15s; }
.wiz-idea:hover { border-color:rgba(124,92,255,0.4); transform:translateY(-1px); }
.wiz-idea-title { font-size:.82rem; font-weight:700; color:#f0f0ff; margin-bottom:6px; line-height:1.3; }
.wiz-idea-hook { font-size:.75rem; color:rgba(240,240,255,0.75); margin-bottom:6px; font-style:italic; line-height:1.4; }
.wiz-idea-angle { font-size:.7rem; color:rgba(240,240,255,0.55); margin-bottom:8px; line-height:1.4; }
.wiz-idea-story { font-size:.68rem; color:#a78bfa; margin-bottom:8px; }
.wiz-idea-use { width:100%; padding:7px 10px; border-radius:8px;
  background:linear-gradient(135deg, rgba(124,92,255,0.2), rgba(34,211,238,0.15));
  border:1px solid rgba(124,92,255,0.35); color:#fff; font-size:.72rem; font-weight:600; cursor:pointer; transition:all .15s; }
.wiz-idea-use:hover { background:linear-gradient(135deg, rgba(124,92,255,0.35), rgba(34,211,238,0.25)); }
