:root {
  --bg: #0b0f14;
  --card: #121826;
  --text: #e6edf3;
  --muted: #9fb0c0;
  --line: rgba(255,255,255,.08);
  --accent: #4ea1ff;
  --danger: #ff5a6a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, rgba(78,161,255,.15), transparent 60%),
              radial-gradient(1000px 700px at 90% 10%, rgba(255,90,106,.12), transparent 55%),
              var(--bg);
  color: var(--text);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 40px; }
.top h1 { margin: 0 0 8px; font-size: 30px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

h2 { margin: 8px 0 12px; font-size: 18px; }

.lbl { display: block; margin-bottom: 12px; font-weight: 600; }
.lbl input, .lbl select {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
}
.lbl input:focus, .lbl select:focus { border-color: rgba(78,161,255,.6); box-shadow: 0 0 0 3px rgba(78,161,255,.12); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.drop {
  position: relative;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  user-select: none;
}
.drop.drag { border-color: rgba(78,161,255,.9); box-shadow: 0 0 0 4px rgba(78,161,255,.12); }
.drop input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.logoRow { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; }
.logoPreview { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); display: none; object-fit: cover; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.btn {
  border: 1px solid rgba(78,161,255,.55);
  background: rgba(78,161,255,.15);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

.preview {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  min-height: 380px;
  position: relative;
}
.preview img {
  max-width: min(420px, 100%);
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  display: none;
}
#hint { text-align: center; }

hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.details summary { cursor: pointer; margin-top: 12px; }
.foot { margin-top: 18px; text-align: center; }
