/* ==================== VAPORWAVE / OUTRUN DESIGN SYSTEM ====================
 * Digital Nostalgia Meets Neon Future
 * ========================================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Vaporwave Color Palette */
  --color-void: #090014;              /* The infinite digital void */
  --color-chrome: #E0E0E0;            /* Silver-gray foreground text */
  --color-glass: rgba(26, 16, 60, 0.8); /* Semi-transparent deep purple */

  --color-magenta: #FF00FF;           /* Hot magenta - PRIMARY accent */
  --color-cyan: #00FFFF;              /* Electric cyan - SECONDARY accent */
  --color-orange: #FF9900;            /* Sunset orange - TERTIARY accent */

  --color-border: #2D1B4E;            /* Muted dark purple borders */
  --color-success: #00FF00;           /* Neon green */
  --color-error: #FF0066;             /* Hot pink error */

  /* Gradients */
  --gradient-sunset: linear-gradient(to right, #FF9900, #FF00FF, #00FFFF);
  --gradient-sun: linear-gradient(to bottom, #FF9900, #FF00FF);
  --gradient-accent-bar: linear-gradient(to right, #FF00FF, #00FFFF);

  /* Typography */
  --font-heading: "Orbitron", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Transitions - Fast, digital, mechanical */
  --transition: 200ms linear;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--color-void);
  color: var(--color-chrome);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ===== FIXED BACKGROUND EFFECTS ===== */

/* Floating Sun Gradient */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--gradient-sun);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* Perspective Grid Floor */
body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 400px;
  background-image:
    linear-gradient(transparent 95%, var(--color-magenta) 95%),
    linear-gradient(90deg, transparent 95%, var(--color-magenta) 95%);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
  transform-origin: bottom center;
  mask-image: linear-gradient(to bottom, transparent, black);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* CRT Scanlines Overlay */
.app-container::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18,16,20,0) 50%, rgba(0,0,0,0.25) 50%);
  background-size: 100% 4px;
  z-index: 50;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== APP CONTAINER ===== */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  animation: glitchIn 0.6s ease-out;
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  margin-bottom: var(--space-md);
}

.tagline {
  font-family: var(--font-mono);
  color: var(--color-cyan);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
  margin-bottom: var(--space-2xl);
  animation: slideUp 0.6s ease-out 0.1s backwards;
}

.upload-zone {
  border: 2px solid var(--color-border);
  border-top: 2px solid var(--color-cyan);
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-3xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.upload-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent-bar);
  transition: left 0.3s ease;
}

.upload-zone:hover {
  border-color: var(--color-magenta);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
  transform: translateY(-2px);
}

.upload-zone:hover::before {
  left: 100%;
}

.upload-zone.drag-over {
  border-color: var(--color-cyan);
  background: rgba(0, 255, 255, 0.15);
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.6),
    0 0 60px rgba(255, 0, 255, 0.3),
    inset 0 0 40px rgba(0, 255, 255, 0.1);
  transform: scale(1.02);
  animation: pulseBorder 1s ease-in-out infinite;
}

.upload-zone.drag-over .upload-icon {
  transform: rotate(90deg) scale(1.1);
  border-color: var(--color-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
  animation: pulse 0.8s ease-in-out infinite;
}

@keyframes pulseBorder {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(0, 255, 255, 0.6),
      0 0 60px rgba(255, 0, 255, 0.3),
      inset 0 0 40px rgba(0, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 40px rgba(0, 255, 255, 0.8),
      0 0 80px rgba(255, 0, 255, 0.5),
      inset 0 0 60px rgba(0, 255, 255, 0.2);
  }
}

@keyframes pulse {
  0%, 100% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(90deg) scale(1.2); }
}

.upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  transform: rotate(45deg);
}

.upload-zone:hover .upload-icon {
  transform: rotate(90deg);
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.upload-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-magenta);
  transition: color var(--transition);
  transform: rotate(-45deg);
}

.upload-zone:hover .upload-icon svg {
  color: var(--color-cyan);
  transform: rotate(-90deg);
}

.upload-zone h3 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--color-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.upload-zone p {
  color: var(--color-chrome);
  opacity: 0.7;
  margin-bottom: var(--space-md);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.file-types {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-magenta);
  background: rgba(0, 0, 0, 0.5);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-magenta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== STATUS SECTION ===== */
.status-section {
  margin-bottom: var(--space-2xl);
}

.status-card {
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-cyan);
  border-top: 2px solid var(--color-cyan);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.status-card p {
  font-family: var(--font-mono);
  color: var(--color-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-top-color: var(--color-cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESULTS SECTION ===== */
.results-section {
  margin-bottom: var(--space-2xl);
  animation: fadeIn 0.4s ease-out;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.results-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.results-actions {
  display: flex;
  gap: var(--space-md);
}

/* ===== BUTTONS - SKEWED WITH NEON GLOW ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transform: skewX(-12deg);
}

.btn > * {
  transform: skewX(12deg);
  display: inline-block;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.btn-primary:hover {
  transform: skewX(0deg);
  background: var(--color-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--color-cyan);
}

.btn-secondary {
  border-color: var(--color-magenta);
  color: var(--color-magenta);
}

.btn-secondary:hover {
  transform: skewX(0deg);
  background: var(--color-magenta);
  color: #000;
  box-shadow: 0 0 20px var(--color-magenta);
}

/* ===== RESULTS GRID ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.result-card {
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-cyan);
  overflow: hidden;
  transition: all var(--transition);
  animation: slideUp 0.4s ease-out backwards;
  position: relative;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-accent-bar);
  opacity: 0.5;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-magenta);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.result-image-container {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
}

.result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.result-card:hover .result-image {
  transform: scale(1.05);
}

.result-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 0, 20, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card:hover .result-overlay {
  opacity: 1;
}

.result-overlay svg {
  width: 40px;
  height: 40px;
  color: var(--color-cyan);
  filter: drop-shadow(0 0 10px var(--color-cyan));
}

.result-info {
  padding: var(--space-md);
}

.result-filename {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-chrome);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(224, 224, 224, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.result-status.success {
  color: var(--color-success);
  text-shadow: 0 0 5px var(--color-success);
}

.result-status.error {
  color: var(--color-error);
}

.result-actions {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-md) var(--space-md);
}

.result-actions .btn {
  flex: 1;
  justify-content: center;
  padding: var(--space-sm);
  font-size: 0.75rem;
}

/* ===== INFO SECTION ===== */
.info-section {
  margin-bottom: var(--space-2xl);
  animation: slideUp 0.6s ease-out 0.2s backwards;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.info-card {
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-magenta);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.info-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent-bar);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.info-card:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-4px);
}

.info-card:hover::after {
  transform: scaleX(1);
}

.info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  transform: rotate(45deg);
}

.info-card:hover .info-icon {
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  transform: rotate(90deg);
}

.info-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-magenta);
  transition: color var(--transition);
  transform: rotate(-45deg);
}

.info-card:hover .info-icon svg {
  color: var(--color-cyan);
  transform: rotate(-90deg);
}

.info-card h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-cyan);
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.info-card p {
  color: var(--color-chrome);
  opacity: 0.7;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  color: rgba(224, 224, 224, 0.5);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== MODAL - TERMINAL WINDOW ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 0, 20, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  background: #000;
  border: 2px solid var(--color-cyan);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal.active .modal-content {
  transform: scale(1);
}

/* Terminal Title Bar */
.modal-content::before {
  content: "AI_CLEAR.EXE";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(0, 255, 255, 0.1);
  border-bottom: 1px solid var(--color-cyan);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 6px;
  right: var(--space-sm);
  width: 20px;
  height: 20px;
  border: none;
  background: var(--color-magenta);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

.modal-close svg {
  width: 12px;
  height: 12px;
  color: #000;
}

.modal-image-container {
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 32px);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}


/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes glitchIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scaleY(0.9);
  }
  50% {
    opacity: 0.7;
    transform: translateY(5px) scaleY(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-container {
    padding: var(--space-md);
  }

  .upload-zone {
    padding: var(--space-xl);
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .results-actions {
    justify-content: stretch;
  }

  .results-actions .btn {
    flex: 1;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== COMPARISON SLIDER ===== */
.comparison-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.comparison-before,
.comparison-after {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.comparison-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.05s ease-out;
}

.comparison-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  transition: left 0.05s ease-out;
}

.handle-line {
  flex: 1;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--color-cyan),
    var(--color-magenta)
  );
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.handle-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-void);
  border: 3px solid var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.6),
    0 0 40px rgba(255, 0, 255, 0.4),
    inset 0 0 10px rgba(0, 255, 255, 0.3);
  position: relative;
}

.handle-circle svg {
  width: 30px;
  height: 30px;
  color: var(--color-cyan);
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.8));
}

.handle-circle::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.3),
    transparent 70%
  );
  animation: pulse 2s ease-in-out infinite;
}

.comparison-labels {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.label-before,
.label-after {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  background: rgba(9, 0, 20, 0.9);
  border: 2px solid;
  text-shadow: 0 0 10px currentColor;
  letter-spacing: 0.1em;
  backdrop-filter: blur(5px);
}

.label-before {
  color: var(--color-orange);
  border-color: var(--color-orange);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
}

.label-after {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* ===== SPLIT-VIEW RESULT CARDS ===== */
.result-card .result-image-container {
  position: relative;
  overflow: hidden;
}

.result-split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-magenta);
  padding: 2px;
  margin-bottom: var(--space-sm);
}

.split-half {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.split-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.split-half:hover img {
  transform: scale(1.1);
}

.split-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-shadow: 0 0 5px currentColor;
}

.split-before .split-label {
  background: rgba(255, 153, 0, 0.9);
  color: var(--color-orange);
  border-top: 1px solid var(--color-orange);
}

.split-after .split-label {
  background: rgba(0, 255, 255, 0.9);
  color: var(--color-cyan);
  border-top: 1px solid var(--color-cyan);
}

.result-card.has-split-view .result-image {
  display: none;
}

/* ===== BOOKMARKLET SECTION ===== */
.bookmarklet-section {
  margin-bottom: var(--space-3xl);
  animation: slideUp 0.6s ease-out 0.2s backwards;
}

.bookmarklet-card {
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--color-border);
  border-top: 2px solid var(--color-orange);
  padding: var(--space-2xl);
  position: relative;
}

.bookmarklet-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.bookmarklet-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--color-orange);
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-sm) 0;
  text-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
}

.bookmarklet-header p {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.bookmarklet-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.bookmarklet-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: rgba(255, 153, 0, 0.05);
  border: 2px dashed var(--color-orange);
}

.bookmarklet-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  background: linear-gradient(135deg, var(--color-orange), var(--color-magenta));
  border: none;
  color: #000;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: move;
  transition: all var(--transition);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.bookmarklet-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: bookmarkletShine 3s ease-in-out infinite;
}

@keyframes bookmarkletShine {
  0%, 100% {
    transform: translateX(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) rotate(45deg);
  }
}

.bookmarklet-button:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(255, 153, 0, 0.8),
    0 0 60px rgba(255, 0, 255, 0.4);
}

.bookmarklet-button:active {
  transform: scale(0.95);
}

.bookmarklet-button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bookmarklet-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.step-instruction {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 2px solid var(--color-cyan);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 900;
  flex-shrink: 0;
}

.step-instruction p {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text);
  margin: 0;
  padding-top: 0.25rem;
}

.bookmarklet-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--color-cyan);
}

.bookmarklet-note svg {
  width: 24px;
  height: 24px;
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.bookmarklet-note p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.bookmarklet-note strong {
  color: var(--color-cyan);
}
