.archive-header {
  text-align: center;
  margin-bottom: 40px;
}

.archive-header h2 {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.file-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.file-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 5px 20px rgba(56, 189, 248, 0.15);
}

.file-card.locked {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(15, 10, 18, 0.6);
}

.file-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.file-card h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 12px 0;
}

.status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 3px;
}

.status.unlocked { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.status.lock-status { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg-deep);
  border: 1px solid var(--accent-purple);
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 15px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }
.modal-body { font-size: 0.95rem; line-height: 1.6; color: var(--text-main); }