/* ==========================================================================
   Premium CSS Design System: Developer CLI Metrics Guard
   Tailored HSL Colors, Sleek Dark Mode, Glassmorphism, Micro-Animations
   ========================================================================== */

:root {
  --font-family-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: 'Fira Code', 'Courier New', Courier, monospace;

  /* HSL Tailored Color Palette */
  --bg-primary: hsl(260, 30%, 6%);
  --bg-secondary: hsl(260, 25%, 10%);
  --bg-glow: radial-gradient(circle at 50% 50%, hsl(260, 40%, 12%) 0%, hsl(260, 30%, 6%) 100%);
  
  --glass-bg: rgba(18, 14, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  --color-text-main: hsl(210, 20%, 95%);
  --color-text-muted: hsl(210, 10%, 65%);
  --color-text-dim: hsl(210, 8%, 45%);

  --color-green: hsl(150, 85%, 45%);
  --color-green-glow: hsla(150, 85%, 45%, 0.25);
  --color-purple: hsl(265, 90%, 65%);
  --color-purple-glow: hsla(265, 90%, 65%, 0.25);
  --color-yellow: hsl(45, 95%, 50%);
  --color-yellow-glow: hsla(45, 95%, 50%, 0.25);
  --color-red: hsl(355, 85%, 55%);
  --color-red-glow: hsla(355, 85%, 55%, 0.25);
  --color-orange: hsl(20, 95%, 55%);
  --color-orange-glow: hsla(20, 95%, 55%, 0.25);

  --transition-speed: 0.3s;
  --transition-cubic: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Base Elements & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-primary);
  background-image: var(--bg-glow);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ==========================================================================
   Background Glow Effects
   ========================================================================== */

.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  opacity: 0.8;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  opacity: 0.25;
  pointer-events: none;
  animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
  background: var(--color-purple);
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.orb-2 {
  background: var(--color-green);
  bottom: -150px;
  left: -100px;
  animation-delay: 5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 40px) scale(1.15);
  }
}

/* ==========================================================================
   Reusable UI Components
   ========================================================================== */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-glow);
  transition: border-color var(--transition-speed) var(--transition-cubic),
              box-shadow var(--transition-speed) var(--transition-cubic);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
}

.border-glow:hover {
  box-shadow: 0 0 25px 0 rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.highlight-border {
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 30px 0 rgba(16, 185, 129, 0.15);
}

.highlight-border:hover {
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 35px 0 rgba(16, 185, 129, 0.25);
}

/* Typography Helpers */
.text-green { color: var(--color-green); }
.text-purple { color: var(--color-purple); }
.text-yellow { color: var(--color-yellow); }
.text-red { color: var(--color-red); }
.text-orange { color: var(--color-orange); }

.highlight {
  background: linear-gradient(135deg, var(--color-green) 0%, #6EE7B7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons Styling */
.btn {
  font-family: var(--font-family-sans);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: all var(--transition-speed) var(--transition-cubic);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-green) 0%, hsl(150, 70%, 35%) 100%);
  color: hsl(260, 30%, 4%);
  box-shadow: 0 4px 15px 0 var(--color-green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

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

/* Ripple effect container */
.ripple {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Header Architecture
   ========================================================================== */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6%;
  background: rgba(11, 8, 19, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.badge {
  background: var(--color-purple-glow);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C084FC;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-main);
}

/* ==========================================================================
   Main Page Structure & Hero
   ========================================================================== */

.app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 4% 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 10px;
}

.hero-section h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFF 40%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ==========================================================================
   Upload Control Center
   ========================================================================== */

.control-center {
  padding: 32px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.panel-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.uploader-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Drag and Drop Zone */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-speed) ease;
}

.drop-zone.dragover {
  border-color: var(--color-green);
  background: rgba(16, 185, 129, 0.04);
}

.upload-icon {
  font-size: 3rem;
  color: var(--color-text-dim);
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.drop-zone:hover .upload-icon {
  color: var(--color-green);
}

.drop-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.drop-sub {
  color: var(--color-text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Text Area zone */
.text-paste-zone {
  display: flex;
  flex-direction: column;
}

.text-paste-zone label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.text-paste-zone textarea {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 16px;
  color: #ECECF1;
  font-family: var(--font-family-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: none;
  min-height: 180px;
  transition: all 0.2s ease;
}

.text-paste-zone textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 10px 0 rgba(139, 92, 246, 0.15);
}

.analyze-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-info {
  color: var(--color-text-dim);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Dashboard Metrics
   ========================================================================== */

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.6s var(--transition-cubic) forwards;
}

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

.hidden {
  display: none !important;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-bar h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-meta {
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

/* Metrics Grid Row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.metric-card {
  padding: 24px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.card-meta i {
  font-size: 1.2rem;
}

.card-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.card-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Visualizers: Flamegraph & Bottleneck Lists
   ========================================================================== */

.viz-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.viz-card {
  padding: 24px;
}

.card-header {
  margin-bottom: 24px;
}

.card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.card-header .subtitle {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* Flamegraph implementation */
.flamegraph-container {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 20px;
  min-height: 240px;
}

.thread-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.flamegraph-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 180px;
}

.thread-row {
  position: relative;
  height: 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  width: 100%;
}

.flame-block {
  position: absolute;
  top: 2px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flame-block:hover {
  transform: scaleY(1.08);
  filter: brightness(1.2);
  z-index: 10;
}

/* Flame Colors mapping */
.block-compile { background: linear-gradient(90deg, #8B5CF6 0%, #A78BFA 100%); }
.block-test { background: linear-gradient(90deg, #10B981 0%, #34D399 100%); }
.block-deploy { background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%); }
.block-idle {
  background: repeating-linear-gradient(
    45deg,
    rgba(245, 158, 11, 0.25),
    rgba(245, 158, 11, 0.25) 10px,
    rgba(245, 158, 11, 0.1) 10px,
    rgba(245, 158, 11, 0.1) 20px
  );
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: var(--color-yellow);
}

.flamegraph-legend {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-compile { background: #8B5CF6; }
.legend-test { background: #10B981; }
.legend-deploy { background: #3B82F6; }
.legend-idle { background: #F59E0B; opacity: 0.4; }

/* Bottleneck Breakdown Items */
.bottleneck-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bottleneck-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bottleneck-item:hover {
  transform: translateX(4px);
  border-color: rgba(239, 68, 68, 0.3);
}

.item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.item-name {
  font-family: var(--font-family-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.item-time {
  font-weight: 700;
  font-size: 0.9rem;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
}

.fill-red { background: var(--color-red); }
.fill-orange { background: var(--color-orange); }
.fill-yellow { background: var(--color-yellow); }

/* ==========================================================================
   Recommendations Section
   ========================================================================== */

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

.rec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: all 0.2s ease;
}

.rec-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-green-glow);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

.rec-icon {
  font-size: 1.5rem;
  margin-top: 2px;
}

.rec-content h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

.rec-content p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.rec-gain {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #A7F3D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ==========================================================================
   Premium Alert Center
   ========================================================================== */

.premium-section {
  padding: 40px;
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.05);
}

.premium-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
}

.premium-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.premium-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.premium-header p {
  color: var(--color-text-muted);
  max-width: 700px;
}

.premium-badge-large {
  font-size: 3.5rem;
  color: var(--color-purple);
  opacity: 0.7;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.integration-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.integration-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.integration-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.slack-bg { background: #4A154B; color: #FFF; }
.discord-bg { background: #5865F2; color: #FFF; }
.webhook-bg { background: #334155; color: #FFF; }

.integration-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.integration-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 24px;
  flex-grow: 1;
}

.toggle-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dim);
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--color-purple);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Premium Outbound Config Panel */
.premium-config-panel {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(15, 10, 25, 0.8);
  animation: slideDown 0.4s var(--transition-cubic) forwards;
}

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

.inner-premium {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15) inset;
}

.premium-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.premium-config-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.btn-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.premium-form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.input-group input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  color: #ECECF1;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.input-group input[readonly] {
  color: var(--color-text-dim);
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.2);
}

.input-group small {
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 600;
}

.premium-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-strike {
  text-decoration: line-through;
  color: var(--color-text-dim);
  font-size: 1rem;
  margin-right: 8px;
}

.price-active {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-yellow);
}

.price-period {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.app-footer {
  text-align: center;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

footer.app-footer p {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   Modal purchase flow
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 2, 8, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
  to { opacity: 1; }
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.license-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.stripe-mock-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
}

.card-details-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.card-details-mock .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
}

.mock-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stripe-icon {
  font-size: 2rem;
  color: #635BFF;
}

.mock-digits {
  font-family: var(--font-family-mono);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Responsive Architecture
   ========================================================================== */

@media (max-width: 900px) {
  .uploader-container {
    grid-template-columns: 1fr;
  }
  .viz-grid {
    grid-template-columns: 1fr;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .app-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .nav-links {
    gap: 16px;
  }
  .panel-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .analyze-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .premium-form-row {
    grid-template-columns: 1fr;
  }
}
