/* ============================================================
   GoPass Terminal — Screen 17: Pickup Code Entry
   ============================================================ */

/* ── Back bar ── */
.back-bar {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  flex-shrink: 0;
}

.back-bar i[data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.back-bar-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

/* ── Steps (compact, 2-step pickup sub-flow) ── */
.steps-compact {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Title ── */
.title-wrap-17 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 32px 0;
  text-align: center;
  flex-shrink: 0;
}

.screen-title-17 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0;
}

.screen-subtitle-17 {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Attempts pill ── */
.attempts-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 32px 0;
  flex-shrink: 0;
}

.attempts-pill {
  height: 32px;
  background: #FFE5E9;
  border-radius: 16px;
  border: 1px solid rgba(229, 34, 61, 0.20);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 12px;
}

.attempts-pill i[data-lucide],
.attempts-pill svg {
  width: 14px;
  height: 14px;
  color: #E5223D;
  stroke: #E5223D;
  stroke-width: 2;
  flex-shrink: 0;
}

.attempts-pill span {
  font-size: 12px;
  font-weight: 700;
  color: #E5223D;
  white-space: nowrap;
}

/* ── Code Input Slot ── */
.code-input-slot {
  width: 100%;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 32px 0;
  flex-shrink: 0;
}

.code-box {
  width: 60px;
  height: 70px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 4px 12px -4px rgba(27, 27, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-navy);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.12s;
}

.code-box.is-filled {
  border-color: var(--brand-navy);
}

.code-box.is-cursor {
  border-color: var(--brand-pink);
  animation: blink-box 1s infinite;
}

@keyframes blink-box {
  0%, 100% { border-color: var(--brand-pink); }
  50%       { border-color: rgba(229, 20, 126, 0.3); }
}

.code-dash {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

/* Shake animation for wrong code */
@keyframes code-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(4px); }
}

.code-input-slot.is-error .code-box {
  border-color: var(--error-red);
}

.code-input-slot.is-error {
  animation: code-shake 0.4s ease-in-out;
}

/* ── Keypad ── */
.keypad-slot-17 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 32px 12px;
  flex-shrink: 0;
}

.keypad-row {
  width: 100%;
  display: flex;
  gap: 12px;
}

.key-btn {
  flex: 1;
  height: 80px;
  background: var(--bg-card);
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 14px -4px rgba(27, 27, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-navy);
  transition: background 0.1s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
}

.key-btn:active {
  background: var(--bg-soft);
  transform: scale(0.96);
}

.key-btn.key-special {
  background: var(--bg-soft);
  font-size: 24px;
  color: var(--text-primary);
}

.key-btn.key-special i[data-lucide],
.key-btn.key-special svg {
  width: 26px;
  height: 26px;
  color: var(--text-primary);
  stroke: var(--text-primary);
}

/* ── Helper text ── */
.helpers-17 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 32px 24px;
  text-align: center;
  flex-shrink: 0;
}

.helper-17-main {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.helper-17-demo {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-pink);
}
