/* ==========================================================================
   Karui Web Compressor - Refined Edition
   Matching LP & Tauri App Design Quality
   ========================================================================== */

/* --------------------------------------------------------------------------
   Liquid Glass Effect
   -------------------------------------------------------------------------- */
.liquid-glass {
  position: relative;
  isolation: isolate;
}

/* Inner glow / tint layer */
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 0 30px -8px rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

/* Backdrop blur + distortion layer */
.liquid-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  filter: url(#liquid-glass-filter);
  -webkit-filter: url(#liquid-glass-filter);
  pointer-events: none;
}

/* Content layer - ensure it's above the pseudo-elements */
.liquid-glass > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Background with Image
   -------------------------------------------------------------------------- */
.compress-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.compress-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: bgFadeIn 2s var(--ease-slow) 0.2s forwards;
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 0.6;
    transform: scale(1);
  }
}

.compress-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 15, 0.7) 0%,
    rgba(12, 12, 15, 0.85) 40%,
    rgba(12, 12, 15, 0.95) 100%
  );
}

/* --------------------------------------------------------------------------
   Main Layout
   -------------------------------------------------------------------------- */
.compress-main {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
}

.compress-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* --------------------------------------------------------------------------
   Header with Animation
   -------------------------------------------------------------------------- */
.compress-header {
  text-align: center;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: headerFadeIn 0.8s var(--ease-out) 0.3s forwards;
}

@keyframes headerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compress-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--snow);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--snow) 0%, var(--glacier) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compress-subtitle {
  font-size: 15px;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Workspace Layout
   -------------------------------------------------------------------------- */
.workspace {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  opacity: 0;
  transform: translateY(40px);
  animation: workspaceFadeIn 0.8s var(--ease-out) 0.5s forwards;
}

@keyframes workspaceFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-left {
  min-height: 500px;
}

.workspace-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Drop Zone - Liquid Glass
   -------------------------------------------------------------------------- */
.dropzone {
  position: relative;
  isolation: isolate;
  min-height: 500px;
  background: rgba(20, 20, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 0 40px -10px rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.dropzone::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  filter: url(#liquid-glass-filter);
  -webkit-filter: url(#liquid-glass-filter);
  pointer-events: none;
}

.dropzone > * {
  position: relative;
  z-index: 1;
}

.dropzone:hover {
  background: rgba(20, 20, 28, 0.45);
  border-color: rgba(160, 211, 217, 0.3);
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(160, 211, 217, 0.08);
}

.dropzone.dropzone--active {
  border-color: var(--glacier);
  background: rgba(160, 211, 217, 0.1);
  box-shadow:
    0 0 0 4px rgba(160, 211, 217, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

.dropzone.dropzone--active::before {
  box-shadow:
    inset 0 1px 0 0 rgba(160, 211, 217, 0.5),
    inset 0 0 50px -10px rgba(160, 211, 217, 0.4);
}

.dropzone-content {
  text-align: center;
  padding: 48px;
}

.dropzone-icon {
  color: var(--slate);
  margin-bottom: 24px;
  transition: all 0.4s var(--ease-out);
}

.dropzone:hover .dropzone-icon {
  color: var(--glacier);
  transform: translateY(-8px) scale(1.1);
}

.dropzone.dropzone--active .dropzone-icon {
  color: var(--glacier);
  transform: scale(1.15);
  animation: iconBounce 0.5s var(--ease-out);
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.25); }
}

.dropzone-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--snow);
  margin-bottom: 8px;
}

.dropzone-hint {
  display: block;
  font-size: 14px;
  color: var(--slate);
}

.dropzone-formats {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.dropzone-formats span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  background: rgba(12, 12, 15, 0.6);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(90, 90, 102, 0.3);
  transition: all 0.3s var(--ease);
}

.dropzone:hover .dropzone-formats span {
  border-color: rgba(160, 211, 217, 0.2);
  color: var(--silver);
}

/* --------------------------------------------------------------------------
   Processing State - Liquid Glass
   -------------------------------------------------------------------------- */
.processing {
  position: relative;
  isolation: isolate;
  min-height: 500px;
  background: rgba(20, 20, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.processing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 0 30px -8px rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

.processing::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  filter: url(#liquid-glass-filter);
  -webkit-filter: url(#liquid-glass-filter);
  pointer-events: none;
}

.processing > * {
  position: relative;
  z-index: 1;
}

.processing-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(160, 211, 217, 0.15);
  border-top-color: var(--glacier);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

.processing-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--snow);
  animation: textFade 1.5s ease-in-out infinite;
}

@keyframes textFade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   Result State
   -------------------------------------------------------------------------- */
.result {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: resultFadeIn 0.6s var(--ease-out) forwards;
}

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

/* Before/After Comparison */
.result .comparison-viewer {
  margin: 0;
}

/* PDF mode tweaks */
.compress-mode--pdf .comparison-viewer {
  display: none;
}

.compress-mode--pdf #resize-options {
  display: none;
}

.compress-mode--pdf .result {
  gap: 16px;
}

.result .comparison-container {
  aspect-ratio: 16 / 10;
  min-height: 400px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(90, 90, 102, 0.3);
}

/* Result Stats - Liquid Glass Card */
.result-stats {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 28px 32px;
  background: rgba(20, 20, 28, 0.35);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.result-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 0 24px -6px rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
}

.result-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  filter: url(#liquid-glass-filter);
  -webkit-filter: url(#liquid-glass-filter);
  pointer-events: none;
}

.result-stats > * {
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--snow);
}

.stat-value--highlight {
  background: linear-gradient(135deg, var(--glacier) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-arrow {
  color: var(--slate);
  opacity: 0.5;
}

.stat-saved {
  padding-left: 24px;
  border-left: 1px solid rgba(90, 90, 102, 0.3);
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.result-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--glacier) 0%, #7BC4CB 100%);
  color: var(--obsidian);
  padding: 16px 32px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(160, 211, 217, 0.25);
  transition: all 0.3s var(--ease-out);
}

.result-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(160, 211, 217, 0.35);
}

.result-actions .btn-ghost {
  padding: 16px 28px;
}

/* --------------------------------------------------------------------------
   Control Sections - Liquid Glass Cards
   -------------------------------------------------------------------------- */
.control-section {
  position: relative;
  isolation: isolate;
  background: rgba(20, 20, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.control-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 0 24px -6px rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
}

.control-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  filter: url(#liquid-glass-filter);
  -webkit-filter: url(#liquid-glass-filter);
  pointer-events: none;
}

.control-section > * {
  position: relative;
  z-index: 1;
}

.control-section:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.control-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 16px;
}

.control-hint {
  font-size: 12px;
  color: var(--slate);
  margin-top: 14px;
}

.prefix-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(90, 90, 102, 0.35);
  background: rgba(12, 12, 15, 0.55);
  color: var(--snow);
  font-size: 14px;
  font-family: var(--mono);
  transition: border-color 0.2s var(--ease);
}

.prefix-input:focus {
  outline: none;
  border-color: rgba(160, 211, 217, 0.6);
}

/* --------------------------------------------------------------------------
   Preset Cards - Refined with Glow
   -------------------------------------------------------------------------- */
.preset-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preset-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(12, 12, 15, 0.5);
  border: 1px solid rgba(90, 90, 102, 0.25);
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s var(--ease-out);
}

.preset-card:hover {
  border-color: rgba(160, 211, 217, 0.3);
  background: rgba(20, 20, 24, 0.6);
  transform: translateX(4px);
}

.preset-card--active {
  border-color: rgba(160, 211, 217, 0.5);
  background: linear-gradient(
    135deg,
    rgba(160, 211, 217, 0.1) 0%,
    rgba(160, 211, 217, 0.03) 100%
  );
  box-shadow:
    0 0 20px rgba(160, 211, 217, 0.1),
    inset 0 1px 0 rgba(160, 211, 217, 0.1);
}

.preset-card--active:hover {
  transform: translateX(0);
}

.preset-icon {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(90, 90, 102, 0.3) 0%, rgba(90, 90, 102, 0.1) 100%);
  border-radius: 10px;
  color: var(--silver);
  transition: all 0.3s var(--ease);
}

.preset-card:hover .preset-icon {
  background: linear-gradient(135deg, rgba(160, 211, 217, 0.2) 0%, rgba(160, 211, 217, 0.05) 100%);
  color: var(--glacier);
}

.preset-card--active .preset-icon {
  background: linear-gradient(135deg, rgba(160, 211, 217, 0.3) 0%, rgba(160, 211, 217, 0.1) 100%);
  color: var(--glacier);
  box-shadow: 0 0 15px rgba(160, 211, 217, 0.2);
}

.preset-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--snow);
  align-self: end;
}

.preset-desc {
  font-size: 12px;
  color: var(--slate);
  align-self: start;
}

.preset-badge {
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--glacier) 0%, #7BC4CB 100%);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(160, 211, 217, 0.3);
}

/* --------------------------------------------------------------------------
   Resize Options
   -------------------------------------------------------------------------- */
.resize-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.resize-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--silver);
  background: rgba(12, 12, 15, 0.5);
  border: 1px solid rgba(90, 90, 102, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.3s var(--ease);
}

.resize-btn:hover {
  border-color: rgba(160, 211, 217, 0.3);
  color: var(--snow);
  background: rgba(20, 20, 24, 0.6);
}

.resize-btn--active {
  border-color: rgba(160, 211, 217, 0.5);
  background: linear-gradient(
    135deg,
    rgba(160, 211, 217, 0.15) 0%,
    rgba(160, 211, 217, 0.05) 100%
  );
  color: var(--glacier);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Recompress Button
   -------------------------------------------------------------------------- */
.btn-recompress {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--glacier) 0%, #7BC4CB 100%);
  padding: 14px 20px;
  border-radius: 10px;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 14px rgba(160, 211, 217, 0.25);
}

.btn-recompress:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(160, 211, 217, 0.35);
}

/* --------------------------------------------------------------------------
   Upsell Card - Liquid Glass
   -------------------------------------------------------------------------- */
.upsell-card {
  position: relative;
  isolation: isolate;
  background: rgba(20, 20, 28, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.upsell-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 0 20px -6px rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
}

.upsell-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  filter: url(#liquid-glass-filter);
  -webkit-filter: url(#liquid-glass-filter);
  pointer-events: none;
}

.upsell-card > * {
  position: relative;
  z-index: 1;
}

.upsell-header {
  margin-bottom: 16px;
}

.upsell-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 6px;
}

.upsell-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--snow);
}

.upsell-features {
  margin-bottom: 16px;
}

.upsell-features li {
  font-size: 13px;
  color: var(--slate);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.upsell-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--slate);
}

.upsell-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sunset) 0%, var(--ember) 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 14px rgba(242, 148, 65, 0.25);
}

.upsell-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 148, 65, 0.35);
}

/* --------------------------------------------------------------------------
   Light Theme Overrides
   -------------------------------------------------------------------------- */
.compress-light {
  color: var(--graphite);
  background: #E9EEF4;
}

.compress-light .compress-bg-image {
  opacity: 0.6;
  filter: saturate(1) brightness(1.05);
}

.compress-light .compress-bg-overlay {
  background: linear-gradient(
    to bottom,
    rgba(247, 248, 252, 0.55) 0%,
    rgba(243, 246, 250, 0.7) 55%,
    rgba(236, 240, 246, 0.82) 100%
  );
}

.compress-light .nav.scrolled {
  background: rgba(247, 248, 252, 0.85);
  border-bottom: 1px solid rgba(40, 40, 47, 0.08);
}

.compress-light .logo-text,
.compress-light .nav-link {
  color: var(--graphite);
}

.compress-light .nav-link {
  opacity: 0.7;
}

.compress-light .nav-link:hover {
  opacity: 1;
}

.compress-light .nav-btn {
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--glacier) 0%, #7BC4CC 100%);
}

.compress-light .menu-toggle span {
  background: var(--graphite);
}

.compress-light .mobile-menu {
  background: rgba(247, 248, 252, 0.92);
}

.compress-light .mobile-menu-link {
  color: var(--graphite);
}

.compress-light .mobile-menu-link:hover {
  color: var(--obsidian);
}

.compress-light .compress-title {
  color: #1F2937;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.7);
}

.compress-light .compress-subtitle,
.compress-light .dropzone-hint,
.compress-light .dropzone-formats span,
.compress-light .stat-label,
.compress-light .control-label,
.compress-light .control-hint,
.compress-light .preset-desc,
.compress-light .upsell-tag,
.compress-light .upsell-features li {
  color: var(--slate);
}

.compress-light .dropzone-title,
.compress-light .processing-text,
.compress-light .stat-value,
.compress-light .preset-name,
.compress-light .upsell-title {
  color: var(--graphite);
}

.compress-light .dropzone,
.compress-light .processing,
.compress-light .result-stats,
.compress-light .control-section,
.compress-light .upsell-card {
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(40, 40, 47, 0.12);
  box-shadow: 0 16px 40px rgba(20, 20, 30, 0.12);
}

.compress-light .dropzone:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(160, 211, 217, 0.5);
  box-shadow:
    0 24px 50px rgba(20, 20, 30, 0.12),
    0 0 0 1px rgba(160, 211, 217, 0.2);
}

.compress-light .dropzone.dropzone--active {
  background: rgba(160, 211, 217, 0.12);
  border-color: rgba(160, 211, 217, 0.6);
  box-shadow:
    0 0 0 4px rgba(160, 211, 217, 0.14),
    0 20px 40px rgba(20, 20, 30, 0.12);
}

.compress-light .dropzone-formats span {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(40, 40, 47, 0.12);
}

.compress-light .dropzone:hover .dropzone-formats span {
  color: var(--graphite);
  border-color: rgba(160, 211, 217, 0.4);
}

.compress-light .stat-arrow {
  color: rgba(40, 40, 47, 0.5);
}

.compress-light .stat-saved {
  border-left-color: rgba(40, 40, 47, 0.12);
}

.compress-light .btn-ghost {
  color: var(--graphite);
  border-color: rgba(40, 40, 47, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

.compress-light .btn-ghost:hover {
  color: var(--obsidian);
  border-color: rgba(160, 211, 217, 0.6);
  background: rgba(160, 211, 217, 0.15);
}

.compress-light .prefix-input {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(40, 40, 47, 0.2);
  color: var(--graphite);
  box-shadow: inset 0 1px 2px rgba(40, 40, 47, 0.04);
}

.compress-light .prefix-input:focus {
  border-color: rgba(160, 211, 217, 0.7);
  box-shadow: 0 0 0 3px rgba(160, 211, 217, 0.2);
}

.compress-light .preset-card {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(40, 40, 47, 0.12);
}

.compress-light .preset-card:hover {
  background: rgba(248, 249, 252, 0.8);
  border-color: rgba(160, 211, 217, 0.35);
}

.compress-light .preset-card--active {
  background: rgba(160, 211, 217, 0.18);
  border-color: rgba(160, 211, 217, 0.5);
  box-shadow: 0 8px 20px rgba(160, 211, 217, 0.2);
}

.compress-light .preset-icon {
  background: rgba(40, 40, 47, 0.06);
  color: var(--slate);
}

.compress-light .preset-card:hover .preset-icon {
  background: rgba(160, 211, 217, 0.25);
  color: #2B555B;
}

.compress-light .preset-card--active .preset-icon {
  background: rgba(160, 211, 217, 0.3);
  color: #2B555B;
}

.compress-light .resize-btn {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(40, 40, 47, 0.12);
  color: var(--graphite);
}

.compress-light .resize-btn:hover {
  background: rgba(248, 249, 252, 0.8);
  border-color: rgba(160, 211, 217, 0.4);
}

.compress-light .resize-btn--active {
  background: rgba(160, 211, 217, 0.2);
  border-color: rgba(160, 211, 217, 0.6);
  color: #2B555B;
}

.compress-light .comparison-container {
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 24px 48px rgba(20, 20, 30, 0.14),
    0 0 0 1px rgba(40, 40, 47, 0.08);
}

.compress-light .comparison-label {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(40, 40, 47, 0.12);
}

.compress-light .label-size {
  color: var(--graphite);
}

.compress-light .comparison-slider {
  background: var(--graphite);
}

.compress-light .comparison-slider:hover {
  background: #2B555B;
}

.compress-light .slider-handle {
  background: rgba(255, 255, 255, 0.95);
  color: var(--graphite);
  border: 1px solid rgba(40, 40, 47, 0.12);
  box-shadow: 0 6px 20px rgba(20, 20, 30, 0.2);
}

.compress-light .comparison-slider:hover .slider-handle {
  background: #E7F4F6;
}

.compress-light .footer {
  border-top: 1px solid rgba(40, 40, 47, 0.12);
}

.compress-light .footer-logo {
  color: var(--graphite);
}

.compress-light .footer-copy {
  color: var(--slate);
  opacity: 0.8;
}

.compress-light .footer-link {
  color: var(--slate);
}

.compress-light .footer-link:hover {
  color: #2B555B;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace-right {
    order: -1;
  }

  .dropzone {
    min-height: 400px;
  }

  .processing {
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  .compress-container {
    padding: 24px 16px;
  }

  .compress-header {
    margin-bottom: 32px;
  }

  .compress-title {
    font-size: 28px;
  }

  .result-stats {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .stat-arrow {
    display: none;
  }

  .stat-saved {
    width: 100%;
    padding-left: 0;
    padding-top: 16px;
    border-left: none;
    border-top: 1px solid rgba(90, 90, 102, 0.3);
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn-primary,
  .result-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .resize-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .resize-btn {
    padding: 10px 8px;
    font-size: 12px;
  }

  .control-section {
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .compress-header,
  .workspace,
  .result {
    opacity: 1;
    transform: none;
  }

  .compress-bg-image {
    opacity: 0.6;
    transform: none;
  }
}
