/* Seed Commitment Modal Styles */

.seed-commitment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.seed-commitment-modal {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header h3 i {
  color: #10b981;
  font-size: 1.8rem;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 24px;
}

.seed-info p {
  color: #d1d5db;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.seed-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.seed-display strong {
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.seed-display code {
  background: rgba(0, 0, 0, 0.3);
  color: #10b981;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  display: block;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.seed-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.seed-warning i {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.seed-warning small {
  color: #d97706;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 600px) {
  .seed-commitment-modal {
    margin: 20px;
    width: calc(100% - 40px);
  }

  .modal-header {
    padding: 20px 20px 12px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 12px 20px 20px;
    flex-direction: column;
  }

  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    width: 100%;
  }

  .seed-display code {
    font-size: 0.8rem;
  }
}

/* Loading spinner */
.btn-primary i.fa-spinner {
  animation: spin 1s linear infinite;
}

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

/* ===== VERIFYING MODAL ===== */

.verifying-modal {
  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: 10000;
  font-family: 'Geist', sans-serif;
  backdrop-filter: blur(4px);
  animation: verifying-modal-fade-in 0.3s ease-out;
}

.verifying-modal-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  min-width: 320px;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.verifying-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
  background-size: 200% 100%;
  animation: verifying-gradient-shift 2s ease-in-out infinite;
}

.verifying-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: verifying-pulse 2s ease-in-out infinite;
  color: #10b981;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.verifying-text {
  color: #f8fafc;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.verifying-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #334155;
  border-top: 4px solid #10b981;
  border-radius: 50%;
  animation: verifying-spin 1.2s linear infinite;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

@keyframes verifying-modal-fade-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

@keyframes verifying-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes verifying-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes verifying-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive adjustments for verifying modal */
@media (max-width: 600px) {
  .verifying-modal-content {
    margin: 1rem;
    padding: 1.5rem;
    min-width: 280px;
    max-width: none;
  }

  .verifying-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .verifying-text {
    font-size: 1.1rem;
  }

  .verifying-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
  }
}

/* Dark mode support for verifying modal */
@media (prefers-color-scheme: dark) {
  .verifying-modal-content {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border-color: #475569;
  }

  .verifying-text {
    color: #f1f5f9;
  }
}

/* ===== END VERIFYING MODAL ===== */