:root {
  --bg: #080a0b;
  --panel: rgba(18, 22, 24, 0.94);
  --panel-soft: rgba(22, 27, 29, 0.84);
  --steel: #7e898e;
  --steel-light: #c2c9cc;
  --steel-dark: #31383b;
  --red: #d52c27;
  --red-dark: #701713;
  --gold: #c4a34c;
  --green: #65d57b;
  --text: #f4f1ea;
  --muted: #a8afb1;
  --danger: #ff6d65;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --heading: Futura, "Futura PT", "Trebuchet MS", Arial, sans-serif;
  --body: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.metal-button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #899398;
  border-bottom-color: #252b2e;
  border-radius: 3px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(180deg, #343c40 0%, #1a1f21 54%, #101416 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(0,0,0,.8),
    0 7px 16px rgba(0,0,0,.35);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .04em;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.metal-button::after,
.button::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.metal-button:hover,
.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 10px 22px rgba(0,0,0,.5);
}
.metal-button.primary,
.button.primary {
  border-color: #ff6962;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(180deg, #e43b34 0%, #a71d19 52%, #64100d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 0 22px rgba(211,43,37,.22), 0 8px 18px rgba(0,0,0,.4);
}
.button.danger { background: linear-gradient(180deg, #7c2925, #35100f); border-color: #a74a45; }
.button.ghost { background: rgba(11, 14, 15, .72); }
.button.small { min-height: 34px; padding: 6px 11px; font-size: .82rem; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.form-field { display: grid; gap: 7px; }
.form-field label,
.form-field > span {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #c8cecf;
}
input, select, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(7, 10, 11, .86);
  border: 1px solid #596266;
  border-radius: 3px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #c8d0d2;
  box-shadow: 0 0 0 3px rgba(185, 198, 202, .12);
}
textarea { min-height: 105px; resize: vertical; }

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 36px));
}
.toast {
  padding: 13px 15px;
  border: 1px solid #5d686b;
  background: rgba(18, 23, 25, .97);
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.loading-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  background-size: 200% 100%;
  animation: loading 1.2s linear infinite;
}
@keyframes loading { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
