:root {
  --bg: #0c0a0d;
  --surface: #161219;
  --surface-2: #211a26;
  --border: #32273a;
  --text: #faf7fc;
  --muted: #a699b0;
  --accent: #e11d48;
  --accent-dark: #be123c;
  --amber: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: radial-gradient(circle at top center, #2b101d 0%, var(--bg) 52%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 18px; }
.hidden { display: none !important; }

.header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-dot {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #dc2626, #be123c);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
}
.brand-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 10px; }

.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-free { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-pro { background: rgba(225, 29, 72, 0.18); color: #fda4af; border: 1px solid rgba(225, 29, 72, 0.45); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 13px; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab.active { background: var(--accent-dark); color: #fff; border-color: var(--accent); }
.pro-tag { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: rgba(245, 158, 11, 0.18); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.4); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.hint { font-size: 13px; color: var(--muted); }
code { background: var(--surface-2); padding: 2px 5px; border-radius: 4px; font-size: 12px; }

.dropzone {
  display: block; border: 2px dashed var(--border); border-radius: 12px;
  padding: 26px 16px; text-align: center; cursor: pointer; color: #fda4af;
  background: rgba(225, 29, 72, 0.04); font-weight: 600; font-size: 14px;
}
.dropzone:hover { border-color: var(--accent); background: rgba(225, 29, 72, 0.08); }
.dropzone input { display: none; }

.file-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 13px;
}
.file-actions { display: flex; gap: 6px; }
.mini-btn { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 11px; cursor: pointer; }

.field-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field-row label { font-size: 13px; font-weight: 600; min-width: 130px; }
.input {
  flex: 1; min-width: 180px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px;
}

.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 1px solid var(--border); border-radius: 9px; padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent-dark); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-pro-solid { background: var(--amber); color: #0c0a0d; border-color: var(--amber); }

.toast { background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.toast.error { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }

.pro-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.license-row { display: flex; gap: 8px; flex-wrap: wrap; }
.license-msg { font-size: 12px; color: #fca5a5; }
.pro-active-box { display: flex; justify-content: space-between; align-items: center; background: rgba(225, 29, 72, 0.12); border: 1px solid rgba(225, 29, 72, 0.4); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #fda4af; font-weight: 600; }

.suite-note { text-align: center; font-size: 12px; color: var(--muted); }
.suite-note a { color: #fda4af; text-decoration: none; }
