/* Tool Page - 24Picture (extends main-new.css) */

/* ═══ Breadcrumb (under title) ═══ */
.tool-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tool-breadcrumb a,
.tool-breadcrumb a:link,
.tool-breadcrumb a:visited,
.tool-breadcrumb a:active {
  color: #555555 !important;
  text-decoration: none !important;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: color 0.2s;
}

.tool-breadcrumb a:hover {
  color: #000000 !important;
}

.tool-breadcrumb i {
  font-size: 0.625rem;
  color: #999999;
}

.tool-breadcrumb span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #000000;
}

/* ═══ Tool Hero ═══ */
.tool-hero {
  padding: 8rem 3rem 0;
}

.tool-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.tool-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #000000;
  color: #ffffff;
  border-radius: 20px;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.tool-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #000000;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.tool-hero-desc {
  font-size: 1.0625rem;
  color: #777777;
  font-weight: 600;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══ Tool Workspace ═══ */
.tool-workspace {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 3rem 4rem;
  width: 100%;
}

/* ═══ Upload Zone ═══ */
.upload-zone {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.upload-zone:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.upload-zone.drag-over {
  border-color: #000000;
  background: rgba(255, 255, 255, 0.98);
  transform: scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 2rem;
  color: #999999;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon {
  background: #e8e8e8;
  color: #666666;
  transform: scale(1.05);
}

.upload-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 0.5rem;
}

.upload-subtitle {
  font-size: 0.9375rem;
  color: #999999;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.upload-formats {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 100px;
  font-size: 0.8125rem;
  color: #aaaaaa;
  font-weight: 600;
}

.compress-options {
  margin: 1.25rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.compress-options-inner {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.compress-options label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000000;
}

.compress-options strong {
  font-weight: 800;
}

.compress-options input[type="range"] {
  width: 100%;
  accent-color: #000000;
}

.quality-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: #999999;
}

.resize-options {
  margin: 1.25rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.resize-options-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resize-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
}

.resize-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resize-field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #000000;
}

.resize-field-input {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 0.875rem;
  min-height: 52px;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.resize-field-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  font-family: 'Nunito', sans-serif;
  min-width: 0;
}

.resize-field-input span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #999999;
}

.lock-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.125rem;
}

.lock-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
}

.lock-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.resize-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.resize-original-meta,
.resize-ratio-state {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #666666;
}

.resize-original-meta strong {
  color: #000000;
}

.resize-presets-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resize-presets-label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #000000;
}

.resize-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.resize-preset-btn {
  padding: 0.625rem 0.875rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
}

.resize-preset-btn:hover {
  color: #000000;
  border-color: rgba(0, 0, 0, 0.2);
  background: #f5f5f5;
}

.resize-preset-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* ═══ File List ═══ */
.file-list {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.file-list-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #000000;
}

.file-list-title i {
  font-size: 1.25rem;
}

.file-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: #000000;
  color: #ffffff;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.file-list-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-add-more,
.btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}

.btn-add-more:hover {
  background: #f5f5f5;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.2);
}

.btn-clear:hover {
  background: #fff0f0;
  color: #cc0000;
  border-color: rgba(204, 0, 0, 0.2);
}

.file-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8f8f8;
  border-radius: 16px;
  transition: all 0.2s;
}

.file-item-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #e8e8e8;
  flex-shrink: 0;
}

.file-item-info { flex: 1; min-width: 0; }

.file-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-size {
  font-size: 0.8125rem;
  color: #999999;
  font-weight: 600;
}

.file-item-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #aaaaaa;
  flex-shrink: 0;
}

.file-item-status.ready    { color: #999999; }
.file-item-status.converting { color: #f59e0b; }
.file-item-status.done     { color: #10b981; }

.file-item-remove {
  background: none;
  border: none;
  color: #cccccc;
  cursor: pointer;
  font-size: 1.125rem;
  padding: 0.25rem;
  border-radius: 8px;
  transition: all 0.15s;
  display: flex;
}

.file-item-remove:hover {
  color: #cc0000;
  background: rgba(204, 0, 0, 0.06);
}

.convert-actions { text-align: center; }

.btn-convert {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.btn-convert:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-convert:active { transform: translateY(0); }
.btn-convert i { font-size: 1.25rem; }
.btn-convert:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ═══ Download Zone ═══ */
.download-zone {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.download-header { margin-bottom: 2rem; }

.download-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.download-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 0.5rem;
}

.download-subtitle {
  font-size: 0.9375rem;
  color: #999999;
  font-weight: 600;
}

.download-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: left;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8f8f8;
  border-radius: 16px;
}

.download-item-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #e8e8e8;
  flex-shrink: 0;
}

.download-item-info { flex: 1; min-width: 0; }

.download-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-item-meta {
  font-size: 0.8125rem;
  color: #999999;
  font-weight: 600;
}

.download-item-extra {
  font-size: 0.75rem;
  color: #bbbbbb;
  font-weight: 700;
}

.btn-download-single {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
}

.btn-download-single:hover {
  background: #333333;
  transform: translateY(-1px);
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.btn-download-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-convert-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #000000;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.btn-convert-more:hover {
  border-color: #000000;
  transform: translateY(-2px);
}

/* ═══ Features ═══ */
.tool-features {
  padding: 0 3rem 4rem;
}

.tool-features-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f5f5f5;
  border-radius: 14px;
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 0.5rem;
}

.feature-card .feature-title {
  font-size: 1rem;
  font-weight: 800;
  color: #000000;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.feature-card p {
  font-size: 0.875rem;
  color: #999999;
  font-weight: 600;
  line-height: 1.6;
}

.feature-card .feature-desc {
  font-size: 0.875rem;
  color: #999999;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* ═══ Shared Section Title ═══ */
.tool-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000000;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ═══ FAQ Section ═══ */
.tool-faq {
  padding: 0 3rem 4rem;
}

.tool-faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-arrow {
  font-size: 1.125rem;
  color: #aaaaaa;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: #777777;
  font-weight: 600;
  line-height: 1.7;
}

/* ═══ Tool Blog ═══ */
.tool-blog {
  padding: 0 3rem 4rem;
}

.tool-blog-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.tool-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tool-blog-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tool-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.tool-blog-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-blog-card-image i {
  font-size: 2.5rem;
  color: #aaaaaa;
}

.tool-blog-card-content {
  padding: 1.5rem;
}

.tool-blog-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #bbbbbb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.625rem;
}

.tool-blog-card-content h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.tool-blog-card-content p {
  font-size: 0.875rem;
  color: #999999;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tool-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  transition: gap 0.2s;
}

.tool-blog-link:hover {
  gap: 0.625rem;
}

.tool-blog-link i {
  font-size: 0.875rem;
}

/* ═══ Animations ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.anim-fade-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .tool-hero {
    padding: 6rem 1.5rem 0;
  }

  .tool-hero-title {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    white-space: nowrap;
  }

  .tool-hero-desc {
    font-size: 0.9375rem;
  }

  .tool-hero-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
  }

  .tool-breadcrumb {
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .tool-breadcrumb a,
  .tool-breadcrumb span {
    font-size: 0.75rem;
  }

  .tool-workspace {
    padding: 1.5rem 1rem 3rem;
  }

  .upload-zone {
    padding: 2.5rem 1.25rem;
    border-radius: 20px;
  }

  .upload-icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .upload-title {
    font-size: 1.125rem;
  }

  .upload-subtitle {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }

  .upload-formats {
    font-size: 0.75rem;
  }

  .compress-options {
    margin: 1rem 0;
    padding: 1rem 1rem 1.125rem;
    border-radius: 20px;
  }

  .compress-options label {
    font-size: 0.875rem;
  }

  .quality-labels {
    font-size: 0.6875rem;
  }

  .resize-options {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 20px;
  }

  .resize-inputs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lock-btn {
    width: 100%;
    height: 44px;
    border-radius: 14px;
  }

  .resize-field-input {
    min-height: 46px;
    border-radius: 14px;
  }

  .resize-field-input input {
    font-size: 0.9375rem;
  }

  .resize-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .resize-original-meta,
  .resize-ratio-state,
  .resize-presets-label,
  .resize-preset-btn {
    font-size: 0.75rem;
  }

  .resize-presets {
    gap: 0.5rem;
  }

  /* File list card */
  .file-list {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .file-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .file-list-title {
    font-size: 1rem;
  }

  .file-list-actions {
    width: 100%;
    display: flex;
  }

  .btn-add-more,
  .btn-clear {
    flex: 1;
    justify-content: center;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .btn-add-more i,
  .btn-clear i {
    font-size: 0.875rem;
  }

  /* File items */
  .file-items {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .file-item {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
    border-radius: 12px;
  }

  .file-item-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .file-item-name {
    font-size: 0.8125rem;
  }

  .file-item-size {
    font-size: 0.75rem;
  }

  .file-item-status {
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .file-item-remove {
    font-size: 0.9375rem;
    padding: 0.2rem;
  }

  .file-count {
    min-width: 20px;
    height: 20px;
    font-size: 0.6875rem;
  }

  .btn-convert {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
  }

  /* Download zone */
  .download-zone {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .download-success-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .download-title {
    font-size: 1.25rem;
  }

  .download-subtitle {
    font-size: 0.8125rem;
  }

  .download-items {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .download-item {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
    border-radius: 12px;
  }

  .download-item-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .download-item-name {
    font-size: 0.8125rem;
  }

  .download-item-meta {
    font-size: 0.75rem;
  }

  .download-item-extra {
    font-size: 0.6875rem;
  }

  .btn-download-single {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .download-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-download-all {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
  }

  .btn-convert-more {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
  }

  /* Features */
  .tool-features {
    padding: 0 1.5rem 3rem;
  }

  .tool-features-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .tool-section-title {
    font-size: 1.375rem;
    margin-bottom: 1.75rem;
  }

  /* FAQ */
  .tool-faq {
    padding: 0 1.5rem 3rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1.25rem 1rem;
  }

  .faq-answer p {
    font-size: 0.875rem;
  }

  /* Blog */
  .tool-blog {
    padding: 0 1.5rem 3rem;
  }

  .tool-blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tool-blog-card-image {
    height: 120px;
  }

  .tool-blog-card-content {
    padding: 1.25rem;
  }

  .base64-textarea {
    font-size: 0.75rem;
    min-height: 120px;
  }

  .base64-output-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ═══ Base64 Converter ═══ */
.base64-output-wrap {
  margin-bottom: 2rem;
  text-align: left;
}

.base64-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.base64-output-header h4 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #000000;
}

.base64-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #999999;
}

.copy-status {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #10b981;
  transition: opacity 0.3s;
}

.copy-status.error {
  color: #ef4444;
}

.base64-textarea {
  width: 100%;
  min-height: 160px;
  max-height: 320px;
  padding: 1rem 1.25rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #f8f8f8;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #333333;
  resize: vertical;
  box-sizing: border-box;
}

.base64-textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.2);
}

.base64-result-zone .download-success-icon {
  background: #ede9fe;
  color: #7c3aed;
}

.base64-actions {
  gap: 1rem;
}

/* ─── Batch Convert Options ─── */
.batch-options {
  max-width: 800px;
  margin: 1rem auto 1.25rem;
}

.batch-options-inner {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.batch-format-select {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.batch-format-select label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #333;
  white-space: nowrap;
}

.batch-format-select select {
  flex: 1;
  max-width: 240px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
}

.batch-format-select select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.3);
}

/* ─── Crop Editor ─── */
.crop-editor {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.crop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.crop-ratios {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crop-ratio-btn {
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.crop-ratio-btn:hover {
  border-color: rgba(0, 0, 0, 0.25);
  color: #000;
}

.crop-ratio-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.crop-dimensions {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #666;
  font-family: 'Nunito', monospace;
}

.crop-canvas-container {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: #f0f0f0;
}

.crop-canvas-container img {
  display: block;
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
}

.crop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.btn-crop-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-crop-reset:hover {
  border-color: rgba(0, 0, 0, 0.25);
  color: #000;
}

.btn-crop-reset i {
  font-size: 1rem;
}

/* Cropper.js overrides for dark crop overlay */
.cropper-modal {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.cropper-view-box {
  outline: 2px solid rgba(255, 255, 255, 0.8) !important;
  outline-color: rgba(255, 255, 255, 0.8) !important;
}

.cropper-line {
  background-color: rgba(255, 255, 255, 0.4) !important;
}

.cropper-point {
  background-color: #fff !important;
  width: 8px !important;
  height: 8px !important;
  opacity: 1 !important;
}

.cropper-dashed {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .crop-toolbar {
    padding: 0.75rem 1rem;
  }

  .crop-ratios {
    gap: 0.375rem;
  }

  .crop-ratio-btn {
    padding: 0.3rem 0.625rem;
    font-size: 0.75rem;
  }

  .crop-canvas-container {
    max-height: 360px;
  }

  .crop-canvas-container img {
    max-height: 360px;
  }

  .crop-actions {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .crop-actions .btn-convert,
  .crop-actions .btn-crop-reset,
  .crop-actions .btn-clear {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
}

/* ─── Watermark Editor ─── */
/* Wider workspace just for the watermark tool (override global 800px cap) */
.tool-workspace-wm {
  max-width: 1400px;
}

.tool-workspace-wm .upload-zone,
.tool-workspace-wm .download-zone {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.wm-editor {
  max-width: 1320px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

.wm-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wm-setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.wm-setting-group label {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #333;
}

.wm-setting-row {
  display: flex;
  gap: 1rem;
}

.wm-setting-half {
  flex: 1;
}

.wm-text-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.wm-text-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.3);
}

.wm-font-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.wm-font-select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.3);
}

.wm-editor input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  outline: none;
  cursor: pointer;
}

.wm-editor input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.wm-editor input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ─── Mode Tabs ─── */
.wm-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 14px;
}

.wm-mode-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #777;
  cursor: pointer;
  transition: all 0.2s;
}

.wm-mode-tab i { font-size: 1.1rem; }

.wm-mode-tab:hover { color: #333; }

.wm-mode-tab.active {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ─── Workspace layout ─── */
.wm-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.wm-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wm-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Watermark image upload ─── */
.wm-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  transition: all 0.2s;
}

.wm-upload-btn i { font-size: 1.1rem; }

.wm-upload-btn:hover {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

.wm-upload-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.wm-upload-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  margin: 0.125rem 0 0;
}

/* ─── Signature maker CTA (toolknit) ─── */
.wm-cta-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
  text-decoration: none;
  transition: all 0.2s;
}

.wm-cta-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.05));
  transform: translateY(-1px);
}

.wm-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 1.2rem;
}

.wm-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.wm-cta-text strong {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #1d4ed8;
}

.wm-cta-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
}

.wm-cta-arrow {
  color: #2563eb;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─── Reset button + canvas hint ─── */
.wm-setting-reset {
  justify-content: flex-end;
}

.wm-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.wm-reset-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: #111;
}

.wm-canvas-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  margin: 0.5rem 0 0;
  text-align: center;
}

.wm-canvas-hint i { font-size: 0.9rem; }

/* ─── Flash (missing watermark hint) ─── */
@keyframes wmFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  30%, 70% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35); }
}

.wm-flash {
  animation: wmFlash 1.2s ease;
  border-color: #ef4444 !important;
}

@media (max-width: 880px) {
  .wm-workspace {
    grid-template-columns: 1fr;
  }
}

.wm-color-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wm-color-picker input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: #fff;
}

.wm-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.wm-color-picker input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

.wm-color-picker span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #555;
  font-family: 'Nunito', monospace;
}

/* Toggle switch */
.wm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #555;
}

.wm-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 11px;
  transition: background 0.2s;
}

.wm-toggle.active .wm-toggle-track {
  background: #000;
}

.wm-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wm-toggle.active .wm-toggle-thumb {
  left: 20px;
}

/* Position grid */
.wm-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 150px;
  margin-top: 0.375rem;
}

.wm-pos-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  color: #888;
  font-size: 1rem;
}

.wm-pos-btn:hover {
  border-color: rgba(0, 0, 0, 0.25);
  color: #333;
}

.wm-pos-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Preset Bar */
.wm-preset-bar {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
  padding: 1rem;
}

.wm-preset-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.wm-preset-bar-header > label {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #333;
}

.wm-preset-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #555;
  transition: all 0.2s;
}

.wm-preset-add-btn:hover {
  border-color: rgba(0, 0, 0, 0.4);
  color: #111;
  background: #f8f8f8;
}

.wm-preset-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wm-preset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.wm-preset-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.wm-preset-card.active {
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wm-preset-card.editing {
  border-color: #000;
  background: #f8f8f8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.wm-preset-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  flex: 1;
}

.wm-preset-card-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-preset-card-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #999;
}

.wm-preset-card-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.wm-preset-card-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: #888;
  font-size: 1rem;
  transition: all 0.15s;
}

.wm-preset-card-actions button:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}

.wm-preset-edit-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000 !important;
}

.wm-preset-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

/* Settings footer (save/cancel) */
.wm-settings-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wm-settings-footer .wm-save-btn {
  flex: 1;
}

.wm-settings-footer .wm-cancel-btn {
  flex: 0 0 auto;
}

/* Drag hint */
.wm-drag-hint {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  margin-top: 0.5rem;
}

.wm-drag-hint i {
  font-size: 0.875rem;
}

/* Preview */
.wm-preview-section {
  margin-bottom: 1rem;
}

.wm-preview-section > label {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.wm-preview-container {
  position: relative;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 1rem;
  overflow: hidden;
}

.wm-preview-container canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Multi-image navigation */
.wm-img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 4;
  transition: background 0.2s, transform 0.15s;
}
.wm-img-nav-btn:hover { background: rgba(17, 24, 39, 0.82); }
.wm-img-nav-btn:active { transform: translateY(-50%) scale(0.9); }
.wm-img-nav-prev { left: 10px; }
.wm-img-nav-next { right: 10px; }
.wm-img-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
  display: none;
}
.wm-preview-container.has-multi .wm-img-nav-btn { display: flex; }
.wm-preview-container.has-multi .wm-img-counter { display: block; }

.wm-file-info {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  margin-top: 0.5rem;
}

/* Actions */
.wm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .wm-editor {
    padding: 1rem;
  }

  .wm-setting-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .wm-preview-container {
    min-height: 340px;
  }

  .wm-img-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
}

/* ─── Toolknit signature promo banner ─── */
.tk-promo-section {
  max-width: 960px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.tk-promo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tk-promo:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.tk-promo-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 1.7rem;
}

.tk-promo-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.tk-promo-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #111;
}

.tk-promo-text span {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.45;
}

.tk-promo-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s;
}

.tk-promo:hover .tk-promo-btn { background: #000; }

@media (max-width: 600px) {
  .tk-promo {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }
  .tk-promo-text { align-items: center; }
}

/* ═══ SVG Optimizer ═══ */

.svg-savings {
  color: #22c55e;
  font-weight: 700;
}

.svg-total-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 0.75rem;
  color: #22c55e;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.svg-total-summary i {
  font-size: 1.25rem;
}

.svg-total-summary strong {
  color: #16a34a;
}

/* ═══ Gradient Generator ═══ */

.gradient-editor {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.gradient-preview-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  min-height: 300px;
}

.gradient-preview-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

.gradient-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.gradient-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Type buttons */
.gradient-type-btns {
  display: flex;
  gap: 0.5rem;
}

.gradient-type-btn {
  flex: 1;
  padding: 0.45rem 0;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gradient-type-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Range row */
.gradient-range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gradient-range-row input[type="range"] {
  flex: 1;
  accent-color: #000;
}

.gradient-range-value {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 3rem;
  text-align: right;
}

/* Color stops */
.gradient-stops {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gradient-stop {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gradient-color-input {
  width: 36px;
  height: 30px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  padding: 1px;
  cursor: pointer;
  background: none;
}

.gradient-pos-input {
  width: 52px;
  padding: 0.3rem 0.4rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 0.82rem;
  text-align: center;
}

.gradient-stop span {
  font-size: 0.8rem;
  color: #888;
}

.gradient-stop-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 0.9rem;
  padding: 0.15rem;
  transition: color 0.2s;
}

.gradient-stop-remove:hover {
  color: #e74c3c;
}

.gradient-add-stop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1.5px dashed rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.gradient-add-stop:hover {
  border-color: #000;
  color: #000;
}

/* Presets */
.gradient-presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}

.gradient-preset-btn {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.gradient-preset-btn:hover {
  border-color: #000;
  transform: scale(1.1);
}

/* Size row */
.gradient-size-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gradient-size-row input {
  width: 72px;
  padding: 0.35rem 0.5rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  text-align: center;
}

.gradient-size-row span {
  font-size: 0.85rem;
  color: #888;
}

/* CSS output */
.gradient-css-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.gradient-css-code {
  flex: 1;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.4rem;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  word-break: break-all;
  color: #333;
  max-height: 80px;
  overflow-y: auto;
}

.gradient-copy-btn {
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
  transition: all 0.2s;
}

.gradient-copy-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}

/* Actions */
.gradient-actions {
  padding-top: 0.25rem;
}

.gradient-actions .btn-convert {
  width: 100%;
}

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

  .gradient-preview-wrap {
    min-height: 200px;
  }

  .gradient-presets {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ═══ Meme Maker ═══ */

.meme-upload-zone .upload-zone {
  cursor: pointer;
}

.meme-editor {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.meme-preview-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  min-height: 300px;
}

.meme-preview-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

.meme-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.meme-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meme-text-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: transparent;
  transition: border-color 0.2s;
}

.meme-text-input:focus {
  outline: none;
  border-color: #000;
}

.meme-text-input::placeholder {
  color: #bbb;
}

.meme-range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meme-range-row input[type="range"] {
  flex: 1;
  accent-color: #000;
}

.meme-range-value {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 3rem;
  text-align: right;
}

.meme-color-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meme-color-input {
  width: 36px;
  height: 30px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  padding: 1px;
  cursor: pointer;
  background: none;
}

.meme-color-row span {
  font-size: 0.8rem;
  color: #888;
  margin-right: 0.25rem;
}

.meme-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.meme-actions .btn-convert {
  width: 100%;
}

.meme-change-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}

.meme-change-btn:hover {
  border-color: #000;
  color: #000;
}

@media (max-width: 768px) {
  .meme-editor {
    grid-template-columns: 1fr;
  }

  .meme-preview-wrap {
    min-height: 200px;
  }
}

/* ─── GIF Maker Editor ─── */
.gif-editor {
  max-width: 800px;
  margin: 0 auto;
}

.gif-preview-area {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
  margin-bottom: 1rem;
}

.gif-preview-area canvas {
  display: block;
  max-width: 100%;
  max-height: 400px;
  margin: 0 auto;
  border-radius: 8px;
}

.gif-preview-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}

.gif-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.gif-play-btn:hover {
  background: #000;
  transform: scale(1.1);
}

/* Frame Strip */
.gif-frames-strip {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.gif-frame-item {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.gif-frame-item canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.gif-frame-item:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.gif-frame-item.active {
  border-color: #000;
}

.gif-frame-item.dragging {
  opacity: 0.5;
  transform: scale(0.9);
}

.gif-frame-item.drag-over {
  border-color: #4a90d9;
  transform: scale(1.05);
}

.gif-frame-num {
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
}

.gif-frame-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gif-frame-item:hover .gif-frame-remove {
  opacity: 1;
}

/* Controls */
.gif-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.gif-control-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #1f1f1f;
  margin-bottom: 0.55rem;
}

.gif-control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  min-width: 0;
}

.gif-control-row input[type="range"] {
  flex: 1;
  accent-color: #000;
  min-width: 0;
}

.gif-control-row input[type="number"],
.gif-control-row input[type="color"] {
  flex: 1;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.96);
  color: #333;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gif-control-row select {
  flex: 1;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.96);
  color: #333;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gif-control-row input[type="number"]:focus,
.gif-control-row input[type="color"]:focus,
.gif-control-row select:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.gif-control-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #000;
  min-width: 56px;
  flex: 0 0 auto;
  text-align: right;
}

/* Actions */
.gif-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-gif-add,
.btn-gif-create {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-gif-add {
  background: #fff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn-gif-add:hover {
  border-color: #000;
  color: #000;
}

.btn-gif-create {
  background: #000;
  color: #fff;
}

.btn-gif-create:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-gif-create:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Progress */
.gif-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.gif-progress-bar {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.gif-progress-fill {
  height: 100%;
  background: #000;
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.gif-progress-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #000;
  min-width: 36px;
  text-align: right;
}

/* Result */
.gif-result {
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.gif-result img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.gif-result-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
}

.btn-gif-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-gif-download:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sprite-gif-editor {
  max-width: 1040px;
}

.sprite-panels {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sprite-preview-panel {
  min-height: 320px;
  margin-bottom: 0;
}

.sprite-panel-header,
.sprite-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.sprite-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.sprite-panel-title,
.sprite-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  line-height: 1.35;
  min-width: 0;
}

.sprite-panel-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #444;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
}

.sprite-section-desc {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 600;
  color: #666;
}

.checkerboard-bg {
  background-color: #f8f8f8;
  background-image:
    linear-gradient(45deg, #ececec 25%, transparent 25%),
    linear-gradient(-45deg, #ececec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ececec 75%),
    linear-gradient(-45deg, transparent 75%, #ececec 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.sprite-summary-shell,
.sprite-strip-panel,
.sprite-settings-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.sprite-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0;
}

.sprite-summary-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.92));
  border-radius: 16px;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sprite-summary-label,
.sprite-result-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sprite-summary-item strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.sprite-strip-panel .gif-frames-strip {
  margin-bottom: 0;
  background: rgba(248, 248, 248, 0.9);
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.sprite-settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.sprite-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sprite-control-span-2 {
  grid-column: 1 / -1;
}

.sprite-settings-panel .gif-control-group {
  min-width: 0;
}

.sprite-settings-panel .gif-control-row input[type="number"],
.sprite-settings-panel .gif-control-row input[type="color"],
.sprite-settings-panel .gif-control-row select {
  width: 100%;
}

.sprite-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.sprite-range-row .gif-control-value {
  min-width: 3.5rem;
}

.sprite-toggle-row {
  justify-content: stretch;
}

.sprite-checkbox {
  width: 100%;
  color: #222;
}

.sprite-checkbox input {
  accent-color: #000;
}

.sprite-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.92));
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sprite-toggle-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.14);
}

.sprite-toggle-card.is-active {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sprite-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.sprite-toggle-copy strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
}

.sprite-toggle-copy small {
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
  color: #666;
  overflow-wrap: anywhere;
}

.sprite-switch-wrap {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  display: inline-flex;
  align-items: center;
}

.sprite-switch-wrap input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.sprite-switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d7d7d7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

.sprite-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.sprite-switch-wrap input:checked + .sprite-switch {
  background: #111;
}

.sprite-switch-wrap input:checked + .sprite-switch::after {
  transform: translateX(22px);
}

.sprite-switch-wrap input:focus + .sprite-switch {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.sprite-actions {
  margin-top: 0;
}

.sprite-result-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 14px;
  margin: 0 auto 1rem;
  background: rgba(247, 247, 247, 0.85);
}

.sprite-result-preview img {
  margin-bottom: 0;
}

.sprite-result-info {
  gap: 1rem;
  flex-wrap: wrap;
}

.sprite-result-stat {
  min-width: 160px;
  background: rgba(248, 248, 248, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.sprite-result-stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111;
}

@media (max-width: 768px) {
  .gif-controls {
    grid-template-columns: 1fr;
  }

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

  .gif-frames-strip {
    padding: 0.75rem;
  }

  .sprite-panels,
  .sprite-settings-layout,
  .sprite-summary-card,
  .sprite-field-grid,
  .sprite-controls-grid {
    grid-template-columns: 1fr;
  }

  .sprite-control-span-2 {
    grid-column: auto;
  }

  .sprite-panel-header,
  .sprite-section-heading,
  .sprite-toggle-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .sprite-panel-header {
    display: flex;
  }

  .sprite-result-info {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════
   GIF to MP4 Converter Styles
   ═══════════════════════════════════════════════ */

.gif2mp4-editor {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.gif2mp4-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.gif2mp4-source,
.gif2mp4-output {
  flex: 1;
  text-align: center;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0.75rem;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gif2mp4-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.75rem;
}

.gif2mp4-source img,
.gif2mp4-output video {
  max-width: 100%;
  max-height: 280px;
  border-radius: 0.5rem;
  object-fit: contain;
}

.gif2mp4-arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: #aaa;
}

.gif2mp4-info {
  font-size: 0.8125rem;
  color: #777;
  margin-top: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.gif2mp4-info strong {
  color: #333;
}

.gif2mp4-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.gif2mp4-control-group {
  flex: 1;
}

.gif2mp4-control-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 0.5rem;
}

.gif2mp4-control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gif2mp4-control-row select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gif2mp4-control-row select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.25);
}

.gif2mp4-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-gif2mp4-change {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-gif2mp4-change:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-gif2mp4-convert {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #111;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-gif2mp4-convert:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-gif2mp4-convert:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.gif2mp4-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gif2mp4-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.gif2mp4-progress-fill {
  height: 100%;
  background: #111;
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.gif2mp4-progress-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #555;
  min-width: 3rem;
  text-align: right;
}

.gif2mp4-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0.75rem;
}

.gif2mp4-savings {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gif2mp4-savings-positive {
  color: #2e7d32;
}

.gif2mp4-savings-negative {
  color: #c62828;
}

.btn-gif2mp4-download {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #111;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-gif2mp4-download:hover {
  background: #333;
  transform: translateY(-1px);
}

/* ─── GIF to MP4 Responsive ─── */
@media (max-width: 768px) {
  .gif2mp4-editor {
    padding: 1.25rem;
  }

  .gif2mp4-preview {
    flex-direction: column;
  }

  .gif2mp4-arrow {
    transform: rotate(90deg);
  }

  .gif2mp4-controls {
    flex-direction: column;
    gap: 1rem;
  }

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

  .gif2mp4-result {
    flex-direction: column;
    text-align: center;
  }
}
