:root {
  --tp-bg: #070708;
  --tp-panel: #101014;
  --tp-border: rgba(201, 162, 39, 0.22);
  --tp-gold: #e8c547;
  --tp-text: #ece8df;
  --tp-muted: rgba(236, 232, 223, 0.62);
  --tp-ok: #3d8f5a;
  --tp-bad: #b33a3a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.tp-app {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.tp-header { text-align: center; margin-bottom: 28px; }

.tp-credit {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.tp-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--tp-gold);
}

.tp-lead {
  margin: 0;
  color: var(--tp-muted);
  line-height: 1.5;
}

.tp-form,
.tp-success {
  padding: 24px;
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  background: var(--tp-panel);
}

.tp-field {
  display: block;
  margin-bottom: 18px;
}

.tp-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.tp-hint {
  display: block;
  margin: -4px 0 8px;
  font-size: 0.82rem;
  color: var(--tp-muted);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

.tp-field input,
.tp-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--tp-text);
  font: inherit;
  resize: vertical;
}

.tp-field input:focus,
.tp-field textarea:focus {
  outline: none;
  border-color: var(--tp-gold);
}

.tp-msg {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--tp-muted);
}

.tp-msg.is-error { color: var(--tp-bad); }
.tp-msg.is-ok { color: var(--tp-ok); }

.tp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  background: transparent;
  color: var(--tp-text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.tp-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #c9a227, #9a7420);
  color: #120f08;
  font-weight: 700;
}

.tp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tp-success { text-align: center; }
.tp-success h2 { margin: 0 0 10px; color: var(--tp-gold); }
.tp-success p { margin: 0 0 18px; color: var(--tp-muted); line-height: 1.5; }
.tp-success .tp-btn { margin: 4px; }
