* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: #e5e7eb;
  display: flex;
  align-items: flex-start;  
  justify-content: center;
  overflow-y: auto;        
  overflow-x: hidden;
  padding: 24px 0;           
}

.bg-orbit {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 80px rgba(59, 130, 246, 0.35);
  top: -150px;
  right: -100px;
  filter: blur(0.5px);
  animation: orbit 30s linear infinite;
  pointer-events: none;
  opacity: 0.45;
}

.bg-orbit.orbit-2 {
  width: 450px;
  height: 450px;
  top: auto;
  bottom: -120px;
  right: auto;
  left: -80px;
  animation-duration: 40s;
  opacity: 0.3;
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateY(0);
  }
  to {
    transform: rotate(360deg) translateY(0);
  }
}

main#app {
  width: 100%;
  max-width: 720px;
  padding: 28px 24px 20px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(22px);
  position: relative;
  z-index: 1;
}

/* HEADER */

.header {
  text-align: center;
  margin-bottom: 18px;
}

.header .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.9),
    rgba(30, 64, 175, 0.2)
  );
}

.header h1 {
  font-size: 26px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 13px;
  color: #9ca3af;
}

/* ZAMAN ÇİZGİSİ */

.timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.timeline .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.timeline .value {
  font-size: 14px;
  font-weight: 500;
}

.timeline-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(148, 163, 184, 0.7),
    transparent
  );
}

/* GENEL PANEL TARZI */

.panel {
  background: radial-gradient(circle at top left, #0b1120, #020617);
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 16px 14px 14px;
  margin-bottom: 12px;
}

.panel h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

/* GERİ SAYIM */

.countdown {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.time-box {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(75, 85, 99, 0.8);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.time-box span {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.time-box small {
  font-size: 11px;
  color: #9ca3af;
}

.status {
  font-size: 13px;
}

.status.locked {
  color: #f97316;
}

.status.unlocked {
  color: #22c55e;
}

/* ŞİFRE PANELİ */

.hint {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0 10px;
  border-radius: 10px;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

input[type="password"]::placeholder {
  color: #6b7280;
}

input[type="password"]:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: white;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.7);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.error {
  color: #fb923c;
  font-size: 12px;
  min-height: 16px;
}

/* VİDEO PANELİ */

video {
  width: 100%;
  border-radius: 14px;
  margin-top: 8px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #000;
}

.info {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 8px;
}

/* FOOTER */

.footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(55, 65, 81, 0.8);
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
}

/* GENEL YARDIMCI CLASSLAR */

.hidden {
  display: none;
}

/* Mobil için ufak sıkıştırma */

@media (max-width: 480px) {
  main#app {
    margin: 10px;
    padding: 18px 14px 16px;
  }

  .header h1 {
    font-size: 22px;
  }

  .timeline {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-divider {
    width: 80%;
    height: 1px;
  }

  .countdown {
    gap: 6px;
  }

  .time-box span {
    font-size: 18px;
  }
}

.speed-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.speed-controls button {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  cursor: pointer;
  box-shadow: none;
}

.speed-controls button:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #60a5fa;
}

.speed-controls button.active {
  background: linear-gradient(135deg, #2563eb, #22c55e);
  border-color: transparent;
}

#vault-video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}

#vault-video:fullscreen {
  object-fit: cover;
}

#vault-video:-webkit-full-screen {
  object-fit: cover;
}
