/* Pagina de pontaj (ținta codului QR). Mobile-first, o singură coloană. */

.clock-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.15rem 2rem;
}

.clock-shell {
  width: min(100%, 27rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Antet cu locația și ceasul viu — eroul paginii */
.clock-head {
  text-align: center;
  padding-top: 0.5rem;
}
.loc-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.loc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: now-pulse 2s ease-in-out infinite;
}
@keyframes now-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.now-clock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(3.4rem, 18vw, 4.6rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
}
.now-clock .sec {
  color: var(--muted-2);
  font-size: 0.5em;
  vertical-align: baseline;
}
.now-clock .colon {
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.now-date {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: capitalize;
}

.clock-card {
  margin-top: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem 1.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}
.card-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Afișaj PIN */
.pin-display {
  margin: 1.1rem auto 1.25rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}
.pin-slot {
  width: 2.7rem;
  height: 3.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--ink);
}
.pin-slot.filled {
  border-color: var(--ink);
  background: #fff;
}
.pin-slot .bullet {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ink);
}

/* Tastatură numerică */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.key {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  height: 3.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.1s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}
.key:hover {
  background: var(--surface-2);
}
.key:active {
  transform: translateY(1px);
  background: var(--line);
}
.key.util {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
}
.key:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Ecran de confirmare */
.confirm-name {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.confirm-status {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.confirm-status strong {
  color: var(--ink);
  font-family: var(--font-mono);
}
.confirm-note {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
}

/* Ștampila de confirmare — momentul-semnătură */
.stamp-wrap {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.stamp {
  display: inline-block;
  border: 3px solid var(--signal);
  color: var(--signal-ink);
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  transform: rotate(-3deg);
  animation: stamp-press 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.stamp .stamp-kind {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  line-height: 1;
}
.stamp .stamp-time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
  line-height: 1;
}
.stamp .stamp-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--signal-ink);
  opacity: 0.85;
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
}
@keyframes stamp-press {
  0% {
    opacity: 0;
    transform: rotate(-3deg) scale(1.9);
  }
  60% {
    opacity: 1;
    transform: rotate(-3deg) scale(0.94);
  }
  100% {
    transform: rotate(-3deg) scale(1);
  }
}

.result-detail {
  text-align: center;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.result-detail strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.clock-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  text-align: center;
}
.clock-foot a {
  font-size: 0.8rem;
  color: var(--muted-2);
  text-decoration: none;
}

.err-line {
  margin-top: 1rem;
  text-align: center;
  color: var(--signal-ink);
  font-size: 0.9rem;
  min-height: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .loc-dot,
  .now-clock .colon,
  .stamp {
    animation: none;
  }
}
