.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-dark);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 0 60px rgba(0, 255, 242, 0.3);
}

.modal h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.share-preview {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

.share-stats {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.share-stats .stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0;
}

.share-stats .stat-row:last-child {
  border-bottom: none;
}

.share-stats .stat-label {
  color: var(--text-muted);
}

.share-stats .stat-value {
  color: var(--accent-cyan);
  font-family: 'Orbitron', sans-serif;
}

.share-section {
  margin-bottom: 1rem;
}

.share-section label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.modal-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.75rem;
  border-radius: 6px;
  word-break: break-all;
}

.modal-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-buttons button {
  flex: 1;
  min-width: 80px;
  font-size: 0.65rem;
  padding: 0.5rem 0.8rem;
}
