@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --bg-primary: #07080D;
  --bg-surface: #0D101A;
  --bg-glass: rgba(13, 16, 26, 0.78);
  --bg-glass-elevated: rgba(22, 27, 44, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(229, 169, 60, 0.5);
  --gold-primary: #FFDF70;
  --gold-secondary: #E5A93C;
  --gold-glow: rgba(229, 169, 60, 0.35);
  --emerald-accent: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --cyan-accent: #38BDF8;
  --red-alert: #EF4444;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Aurora Mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 18% 25%, rgba(229, 169, 60, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 82% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 8, 13, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  border-radius: 8px;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: var(--gold-primary);
  font-weight: 600;
}

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

.pro-active-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: var(--gold-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.pro-active-badge.active {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Sales Funnel Banner */
.sales-funnel-banner {
  background: linear-gradient(90deg, rgba(229, 169, 60, 0.12), rgba(16, 185, 129, 0.12), rgba(229, 169, 60, 0.12));
  background-size: 200% auto;
  border-bottom: 1px solid rgba(229, 169, 60, 0.3);
  padding: 0.75rem 1rem;
  text-align: center;
  position: relative;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.urgency-pill {
  background: var(--red-alert);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  animation: pulsePill 2s infinite;
}

@keyframes pulsePill {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.banner-text strong {
  color: var(--text-main);
}

.banner-price {
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

.banner-price-strike {
  text-decoration: line-through;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-right: 0.25rem;
}

.banner-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.38rem 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #07080D;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.5);
}

.btn-solana {
  background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
  color: #07080D;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(153, 69, 255, 0.3);
}

.btn-solana:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 241, 149, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-link {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: underline;
  padding: 0.2rem 0.5rem;
}

.btn-link:hover {
  color: var(--gold-primary);
}

/* Layout Containers */
.main-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.hero-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 3rem 2.5rem;
  pointer-events: none;
}

.hero-content * {
  pointer-events: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-primary);
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 20%, #CBD5E1 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero-stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Two-Column Sentinel Grid */
.sentinel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

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

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* Preset Product Pills */
.presets-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.preset-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.preset-pill.active {
  background: rgba(229, 169, 60, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Form Controls & Range Sliders */
.input-row {
  margin-bottom: 1rem;
}

.input-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.input-label-text {
  color: var(--text-muted);
}

.input-value-display {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-primary);
}

.range-slider {
  width: 100%;
  accent-color: var(--gold-secondary);
  cursor: pointer;
}

/* Radio Platform Picker */
.platform-selector-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.platform-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.platform-card-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--emerald-accent);
  color: var(--text-main);
  font-weight: 700;
}

/* Sentinel Speedometer & Waterfall Cards */
.metrics-display-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profit-hero-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(7, 8, 13, 0.8));
  border: 1px solid var(--emerald-accent);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profit-dollar-val {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--emerald-accent);
  text-shadow: 0 0 20px var(--emerald-glow);
}

.profit-margin-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-accent);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  margin-top: 0.25rem;
}

/* Waterfall Ledger */
.waterfall-ledger {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ledger-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.ledger-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ledger-label {
  color: var(--text-muted);
}

.ledger-value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.ledger-val-neg {
  color: var(--red-alert);
}

.ledger-val-pos {
  color: var(--emerald-accent);
}

/* Platform Comparison Table / Cards */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.comparison-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.comparison-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 169, 60, 0.4);
}

.comparison-platform-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.comparison-profit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.4rem;
}

.comparison-profit-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-accent);
}

.comparison-margin-pct {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Paywall Blur Overlay */
.paywall-wrapper {
  position: relative;
  margin-top: 2.5rem;
}

.paywall-content-locked,
.paywall-blur {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
}

.paywall-content-unlocked {
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

.paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: rgba(7, 8, 13, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 14px;
}

.paywall-card {
  max-width: 480px;
  width: 90%;
  background: var(--bg-glass-elevated);
  border: 1px solid var(--gold-secondary);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
}

.paywall-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.paywall-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.paywall-features-list {
  text-align: left;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.paywall-features-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  color: var(--gold-primary);
  font-weight: 800;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.text-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 1rem;
}

.text-input:focus {
  border-color: var(--gold-secondary);
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: rgba(7, 8, 13, 0.95);
}

.app-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.app-footer a:hover {
  color: var(--gold-primary);
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Legal Pages */
.legal-page .legal-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.legal-card h1 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.effective-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.legal-card section {
  margin-bottom: 1.5rem;
}

.legal-card h2 {
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.legal-card p, .legal-card ul {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-card ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-content {
    padding: 2rem 1.25rem;
  }
  .banner-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Sovereign Toast Notification Engine */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gold-primary);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  animation: toastIn 0.25s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 380px;
}

.toast.toast-success {
  border-left-color: #10B981;
}

.toast.toast-error {
  border-left-color: #EF4444;
}

.toast.toast-info {
  border-left-color: var(--gold-primary);
}

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

