:root {
  --bg: #0b1020;
  --panel: #111936;
  --panel-2: #182347;
  --text: #f4f7ff;
  --muted: #b7c0df;
  --line: rgba(255,255,255,0.08);
  --primary: #7c3aed;
  --primary-2: #9f67ff;
  --accent: #f59e0b;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(circle at top, #172554 0%, var(--bg) 45%); color: var(--text); }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.ghost-link { color: var(--muted); font-size: 14px; }
.card-panel { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--line); border-radius: 24px; padding: 20px; backdrop-filter: blur(14px); box-shadow: 0 16px 50px rgba(0,0,0,0.25); }
.eyebrow { display:inline-flex; padding:6px 10px; border-radius:999px; background:rgba(124,58,237,0.16); color:#d9c8ff; font-size:12px; font-weight:600; margin-bottom:12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
h2 { font-size: 22px; margin-bottom: 4px; }
p { color: var(--muted); line-height: 1.5; }
.section-head { display:flex; align-items:flex-start; gap:12px; margin-bottom: 16px; }
.section-head p { margin-bottom:0; }
.step { width: 34px; height: 34px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-weight:700; background: rgba(124,58,237,0.2); color:#e9ddff; }
.stack-form { display:flex; flex-direction:column; gap:14px; }
label { display:flex; flex-direction:column; gap:8px; color: var(--muted); font-size: 13px; }
input, textarea, select { width: 100%; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,0.04); color: var(--text); outline: none; }
input::placeholder, textarea::placeholder { color: #8e9ac5; }
textarea { resize: vertical; }
input[type="color"] { min-height: 48px; padding: 6px; }
input[type="file"] { padding: 10px; }
.field-grid { display:grid; gap:12px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn { min-height: 46px; padding: 0 16px; border: 0; border-radius: 14px; font-weight: 700; cursor: pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); border:1px solid rgba(255,255,255,0.08); }
.inline-actions, .hero-actions, .form-actions { display:flex; gap:10px; flex-wrap:wrap; }
.toggle-row { flex-direction:row; align-items:center; gap:10px; }
.toggle-row input { width:auto; }
.status-box { border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,0.05); font-size: 14px; line-height:1.5; }
.muted { color: var(--muted); }
.success { color: #dcfce7; background: rgba(22,163,74,0.16); }
.warn { color: #fff7db; background: rgba(245,158,11,0.15); }
.error { color: #ffe4e6; background: rgba(239,68,68,0.16); }
.disabled-link { opacity: 0.5; pointer-events: none; }
.live-preview { min-height: 300px; display:grid; place-items:center; border-radius:20px; background: radial-gradient(circle at top left, rgba(124,58,237,0.5), rgba(17,25,54,0.4)); border:1px dashed rgba(255,255,255,0.12); overflow:hidden; }
.preview-card { width:min(280px, 88%); aspect-ratio: 5 / 7; border-radius: 24px; padding: 18px; display:flex; flex-direction:column; justify-content:space-between; color:white; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.preview-card .card-front { font-size: 24px; font-weight: 800; }
.preview-card .card-message { font-size: 14px; line-height:1.5; }
.preview-card .card-meta { font-size: 12px; opacity:0.86; }
.plain-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
@media (max-width: 860px) { .two-up, .three-up { grid-template-columns: 1fr; } .topbar { padding: 16px; } }
