:root {
  --bg: #0f0f0f;
  --card: #171717;
  --muted: #9aa0a6;
  --accent: #2ecc71;
  --accent-dark: #27ae60;
  --radius: 12px;
  --glass: rgba(255, 255, 255, 0.02);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #0c0c0c 0%, #0f0f0f 100%);
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uh-header {
  width: 100%;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.uh-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.uh-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 16px 60px;
}

.uh-card {
  width: 1100px;
  max-width: calc(100% - 40px);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

.uh-left {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.uh-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.step {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.step.active {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #041205;
}

.uh-form .field-row {
  margin-bottom: 12px;
}

.uh-form label {
  display: block;
  margin-bottom: 6px;
  color: #cfd6d6;
  font-weight: 700;
  font-size: 13px;
}

.uh-form input[type="text"],
.uh-form input[type="file"],
.uh-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #eee;
  outline: none;
}

.uh-form textarea {
  resize: vertical;
  min-height: 110px;
}

.field-row.two-col {
  display: flex;
  gap: 10px;
}

.field-row.two-col>div {
  flex: 1;
}

.readonly {
  padding: 10px 12px;
  background: #0e0e0e;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: all .12s ease;
}

.chip.active {
  background: var(--accent);
  color: #041205;
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
}

.file-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: #eee;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  background: var(--accent);
  color: #041205;
  border: none;
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.08);
}

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.verify-panel {
  background: #0f0f0f;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 8px;
}

.hidden {
  display: none;
}

.progress {
  margin-top: 12px;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width .15s linear;
}

.progress-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.upload-result {
  margin-top: 12px;
}

.upload-result .error {
  color: #ff6b6b;
}

.uh-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-title {
  color: var(--muted);
  margin: 4px 0 0 2px;
  font-size: 13px;
}

.addon-card-preview {
  background: #141414;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.preview-banner {
  height: 110px;
  background-size: cover;
  background-position: center;
  border-radius: 10px 10px 0 0;
  width: 100%;
}

.preview-body {
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.preview-icon {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: -38px;
  border: 3px solid #111;
  background: #0b0b0b;
}

.preview-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-info {
  flex: 1;
}

.preview-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.preview-info .muted {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.preview-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.preview-tag {
  background: #111;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.preview-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  align-items: center;
}

.preview-actions {
  margin-top: 12px;
}

@media (max-width:1080px) {
  .uh-card {
    grid-template-columns: 1fr 320px;
    gap: 16px;
    width: calc(100% - 28px);
  }
}

@media (max-width:880px) {
  .uh-card {
    grid-template-columns: 1fr;
  }

  .uh-right {
    order: -1;
  }

  .uh-left {
    order: 2;
  }
}

.btn {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border: none;
  color: #041205;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.2);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #041205;
}

input[type="file"] {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 500;
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.file-label:hover {
  background: #222;
}

.file-label span {
  color: var(--accent);
  margin-left: 8px;
  font-weight: 700;
}

.file-label input[type="file"] {
  display: none;
}

.file-name {
  color: #aaa;
  font-size: 0.85rem;
  font-style: italic;
}