* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0A0A0A;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding: 2rem;
}

.tool-page { max-width: 820px; margin: 0 auto; }

.tool-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 0.5px solid #222;
}
.tool-logo { font-size: 16px; font-weight: 800; letter-spacing: 4px; color: #C9A84C; text-decoration: none; }
.tool-back { font-size: 13px; color: #666; text-decoration: none; transition: color 0.2s; }
.tool-back:hover { color: #C9A84C; }

.tool-header { margin-bottom: 2rem; }
.tool-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.tool-header p { font-size: 14px; color: #666; }

.section-label { font-size: 10px; letter-spacing: 2px; color: #C9A84C; margin-bottom: 1rem; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.field label { font-size: 12px; color: #888; letter-spacing: 0.5px; }
.field input, .field textarea, .field select {
  background: #111; border: 0.5px solid #2A2A2A; border-radius: 8px;
  padding: 10px 14px; color: #fff; font-size: 13px; outline: none;
  font-family: inherit; transition: border-color 0.2s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: #C9A84C; }
.field input::placeholder, .field textarea::placeholder { color: #444; }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.field select option { background: #111; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: 1 / -1; }

.btn-generate {
  background: #C9A84C; color: #0A0A0A; border: none;
  padding: 14px 28px; border-radius: 8px; font-size: 13px;
  font-weight: 700; letter-spacing: 1px; cursor: pointer;
  width: 100%; margin-top: 0.5rem; transition: background 0.2s;
}
.btn-generate:hover { background: #E0BC6A; }
.btn-generate:disabled { background: #5a4a1e; color: #888; cursor: not-allowed; }

.error-box {
  background: #1a0808; border: 0.5px solid #5a1a1a; border-radius: 8px;
  padding: 12px 16px; color: #ff6b6b; font-size: 13px; margin-top: 1rem; display: none;
}

.note { font-size: 11px; color: #555; text-align: center; margin-top: 10px; line-height: 1.6; }

.loading-bar {
  display: none; background: #111; border: 0.5px solid #2A2A2A;
  border-radius: 10px; padding: 2rem; text-align: center; margin-top: 1rem;
}
.loading-bar p { color: #888; font-size: 13px; margin-top: 1rem; }
.spinner {
  width: 32px; height: 32px; border: 2px solid #222;
  border-top-color: #C9A84C; border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.output-wrap { display: none; margin-top: 2rem; border-top: 0.5px solid #222; padding-top: 2rem; }
.output-label { font-size: 10px; letter-spacing: 2px; color: #C9A84C; margin-bottom: 1rem; }
.output-box {
  background: #111; border: 0.5px solid #2A2A2A; border-radius: 10px;
  padding: 1.5rem; color: #ddd; font-size: 13px; line-height: 2;
  white-space: pre-wrap; font-family: 'Inter', sans-serif;
}

.out-actions { display: flex; gap: 10px; margin-top: 1rem; }
.out-btn {
  flex: 1; background: transparent; border: 0.5px solid #333; border-radius: 8px;
  padding: 10px; color: #888; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; transition: all 0.2s;
}
.out-btn:hover { border-color: #C9A84C; color: #C9A84C; }
.out-btn-gold { border-color: #C9A84C44; color: #C9A84C; }

.reset-btn {
  background: #111; border: 0.5px solid #333; border-radius: 8px;
  padding: 10px 20px; color: #888; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; cursor: pointer; margin-top: 1rem; width: 100%; transition: all 0.2s;
}
.reset-btn:hover { border-color: #C9A84C; color: #C9A84C; }

.selector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 1.5rem; }
.selector-btn {
  background: #111; border: 0.5px solid #2A2A2A; border-radius: 8px;
  padding: 12px 8px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.selector-btn:hover { border-color: #C9A84C44; }
.selector-btn.selected { border-color: #C9A84C; background: #0F0E08; }
.selector-btn span { font-size: 11px; color: #666; font-weight: 500; letter-spacing: 0.5px; transition: color 0.2s; display: block; margin-top: 6px; }
.selector-btn.selected span { color: #C9A84C; }

.disclaimer {
  background: #0F0E08; border: 0.5px solid #C9A84C22;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 1.5rem;
  font-size: 11px; color: #666; line-height: 1.7;
}
.disclaimer b { color: #C9A84C; }

@media (max-width: 600px) {
  body { padding: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .full { grid-column: 1; }
}
