:root {
  color-scheme: dark;
  --vb-bg: #070708;
  --vb-bg-deep: #030304;
  --vb-panel: #111114;
  --vb-panel-2: #17171b;
  --vb-stone: #202025;
  --vb-iron: #34343a;
  --vb-iron-soft: #55545c;
  --vb-silver: #d5d2ca;
  --vb-muted: #98938a;
  --vb-faint: #6e6962;
  --vb-blood: #7f1118;
  --vb-blood-bright: #b51f2b;
  --vb-blood-dark: #3a080c;
  --vb-gold: #b59b65;
  --vb-success: #7ea66a;
  --vb-warning: #c29b4d;
  --vb-danger: #c84b55;
  --vb-shadow: rgba(0, 0, 0, 0.58);
  --vb-radius: 8px;
  --vb-font: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --vb-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--vb-bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(127, 17, 24, 0.22), transparent 34rem),
    linear-gradient(135deg, #050506 0%, #111115 45%, #080809 100%);
  color: var(--vb-silver);
  font-family: var(--vb-font);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(213, 210, 202, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 210, 202, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

a {
  color: #d8b86f;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #f0d08b;
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  color: #ebe7dc;
  line-height: 1.08;
}

h1,
.brand-title {
  font-family: var(--vb-serif);
  letter-spacing: 0;
}

p {
  margin: 0 0 1rem;
  color: var(--vb-muted);
  overflow-wrap: anywhere;
}

small {
  color: var(--vb-faint);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--vb-blood-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel,
.card,
.form-panel,
.notice {
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.96), rgba(14, 14, 17, 0.96));
  border: 1px solid rgba(181, 155, 101, 0.18);
  border-radius: var(--vb-radius);
  box-shadow: 0 18px 40px var(--vb-shadow);
}

.panel,
.card,
.form-panel {
  padding: 1.1rem;
  min-width: 0;
}

.notice {
  padding: 1rem;
  min-width: 0;
}

.card {
  min-height: 100%;
}

.card-title {
  display: block;
  margin-bottom: 0.35rem;
  color: #ebe7dc;
  font-weight: 800;
}

.muted {
  color: var(--vb-muted);
}

.fine-print {
  color: var(--vb-faint);
  font-size: 0.9rem;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(181, 155, 101, 0.25);
  border-radius: 7px;
  background: linear-gradient(180deg, #222228, #141418);
  color: #ece7dd;
  font: 800 0.95rem var(--vb-font);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 184, 111, 0.54);
  background: linear-gradient(180deg, #2b2b31, #17171b);
}

.button.primary,
button.primary,
input[type="submit"].primary {
  border-color: rgba(181, 31, 43, 0.85);
  background: linear-gradient(180deg, var(--vb-blood-bright), var(--vb-blood));
}

.button.secondary,
button.secondary {
  background: linear-gradient(180deg, #29292f, #19191d);
}

.button.ghost,
button.ghost {
  background: transparent;
  border-color: rgba(213, 210, 202, 0.22);
}

.button.full,
button.full {
  width: 100%;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #cac5bc;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(213, 210, 202, 0.18);
  border-radius: 7px;
  background: #09090b;
  color: #e6e1d8;
  font: 1rem var(--vb-font);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(181, 31, 43, 0.45);
  border-color: rgba(216, 184, 111, 0.55);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.modal,
.dialog {
  width: min(620px, calc(100vw - 1rem));
  max-height: calc(100vh - 1rem);
  overflow: auto;
}

.status-message {
  min-height: 1.4rem;
  margin-top: 0.75rem;
  color: var(--vb-gold);
  font-weight: 700;
}

.notice {
  padding: 0.9rem 1rem;
  color: var(--vb-silver);
}

.notice.warning {
  border-color: rgba(194, 155, 77, 0.38);
}

.notice.danger {
  border-color: rgba(200, 75, 85, 0.42);
}
