:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --primary-glow: rgba(0, 212, 255, 0.3);
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --bg-deep: #030712;
  --bg-dark: #0a0f1a;
  --bg-card: rgba(15, 23, 42, 0.8);
  --bg-elevated: rgba(30, 41, 59, 0.6);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(0, 212, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  min-height: 100vh;
  color: var(--text-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(124, 58, 237, 0.06), transparent);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q50,40 100,60 T200,60 T300,45 T400,75 T500,50 T600,70 T700,40 T800,65 T900,55 T1000,60 T1100,50 T1200,60' stroke='rgba(0,212,255,0.04)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0,80 Q50,90 100,75 T200,85 T300,70 T400,90 T500,75 T600,85 T700,70 T800,88 T900,72 T1000,80 T1100,75 T1200,82' stroke='rgba(124,58,237,0.03)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 200px;
  background-repeat: repeat-y;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

#app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.header {
  text-align: center;
  padding: 60px 20px 20px;
  margin-bottom: 0;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.header .logo-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  box-shadow: 0 0 50px var(--primary-glow);
}

.header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.header .tagline {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.header .powered-by {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header .powered-by a {
  color: var(--primary);
  text-decoration: none;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.nav button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav button:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav button:hover::before {
  opacity: 1;
}

.nav button.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.1));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.nav button.active::before {
  opacity: 1;
}

.section {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.02));
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.card h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 1.55rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Centered Section Styling */
.centered-section {
  text-align: center;
}

.centered-section h2 {
  justify-content: center;
  font-size: 1.75rem;
}

.centered-section h2::before {
  display: none;
}

.centered-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-deep);
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-deep);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  background: linear-gradient(135deg, var(--bg-elevated), rgba(0, 212, 255, 0.03));
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.5;
}

.feature-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-item .feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border-glow);
}

.feature-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.download-section {
  text-align: center;
  padding: 48px;
}

.download-section h2 {
  margin-bottom: 20px;
}

.download-section p {
  margin-bottom: 32px;
  color: var(--text-secondary);
}

.code-block {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  text-align: left;
}

.code-block code {
  color: var(--primary);
}

.license-list {
  margin-top: 24px;
}

.license-item {
  background: var(--bg-elevated);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.license-item:hover {
  border-color: var(--border-glow);
}

.license-key {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.license-status {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.license-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.license-status.expired {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-elevated), rgba(0, 212, 255, 0.06));
  padding: 32px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.12);
}

.stat-card .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 500;
}

.message {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-elevated);
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.user-info .avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-deep);
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.terms-text {
  background: var(--bg-elevated);
  padding: 24px;
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.terms-text h4 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.terms-text ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nav button {
    width: 100%;
    max-width: 280px;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.pricing-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.5;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
  border-color: var(--primary);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.05));
  box-shadow: 0 0 40px var(--primary-glow);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-deep);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.pricing-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.pricing-card .price-term {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.pricing-card .feature-list {
  list-style: none;
  text-align: left;
  margin: 28px 0;
}

.pricing-card .feature-list li {
  padding: 12px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-card .feature-list li:before {
  content: ">";
  color: var(--primary);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.wizard-progress .step {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.wizard-progress .step.active {
  color: var(--primary);
  font-weight: 600;
}

.wizard-progress .step.completed {
  color: var(--success);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.upload-area {
  border: 2px dashed var(--border-glow);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-elevated);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 0 30px var(--primary-glow);
}

.upload-content .upload-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.uploaded-file {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.uploaded-file.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.review-section {
  background: var(--bg-elevated);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.review-section h4 {
  color: var(--primary);
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.pricing-summary .price-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-summary .price-line.total {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  margin-top: 12px;
  padding-top: 16px;
}

.project-item {
  background: var(--bg-elevated);
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.7rem;
  margin-left: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.draft {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.processing {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.results-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.results-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.results-content-wide {
  max-width: 1100px;
}

.results-main-display {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.results-main-display.dual-method-display {
  grid-template-columns: 1fr;
}

.velocity-models-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dual-method-display .velocity-models-container {
  margin-bottom: 16px;
}

.velocity-image-container {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.model-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
}

.tomo-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.asa-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.rms-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

.velocity-model-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.velocity-model-image:hover {
  transform: scale(1.02);
}

.image-caption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.no-image-placeholder {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(20, 30, 48, 0.5);
  border-radius: 8px;
  border: 2px dashed var(--border);
}

.no-image-placeholder p {
  margin: 8px 0;
}

.results-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-info-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.project-info-box h4 {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: right;
}

.info-value.highlight {
  color: var(--primary);
  font-size: 1.1rem;
}

.method-details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
}

.method-details h5 {
  color: var(--secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  margin: 0 0 12px 0;
}

.method-details p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 10px 0;
}

.method-details strong {
  color: var(--text-primary);
}

.bulk-download-section {
  text-align: center;
  padding: 20px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  margin-bottom: 24px;
}

.bulk-download-section .btn {
  padding: 14px 32px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .results-main-display {
    grid-template-columns: 1fr;
  }
  
  .results-content-wide {
    max-width: 95%;
  }
  
  .method-details {
    max-height: 200px;
  }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.results-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  margin: 0;
}

.close-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: all 0.3s;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.results-body {
  padding: 24px;
}

.results-summary,
.results-velocity,
.results-files {
  background: var(--bg-elevated);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.results-summary h3,
.results-velocity h3,
.results-files h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

.results-summary p,
.results-velocity p {
  margin: 10px 0;
  color: var(--text-primary);
}

.download-link {
  display: block;
  padding: 12px 18px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.download-link:hover {
  background: rgba(0, 212, 255, 0.15);
  transform: translateX(4px);
}

.method-badge {
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 212, 255, 0.1));
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.method-badge.dual-method {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(245, 158, 11, 0.3));
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: var(--primary);
}

.file-category {
  margin-bottom: 24px;
}

.file-category h4 {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.download-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.download-btn .file-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.download-btn .file-name {
  font-size: 0.75rem;
  word-break: break-all;
  margin-bottom: 4px;
}

.download-btn .file-size {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.download-btn.file-vector {
  border-color: rgba(245, 158, 11, 0.4);
}

.download-btn.file-mesh {
  border-color: rgba(124, 58, 237, 0.4);
}

.no-files {
  color: var(--text-muted);
  font-style: italic;
}

.picking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(12px);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.picking-content {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0f1a 100%);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  width: 96vw;
  height: 94vh;
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(0, 212, 255, 0.1),
    0 25px 100px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(0, 212, 255, 0.1);
}

.picking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-bottom: 1px solid var(--border-glow);
  flex-shrink: 0;
}

.picking-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.picking-header-left h2 {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.picking-header-left .file-selector {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  min-width: 280px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.picking-header-left .file-selector:hover,
.picking-header-left .file-selector:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  outline: none;
}

.picking-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.picking-header-right .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.picking-header-right .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.picking-header-right .close-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.picking-header-right .close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--error);
  color: var(--error);
}

.picking-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.picking-controls .zoom-controls,
.picking-controls .gain-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.picking-controls .btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.picking-controls .zoom-level,
.picking-controls .gain-level {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-width: 80px;
  text-align: center;
}

.picking-controls .zoom-level strong,
.picking-controls .gain-level strong {
  color: var(--primary);
}

.picking-summary {
  display: flex;
  gap: 20px;
  margin-left: auto;
  background: var(--bg-elevated);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.picking-summary span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.picking-summary strong {
  color: var(--primary);
  font-weight: 600;
}

.picking-controls .unit-badge {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.picking-controls .unit-badge.imperial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.picking-controls .unit-badge.metric {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.picking-controls .hover-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 8px 14px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 180px;
}

.trace-canvas-container {
  flex: 1;
  position: relative;
  overflow: auto;
  background: linear-gradient(180deg, #0d1320 0%, #0a0f1a 100%);
  margin: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.trace-canvas-container::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.trace-canvas-container::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 6px;
}

.trace-canvas-container::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 2px solid var(--bg-dark);
}

.trace-canvas-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.4);
}

.trace-canvas-container .trace-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.trace-canvas-container .trace-loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.trace-canvas-container canvas {
  display: block;
  cursor: crosshair;
}

.pickfiles-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(8px);
}

.pickfiles-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  max-height: 65vh;
  overflow-y: auto;
}

.pickfiles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.pickfiles-header h3 {
  color: var(--primary);
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.pickfiles-body {
  padding: 24px;
}

.pickfiles-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pickfiles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pickfile-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}

.pickfile-name {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

.pickfile-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-projects {
  min-width: 0;
}

.dashboard-map {
  min-width: 0;
}

.map-container {
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.map-container .leaflet-container {
  height: 100%;
  width: 100%;
  background: var(--bg-dark);
}

#projectsMap {
  min-height: 520px;
  height: 520px;
  width: 100%;
}

#projectsMap .leaflet-container {
  height: 100%;
  width: 100%;
  min-height: 520px;
}

.leaflet-control-layers {
  background: rgba(10, 15, 26, 0.95) !important;
  border: 1px solid var(--border-glow) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-layers-toggle {
  background-color: rgba(10, 15, 26, 0.95) !important;
  border: 1px solid var(--border-glow) !important;
  width: 40px !important;
  height: 40px !important;
}

.leaflet-control-layers-expanded {
  padding: 12px 16px !important;
  color: var(--text-primary) !important;
}

.leaflet-control-layers-list {
  padding: 0 !important;
}

.leaflet-control-layers-base label,
.leaflet-control-layers-overlays label {
  color: var(--text-primary) !important;
  padding: 8px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  transition: color 0.2s ease !important;
}

.leaflet-control-layers-base label:hover,
.leaflet-control-layers-overlays label:hover {
  color: var(--primary) !important;
}

.leaflet-control-layers-separator {
  border-top: 1px solid var(--border) !important;
  margin: 10px 0 !important;
}

.leaflet-control-layers input[type="radio"],
.leaflet-control-layers input[type="checkbox"] {
  accent-color: var(--primary) !important;
}

.location-map-picker {
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
}

.location-search-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.location-search-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
}

.location-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.location-search-results {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.search-result-item {
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.search-result-item:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.location-picker-map {
  height: 480px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.location-coord-display {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.analytics-chart-container {
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.analytics-chart {
  width: 100%;
  height: 300px;
}

.geo-notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.geo-notification {
  background: var(--bg-dark);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.geo-notification-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.geo-notification-header h3 {
  color: var(--primary);
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
}

.geo-notification-body {
  padding: 20px 24px;
}

.geo-notification-body p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.geo-notification-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.geo-notification-ok {
  padding: 10px 28px;
}

.hero-section {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.hero-section .hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-section .hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  text-align: center;
}

.trust-badge .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-badge .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.project-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tab {
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.project-tab:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.project-tab.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 24px;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Chemical Element Icons */
.element-icon {
  width: 64px;
  height: 72px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.08));
  border: 2px solid var(--primary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: all 0.3s ease;
}

.feature-item:hover .element-icon {
  box-shadow: 0 0 30px var(--primary-glow), 0 0 60px rgba(0, 212, 255, 0.2);
  border-color: var(--accent);
}

.element-number {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

.element-symbol {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.element-name {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Feature Grid 6 - 3 columns layout */
.feature-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Orbit Diagram */
.orbit-diagram {
  position: relative;
  padding: 40px 20px;
  min-height: 650px;
  margin-top: -10px;
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.orbit-core {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px var(--primary-glow), 0 0 140px rgba(0, 212, 255, 0.3);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 60px var(--primary-glow), 0 0 100px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 80px var(--primary-glow), 0 0 120px rgba(0, 212, 255, 0.4); }
}

.core-icon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--bg-deep);
}

.core-label {
  font-size: 0.95rem;
  color: var(--bg-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-align: center;
  padding: 0 14px;
}

.orbit-ring {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.orbit-node {
  position: relative;
  padding: 36px;
}

.node-connector {
  position: absolute;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.6;
}

.node-1 .node-connector {
  bottom: -5px;
  right: -30px;
  transform: rotate(45deg);
}

.node-2 .node-connector {
  bottom: -5px;
  left: -30px;
  transform: rotate(-45deg);
}

.node-3 .node-connector {
  top: -5px;
  right: -30px;
  transform: rotate(-45deg);
}

.node-4 .node-connector {
  top: -5px;
  left: -30px;
  transform: rotate(45deg);
}

.node-content {
  background: linear-gradient(135deg, var(--bg-elevated), rgba(0, 212, 255, 0.04));
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.node-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.5;
}

.node-content:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.node-content:hover::before {
  opacity: 1;
}

.node-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-size: 1.4rem;
  font-weight: 600;
}

.node-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .orbit-ring {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .orbit-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
  }
  
  .orbit-diagram {
    min-height: auto;
    padding: 20px;
  }
  
  .node-connector {
    display: none;
  }
  
  .orbit-core {
    width: 120px;
    height: 120px;
  }
  
  .core-icon {
    font-size: 2.5rem;
  }
  
  .feature-grid-6 {
    grid-template-columns: 1fr;
  }
}

.feature-item[data-feature] {
  cursor: pointer;
}

.feature-detail-hero {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.05));
  border-radius: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.feature-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
}

.feature-detail-icon {
  width: 100px;
  height: 120px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.1));
  border: 3px solid var(--primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(0, 212, 255, 0.2);
}

.feature-detail-icon .element-number {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

.feature-detail-icon .element-symbol {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.feature-detail-icon .element-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.feature-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-detail-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.feature-detail-section {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.02));
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.feature-detail-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-detail-section h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.feature-detail-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
}

.feature-detail-text p {
  margin-bottom: 20px;
}

.feature-detail-text p:last-child {
  margin-bottom: 0;
}

.feature-detail-text strong {
  color: var(--primary);
  font-weight: 600;
}

.feature-detail-visual {
  margin-bottom: 28px;
}

.feature-detail-image {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--primary-glow);
  transition: all 0.3s ease;
}

.feature-detail-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 60px var(--primary-glow);
}

.visual-placeholder {
  background: linear-gradient(135deg, var(--bg-elevated), rgba(0, 212, 255, 0.04));
  border: 2px dashed var(--border-glow);
  border-radius: 16px;
  padding: 80px 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.visual-placeholder:hover {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}

.visual-placeholder-icon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.4;
}

.visual-placeholder p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-detail-cta {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.05));
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border-glow);
  position: relative;
  overflow: hidden;
}

.feature-detail-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.feature-detail-cta h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature-detail-cta p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.feature-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feature-detail-hero {
    padding: 40px 20px;
  }
  
  .feature-back-btn {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 24px;
  }
  
  .feature-detail-title {
    font-size: 2rem;
  }
  
  .feature-detail-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-detail-section {
    padding: 28px 20px;
  }
  
  .feature-detail-section h2 {
    font-size: 1.3rem;
  }
  
  .feature-detail-text {
    font-size: 1rem;
  }
  
  .feature-detail-cta {
    padding: 32px 20px;
  }
  
  .feature-cta-buttons {
    flex-direction: column;
  }
  
  .feature-cta-buttons .btn {
    width: 100%;
  }
}

/* Drone Dashboard Styles */
.drone-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 16px;
  height: calc(100vh - 200px);
  min-height: 600px;
  background: var(--bg-deep);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border);
}

.drone-sidebar {
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 26, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.drone-sidebar-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.drone-sidebar-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.drone-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 12px 0;
}

.drone-tab {
  flex: 1;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drone-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.drone-tab.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.2);
}

.drone-tab .tab-count {
  display: inline-block;
  background: var(--error);
  color: white;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
}

.drone-projects-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.drone-projects-list::-webkit-scrollbar {
  width: 4px;
}

.drone-projects-list::-webkit-scrollbar-track {
  background: transparent;
}

.drone-projects-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.drone-project-card {
  display: flex;
  align-items: stretch;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.drone-project-card:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.drone-card-status {
  width: 4px;
  flex-shrink: 0;
}

.drone-card-status.drone-status-pending {
  background: var(--warning);
}

.drone-card-status.drone-status-processing {
  background: var(--primary);
  animation: statusPulse 1.5s ease-in-out infinite;
}

.drone-card-status.drone-status-completed {
  background: var(--success);
}

.drone-card-status.drone-status-draft {
  background: var(--text-muted);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.drone-card-content {
  flex: 1;
  padding: 10px 12px;
  min-width: 0;
}

.drone-card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drone-card-location {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drone-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drone-card-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.drone-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.drone-badge-processing {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary);
}

.drone-badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.drone-badge-draft {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.drone-card-lines {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.drone-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 8px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drone-project-card:hover .drone-card-actions {
  opacity: 1;
}

.drone-action-btn {
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drone-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow);
}

.drone-action-btn.drone-action-primary {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--primary);
}

.drone-action-btn.drone-action-primary:hover {
  background: rgba(0, 212, 255, 0.25);
}

.drone-action-btn.drone-action-delete {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px 6px;
}

.drone-action-btn.drone-action-delete:hover {
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

.drone-action-btn.drone-action-restore {
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Drone Main Area */
.drone-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drone-map-main {
  flex: 1;
  background: rgba(10, 15, 26, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.drone-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.drone-map-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drone-map-coords {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--primary);
}

.drone-map-container {
  flex: 1;
  min-height: 300px;
}

.drone-map-container .leaflet-container {
  height: 100%;
  width: 100%;
  background: var(--bg-dark);
}

/* Drone Bottom Panel */
.drone-bottom-panel {
  background: rgba(10, 15, 26, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 16px;
}

.drone-metrics-row {
  display: flex;
  gap: 16px;
}

.drone-metric-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.drone-metric-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.drone-metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drone-metric-processing {
  color: var(--primary);
}

.drone-metric-complete {
  color: var(--success);
}

/* Drone Side Panel */
.drone-side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drone-status-panel {
  background: rgba(10, 15, 26, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
}

.drone-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.drone-panel-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-deep);
}

.drone-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drone-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.drone-status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drone-status-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.drone-status-online {
  color: var(--success);
}

/* Drone Compass */
.drone-compass {
  background: rgba(10, 15, 26, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.drone-compass-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.drone-compass-needle {
  position: absolute;
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, var(--error) 50%, var(--text-muted) 50%);
  transform-origin: center bottom;
  top: 10px;
  left: calc(50% - 1px);
}

.drone-compass-n,
.drone-compass-e,
.drone-compass-s,
.drone-compass-w {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.drone-compass-n {
  top: 4px;
  color: var(--primary);
}

.drone-compass-e {
  right: 6px;
}

.drone-compass-s {
  bottom: 4px;
}

.drone-compass-w {
  left: 6px;
}

.drone-compass-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Drone Scale Panel */
.drone-scale-panel {
  background: rgba(10, 15, 26, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
}

.drone-scale-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

.drone-scale-bar {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8px;
}

.drone-scale-segment {
  width: 30px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.drone-scale-segment.active {
  background: var(--primary);
  opacity: 1;
}

.drone-scale-segment.active:nth-child(2) {
  opacity: 0.8;
}

.drone-scale-segment.active:nth-child(3) {
  opacity: 0.6;
}

.drone-scale-value {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Empty state for drone dashboard */
.drone-projects-list .empty-state {
  padding: 24px 12px;
  text-align: center;
}

.drone-projects-list .empty-state .empty-state-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.drone-projects-list .empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.drone-projects-list .empty-state .empty-state-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 16px;
}

.drone-projects-list .empty-state .btn {
  font-size: 0.8rem;
  padding: 10px 20px;
}

/* Responsive for drone dashboard */
@media (max-width: 1200px) {
  .drone-dashboard {
    grid-template-columns: 260px 1fr;
    grid-template-rows: 1fr auto;
  }
  
  .drone-side-panel {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  
  .drone-compass {
    flex: 0 0 auto;
    width: 150px;
  }
  
  .drone-status-panel,
  .drone-scale-panel {
    flex: 1;
  }
}

@media (max-width: 900px) {
  .drone-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    height: auto;
    min-height: auto;
  }
  
  .drone-sidebar {
    max-height: 300px;
  }
  
  .drone-map-main {
    min-height: 400px;
  }
  
  .drone-side-panel {
    flex-wrap: wrap;
  }
  
  .drone-compass {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
  
  .drone-compass-label {
    margin-top: 0;
  }
}


/* Map Gesture Overlay for Mobile */
.map-gesture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  border-radius: 12px;
}

.map-gesture-overlay.visible {
  opacity: 1;
}

.map-gesture-overlay span {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 24px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  text-align: center;
}

/* Drone Cache Panel */
.drone-cache-panel {
  background: rgba(10, 15, 26, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  margin-top: 12px;
}

.drone-cache-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.drone-cache-status {
  margin-bottom: 12px;
}

.drone-cache-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.drone-cache-buttons {
  display: flex;
  gap: 6px;
}

.drone-cache-btn {
  flex: 1;
  padding: 8px 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.drone-cache-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

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

.drone-cache-download {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--primary);
}

.drone-cache-surveyor {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.drone-cache-icon {
  font-size: 1rem;
}

/* Field Surveyor Page */
.surveyor-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  max-width: 100%;
  padding: 0;
}

.surveyor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(10, 15, 26, 0.95);
  border-bottom: 1px solid var(--border);
}

.surveyor-back-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.surveyor-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.surveyor-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  flex: 1;
}

.surveyor-project-select select {
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  min-width: 180px;
}

.surveyor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 15, 26, 0.9);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.surveyor-mode-group {
  display: flex;
  gap: 8px;
}

.surveyor-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.surveyor-mode-btn.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
  border-color: var(--primary);
  color: var(--primary);
}

.surveyor-mode-btn[data-mode="shot"].active {
  border-color: #ff6b35;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.15);
}

.surveyor-mode-btn[data-mode="receiver"].active {
  border-color: #00d4ff;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.15);
}

.surveyor-mode-btn .mode-icon {
  font-size: 1rem;
}

.surveyor-actions {
  display: flex;
  gap: 8px;
}

.surveyor-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.surveyor-action-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.surveyor-save-btn {
  background: linear-gradient(135deg, var(--success), #059669);
  border-color: var(--success);
  color: white;
}

.surveyor-save-btn:hover {
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.surveyor-map-wrapper {
  flex: 1;
  position: relative;
  min-height: 300px;
}

.surveyor-map {
  width: 100%;
  height: 100%;
  background: #0a0f1a;
}

.surveyor-map-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  z-index: 500;
  pointer-events: none;
}

.surveyor-map-overlay span {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.surveyor-bottom-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(10, 15, 26, 0.95);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.surveyor-stats {
  display: flex;
  gap: 24px;
}

.surveyor-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.surveyor-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.surveyor-stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.surveyor-cache-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.surveyor-cache-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.surveyor-cache-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.surveyor-cache-status {
  font-size: 0.8rem;
  color: var(--success);
}

.surveyor-cache-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.surveyor-cache-btn:hover {
  background: rgba(0, 212, 255, 0.2);
}

.surveyor-cache-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.surveyor-progress-bar {
  width: 100px;
  height: 6px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 3px;
  overflow: hidden;
}

.surveyor-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  width: 0%;
}

.surveyor-progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 35px;
}

.surveyor-pins-list {
  background: rgba(10, 15, 26, 0.9);
  border-top: 1px solid var(--border);
  max-height: 150px;
  overflow-y: auto;
}

.surveyor-pins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(20, 25, 36, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

.surveyor-pins-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.surveyor-export-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.surveyor-export-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.surveyor-pins-content {
  padding: 8px 20px;
}

.surveyor-pins-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.surveyor-pin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.surveyor-pin-item:last-child {
  border-bottom: none;
}

.surveyor-pin-item .pin-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.surveyor-pin-item .pin-type {
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 60px;
}

.surveyor-pin-item.shot .pin-type {
  color: #ff6b35;
}

.surveyor-pin-item.receiver .pin-type {
  color: #00d4ff;
}

.surveyor-pin-item .pin-coords {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Surveyor Pin Markers */
.surveyor-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.surveyor-pin-shot {
  color: #ff6b35;
}

.surveyor-pin-receiver {
  color: #00d4ff;
}

/* Mobile adjustments for Field Surveyor */
@media (max-width: 768px) {
  .surveyor-header {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  
  .surveyor-header h2 {
    order: -1;
    width: 100%;
    margin-bottom: 8px;
  }
  
  .surveyor-toolbar {
    padding: 10px 16px;
  }
  
  .surveyor-mode-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .surveyor-bottom-panel {
    flex-direction: column;
    align-items: stretch;
  }
  
  .surveyor-stats {
    justify-content: space-around;
  }
  
  .surveyor-cache-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* Live Location Button & Marker */
.surveyor-location-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(10, 15, 26, 0.95);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.surveyor-location-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.surveyor-location-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  color: white;
}

.surveyor-location-btn.searching {
  animation: pulse-btn 1.5s ease-in-out infinite;
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5); }
}

.surveyor-location-status {
  position: absolute;
  bottom: 76px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(10, 15, 26, 0.95);
  border-radius: 16px;
  font-size: 0.75rem;
  z-index: 1000;
  display: none;
}

.surveyor-location-status.active {
  color: var(--success);
  border: 1px solid var(--success);
}

.surveyor-location-status.searching {
  color: var(--primary);
  border: 1px solid var(--primary);
}

.surveyor-location-status.error {
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* Location Marker Styles */
.surveyor-location-marker {
  position: relative;
}

.surveyor-location-marker .location-dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.surveyor-location-marker .location-pulse {
  width: 40px;
  height: 40px;
  background: rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: location-pulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes location-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* NTRIP Modal Styles */
.ntrip-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.9);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.ntrip-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ntrip-modal-content {
  background: rgba(10, 15, 26, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  margin: 40px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ntrip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.ntrip-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.ntrip-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.ntrip-close-btn:hover {
  color: var(--primary);
}

.ntrip-modal-body {
  padding: 24px;
}

.ntrip-info-panel {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.ntrip-info-panel p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ntrip-form-group {
  margin-bottom: 16px;
}

.ntrip-form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ntrip-form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  box-sizing: border-box;
}

.ntrip-form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.ntrip-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ntrip-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.ntrip-save-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ntrip-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.ntrip-clear-btn {
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ntrip-clear-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.ntrip-setup-guide {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ntrip-setup-guide h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.ntrip-setup-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.ntrip-setup-guide ol strong {
  color: var(--primary);
}

.ntrip-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ntrip-link {
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.ntrip-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ntrip-providers {
  margin-top: 24px;
}

.ntrip-providers h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.ntrip-providers ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.8;
}

.ntrip-providers strong {
  color: var(--text-primary);
}

.surveyor-ntrip-btn {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--secondary);
  color: var(--secondary);
}

.surveyor-ntrip-btn:hover {
  background: rgba(124, 58, 237, 0.25);
}

.ntrip-status-panel {
  background: rgba(20, 25, 36, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.ntrip-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ntrip-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
}

.ntrip-status-indicator.connecting {
  background: var(--primary);
  animation: pulse-indicator 1.5s ease-in-out infinite;
}

.ntrip-status-indicator.connected {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.ntrip-status-indicator.error {
  background: #ef4444;
}

.ntrip-status-indicator.disconnected {
  background: #64748b;
}

@keyframes pulse-indicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ntrip-status-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.ntrip-status-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ntrip-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ntrip-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ntrip-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.ntrip-connect-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.ntrip-connect-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.ntrip-connect-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ntrip-disconnect-btn {
  flex: 1;
  padding: 14px 24px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #ef4444;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ntrip-disconnect-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

.ntrip-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .ntrip-form-row {
    grid-template-columns: 1fr;
  }
  
  .ntrip-status-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .ntrip-form-actions {
    flex-direction: column;
  }
}

.surveyor-base-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border-color: var(--success);
  color: var(--success);
}

.surveyor-base-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
}

.base-station-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 25, 0.95);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
}

.base-station-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.base-station-modal-content {
  background: linear-gradient(145deg, rgba(20, 30, 48, 0.98), rgba(15, 20, 35, 0.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.base-station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.base-station-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.base-station-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.base-station-close:hover {
  color: var(--text-primary);
}

.base-station-body {
  padding: 24px;
}

.base-station-status-panel {
  background: rgba(10, 15, 25, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.base-station-signal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.signal-bar {
  width: 6px;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.signal-bar[data-level="1"] { height: 6px; }
.signal-bar[data-level="2"] { height: 10px; }
.signal-bar[data-level="3"] { height: 14px; }
.signal-bar[data-level="4"] { height: 18px; }
.signal-bar[data-level="5"] { height: 24px; }

.signal-bar.active {
  background: var(--success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.base-state-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.base-state-label.connecting {
  color: var(--primary);
  animation: pulse-text 1.5s ease-in-out infinite;
}

.base-state-label.connected {
  color: var(--success);
}

.base-state-label.locked {
  color: var(--success);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.base-state-label.error {
  color: #ef4444;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.base-lock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.base-lock-indicator.locked {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
}

.base-lock-indicator .lock-icon {
  font-size: 1rem;
}

.base-lock-indicator.locked .lock-icon {
  animation: pulse-lock 2s ease-in-out infinite;
}

@keyframes pulse-lock {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.base-lock-indicator .lock-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.base-lock-indicator.locked .lock-text {
  color: var(--success);
}

.base-station-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.base-metric {
  background: rgba(20, 30, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.base-metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.base-metric-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.base-form-group {
  margin-bottom: 16px;
}

.base-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.base-form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(20, 30, 48, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.base-form-group input:focus {
  outline: none;
  border-color: var(--success);
}

.base-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.base-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.base-start-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.base-start-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.base-start-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.base-stop-btn {
  flex: 1;
  padding: 14px 24px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #ef4444;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.base-stop-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

.base-info-note {
  margin-top: 24px;
  padding: 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
}

.base-info-note p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.base-info-note strong {
  color: var(--primary);
}

@media (max-width: 480px) {
  .base-station-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .base-form-row {
    grid-template-columns: 1fr;
  }
  
  .base-station-status-panel {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.processing-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.processing-status-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 32px 40px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.processing-status-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.processing-status-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0;
}

.processing-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.progress-percentage {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.elapsed-time {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  font-family: 'Space Mono', monospace;
}

.processing-status-body .progress-container {
  width: 100%;
  height: 8px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.processing-status-body .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.processing-status-body .progress-bar.complete {
  background: linear-gradient(90deg, #10b981, #06d6a0);
}

.processing-status-body .progress-bar.failed {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.progress-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

.processing-steps {
  text-align: left;
  padding: 16px;
  background: rgba(20, 30, 48, 0.5);
  border-radius: 10px;
  margin-bottom: 16px;
}

.processing-steps .step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.processing-steps .step.active {
  color: var(--primary);
  font-weight: 600;
}

.processing-steps .step.completed {
  color: #10b981;
}

.step-icon {
  width: 18px;
  text-align: center;
  font-size: 0.7rem;
}

.processing-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
}

.project-fullview-container {
  min-height: calc(100vh - 40px);
  padding: 20px 0;
}

.project-fullview-header {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.02));
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.project-fullview-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.project-back-btn {
  margin-bottom: 16px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-back-btn span {
  font-size: 1.2rem;
}

.project-fullview-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-fullview-title-section h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.project-fullview-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.project-fullview-meta .meta-item {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.project-fullview-meta .meta-item strong {
  color: var(--text-muted);
}

.project-fullview-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

@media (max-width: 1100px) {
  .project-fullview-content {
    grid-template-columns: 1fr;
  }
}

.project-fullview-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-fullview-section {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.02));
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.project-fullview-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.5;
}

.project-fullview-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-fullview-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.project-fullview-map-container {
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.03));
  color: var(--text-muted);
}

.map-placeholder-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.map-placeholder span:not(.map-placeholder-icon):not(.map-coords) {
  font-size: 1.1rem;
  font-weight: 500;
}

.map-coords {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 8px;
}

.project-fullview-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.result-model-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.result-model-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.1);
}

.result-model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.rms-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

.result-model-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.result-model-image:hover {
  transform: scale(1.02);
}

.no-results-placeholder {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(20, 30, 48, 0.5);
  border-radius: 12px;
  border: 2px dashed var(--border);
}

.no-results-placeholder .placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-results-placeholder p {
  margin: 0;
  font-size: 1rem;
}

.picker-section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.picker-description {
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.picker-btn span {
  font-size: 1.1rem;
}

.project-fullview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-detail-panel {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.02));
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.project-detail-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.5;
}

.project-detail-panel h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-panel-section {
  margin-bottom: 20px;
}

.detail-panel-section:last-child {
  margin-bottom: 0;
}

.detail-panel-section h5 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .detail-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.detail-row .detail-value {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.detail-row .detail-value.highlight {
  color: var(--success);
  font-weight: 600;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.file-item .file-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.file-item .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-files-msg {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}

.processing-methods-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.processing-methods-panel h5 {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.method-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.method-checkbox:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--primary);
}

.method-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

.method-checkbox .method-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  flex: 1;
  min-width: 150px;
}

.method-checkbox .method-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  width: 100%;
  padding-left: 28px;
  margin-top: -4px;
}

.project-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
}

.action-btn span {
  font-size: 1.1rem;
}

.xyz-export-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.xyz-export-panel h5 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xyz-export-panel .panel-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.xyz-export-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xyz-export-controls .control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xyz-export-controls label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.kriging-select,
.resolution-select {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kriging-select:hover,
.resolution-select:hover {
  border-color: var(--accent);
}

.kriging-select:focus,
.resolution-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.export-xyz-btn {
  margin-top: 6px;
  padding: 12px 18px;
  font-weight: 600;
}

.xyz-export-results {
  margin-top: 14px;
}

.xyz-export-results .loading-msg {
  color: var(--accent);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xyz-export-results .success-msg {
  color: var(--success);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.xyz-export-results .error-msg {
  color: var(--error);
  font-size: 0.85rem;
}

.xyz-files-list {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 12px;
}

.xyz-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 6px;
  margin-bottom: 6px;
}

.xyz-file-item:last-child {
  margin-bottom: 0;
}

.xyz-file-item .file-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.xyz-file-item .file-name {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xyz-file-item .file-size {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.xyz-file-item .btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.xyz-file-item .btn-small:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.interpolation-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: var(--bg-primary);
  border: none;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover), #06b6d4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.3);
}

.analysis-type-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.analysis-type-option {
  cursor: pointer;
}

.analysis-type-option input[type="radio"] {
  display: none;
}

.analysis-type-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.analysis-type-option input[type="radio"]:checked + .analysis-type-card {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 20px var(--primary-glow);
}

.analysis-type-card:hover {
  border-color: var(--primary);
}

.analysis-type-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
}

.analysis-type-icon .element-symbol {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.analysis-type-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analysis-type-info strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.analysis-type-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.surface-wave-config {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.surface-wave-config h4 {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sw-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.sw-method-option {
  cursor: pointer;
}

.sw-method-option input[type="radio"] {
  display: none;
}

.sw-method-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.sw-method-option input[type="radio"]:checked + .sw-method-card {
  border-color: var(--secondary);
  background: rgba(124, 58, 237, 0.08);
}

.sw-method-card:hover {
  border-color: var(--secondary);
}

.sw-method-card strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.sw-method-card span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sw-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
  vertical-align: middle;
  margin-right: 8px;
}

.masw-badge {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.remi-badge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.sw-processing-content {
  max-width: 500px;
}

.sw-processing-stages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.sw-stage {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stage-indicator {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

.stage-indicator.stage-pending {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
}

.stage-indicator.stage-complete {
  background: linear-gradient(135deg, var(--success), #059669);
}

.stage-number {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.stage-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.stage-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-info strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.stage-info span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.processing-timer {
  text-align: center;
  padding: 16px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 10px;
  border: 1px solid var(--border-glow);
}

.timer-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 8px;
}

.timer-value {
  color: var(--primary);
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
}

.sw-results-modal .results-content {
  max-width: 1000px;
}

.sw-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.sw-result-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.sw-result-panel.sw-result-full {
  grid-column: span 2;
}

.sw-result-panel h4 {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin: 0 0 12px 0;
}

.sw-result-image-container {
  background: rgba(10, 15, 26, 0.5);
  border-radius: 8px;
  padding: 8px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-result-image-container.vs-profile-container {
  min-height: 200px;
}

.sw-result-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sw-result-image:hover {
  transform: scale(1.02);
}

.sw-result-caption {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.sw-results-info {
  margin-bottom: 24px;
}

.sw-downloads-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.sw-downloads-section h4 {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin: 0 0 16px 0;
}

.sw-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.sw-fullview-results-summary {
  text-align: center;
  padding: 30px 20px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
}

.sw-fullview-results-summary p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.sw-processing-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  background: var(--bg-elevated);
  border-radius: 12px;
  text-align: center;
}

.sw-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.sw-processing-indicator p {
  color: var(--text-muted);
}

.sw-processing-controls {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.sw-config-summary {
  margin-bottom: 20px;
}

.sw-config-summary h4 {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  margin: 0 0 16px 0;
}

.sw-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sw-config-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 8px;
}

.sw-config-item .config-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sw-config-item .config-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.sw-process-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  margin-top: 4px;
}

.sw-failed-state {
  text-align: center;
  padding: 30px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}

.sw-failed-state p {
  color: var(--error);
  margin-bottom: 16px;
}

.spinner-small {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .analysis-type-selector {
    gap: 10px;
  }
  
  .sw-method-selector {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .sw-results-grid {
    grid-template-columns: 1fr;
  }
  
  .sw-result-panel.sw-result-full {
    grid-column: span 1;
  }
  
  .sw-config-grid {
    grid-template-columns: 1fr;
  }
}

