/* Glezu — Merge PDF tool page */
.merge-section {
  width: min(1120px, calc(100% - 48px));
  margin: 72px auto 76px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.merge-intro { padding-top: 24px; }
.merge-intro h2 {
  margin: 16px 0 20px;
  font-size: clamp(2.7rem, 5vw, 4.55rem);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 650;
}
.merge-intro h2 span { color: var(--muted, #7b8492); }
.merge-intro > p:not(.section-kicker) {
  max-width: 440px;
  color: var(--muted, #687181);
  font-size: 1.04rem;
  line-height: 1.75;
}
.merge-intro .privacy-note { margin-top: 26px; }

.merge-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border, #e5e8ed);
  border-radius: 24px;
  background: var(--surface, #fff);
  box-shadow: 0 18px 60px rgba(25, 35, 55, .055);
}
.merge-dropzone {
  min-height: 310px;
  border: 1.5px dashed #cbd2dc;
  border-radius: 17px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  outline: none;
}
.merge-dropzone:hover,
.merge-dropzone:focus-visible,
.merge-dropzone.is-dragover {
  border-color: var(--accent, #5b66e8);
  background: #f6f7ff;
}
.merge-dropzone.is-dragover { transform: scale(.995); }
.merge-dropzone .upload-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #eef0ff;
  color: var(--accent, #5b66e8);
  font-size: 2rem;
  margin-bottom: 18px;
}
.merge-dropzone h3 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -.025em; }
.merge-dropzone p { margin: 0; color: var(--muted, #687181); }
.merge-dropzone .file-types {
  margin-top: 22px;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .12em;
  color: #929baa;
}
.merge-dropzone .text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent, #5b66e8);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.merge-workspace { padding: 5px 2px 2px; }
.files-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 5px 0 16px; }
.files-heading h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.025em; }
.files-heading p { margin: 5px 0 0; color: var(--muted, #687181); font-size: .83rem; }
.file-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 8px;
  background: #eef0ff;
  color: var(--accent, #5b66e8);
  font-size: .76rem;
  vertical-align: 2px;
}
.add-files-button {
  flex: 0 0 auto;
  border: 1px solid var(--border, #e2e6ed);
  border-radius: 10px;
  background: #fff;
  padding: 9px 12px;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.add-files-button:hover { border-color: var(--accent, #5b66e8); color: var(--accent, #5b66e8); }
.pdf-file-list { display: grid; gap: 9px; }
.pdf-file-row {
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #e8ebf0;
  border-radius: 13px;
  background: #fff;
  cursor: grab;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}
.pdf-file-row:active { cursor: grabbing; }
.pdf-file-row.is-dragging { opacity: .45; }
.pdf-file-row.is-drop-target { border-color: var(--accent, #5b66e8); background: #f7f7ff; }
.drag-handle { color: #a0a8b5; font-size: 1.1rem; letter-spacing: -3px; user-select: none; }
.pdf-icon {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff0ef;
  color: #d95550;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid #ffe0dd;
}
.pdf-file-info { min-width: 0; }
.pdf-file-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 650;
}
.pdf-file-info span { display: block; margin-top: 4px; color: var(--muted, #7b8492); font-size: .74rem; }
.remove-pdf {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8d96a4;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.remove-pdf:hover { background: #fff0ef; color: #c7423c; }
.merge-summary {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 15px 0 19px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f6f7fb;
  color: #707989;
  font-size: .78rem;
  line-height: 1.45;
}
.summary-icon { color: var(--accent, #5b66e8); font-size: 1.05rem; font-weight: 700; }
.output-name-label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 650; }
.output-name-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e2e6ed;
  border-radius: 11px;
  padding: 0 12px;
  background: #fff;
}
.output-name-wrap:focus-within { border-color: var(--accent, #5b66e8); box-shadow: 0 0 0 3px rgba(91, 102, 232, .09); }
.output-name-wrap input { min-width: 0; width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: .9rem; }
.output-name-wrap span { color: #8992a0; font-size: .86rem; }
.merge-panel .primary-button { width: 100%; justify-content: center; margin-top: 14px; }
.merge-panel .tool-status { min-height: 18px; margin: 11px 0 0; text-align: center; color: var(--muted, #7b8492); font-size: .78rem; line-height: 1.5; }
.merge-panel .tool-status.is-error { color: #c7423c; }
.merge-panel .tool-status.is-success { color: #23815b; }
.merge-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 14px;
  border: 1px solid #cfeadd;
  border-radius: 13px;
  background: #f4fbf7;
}
.result-check { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #d9f3e4; color: #23815b; font-weight: 800; }
.result-copy { min-width: 0; flex: 1; }
.result-copy strong, .result-copy span { display: block; }
.result-copy strong { font-size: .86rem; }
.result-copy span { margin-top: 4px; color: #668074; font-size: .73rem; line-height: 1.4; }
.merge-result .download-button { flex: 0 0 auto; white-space: nowrap; }
.bottom-note {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 70px;
}
@media (max-width: 850px) {
  .merge-section { grid-template-columns: 1fr; gap: 28px; margin-top: 42px; }
  .merge-intro { padding-top: 0; }
  .merge-intro h2 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .merge-intro > p:not(.section-kicker) { max-width: 600px; }
  .merge-panel { max-width: 650px; width: 100%; justify-self: center; }
}
@media (max-width: 520px) {
  .merge-section, .bottom-note { width: calc(100% - 28px); }
  .merge-section { margin-top: 30px; margin-bottom: 48px; }
  .merge-panel { padding: 12px; border-radius: 18px; }
  .merge-dropzone { min-height: 260px; padding: 24px 12px; }
  .pdf-file-row { grid-template-columns: 18px 34px minmax(0, 1fr) 28px; gap: 8px; padding: 9px 7px; }
  .pdf-icon { width: 34px; height: 38px; }
  .merge-result { flex-wrap: wrap; }
  .merge-result .download-button { width: 100%; text-align: center; justify-content: center; }
}
