:root {
  --bg: #090909;
  --bg-soft: #111111;
  --panel: rgba(18, 18, 18, 0.92);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f3f3f3;
  --muted: #a8abb3;
  --danger: #d31522;
  --danger-soft: rgba(211, 21, 34, 0.18);
  --danger-strong: #ff2434;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(211, 21, 34, 0.26), transparent 28%),
    radial-gradient(circle at bottom right, rgba(211, 21, 34, 0.18), transparent 24%),
    linear-gradient(135deg, #050505, #0f0f0f 55%, #090909);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6), transparent);
}

.app-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.ambient {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-left {
  top: 10%;
  left: -60px;
  background: rgba(255, 36, 52, 0.15);
}

.ambient-right {
  right: -40px;
  bottom: 8%;
  background: rgba(255, 36, 52, 0.12);
}

.panel {
  position: relative;
  width: min(100%, 560px);
  padding: 30px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--danger-strong), transparent);
}

.screen {
  display: none;
  animation: rise-in 0.35s ease;
}

.screen.active {
  display: block;
}

.hero-badge,
.section-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 28px auto 24px;
}

h1,
h2,
.wait-title,
.queue-value {
  margin: 0;
  font-family: "Russo One", sans-serif;
  text-transform: uppercase;
}

h1,
h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.lead.compact {
  margin-bottom: 18px;
}

.primary-button,
.ghost-button {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-family: "Russo One", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--danger), var(--danger-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(211, 21, 34, 0.28);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.72;
  cursor: progress;
  transform: none;
}

.warning-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 36, 52, 0.32);
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: #ffdadd;
  font-size: 14px;
  line-height: 1.55;
}

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

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #d9dce3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7c818a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 36, 52, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 36, 52, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.field textarea {
  resize: vertical;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 20px;
}

.status-message {
  min-height: 20px;
  margin: 16px 0 0;
  color: #ffdadd;
  font-size: 14px;
}

.wait-card {
  position: relative;
  margin: 22px 0 20px;
  padding: 28px 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(211, 21, 34, 0.16), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  overflow: hidden;
}

.wait-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 36, 52, 0.18);
  filter: blur(14px);
}

.wait-title {
  font-size: 20px;
  line-height: 1.25;
}

.queue-value {
  margin: 18px 0 6px;
  font-size: clamp(58px, 14vw, 90px);
  color: var(--danger-strong);
  text-shadow: 0 0 26px rgba(255, 36, 52, 0.22);
}

.queue-caption,
.ticket-label {
  color: var(--muted);
  text-align: center;
}

.ticket-label {
  margin-top: 18px;
  font-size: 14px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .panel {
    padding: 24px 16px 20px;
    border-radius: 24px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }
}

