.mt-img-tool-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.mt-tool-header {
  text-align: center;
  margin-bottom: 24px;
}

.mt-tool-header h1 {
  font-size: 38px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.2;
}

.mt-tool-intro {
  font-size: 17px;
  color: #6b7280;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* TOOL NAVIGATION */
.mt-tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px 0;
}

.mt-tool-nav a {
  display: inline-block;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.mt-tool-nav a:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.mt-tool-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.mt-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  background: #f9fafb;
  transition: all 0.25s ease;
  cursor: pointer;
}

.mt-upload-area.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.mt-upload-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.mt-upload-area h3 {
  font-size: 20px;
  color: #111827;
  margin-bottom: 6px;
}

.mt-upload-area p {
  color: #6b7280;
}

.mt-upload-area input {
  display: none;
}

.mt-primary-btn,
.mt-secondary-btn {
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.mt-primary-btn {
  background: #2563eb;
  color: #ffffff;
}

.mt-primary-btn:hover {
  background: #1d4ed8;
}

.mt-secondary-btn {
  background: #f3f4f6;
  color: #111827;
}

.mt-secondary-btn:hover {
  background: #e5e7eb;
}

.mt-primary-btn:disabled,
.mt-secondary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mt-controls {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.mt-control-group {
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
}

.mt-control-group label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.mt-control-group input[type="range"],
.mt-control-group input[type="number"],
.mt-control-group input[type="color"] {
  width: 100%;
}

.mt-resize-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mt-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.mt-preview-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.mt-preview-thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f3f4f6;
  display: block;
}

.mt-preview-meta {
  padding: 12px;
}

.mt-preview-meta h4 {
  font-size: 14px;
  margin: 0 0 8px;
  color: #111827;
  word-break: break-word;
  line-height: 1.4;
}

.mt-preview-meta p {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0;
}

.mt-action-bar {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mt-progress-wrap {
  margin-top: 18px;
}

.mt-progress-bar {
  width: 100%;
  height: 14px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.mt-progress-fill {
  width: 0%;
  height: 100%;
  background: #2563eb;
  transition: width 0.3s ease;
}

#mtProgressText {
  margin-top: 8px;
  font-size: 14px;
  color: #374151;
}

.mt-download-wrap {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.mt-download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #f9fafb;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.mt-download-item strong {
  font-size: 14px;
  color: #111827;
  word-break: break-word;
}

.mt-download-item div {
  color: #6b7280;
  font-size: 14px;
}

.mt-download-item a {
  text-decoration: none;
}

.mt-small-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

.mt-seo-section {
  margin-top: 40px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid #e5e7eb;
}

.mt-seo-section h2 {
  font-size: 26px;
  margin-top: 30px;
  color: #111827;
}

.mt-seo-section h2:first-child {
  margin-top: 0;
}

.mt-seo-section h3 {
  margin-top: 20px;
  color: #111827;
}

.mt-seo-section p,
.mt-seo-section li {
  color: #374151;
  line-height: 1.8;
}

.mt-seo-section ul,
.mt-seo-section ol {
  padding-left: 20px;
}

.mt-seo-section a {
  color: #2563eb;
  text-decoration: none;
}

.mt-seo-section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .mt-tool-header h1 {
    font-size: 30px;
  }

  .mt-tool-box,
  .mt-seo-section {
    padding: 20px;
  }

  .mt-tool-nav {
    justify-content: flex-start;
  }

  .mt-tool-nav a {
    font-size: 13px;
    padding: 8px 12px;
  }

  .mt-preview-thumb {
    height: 120px;
  }

  .mt-download-item {
    flex-direction: column;
    align-items: flex-start;
  }
}