/* 
  Omega Protocol Website Styles
  Theme: Cyberpunk Space, Glassmorphism, Neon Accents
*/

:root {
  --bg-darker: #020617;
  --bg-dark: #090d1f;
  --card-bg: rgba(15, 23, 42, 0.45);
  --border-color: rgba(51, 65, 85, 0.3);
  --border-focus: rgba(16, 185, 129, 0.5);
  
  /* Color Palette */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.15);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --red: #f43f5e;
}

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

body {
  background-color: var(--bg-darker);
  color: var(--text-secondary);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background Gradients & Glows */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #080f25 0%, #020617 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.orb-1 {
  background-color: var(--emerald);
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-2 {
  background-color: var(--indigo);
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: -100px;
  animation: floatOrb 30s infinite alternate-reverse ease-in-out;
}

.orb-3 {
  background-color: var(--cyan);
  width: 400px;
  height: 400px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 80px) scale(1.15); }
}

/* Canvas node connections */
#node-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header styling */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrapper {
  background: linear-gradient(135deg, var(--emerald), var(--indigo));
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.logo-icon {
  color: var(--bg-darker);
  stroke-width: 2.5;
}

.brand-text h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.live {
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseLight 1.5s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Bankroll Tracker Header Component */
.bankroll-tracker {
  display: flex;
  flex-direction: column;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

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

.bankroll-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge-emerald {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-cyan {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.2);
}

.badge-amber {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.2);
}

/* Metrics Glance Grid */
.metrics-glance-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media(min-width: 640px) {
  .metrics-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .metrics-glance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.25);
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.metric-icon {
  width: 16px;
  height: 16px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.metric-trend i {
  width: 12px;
  height: 12px;
}

/* Network Grid */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.network-item {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(51, 65, 85, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.network-item:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.network-icon {
  width: 14px;
  height: 14px;
}

.network-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.network-latency {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-left: auto;
}

.ping-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--emerald);
  color: var(--bg-darker);
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.btn-primary:hover:not(:disabled) {
  background-color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-primary:disabled {
  background-color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: rgba(30, 41, 59, 0.7);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(30, 41, 59, 0.9);
  border-color: var(--text-secondary);
  color: #ffffff;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .span-2 {
    grid-column: span 2;
  }
  .span-3 {
    grid-column: span 3;
  }
}

/* Premium Card Layout */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.title-icon {
  width: 20px;
  height: 20px;
}

.text-emerald { color: var(--emerald); }
.text-cyan { color: var(--cyan); }
.text-indigo { color: var(--indigo); }
.text-slate { color: var(--text-muted); }
.text-red { color: var(--red); }
.text-emerald.font-bold { color: var(--emerald); font-weight: 700; }

.api-endpoint code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background-color: rgba(15, 23, 42, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Table styling */
.table-container {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

th {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.3);
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.1);
  color: var(--text-secondary);
  vertical-align: middle;
}

tr:hover td {
  background-color: rgba(30, 41, 59, 0.2);
}

tr.new-row-flash td {
  animation: flashRow 1s ease-out;
}

@keyframes flashRow {
  0% { background-color: rgba(16, 185, 129, 0.2); }
  100% { background-color: transparent; }
}

.text-right { text-align: right; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.table-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.table-placeholder td {
  padding: 3.5rem 1rem;
}

/* Blur Overlay for Free Tiers */
.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.blur-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.lock-icon {
  width: 48px;
  height: 48px;
  color: var(--amber);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.overlay-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.overlay-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--emerald);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
  background: rgba(16, 185, 129, 0.02);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.3);
}

.pricing-card.featured:hover {
  border-color: #34d399;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.15);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.featured-badge {
  color: var(--bg-darker);
  background: var(--emerald);
}

.pricing-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.price span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: auto;
  font-size: 0.8rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li i {
  width: 14px;
  height: 14px;
}

/* Sidebar Column Layout */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Regime Display */
.regime-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

.regime-value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.regime-value.initializing {
  color: var(--text-muted);
}

.regime-value.vacuum {
  color: var(--text-secondary);
  text-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.regime-value.pre-shock {
  color: var(--amber);
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.regime-value.phase-transition {
  color: var(--red);
  text-shadow: 0 0 15px rgba(244, 63, 94, 0.5);
  animation: heartbeat 1.5s infinite alternate ease-in-out;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.dissonance-meter {
  width: 100%;
  height: 6px;
  background-color: rgba(15, 23, 42, 0.8);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}

.dissonance-fill {
  height: 100%;
  background: linear-gradient(to right, var(--cyan), var(--amber), var(--red));
  transition: width 0.5s ease;
}

.dissonance-label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.regime-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Console Section */
.console-card {
  flex-grow: 1;
}

.console-body {
  background-color: rgba(2, 6, 23, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 180px;
  padding: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--emerald);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log-line {
  word-break: break-all;
}

.log-line.system {
  color: var(--text-muted);
}

.log-line.success {
  color: var(--emerald);
}

.log-line.warning {
  color: var(--amber);
}

/* Routing Sandbox */
.routing-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width: 768px) {
  .routing-container {
    grid-template-columns: 280px 1fr;
  }
}

.routing-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.form-control {
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-control:focus {
  border-color: var(--border-focus);
}

.routing-visualizer {
  background-color: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 200px;
}

.vis-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 1rem;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.large-icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  opacity: 0.4;
}

.vis-flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.flow-step {
  display: flex;
  align-items: center;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.step-num {
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-weight: bold;
}

.step-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-asset {
  color: var(--text-primary);
  font-weight: bold;
}

.step-venue {
  color: var(--text-muted);
}

.arrow-icon {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.step-cost {
  margin-left: auto;
  font-weight: 500;
}

.flow-connector {
  width: 2px;
  height: 12px;
  background-color: var(--border-color);
  margin-left: 20px;
}

.flow-summary {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.summary-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.summary-metric.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--emerald-glow);
}

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

.summary-metric .val {
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--text-primary);
}

/* API Playground */
.json-output-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.json-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-bottom: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.json-output {
  margin: 0 !important;
  border-radius: 0 0 8px 8px !important;
  border-top: none !important;
  height: 175px;
  padding: 0.85rem !important;
}

.json-output code {
  color: #38bdf8;
  font-size: 0.72rem;
}

/* Quickstart and Tabs */
.quickstart-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--emerald);
  background-color: var(--emerald-glow);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.quickstart-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

pre {
  background-color: rgba(2, 6, 23, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.modal {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: modalEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalEnter {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

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

.wallet-option {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-option:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(2px);
}

.wallet-icon-wrapper {
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.wallet-icon-wrapper i {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.phantom-color {
  background-color: rgba(171, 71, 188, 0.15);
  color: #ab47bc;
}

.solflare-color {
  background-color: rgba(245, 124, 0, 0.15);
  color: #f57c00;
}

.metamask-color {
  background-color: rgba(230, 81, 0, 0.15);
  color: #e65100;
}

.wallet-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.wallet-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.wallet-option:hover .chevron {
  color: var(--emerald);
}

/* L2 Base Checkout specific style */
.checkout-summary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
}

.payment-box {
  background-color: rgba(2, 6, 23, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.addr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.addr-row .lbl {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.addr-row .val {
  color: var(--text-primary);
  font-weight: bold;
}

.copy-addr-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.copy-addr-btn:hover {
  color: var(--emerald);
}

.copy-addr-btn i {
  width: 14px;
  height: 14px;
}

/* Footer */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--emerald);
}

/* Utilities */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.justify-between { justify-content: space-between; }
.border-b { border-bottom-width: 1px; }
.border-slate-800 { border-color: rgba(30, 41, 59, 0.5); }
.pb-2 { padding-bottom: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-slate-400 { color: var(--text-secondary); }
.text-white { color: var(--text-primary); }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.gap-3 { gap: 0.75rem; }
.animate-spin {
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.hidden {
  display: none !important;
}
