:root {
  --primary: #00a651;
  --primary-dark: #006837;
  --primary-light: #22c55e;
  --primary-gradient: linear-gradient(135deg, #00a651, #22c55e);

  --secondary: #3399ff;
  --secondary-dark: #0066cc;
  --secondary-light: #66b3ff;

  --accent: #ffd700;
  --accent-dark: #ccab00;
  --accent-light: #ffed4e;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  --background: #000000;
  --background-secondary: #111111;
  --background-tertiary: #1a1a1a;
  --background-card: #1e1e1e;
  --background-elevated: #2a2a2a;

  --text: #ffffff;
  --text-muted: #cccccc;
  --text-light: #e5e5e5;
  --text-secondary: #b3b3b3;

  --border: #333333;
  --border-light: #404040;
  --border-lighter: #555555;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 25px rgba(0, 166, 81, 0.3);

  --header-height: 70px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --transition: 0.3s ease;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --glass-bg: rgba(26, 26, 26, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-backdrop: blur(20px);
}

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

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

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 50%, var(--background) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 166, 81, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(51, 153, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--primary-light); }

/* Header */
.main-header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: var(--glass-backdrop);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 998;
  height: var(--header-height);
  border-bottom: 1px solid rgba(0, 166, 81, 0.2);
  box-shadow: 0 2px 20px rgba(0, 166, 81, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  gap: 1rem;
}

.logo-section { display: flex; flex-direction: column; gap: 0.1rem; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-size: var(--font-size-xl);
  font-weight: 800;
  transition: all var(--transition);
}

.logo:hover { transform: scale(1.04); color: var(--primary-light); }
.logo i { color: var(--accent); font-size: 1.3em; }

.logo-tagline { font-size: var(--font-size-xs); color: var(--text-muted); }

.nav-links { display: flex; gap: 1.5rem; list-style: none; }

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover { color: var(--primary); background: rgba(0, 166, 81, 0.1); }

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

.cta-button {
  background: var(--primary-gradient);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  font-family: inherit;
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.cta-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
  border-color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle:hover { background: rgba(0, 166, 81, 0.1); }

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.show { visibility: visible; opacity: 1; }

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: var(--glass-backdrop);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.show .mobile-menu-content { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-height);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.mobile-logo i { color: var(--accent); }

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--font-size-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--primary); }

.mobile-nav { flex: 1; padding: 0.5rem 0; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 60px;
}

.mobile-nav-link:hover { background: rgba(0, 166, 81, 0.1); color: var(--primary); }
.mobile-nav-link i:first-child { color: var(--primary); font-size: var(--font-size-lg); margin-left: 0.6rem; }
.mobile-nav-link span { flex: 1; text-align: center; }
.mobile-nav-link i:last-child { font-size: var(--font-size-sm); color: var(--text-muted); }

/* Main */
.main-content { padding-top: var(--header-height); }

.hero-section {
  padding: 5rem 0 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.3);
  color: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Section headers */
.section-header { text-align: center; margin-bottom: 3rem; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* App / dropzone */
.tools-section { padding: 4rem 0; }
.paid-section { background: rgba(26, 26, 26, 0.5); }

.app-section { padding-top: 1rem; }

.app-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.dropzone {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed var(--border-light);
  border-radius: var(--border-radius);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
}

.dropzone:hover,
.dropzone:focus,
.dropzone.is-drag {
  border-color: var(--primary);
  background: rgba(0, 166, 81, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.dz-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(0, 166, 81, 0.15);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.dz-title { font-size: var(--font-size-lg); font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.dz-sub { margin-bottom: 0.4rem; color: var(--text-muted); }
.dz-formats { font-size: var(--font-size-sm); color: var(--text-secondary); letter-spacing: 1px; }

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.controls {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.control-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: var(--font-size-sm);
}

.control-group input[type="range"] { width: 100%; accent-color: var(--primary); }

.control-group input[type="number"],
.control-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.control-group input[type="number"]:focus,
.control-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.2);
}

.control-group select option { background: var(--background-card); color: var(--text); }

.control-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--primary-gradient); color: #fff; }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-primary); }

.btn-secondary {
  background: rgba(51, 153, 255, 0.12);
  color: var(--secondary-light);
  border-color: rgba(51, 153, 255, 0.25);
}
.btn-secondary:hover:not(:disabled) { background: rgba(51, 153, 255, 0.22); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-ghost:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Summary */
.summary {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.9rem 1rem;
}

.stat.highlight {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

.stat.highlight .stat-label { color: rgba(255, 255, 255, 0.85); }

.stat-label { display: block; font-size: var(--font-size-sm); color: var(--text-muted); margin-bottom: 0.25rem; }
.stat-value { display: block; font-size: var(--font-size-xl); font-weight: 800; color: var(--text); }
.stat.highlight .stat-value { color: #fff; }

/* File list */
.file-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.file-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  animation: pop 0.25s ease;
}

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

.file-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius);
  object-fit: cover;
  background: var(--background-elevated);
  border: 1px solid var(--border);
}

.file-meta { min-width: 0; }

.file-name {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.file-sizes {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.file-sizes .saved { color: var(--success); font-weight: 700; }
.file-sizes .grew  { color: var(--danger); font-weight: 700; }

.file-actions { display: flex; gap: 0.4rem; align-items: center; }

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.icon-btn:hover { background: rgba(0, 166, 81, 0.15); color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; }

.progress { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 0.4rem; }
.progress > span { display: block; height: 100%; background: var(--primary-gradient); width: 0%; transition: width 0.25s ease; }

.status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--border);
  color: var(--text-muted);
}

.status-tag.done { background: rgba(34, 197, 94, 0.18); color: var(--success); }
.status-tag.work { background: rgba(245, 158, 11, 0.18); color: var(--warning); }
.status-tag.err  { background: rgba(239, 68, 68, 0.18); color: var(--danger); }

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 166, 81, 0.3);
  box-shadow: var(--shadow-primary);
}

.tool-header { margin-bottom: 1rem; }

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 166, 81, 0.1);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.tool-icon.encryption { color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.tool-icon.qr         { color: var(--primary); }
.tool-icon.converter  { color: var(--secondary); background: rgba(51, 153, 255, 0.1); }
.tool-icon.age        { color: var(--success); }
.tool-icon.tasks      { color: #9333ea; background: rgba(147, 51, 234, 0.12); }
.tool-icon.image-upload { color: var(--info); background: rgba(14, 165, 233, 0.12); }
.tool-icon.url-short  { color: var(--accent); background: rgba(255, 215, 0, 0.12); }

.tool-title { font-size: var(--font-size-lg); color: var(--primary); font-weight: 700; margin: 0; }

.tool-description { color: var(--text-muted); margin-bottom: 1rem; font-size: var(--font-size-sm); }

.tool-features { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tool-features span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 166, 81, 0.12);
  color: var(--success);
  padding: 0.2rem 0.55rem;
  border-radius: 15px;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-list details {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}

.faq-list details[open] { border-color: rgba(0, 166, 81, 0.4); box-shadow: var(--shadow-primary); }

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { color: var(--primary); }
.faq-list p { margin: 0.75rem 0 0; color: var(--text-muted); }

/* Floating buttons */
.floating-buttons {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

.float-button {
  background: var(--primary-gradient);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.float-button.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.float-button:hover { transform: scale(1.1); box-shadow: var(--shadow-primary); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade 0.2s ease;
}

.modal[hidden] { display: none !important; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.compare-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.compare-stat span { font-size: var(--font-size-xs); color: var(--text-muted); }
.compare-stat strong { font-size: var(--font-size-base); color: var(--text); }

.compare-stat.highlight { background: var(--primary-gradient); border-color: transparent; }
.compare-stat.highlight span { color: rgba(255, 255, 255, 0.85); }
.compare-stat.highlight strong { color: #fff; }

.compare {
  position: relative;
  background:
    linear-gradient(45deg, #222 25%, transparent 25%),
    linear-gradient(-45deg, #222 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222 75%),
    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-color: #1a1a1a;
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  user-select: none;
  overflow: hidden;
  min-height: 320px;
  max-height: 65vh;
  touch-action: none;
}

.compare-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  pointer-events: none;
}

#compareAfter { margin: 0 auto; }

.compare-clip {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}

.compare-clip .compare-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.compare-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  font-size: 1.1rem;
}

.compare-label {
  position: absolute;
  top: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  pointer-events: none;
}

.compare-label-before { right: 14px; }
.compare-label-after  { left: 14px; }

/* Footer */
.main-footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(0, 166, 81, 0.2);
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-logo i { color: var(--accent); }
.footer-description { color: var(--text-muted); }
.footer-title { color: var(--primary); font-size: var(--font-size-lg); font-weight: 700; margin-bottom: 1rem; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.copyright, .footer-brand { color: var(--text-muted); margin: 0; }
.footer-brand a { color: var(--primary); font-weight: 600; }
.footer-brand i { color: var(--danger); }

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-content { padding: 0 1rem; }
  .cta-button .button-text { display: none; }
  .cta-button { padding: 0.6rem; width: 44px; height: 44px; border-radius: 50%; justify-content: center; }
  .container { padding: 0 1rem; }
  .app-card { padding: 1.25rem; }
  .controls { grid-template-columns: 1fr; padding: 1rem; }
  .control-actions { justify-content: stretch; }
  .control-actions .btn { flex: 1; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; gap: 1rem; }
  .modal-footer { grid-template-columns: 1fr; }
  .footer-bottom-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-section { padding: 3rem 0 1rem; }
  .tools-section { padding: 3rem 0; }
  .file-item { grid-template-columns: 56px 1fr; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .logo-tagline { display: none; }
}

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