/* Design tokens portados do protótipo de alta fidelidade
   (_extracted/fila_digital/design_handoff_fila_digital/README.md) */
:root {
  --bg: #0e0e0e;
  --bg-card: #1a1a1a;
  --bg-card-2: #111111;
  --border: #2a2a2a;
  --border-2: #222222;
  --border-3: #252525;

  --text: #f0eae2;
  --text-secondary: #7a7670;
  --text-secondary-2: #888880;
  --text-tertiary: #3a3a38;
  --text-tertiary-2: #505050;
  --text-tertiary-3: #444440;

  --blue: #1e4fc8;
  --blue-bg: #08101e;
  --blue-bg-2: #131e48;
  --blue-bg-3: #2a4a88;

  --green: #4caf50;
  --green-bg: #0a2010;
  --green-bg-2: #1a4a1a;
  --green-light: #5cbf5c;

  --gold: #c9a000;
  --gold-bg: #1a1400;
  --gold-bg-2: #181200;
  --gold-bg-3: #352c00;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: Oswald, sans-serif;
  font-weight: 700;
}

button { font-family: Inter, sans-serif; cursor: pointer; }
input, textarea, select {
  font-family: Inter, sans-serif;
  color: var(--text);
  background: transparent;
}
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
a { color: var(--blue); text-decoration: none; }

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-vh, 100dvh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.screen-flow {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-vh, 100dvh);
  max-width: 500px;
  margin: 0 auto;
}

.container-narrow { width: 100%; max-width: 460px; }
.container-form { width: 100%; max-width: 420px; }

.btn-primary {
  background: var(--blue);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  width: 100%;
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-3);
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  color: var(--text-secondary);
  width: 100%;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--border-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
  padding: 6px 12px;
  line-height: 1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.input-field {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 20px;
  width: 100%;
  outline: none;
}

.progress-bar { display: flex; gap: 4px; padding: 10px 20px; }
.progress-seg { flex: 1; height: 3px; border-radius: 2px; background: var(--border-2); }
.progress-seg.active { background: var(--blue); }

.header-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #181818;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #0c2a0c;
  border: 1px solid #246024;
  color: var(--green-light);
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: up 0.25s ease; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-light);
  animation: pulse 2s infinite;
  display: inline-block;
}

.bottom-nav {
  flex-shrink: 0;
  display: flex;
  border-top: 1px solid #181818;
  background: var(--bg);
}
.bottom-nav a, .bottom-nav button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-tertiary-2);
  font-size: 11px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.bottom-nav a.active, .bottom-nav button.active { color: var(--blue); }
