/* COINjecture Web Interface - Multi-Page Layout */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #e6e6e6;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Navigation Bar */
.navbar {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.brand-text {
  font-size: 24px;
  font-weight: bold;
  color: #9d7ce8;
  font-family: 'Courier New', monospace;
}

.brand-subtitle {
  font-size: 12px;
  color: #888;
  margin-top: -2px;
}

.brand-ticker {
  font-size: 14px;
  color: #00ff88;
  font-weight: bold;
  margin-left: 10px;
  background: linear-gradient(45deg, #00ff88, #00cc66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.nav-link:hover {
  color: #9d7ce8;
  background: #222;
}

.nav-link.active {
  color: #9d7ce8;
  background: #2a1a3a;
  border: 1px solid #9d7ce8;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 80px);
}

/* Page System */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Terminal Page */
.terminal-container {
  background: #000;
  border: 2px solid #333;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
}

.terminal-header {
  background: #111;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  flex-wrap: wrap;
  gap: 10px;
}

/* Wallet Dashboard */
.wallet-dashboard {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #444;
  font-size: 14px;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-address {
  font-family: 'Courier New', monospace;
  color: #9d7ce8;
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: #444;
  border: 1px solid #666;
  color: #e6e6e6;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #555;
  border-color: #9d7ce8;
}

.copy-btn:active {
  background: #9d7ce8;
  color: #000;
}

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

.rewards-total {
  color: #4ade80;
  font-weight: bold;
  font-size: 13px;
}

.blocks-mined {
  color: #94a3b8;
  font-size: 11px;
}

/* Mobile responsive improvements */
.version-info {
  background: linear-gradient(135deg, #9d7ce8, #6b46c1);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  font-size: 16px;
}

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

.feature-item {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}

.feature-item h4 {
  color: #9d7ce8;
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-item p {
  color: #ccc;
  line-height: 1.5;
}

.api-note {
  color: #9d7ce8;
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
}

/* Mobile responsive wallet dashboard */
@media (max-width: 768px) {
  .terminal-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Mobile download section improvements */
  .download-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .download-card {
    margin-bottom: 20px;
  }
  
  .download-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .download-item h3 {
    font-size: 16px;
    line-height: 1.4;
  }
  
  .download-item ul {
    font-size: 14px;
  }
  
  .download-item li {
    margin-bottom: 8px;
  }
  
  .download-btn {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 16px;
  }
  
  /* Mobile feature grid */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .feature-item {
    padding: 15px;
  }
  
  .feature-item h4 {
    font-size: 16px;
  }
  
  /* Mobile platform instructions */
  .platform-instructions {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .platform {
    padding: 15px;
  }
  
  .platform h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .platform ol {
    font-size: 14px;
  }
  
  .platform li {
    margin-bottom: 8px;
  }
  
  /* Mobile metrics improvements */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .metric-card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .metric-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .metric-value {
    font-size: 24px;
    margin: 10px 0;
  }
  
  .metric-description {
    font-size: 12px;
    line-height: 1.4;
  }
  
  /* Mobile transactions table */
  .transactions-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .transaction-row {
    min-width: 300px;
    padding: 10px;
  }
  
  .transaction-hash {
    font-size: 12px;
    word-break: break-all;
  }
  
  .transaction-miner {
    font-size: 12px;
    word-break: break-all;
  }
  
  .transaction-gas {
    font-size: 14px;
    font-weight: bold;
  }
  
  /* Mobile navigation improvements */
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .wallet-dashboard {
    order: 2;
    justify-content: space-between;
  }
  
  .wallet-address {
    max-width: 100px;
  }
  
  .rewards-info {
    text-align: right;
  }
}

.terminal-title {
  color: #9d7ce8;
  font-weight: bold;
  font-size: 16px;
}

.status {
  font-size: 12px;
  color: #888;
}

.status.connected {
  color: #9d7ce8;
}

.status.offline {
  color: #ff6600;
}

.status.error {
  color: #ff0000;
}

.terminal-output {
  height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  background: #000;
  font-size: 14px;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}

.output-line {
  margin-bottom: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prompt {
  color: #9d7ce8;
  font-weight: bold;
  margin-right: 8px;
}

.command {
  color: #ffffff;
  font-weight: bold;
}

.output {
  color: #cccccc;
  white-space: pre-wrap;
}

.output.error {
  color: #ff6666;
}

.output.success {
  color: #66ff66;
}

.input-container {
  padding: 12px 16px;
  background: #111;
  border-top: 1px solid #333;
}

.input-line {
  display: flex;
  align-items: center;
  width: 100%;
}

#command-input {
  background: transparent;
  border: none;
  color: #ffffff;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  flex: 1;
  padding: 8px 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#command-input::placeholder {
  color: #666;
}

/* API Docs Page */
.page-content h1 {
  color: #9d7ce8;
  margin-bottom: 24px;
  font-size: 28px;
}

.api-section {
  margin-bottom: 32px;
}

.api-section h2 {
  color: #e6e6e6;
  margin-bottom: 16px;
  font-size: 20px;
}

.endpoint-list {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #333;
}

.endpoint {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #333;
  gap: 16px;
}

.endpoint:last-child {
  border-bottom: none;
}

.method {
  background: #9d7ce8;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  min-width: 50px;
  text-align: center;
}

.url {
  color: #9d7ce8;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  min-width: 200px;
}

.description {
  color: #ccc;
  flex: 1;
}

code {
  background: #1a1a1a;
  color: #9d7ce8;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  border: 1px solid #333;
}

/* Download Page */
.download-section {
  margin-bottom: 32px;
}

.download-section h2 {
  color: #e6e6e6;
  margin-bottom: 16px;
  font-size: 20px;
}

.download-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.download-card h3 {
  color: #9d7ce8;
  margin-bottom: 8px;
  font-size: 18px;
}

.download-card p {
  color: #ccc;
  margin-bottom: 16px;
}

.download-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.download-card li {
  color: #ccc;
  margin-bottom: 4px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-number {
  background: #9d7ce8;
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.step-text {
  color: #ccc;
}

.platform-status {
  display: flex;
  gap: 24px;
}

.platform {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-name {
  color: #e6e6e6;
  font-weight: 500;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status-badge.coming-soon {
  background: #ff6600;
  color: #000;
}

/* Buttons */
.btn-primary {
  background: #9d7ce8;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #00cc00;
  transform: translateY(-1px);
}

.btn-download {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-download:hover {
  background: #0052a3;
  transform: translateY(-2px);
}

.test-result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.test-result.success {
  background: #2a1a3a;
  color: #9d7ce8;
  border: 1px solid #9d7ce8;
}

.test-result.error {
  background: #3a1a1a;
  color: #ff6666;
  border: 1px solid #ff6666;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .main-content {
    padding: 16px;
  }
  
  .terminal-output {
    height: 300px;
    font-size: 13px;
  }
  
  .endpoint {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .url {
    min-width: auto;
    word-break: break-all;
  }
  
  .platform-status {
    flex-direction: column;
    gap: 16px;
  }
  
  #command-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  /* Extra small mobile improvements */
  .version-info {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .download-card h2 {
    font-size: 18px;
  }
  
  .download-item h3 {
    font-size: 14px;
  }
  
  .download-item ul {
    font-size: 12px;
  }
  
  .download-btn {
    padding: 12px;
    font-size: 14px;
  }
  
  .feature-item {
    padding: 12px;
  }
  
  .feature-item h4 {
    font-size: 14px;
  }
  
  .feature-item p {
    font-size: 12px;
  }
  
  .platform h3 {
    font-size: 16px;
  }
  
  .platform ol {
    font-size: 12px;
  }
  
  .metric-card {
    padding: 12px;
  }
  
  .metric-card h3 {
    font-size: 14px;
  }
  
  .metric-value {
    font-size: 20px;
  }
  
  .metric-description {
    font-size: 11px;
  }
  
  .transaction-hash {
    font-size: 10px;
  }
  
  .transaction-miner {
    font-size: 10px;
  }
  
  .transaction-gas {
    font-size: 12px;
  }
  
  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

  .terminal-output {
    height: 250px;
    font-size: 12px;
  }
  
  .download-card {
    padding: 16px;
  }
  
  .install-steps {
    gap: 12px;
  }
  /* Touch-friendly interactions */
  @media (hover: none) and (pointer: coarse) {
    .nav-link {
    padding: 12px 16px;
    min-height: 44px;
  }
  
  .btn-primary,
  .btn-download {
    min-height: 44px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  body {
    background: #000000;
    color: #ffffff;
  }
  
  .brand-text {
    color: #9d7ce8;
  }
  
  .terminal-title {
    color: #9d7ce8;
  }
}

/* Proof Page Styles */
.proof-section {
  margin-bottom: 40px;
}

.proof-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}

.proof-card h3 {
  color: #9d7ce8;
  font-size: 20px;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
}

.proof-features ul {
  list-style: none;
  margin: 16px 0;
}

.proof-features li {
  padding: 8px 0;
  color: #e6e6e6;
  font-size: 14px;
}

.proof-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-proof {
  background: #9d7ce8;
  color: #000;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-proof:hover {
  background: #8a6fd1;
  transform: translateY(-1px);
}

.btn-proof-secondary {
  background: transparent;
  color: #9d7ce8;
  border: 1px solid #9d7ce8;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-proof-secondary:hover {
  background: #9d7ce8;
  color: #000;
  transform: translateY(-1px);
}

.proof-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}

.proof-content ul {
  margin: 16px 0;
  padding-left: 20px;
}

.proof-content li {
  margin: 8px 0;
  color: #e6e6e6;
}

.proof-content strong {
  color: #9d7ce8;
}

.academic-info {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}

.academic-info ul {
  margin: 16px 0;
  padding-left: 20px;
}

.academic-info li {
  margin: 8px 0;
  color: #e6e6e6;
}

/* Mobile responsiveness for proof page */
@media (max-width: 768px) {
  .proof-actions {
    flex-direction: column;
  }
  
  .btn-proof,
  .btn-proof-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .proof-card,
  .proof-content,
  .academic-info {
    padding: 16px;
  }
}

/* API Documentation Styles */
.api-docs {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.consolidation-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 10px 0 20px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.consolidation-badge .badge-text {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.consolidation-badge .badge-subtitle {
  display: block;
  font-size: 14px;
  opacity: 0.9;
}

.api-section {
  margin-bottom: 40px;
}

.api-section h2 {
  color: #9d7ce8;
  margin-bottom: 20px;
  font-size: 24px;
}

.endpoint-list {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.endpoint {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 16px;
  padding: 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  align-items: center;
}

.method {
  background: #4a9eff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.path {
  font-family: 'Courier New', monospace;
  color: #9d7ce8;
  font-size: 14px;
}

.description {
  color: #ccc;
  font-size: 14px;
}

.api-info {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.api-info h3 {
  color: #9d7ce8;
  margin-bottom: 10px;
}

.api-info code {
  background: #2a2a2a;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #4a9eff;
}

.test-btn {
  background: #4a9eff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.test-btn:hover {
  background: #3a8eef;
}

/* API Categories */
.api-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.category {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}

.category h3 {
  color: #9d7ce8;
  margin-bottom: 15px;
  font-size: 18px;
}

.category ul {
  list-style: none;
  padding: 0;
}

.category li {
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}

.category li:last-child {
  border-bottom: none;
}

.category code {
  background: #2a2a2a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #4a9eff;
  font-size: 13px;
}

/* Rate Limits */
.rate-limits {
  display: grid;
  gap: 12px;
}

.rate-limit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  align-items: center;
}

.rate-limit .endpoint {
  font-family: 'Courier New', monospace;
  color: #9d7ce8;
  font-size: 14px;
}

.rate-limit .limit {
  background: #4a9eff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* Download Page Enhancements */
.status-info {
  margin-top: 15px;
  padding: 10px;
  background: #1a1a1a;
  border-radius: 6px;
  border: 1px solid #333;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}

.status-badge.in-development {
  background: #ffa500;
  color: #000;
}

.status-badge.available {
  background: #4a9eff;
  color: white;
}

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

.platform {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}

.platform h3 {
  color: #9d7ce8;
  margin-bottom: 15px;
  font-size: 18px;
}

.platform ol {
  padding-left: 20px;
}

.platform li {
  margin-bottom: 8px;
  color: #ccc;
}

.platform code {
  background: #2a2a2a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #4a9eff;
}

/* Blockchain Explorer Metrics Dashboard Styles */
.metrics-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.metrics-dashboard h1 {
  font-size: 36px;
  color: #9d7ce8;
  text-align: center;
  margin-bottom: 10px;
}

.metrics-subtitle {
  font-size: 18px;
  color: #aaa;
  text-align: center;
  margin-bottom: 40px;
}

/* Blockchain Overview */
.blockchain-overview {
  margin-bottom: 40px;
}

.overview-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.overview-header {
  font-size: 18px;
  color: #9d7ce8;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
}

.overview-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.overview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #0f0f0f;
  border-radius: 8px;
  border: 1px solid #333;
}

.overview-item .label {
  color: #888;
  font-size: 14px;
}

.overview-item .value {
  color: #9d7ce8;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(157, 124, 232, 0.2);
}

.metric-header {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.metric-value {
  font-size: 48px;
  font-weight: bold;
  color: #9d7ce8;
  font-family: 'Courier New', monospace;
  margin-bottom: 8px;
}

.metric-trend {
  font-size: 20px;
  margin-bottom: 16px;
  color: #4ade80;
}

.metric-trend.down {
  color: #f87171;
}

.metric-trend.stable {
  color: #fbbf24;
}

.metric-details {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #aaa;
  border-top: 1px solid #333;
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-details span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

/* Recent Transactions */
.recent-transactions {
  margin-top: 40px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
}

.recent-transactions h3 {
  color: #9d7ce8;
  margin-bottom: 20px;
  text-align: center;
}

.transactions-table {
  background: #0f0f0f;
  border-radius: 8px;
  overflow: hidden;
}

.transaction-header {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: #333;
  color: #9d7ce8;
  font-weight: bold;
  font-size: 14px;
}

.transaction-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 1fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  font-size: 14px;
  color: #aaa;
  transition: background-color 0.2s;
}

.transaction-row:hover {
  background: #1a1a1a;
}

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

.metrics-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
  margin-top: 40px;
}

.last-updated {
  color: #888;
  font-size: 14px;
  margin-bottom: 8px;
}

.refresh-info {
  color: #666;
  font-size: 12px;
}

/* Enhanced Transaction Display */
.transaction-block {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.transaction-block:hover {
  border-color: #9d7ce8;
  box-shadow: 0 4px 12px rgba(157, 124, 232, 0.1);
  transform: translateY(-2px);
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}

.block-index {
  font-size: 20px;
  font-weight: bold;
  color: #9d7ce8;
  font-family: 'Courier New', monospace;
}

.block-age {
  font-size: 12px;
  color: #888;
  background: #2a2a2a;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.block-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.block-hash, .block-miner, .block-work, .block-capacity, .block-timestamp, .block-previous, .block-cid, .block-gas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}

.block-hash:last-child, .block-miner:last-child, .block-work:last-child, 
.block-capacity:last-child, .block-timestamp:last-child, .block-previous:last-child,
.block-cid:last-child, .block-gas:last-child {
  border-bottom: none;
}

.block-hash .label, .block-miner .label, .block-work .label, 
.block-capacity .label, .block-timestamp .label, .block-previous .label,
.block-cid .label, .block-gas .label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  min-width: 100px;
}

.block-hash .value, .block-miner .value, .block-work .value, 
.block-capacity .value, .block-timestamp .value, .block-previous .value,
.block-cid .value, .block-gas .value {
  font-size: 14px;
  color: #fff;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  text-align: right;
  flex: 1;
}

.block-work .value {
  color: #9d7ce8;
  font-weight: bold;
}

.block-capacity .value {
  text-transform: capitalize;
  color: #4CAF50;
}

.block-timestamp .value {
  color: #888;
  font-size: 12px;
}

.block-cid .value {
  color: #4CAF50;
  font-weight: bold;
}

.block-cid .cid-link {
  color: #4CAF50;
  text-decoration: none;
  transition: all 0.2s ease;
}

.block-cid .cid-link:hover {
  color: #66BB6A;
  text-decoration: underline;
}

.block-gas .value {
  color: #FF9800;
  font-weight: bold;
}

/* IPFS Modal */
.ipfs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.ipfs-modal-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.ipfs-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.ipfs-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.ipfs-modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipfs-modal-close:hover {
  color: #fff;
}

.ipfs-modal-body p {
  color: #ccc;
  margin: 10px 0;
}

.ipfs-gateways {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.ipfs-gateway-link {
  display: block;
  padding: 10px 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 5px;
  color: #4CAF50;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ipfs-gateway-link:hover {
  background: #333;
  border-color: #4CAF50;
  color: #66BB6A;
}

.ipfs-modal-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.ipfs-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}

.ipfs-modal-header h3 {
  margin: 0;
  color: #9d7ce8;
  font-size: 18px;
}

.ipfs-modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipfs-modal-close:hover {
  color: #fff;
}

.ipfs-modal-body {
  padding: 20px;
}

.ipfs-modal-body p {
  margin: 0 0 16px 0;
  color: #ccc;
}

.ipfs-gateway-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.ipfs-gateway-link {
  display: block;
  padding: 12px 16px;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #4CAF50;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.ipfs-gateway-link:hover {
  background: #333;
  border-color: #4CAF50;
  color: #66BB6A;
}

.ipfs-copy-section {
  border-top: 1px solid #333;
  padding-top: 20px;
}

.ipfs-copy-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ipfs-copy-input input {
  flex: 1;
  padding: 8px 12px;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.ipfs-copy-input button {
  padding: 8px 16px;
  background: #9d7ce8;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.ipfs-copy-input button:hover {
  background: #8B5CF6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .block-details {
    grid-template-columns: 1fr;
  }
  
  .block-hash, .block-miner, .block-work, .block-capacity, .block-timestamp, .block-previous, .block-cid, .block-gas {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .block-hash .label, .block-miner .label, .block-work .label, 
  .block-capacity .label, .block-timestamp .label, .block-previous .label,
  .block-cid .label, .block-gas .label {
    min-width: auto;
  }
}

/* Consensus Equilibrium Metrics */
.consensus-equilibrium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.equilibrium-card, .proof-of-work-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
}

.equilibrium-header, .pow-header {
  font-size: 18px;
  font-weight: 600;
  color: #4CAF50;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equilibrium-content, .pow-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.equilibrium-item, .pow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}

.equilibrium-item:last-child, .pow-item:last-child {
  border-bottom: none;
}

.equilibrium-item .label, .pow-item .label {
  font-weight: 500;
  color: #ccc;
  font-size: 14px;
}

.equilibrium-item .value, .pow-item .value {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #4CAF50;
  font-weight: 600;
}

.pow-item .value {
  color: #9d7ce8;
}

/* Responsive consensus metrics */
@media (max-width: 768px) {
  .consensus-equilibrium {
    grid-template-columns: 1fr;
  }
  
  .equilibrium-item, .pow-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Enhanced Metrics Dashboard Styles */
.metrics-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.metrics-tab {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px 20px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.metrics-tab:hover {
  background: #3a3a3a;
  border-color: #666;
}

.metrics-tab.active {
  background: #9d7ce8;
  border-color: #9d7ce8;
  color: #000;
}

.metrics-tab-content {
  display: none;
}

.metrics-tab-content.active {
  display: block;
}

/* Live Feed Styles */
.live-feed-container {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.live-feed-subtitle {
  color: #999;
  margin-bottom: 20px;
  font-size: 14px;
}

.live-feed-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.live-stat {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-stat .stat-label {
  color: #ccc;
  font-size: 14px;
}

.live-stat .stat-value {
  color: #9d7ce8;
  font-weight: bold;
  font-size: 16px;
}

.live-feed-stream {
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.feed-header {
  background: #2a2a2a;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.feed-header h3 {
  color: #9d7ce8;
  margin: 0;
  font-size: 16px;
}

.feed-controls {
  display: flex;
  gap: 10px;
}

.feed-btn {
  background: #444;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 6px 12px;
  color: #ccc;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.feed-btn:hover {
  background: #555;
  border-color: #777;
}

.feed-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
}

.feed-item {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.feed-item-time {
  color: #999;
  font-size: 12px;
}

.feed-item-block {
  color: #9d7ce8;
  font-weight: bold;
  font-size: 14px;
}

.feed-item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  font-size: 13px;
}

.feed-detail {
  display: flex;
  justify-content: space-between;
}

.feed-detail-label {
  color: #999;
}

.feed-detail-value {
  color: #ccc;
  font-weight: 500;
}

/* Block Data Styles */
.block-data-container {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.block-data-subtitle {
  color: #999;
  margin-bottom: 20px;
  font-size: 14px;
}

.block-data-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.block-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.block-search input {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 12px;
  color: #ccc;
  width: 200px;
}

.block-search input:focus {
  outline: none;
  border-color: #9d7ce8;
}

.block-search button {
  background: #9d7ce8;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  color: #000;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.block-search button:hover {
  background: #8b6bc7;
}

.block-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-range label {
  color: #ccc;
  font-size: 14px;
}

.block-range select {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 12px;
  color: #ccc;
}

.block-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.block-data-card {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s;
}

.block-data-card:hover {
  border-color: #666;
  transform: translateY(-2px);
}

.block-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.block-card-title {
  color: #9d7ce8;
  font-weight: bold;
  font-size: 16px;
}

.block-card-cid {
  color: #999;
  font-size: 12px;
  font-family: monospace;
}

.block-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.block-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.block-detail-label {
  color: #999;
  font-size: 12px;
}

.block-detail-value {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
}

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

.block-action-btn {
  background: #444;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 6px 12px;
  color: #ccc;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.block-action-btn:hover {
  background: #555;
  border-color: #777;
}

.block-action-btn.primary {
  background: #9d7ce8;
  border-color: #9d7ce8;
  color: #000;
}

.block-action-btn.primary:hover {
  background: #8b6bc7;
}

/* Complexity Analysis Styles */
.complexity-container {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.complexity-subtitle {
  color: #999;
  margin-bottom: 20px;
  font-size: 14px;
}

.complexity-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.complexity-card {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
}

.complexity-card h3 {
  color: #9d7ce8;
  margin-bottom: 15px;
  font-size: 16px;
}

.complexity-stats, .energy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.complexity-stat, .energy-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.complexity-stat .stat-label, .energy-stat .stat-label {
  color: #999;
  font-size: 12px;
}

.complexity-stat .stat-value, .energy-stat .stat-value {
  color: #ccc;
  font-size: 16px;
  font-weight: bold;
}

.complexity-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-container {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
}

.chart-container h3 {
  color: #9d7ce8;
  margin-bottom: 15px;
  font-size: 16px;
}

.chart {
  height: 200px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

.chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  font-style: italic;
}

/* Histogram Chart */
.histogram-container {
  display: flex;
  align-items: end;
  justify-content: space-around;
  height: 100%;
  gap: 2px;
}

.histogram-bar {
  background: linear-gradient(to top, #9d7ce8, #7c4dff);
  border-radius: 2px 2px 0 0;
  min-width: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  transition: all 0.3s ease;
}

.histogram-bar:hover {
  background: linear-gradient(to top, #7c4dff, #9d7ce8);
  transform: scaleY(1.05);
}

.bar-value {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 2px;
}

.bar-label {
  color: #ccc;
  font-size: 10px;
  margin-top: 2px;
}

/* Scatter Plot Chart */
.scatter-plot-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
}

.scatter-point {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #9d7ce8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.scatter-point:hover {
  background: #7c4dff;
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 10px rgba(157, 124, 232, 0.5);
}

.complexity-details {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
}

.complexity-details h3 {
  color: #9d7ce8;
  margin-bottom: 15px;
  font-size: 16px;
}

.complexity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.complexity-item {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.complexity-item:hover {
  border-color: #9d7ce8;
  background: #111;
}

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

.complexity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.complexity-title {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.complexity-hash {
  color: #9d7ce8;
  font-size: 12px;
  font-family: monospace;
}

.complexity-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.complexity-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.metric-label {
  color: #ccc;
  font-size: 12px;
}

.metric-value {
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.no-data {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px;
}

.complexity-item-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.complexity-item-title {
  color: #9d7ce8;
  font-weight: bold;
  font-size: 14px;
}

.complexity-item-time {
  color: #999;
  font-size: 12px;
}

.complexity-item-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.complexity-item-label {
  color: #999;
  font-size: 11px;
}

.complexity-item-value {
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
}

/* Responsive metrics dashboard */
@media (max-width: 768px) {
  .metrics-nav {
    flex-wrap: wrap;
  }
  
  .metrics-tab {
    flex: 1;
    min-width: 120px;
  }
  
  .live-feed-stats {
    grid-template-columns: 1fr;
  }
  
  .block-data-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .block-search {
    justify-content: stretch;
  }
  
  .block-search input {
    flex: 1;
  }
  
  .block-data-grid {
    grid-template-columns: 1fr;
  }
  
  .complexity-overview {
    grid-template-columns: 1fr;
  }
  
  .complexity-charts {
    grid-template-columns: 1fr;
  }
  
  .complexity-stats, .energy-stats {
    grid-template-columns: 1fr;
  }
}

/* Mining Interface Styles */
.mining-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.mining-header h1 {
  color: #9d7ce8;
  font-size: 36px;
  margin-bottom: 10px;
}

.mining-subtitle {
  color: #aaa;
  font-size: 18px;
  margin-bottom: 0;
}

/* Wallet Section */
.wallet-section {
  margin-bottom: 30px;
}

.wallet-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
}

.wallet-card h2 {
  color: #9d7ce8;
  margin-bottom: 20px;
  font-size: 20px;
}

.wallet-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.wallet-info {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wallet-address, .wallet-balance {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-address .label, .wallet-balance .label {
  color: #888;
  font-size: 14px;
  min-width: 60px;
}

.wallet-address .value, .wallet-balance .value {
  color: #9d7ce8;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  word-break: break-all;
}

.copy-btn {
  background: #444;
  border: 1px solid #666;
  color: #e6e6e6;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #555;
  border-color: #9d7ce8;
}

/* Mining Controls */
.mining-controls {
  margin-bottom: 30px;
}

.mining-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
}

.mining-card h2 {
  color: #9d7ce8;
  margin-bottom: 20px;
  font-size: 20px;
}

.mining-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-group label {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
}

.setting-group input {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px 12px;
  color: #e6e6e6;
  font-size: 14px;
}

.setting-group input:focus {
  outline: none;
  border-color: #9d7ce8;
}

.mining-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-mining {
  background: #4ade80;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.btn-mining:hover:not(:disabled) {
  background: #22c55e;
  transform: translateY(-1px);
}

.btn-mining:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
}

.btn-stop {
  background: #f87171;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.btn-stop:hover:not(:disabled) {
  background: #ef4444;
  transform: translateY(-1px);
}

.btn-stop:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
}

.btn-test {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.btn-test:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Problem Section */
.problem-section {
  margin-bottom: 30px;
}

.problem-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
}

.problem-card h2 {
  color: #9d7ce8;
  margin-bottom: 20px;
  font-size: 20px;
}

.problem-display {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 100px;
}

.no-problem {
  color: #888;
  text-align: center;
  font-style: italic;
}

.problem-info, .solution-info {
  margin-bottom: 15px;
}

.problem-meta, .solution-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.problem-size, .problem-target, .problem-device,
.solution-method, .solution-time, .solution-work-score {
  background: #444;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.problem-numbers, .solution-details {
  color: #ccc;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.solution-details {
  display: grid;
  gap: 8px;
}

.problem-controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Statistics Section */
.stats-section {
  margin-bottom: 30px;
}

.stats-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
}

.stats-card h2 {
  color: #9d7ce8;
  margin-bottom: 20px;
  font-size: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-item {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: #888;
  font-size: 14px;
  font-weight: 500;
}

.stat-value {
  color: #e6e6e6;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.stat-value.mining {
  color: #4ade80;
}

.stat-value.stopped {
  color: #f87171;
}

/* Log Section */
.log-section {
  margin-bottom: 30px;
}

.log-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
}

.log-card h2 {
  color: #9d7ce8;
  margin-bottom: 20px;
  font-size: 20px;
}

.log-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mining-log {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
}

.log-entry {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}

.log-time {
  color: #888;
  min-width: 80px;
}

.log-message {
  color: #ccc;
  flex: 1;
}

.log-entry.info .log-message {
  color: #3b82f6;
}

.log-entry.success .log-message {
  color: #4ade80;
}

.log-entry.error .log-message {
  color: #f87171;
}

/* Mobile Responsiveness for Mining Interface */
@media (max-width: 768px) {
  .mining-container {
    padding: 15px;
  }
  
  .mining-header h1 {
    font-size: 28px;
  }
  
  .mining-subtitle {
    font-size: 16px;
  }
  
  .wallet-controls {
    flex-direction: column;
  }
  
  .wallet-info {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .mining-settings {
    grid-template-columns: 1fr;
  }
  
  .mining-buttons {
    flex-direction: column;
  }
  
  .problem-meta, .solution-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .log-controls {
    flex-direction: column;
  }
  
  .mining-log {
    height: 250px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .mining-header h1 {
    font-size: 24px;
  }
  
  .mining-subtitle {
    font-size: 14px;
  }
  
  .wallet-card, .mining-card, .problem-card, .stats-card, .log-card {
    padding: 16px;
  }
  
  .mining-log {
    height: 200px;
    font-size: 12px;
  }
}

/* Data Marketplace Page Styles */
.marketplace-dashboard {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.marketplace-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
}

/* Data Overview */
.data-overview {
  margin-bottom: 3rem;
}

/* Data Products */
.data-products {
  margin-bottom: 3rem;
}

.data-products h2 {
  font-size: 1.8rem;
  color: #9d7ce8;
  margin-bottom: 1.5rem;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9d7ce8;
  margin-bottom: 1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-description p {
  color: #e6e6e6;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.product-specs {
  background: rgba(157, 124, 232, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #9d7ce8;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

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

.spec-label {
  color: #b0b0b0;
  font-weight: 500;
}

.spec-value {
  color: #9d7ce8;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

/* Data Quality */
.data-quality {
  margin-bottom: 3rem;
}

.data-quality h2 {
  font-size: 1.8rem;
  color: #9d7ce8;
  margin-bottom: 1.5rem;
  text-align: center;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.quality-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.quality-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #9d7ce8;
  margin-bottom: 1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.quality-content p {
  color: #e6e6e6;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.quality-detail {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 3px solid #6c5ce7;
  font-size: 0.9rem;
  color: #b0b0b0;
}

/* Pricing Section */
.pricing-section {
  margin-bottom: 3rem;
}

.pricing-section h2 {
  font-size: 1.8rem;
  color: #9d7ce8;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-banner {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #9d7ce8, #6c5ce7);
  border-radius: 12px;
  animation: pulse 2s infinite;
}

.banner-text {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.pricing-tier {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.pricing-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pricing-tier.featured {
  border-color: #9d7ce8;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #9d7ce8;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tier-header h3 {
  font-size: 1.5rem;
  color: #9d7ce8;
  margin-bottom: 1rem;
  text-align: center;
}

.tier-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-beans {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #00ff88;
  margin-bottom: 0.5rem;
}

.price-usd {
  display: block;
  font-size: 1rem;
  color: #b0b0b0;
}

.tier-features ul {
  list-style: none;
  margin-bottom: 2rem;
}

.tier-features li {
  padding: 0.5rem 0;
  color: #e6e6e6;
  border-bottom: 1px solid #333;
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-btn {
  width: 100%;
  padding: 1rem;
  background: #9d7ce8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tier-btn:hover {
  background: #8b6bc7;
}

.tier-btn.featured {
  background: linear-gradient(135deg, #9d7ce8, #6c5ce7);
}

/* Sample Downloads */
.sample-downloads {
  margin-bottom: 3rem;
}

.sample-downloads h2 {
  font-size: 1.8rem;
  color: #9d7ce8;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #b0b0b0;
  margin-bottom: 2rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.download-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #333;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.download-card h3 {
  color: #9d7ce8;
  margin-bottom: 1rem;
}

.download-card p {
  color: #b0b0b0;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #9d7ce8;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #8b6bc7;
}

/* API Demo */
.api-demo-section {
  margin-bottom: 3rem;
}

.api-demo-section h2 {
  font-size: 1.8rem;
  color: #9d7ce8;
  margin-bottom: 1rem;
  text-align: center;
}

.api-demo {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #333;
}

.demo-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.demo-btn {
  padding: 0.75rem 1.5rem;
  background: #9d7ce8;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
}

.demo-btn:hover {
  background: #8b6bc7;
}

.demo-output {
  background: #0a0a0a;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #333;
}

.demo-output pre {
  color: #e6e6e6;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Contact Section */
.contact-section {
  margin-bottom: 3rem;
}

.contact-section h2 {
  font-size: 1.8rem;
  color: #9d7ce8;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-info {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #333;
  text-align: center;
}

.contact-item {
  margin-bottom: 1rem;
  color: #e6e6e6;
}

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

.contact-item strong {
  color: #9d7ce8;
}

/* Section Cards */
.section-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9d7ce8, #6c5ce7, #a29bfe);
  border-radius: 16px 16px 0 0;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  border-color: #9d7ce8;
}

/* Value Proposition */
.value-proposition {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #9d7ce8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-item {
  padding: 2rem;
  background: rgba(157, 124, 232, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(157, 124, 232, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.product-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9d7ce8, #6c5ce7);
  border-radius: 12px 12px 0 0;
}

.product-item:hover {
  transform: translateY(-3px);
  background: rgba(157, 124, 232, 0.1);
  border-color: rgba(157, 124, 232, 0.4);
}

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

.product-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #9d7ce8;
  margin-bottom: 1rem;
}

.product-item p {
  color: #e6e6e6;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-example {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #9d7ce8;
  margin-top: 1rem;
}

.product-example code {
  color: #9d7ce8;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Data Quality & Specifications */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.spec-item {
  padding: 1.5rem;
  background: rgba(157, 124, 232, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(157, 124, 232, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.spec-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
  border-radius: 12px 12px 0 0;
}

.spec-item:hover {
  transform: translateY(-2px);
  background: rgba(157, 124, 232, 0.1);
  border-color: rgba(157, 124, 232, 0.4);
}

.spec-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.spec-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9d7ce8;
  margin-bottom: 0.75rem;
}

.spec-item p {
  color: #e6e6e6;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.spec-detail {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border-left: 3px solid #6c5ce7;
  font-size: 0.85rem;
  color: #b0b0b0;
}

.marketplace-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: #0a0a0a;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #e6e6e6;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.stat-content h3 {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #9d7ce8;
}


/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.pricing-highlight {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #9d7ce8;
  position: relative;
  overflow: hidden;
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9d7ce8, #6c5ce7, #a29bfe, #9d7ce8);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.pricing-banner {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #9d7ce8, #6c5ce7);
  border-radius: 12px;
  animation: pulse 2s infinite;
}

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

.banner-text {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #333;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border-color: #9d7ce8;
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #9d7ce8;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e6e6e6;
  text-align: center;
}

.pricing-price {
  text-align: center;
  margin-bottom: 2rem;
}

.price-beans {
  font-size: 2rem;
  font-weight: 700;
  color: #9d7ce8;
  margin-bottom: 0.5rem;
}

.price-usd {
  font-size: 1.2rem;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
}

.price-savings {
  font-size: 0.9rem;
  color: #4CAF50;
  font-weight: 600;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #e6e6e6;
  border-bottom: 1px solid #333;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Samples Section */
.samples-section {
  padding: 80px 0;
  background: #0a0a0a;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sample-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.sample-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e6e6e6;
}

.sample-card p {
  color: #b0b0b0;
  margin-bottom: 1.5rem;
}

.sample-preview {
  background: #0a0a0a;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #333;
  max-height: 300px;
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.data-table th {
  background: #1a1a1a;
  font-weight: 600;
  color: #e6e6e6;
}

.json-preview {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.8rem;
  color: #e6e6e6;
  white-space: pre-wrap;
  word-break: break-word;
}

.sample-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* API Demo Section */
.api-demo-section {
  padding: 80px 0;
  background: #0a0a0a;
}

.api-demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.api-endpoints h3,
.api-response h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #e6e6e6;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.endpoint-item {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #333;
}

.endpoint-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.method {
  background: #9d7ce8;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

.path {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: #e6e6e6;
  font-weight: 500;
  flex: 1;
}

.description {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.response-container {
  background: #0a0a0a;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-height: 400px;
  overflow: auto;
  border: 1px solid #333;
}

#api-response-content {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.8rem;
  color: #e6e6e6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: #0a0a0a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #e6e6e6;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #e6e6e6;
}

.contact-icon {
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #333;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: #1a1a1a;
  color: #e6e6e6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #9d7ce8;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #9d7ce8;
  color: white;
  border-color: #9d7ce8;
}

.btn-primary:hover {
  background: #8b6bc7;
  border-color: #8b6bc7;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #9d7ce8;
  border-color: #9d7ce8;
}

.btn-outline:hover {
  background: #9d7ce8;
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #9d7ce8;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #9d7ce8;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cta-stat {
  text-align: center;
}

.cta-stat .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #9d7ce8;
  margin-bottom: 0.5rem;
}

.cta-stat .stat-label {
  font-size: 1rem;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Mobile Responsiveness for Marketplace */
@media (max-width: 768px) {
  .marketplace-dashboard {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .samples-grid {
    grid-template-columns: 1fr;
  }
  
  .api-demo-container {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}

/* One-Click Installation Styles */
.one-click-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #9d7ce8;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.one-click-section h2 {
    color: #9d7ce8;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.one-click-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.command-box {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.command-box h3 {
    color: #9d7ce8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.command-box code {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    word-break: break-all;
    margin-bottom: 1rem;
}

.copy-btn {
    background: #9d7ce8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #8b6bc7;
}

.one-click-note {
    color: #b0b0b0;
    font-style: italic;
    margin-top: 1rem;
}

/* Mathematical Derivation Styles */
.mathematical-derivation {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 4px solid #4a9eff;
}

.derivation-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.derivation-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid #4a9eff;
}

.derivation-section h3 {
    color: #4a9eff;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3em;
}

.derivation-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.derivation-section ul {
    color: #ccc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.derivation-section ul li {
    margin-bottom: 0.5rem;
}

.math-formula {
    background: #1a1a1a;
    border-left: 4px solid #4a9eff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.math-formula code {
    color: #4a9eff;
    font-size: 1.1em;
    line-height: 1.8;
    white-space: pre;
}

.visualization-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
}

.visualization-container h4 {
    color: #4a9eff;
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.math-visualization {
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.math-diagram {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.math-diagram:hover {
    transform: scale(1.02);
}

.viz-info {
    padding: 1rem;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 4px;
    border-left: 3px solid #4a9eff;
}

.viz-info p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.viz-info ul {
    color: #ccc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.viz-info ul li {
    margin-bottom: 0.3rem;
    font-size: 0.9em;
}

.viz-info strong {
    color: #4a9eff;
}

/* Interactive elements */
#unit-circle,
#unit-circle-complex,
#equilibrium-line,
#critical-point,
#mu-point {
    transition: all 0.3s ease;
    cursor: pointer;
}

#unit-circle:hover,
#unit-circle-complex:hover {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.5));
}

#equilibrium-line:hover {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.5));
}

#critical-point:hover,
#mu-point:hover {
    r: 6;
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.5));
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid #333;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #9d7ce8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #9d7ce8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ddd;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}