/* BINGO.UZ — Ekran qulfi overlay */

.bingo-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.bingo-lock-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.bingo-lock-overlay.is-unlocking {
  animation: lockUnlockFade 0.55s ease forwards;
}

.bingo-lock-overlay.is-unlocking .bingo-lock-card {
  animation: lockUnlockGlow 0.55s ease forwards;
}

@keyframes lockUnlockGlow {
  0% { box-shadow: 0 24px 80px rgba(0,0,0,.28), 0 0 0 0 rgba(13,148,136,.45); }
  50% { box-shadow: 0 24px 80px rgba(0,0,0,.28), 0 0 0 12px rgba(13,148,136,.25); }
  100% { box-shadow: 0 24px 80px rgba(0,0,0,.28), 0 0 0 24px rgba(13,148,136,0); transform: scale(1.03); }
}

.bingo-lock-bio-btn.is-scanning svg {
  animation: bioIconScan 1.2s ease-in-out infinite;
}

@keyframes bioIconScan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

@keyframes lockUnlockFade {
  to { opacity: 0; transform: scale(1.03); visibility: hidden; }
}

.bingo-lock-overlay.is-shake .bingo-lock-card {
  animation: lockShake 0.45s ease;
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.bingo-lock-card {
  width: min(100%, 360px);
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.97) 0%, rgba(248,250,252,.95) 100%);
  box-shadow:
    0 24px 80px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.6) inset;
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

[data-theme="dark"] .bingo-lock-card,
html[data-theme-mode="dark"] .bingo-lock-card {
  background: linear-gradient(160deg, rgba(30,32,38,.97) 0%, rgba(22,24,30,.95) 100%);
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08) inset;
}

.bingo-lock-overlay.is-visible .bingo-lock-card {
  transform: translateY(0) scale(1);
}

.bingo-lock-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  color: #fff;
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(13,148,136,.35);
  overflow: hidden;
}

.bingo-lock-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.bingo-lock-time {
  font-size: 42px; font-weight: 300;
  letter-spacing: -1px; line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.bingo-lock-date {
  font-size: 14px;
  color: var(--color-text-secondary, #64748b);
  margin-bottom: 20px;
}

.bingo-lock-title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 18px;
  color: var(--color-text-secondary, #64748b);
}

.bingo-lock-dots {
  display: flex; justify-content: center; gap: 14px;
  margin-bottom: 22px; min-height: 14px;
}

.bingo-lock-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--shell-accent, #0d9488);
  background: transparent;
  transition: background .15s, transform .15s;
}

.bingo-lock-dot.filled {
  background: var(--shell-accent, #0d9488);
  transform: scale(1.08);
}

.bingo-lock-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
}

.bingo-lock-key {
  aspect-ratio: 1.35;
  border: none;
  border-radius: 14px;
  background: var(--color-bg-secondary, rgba(241,245,249,.9));
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  transition: background .12s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bingo-lock-key:active {
  transform: scale(0.94);
  background: var(--shell-accent-soft, rgba(13,148,136,.15));
}

.bingo-lock-key--empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.bingo-lock-key--del {
  font-size: 18px;
  color: var(--color-text-secondary, #64748b);
}

.bingo-lock-bio {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bingo-lock-bio-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, rgba(13,148,136,.12), rgba(59,130,246,.1));
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}

.bingo-lock-bio-btn:active { transform: scale(0.92); }

.bingo-lock-bio-btn svg {
  width: 32px; height: 32px;
  color: var(--shell-accent, #0d9488);
}

.bingo-lock-bio-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--shell-accent, #0d9488);
  opacity: 0;
  animation: bioPulse 2s ease-out infinite;
}

.bingo-lock-bio-btn.is-scanning::before {
  animation: bioScan 1.2s ease-in-out infinite;
}

@keyframes bioPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes bioScan {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.2); opacity: .3; }
}

.bingo-lock-bio-label {
  font-size: 13px;
  color: var(--shell-accent, #0d9488);
  font-weight: 600;
}

.bingo-lock-error {
  font-size: 13px;
  color: #ef4444;
  min-height: 18px;
  margin-bottom: 8px;
}

/* PIN setup modal */
.bingo-pin-setup {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
}

.bingo-pin-setup[hidden] { display: none; }

.bingo-pin-setup__card {
  width: min(100%, 380px);
  padding: 24px;
  border-radius: 20px;
  background: var(--shell-surface, #fff);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.bingo-pin-setup__title {
  font-size: 18px; font-weight: 700;
  margin: 0 0 8px;
}

.bingo-pin-setup__hint {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}

.bingo-pin-setup__actions {
  display: flex; gap: 10px; margin-top: 20px;
}

.bingo-pin-setup__actions .btn { flex: 1; }

/* Settings screen lock section */
.screen-lock-status {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13,148,136,.08), rgba(59,130,246,.06));
  margin-bottom: 16px;
}

.screen-lock-status__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.screen-lock-status__text strong {
  display: block; font-size: 14px; margin-bottom: 2px;
}

.screen-lock-status__text span {
  font-size: 12px; color: var(--color-text-secondary);
}

.screen-lock-timeout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.screen-lock-timeout-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--shell-border, var(--color-border));
  background: transparent;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.screen-lock-timeout-btn.active {
  border-color: var(--shell-accent, #0d9488);
  background: var(--shell-accent-soft, rgba(13,148,136,.12));
  color: var(--shell-accent, #0d9488);
}
