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

:root {
  --bg-primary: hsl(226, 38%, 6%);
  --bg-secondary: hsl(226, 34%, 10%);
  --bg-card: hsla(226, 34%, 12%, 0.55);
  --border-color: hsla(226, 60%, 80%, 0.08);
  --border-focus: hsla(185, 100%, 50%, 0.3);
  
  --color-text-main: hsl(226, 25%, 92%);
  --color-text-muted: hsl(226, 16%, 68%);
  --color-text-darker: hsl(226, 12%, 50%);
  
  --accent-cyan: hsl(185, 100%, 48%);
  --accent-cyan-glow: hsla(185, 100%, 48%, 0.15);
  --accent-purple: hsl(271, 91%, 65%);
  --accent-purple-glow: hsla(271, 91%, 65%, 0.15);
  --accent-pink: hsl(325, 90%, 60%);
  
  --status-success: hsl(142, 70%, 45%);
  --status-warning: hsl(38, 92%, 50%);
  --status-danger: hsl(350, 89%, 60%);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  
  --glass-blur: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: hsla(226, 20%, 40%, 0.5) transparent;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsla(226, 20%, 40%, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsla(226, 20%, 50%, 0.5);
}

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

/* Background Glowing Orbs */
.glow-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1000px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  top: -150px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
  animation-duration: 25s;
}

.orb-2 {
  top: 250px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 80%);
  animation-duration: 30s;
  animation-delay: -5s;
}

.orb-3 {
  top: 700px;
  right: 25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 80%);
  animation-duration: 20s;
  animation-delay: -10s;
}

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

/* Background Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}

/* Layout Containers */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 70%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(185, 100, 48, 0.3));
}

.badge-version {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: hsla(185, 100%, 48%, 0.1);
  color: var(--accent-cyan);
  border: 1px solid hsla(185, 100%, 48%, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-premium-outline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.btn-premium-outline:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: hsla(271, 91%, 65%, 0.08);
  border: 1px solid hsla(271, 91%, 65%, 0.2);
  color: hsl(271, 91%, 75%);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-tag svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

h1 span.gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 10%, var(--accent-purple) 60%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Tool Main Area Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 1200px) {
  .workspace-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .dashboard-center {
    grid-column: span 2;
    order: 3;
  }
}

@media (max-width: 768px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-center {
    grid-column: span 1;
  }
}

/* Glass Panels */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
  position: relative;
  transition: border-color var(--transition-normal);
}

.panel:hover {
  border-color: hsla(226, 60%, 80%, 0.14);
}

.panel-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.panel-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-icon.cyan svg { stroke: var(--accent-cyan); }
.panel-icon.purple svg { stroke: var(--accent-purple); }
.panel-icon.orange svg { stroke: var(--status-warning); }

.panel-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
}

/* Editors Container */
.editor-container {
  position: relative;
  height: 400px;
  border-radius: 16px;
  background: hsla(226, 30%, 8%, 0.5);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.editor-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.editor-scroll {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  position: relative;
}

.text-editor {
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-main);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Editable content area styling */
.text-editor[contenteditable="true"] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.placeholder-text {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  color: var(--color-text-darker);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--transition-fast);
}

/* AI Highlight Styling */
.ai-highlight {
  background: rgba(271, 91, 65, 0.12);
  border-bottom: 2px dotted var(--accent-purple);
  padding: 0.1rem 0;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  display: inline;
}

.ai-highlight:hover {
  background: rgba(271, 91, 65, 0.22);
  color: #fff;
}

/* Interactive Popover */
.synonym-popover {
  position: absolute;
  z-index: 999;
  background: hsl(226, 30%, 14%);
  border: 1px solid var(--accent-purple);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 150px;
}

.synonym-popover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: hsl(226, 30%, 14%);
  border-right: 1px solid var(--accent-purple);
  border-bottom: 1px solid var(--accent-purple);
  transform: rotate(45deg);
}

.popover-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-purple);
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.25rem;
}

.synonym-option {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-main);
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.synonym-option:hover {
  background: hsla(271, 91%, 65%, 0.15);
  color: #fff;
}

/* Output Copy & Stats Panel */
.panel-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-action {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  transition: var(--transition-normal);
}

.btn-cyan {
  background: var(--accent-cyan);
  color: hsl(226, 38%, 6%);
}

.btn-cyan:hover {
  background: #fff;
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-secondary {
  background: hsla(226, 30%, 15%, 0.8);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background: hsla(226, 30%, 18%, 1);
  border-color: var(--color-text-muted);
}

/* Central Analytics Dashboard */
.dashboard-center {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: 20px;
  background: hsla(226, 30%, 8%, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
}

.gauge-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.gauge-svg-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 0.75rem;
}

.gauge-svg {
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: hsla(226, 20%, 40%, 0.1);
  stroke-width: 10;
}

.gauge-fill {
  fill: none;
  stroke: var(--status-success);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.8s ease;
}

.gauge-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.gauge-label {
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.risk-level-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-top: 0.5rem;
  background: hsla(142, 70%, 45%, 0.1);
  color: var(--status-success);
  border: 1px solid hsla(142, 70%, 45%, 0.2);
}

.risk-level-badge.warning {
  background: hsla(38, 92%, 50%, 0.1);
  color: var(--status-warning);
  border: 1px solid hsla(38, 92%, 50%, 0.2);
}

.risk-level-badge.danger {
  background: hsla(350, 89%, 60%, 0.1);
  color: var(--status-danger);
  border: 1px solid hsla(350, 89%, 60%, 0.2);
}

/* Threat Details */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: hsla(226, 30%, 8%, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.85rem;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.stat-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke-width: 2;
}

.stat-icon.cyan { stroke: var(--accent-cyan); }
.stat-icon.purple { stroke: var(--accent-purple); }
.stat-icon.orange { stroke: var(--status-warning); }

.stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text-main);
}

.stat-value.alert {
  color: var(--status-danger);
}

/* Control Panel Grid */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.control-title {
  font-weight: 600;
  font-family: var(--font-display);
}

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

.control-value-badge {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Select Dropdown styling */
.select-input {
  background: hsla(226, 30%, 8%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin: 0.5rem 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-input:focus, .select-input:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

/* Text Input fields styling */
.text-input {
  background: hsla(226, 30%, 8%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin: 0.25rem 0;
  transition: var(--transition-fast);
  width: 100%;
}

.text-input:focus, .text-input:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.select-input option {
  background: hsl(226, 30%, 12%);
  color: var(--color-text-main);
}

/* Sliders */
.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: hsla(226, 20%, 40%, 0.2);
  outline: none;
  margin: 0.5rem 0;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Switches & Toggles */
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.switch-details {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.switch-label {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.switch-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.switch-container {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(226, 20%, 40%, 0.25);
  border: 1px solid var(--border-color);
  transition: .3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-text-muted);
  transition: .3s;
  border-radius: 50%;
}

.switch-container input:checked + .switch-slider {
  background-color: var(--accent-purple-glow);
  border-color: var(--accent-purple);
}

.switch-container input:checked + .switch-slider:before {
  transform: translateX(20px);
  background-color: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

/* Presets Selection */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-preset {
  background: hsla(226, 30%, 8%, 0.3);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  padding: 0.5rem 0.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-align: center;
  transition: var(--transition-fast);
}

.btn-preset:hover {
  border-color: var(--accent-purple);
  color: var(--color-text-main);
}

.btn-preset.active {
  background: var(--accent-purple-glow);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

/* Information & Landing Page Sections */
.info-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.feature-card {
  background: hsla(226, 34%, 10%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card-icon.cyan {
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
}

.feature-card-icon.purple {
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
}

.feature-card-icon.pink {
  background: hsla(325, 90%, 60%, 0.1);
  color: var(--accent-pink);
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Diagram Section */
.diagram-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .diagram-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.diagram-visual {
  background: hsla(226, 30%, 8%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.visual-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  background: hsla(226, 20%, 40%, 0.15);
  color: var(--color-text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.visual-step.active .step-num {
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  word-break: break-all;
}

.step-code span.red-word {
  color: var(--status-danger);
  text-decoration: line-through;
}

.step-code span.green-word {
  color: var(--status-success);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: hsla(226, 34%, 10%, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-purple);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-main);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-trigger svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
  stroke: var(--accent-purple);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

.faq-text {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Interactive Floating Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: hsl(226, 30%, 14%);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
}

.toast-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 2;
}

/* Tab Navigation Layout */
.sanitizer-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.tab-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  background: hsla(226, 30%, 8%, 0.4);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.tab-btn:hover {
  color: var(--color-text-main);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.tab-btn.active {
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Tab Display Logic */
.tab-content {
  display: none;
}

.tab-content.active {
  display: grid !important;
}

/* Image Workspace Components */
.image-workspace-container {
  position: relative;
  height: 400px;
  border-radius: 16px;
  background: hsla(226, 30%, 8%, 0.5);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  transition: var(--transition-normal);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: hsla(185, 100%, 48%, 0.02);
}

.upload-dropzone svg {
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

.upload-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-text .highlight {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 320px;
}

/* Canvas Viewport */
.canvas-editor-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  cursor: crosshair;
}

#drawing-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
}

.canvas-instructions {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border: 1px solid var(--border-color);
  pointer-events: none;
  white-space: nowrap;
}

.image-status-badge {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.output-image-placeholder {
  font-size: 0.9rem;
  color: var(--color-text-darker);
  text-align: center;
  padding: 2rem;
  max-width: 280px;
}

.output-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#output-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-radius: 8px;
}

/* Footer styling */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--color-text-darker);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-cyan);
}

