* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0e1116; --card: #171b23; --card2: #1e242f; --text: #e8ecf2; --dim: #8b95a6;
  --accent: #7c5cff; --accent2: #9d7cff; --ok: #34d399; --err: #f87171; --border: #2a3140;
}
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.5; }
header { text-align: center; padding: 36px 16px 8px; }
header h1 { font-size: 2rem; letter-spacing: -0.5px; }
header .sub { color: var(--dim); margin-top: 6px; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: var(--dim); font-size: 0.8rem; padding: 24px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin: 18px 0; }
.card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--accent); border-radius: 50%; font-size: 0.85rem; margin-right: 8px; }
.hidden { display: none !important; }
.hint { color: var(--dim); font-weight: normal; font-size: 0.82rem; }
.error { color: var(--err); font-size: 0.9rem; margin-top: 8px; }
.dim { color: var(--dim); }

label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 0.92rem; }
input[type=text], input[type=password], textarea, select {
  width: 100%; background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
}
textarea { resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.row { display: flex; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

button, .btn {
  background: var(--card2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 16px; font-size: 0.95rem; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
button:hover, .btn:hover { border-color: var(--accent); }
button:disabled { opacity: 0.6; cursor: default; }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; font-weight: 600; }
.big { width: 100%; margin-top: 18px; padding: 14px; font-size: 1.05rem; }

.dropzone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 34px 16px; text-align: center;
  color: var(--dim); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: rgba(124, 92, 255, 0.06); color: var(--text); }

.progress { position: relative; height: 26px; background: var(--card2); border-radius: 8px; margin-top: 12px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); transition: width 0.2s; }
.progress span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; }

.assets { list-style: none; margin-top: 12px; }
.assets li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--card2); border-radius: 8px; margin: 6px 0; font-size: 0.9rem; }
.assets .del { padding: 2px 9px; font-size: 0.8rem; color: var(--dim); }
.assets .del:hover { color: var(--err); border-color: var(--err); }

.status { padding: 10px 14px; background: var(--card2); border-radius: 8px; margin-bottom: 16px; font-size: 0.95rem; }
.status.error { color: var(--err); }
.badge { background: rgba(124, 92, 255, 0.2); color: var(--accent2); border-radius: 20px; padding: 2px 10px; font-size: 0.75rem; margin-left: 8px; }

.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.variant { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vhead h3 { font-size: 1rem; }
.vhead .dim { font-size: 0.78rem; white-space: nowrap; }
.hook { font-style: italic; color: var(--accent2); font-size: 0.88rem; }
.media video { width: 100%; aspect-ratio: 9/16; border-radius: 8px; background: #000; }
.media .ph { aspect-ratio: 9/16; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #10141b; border-radius: 8px; color: var(--dim); text-align: center; font-size: 0.85rem; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions .primary { width: 100%; }

.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--dim); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
