﻿/* PDF Merge Tool */
.pdf-merge-page main { width: min(1240px, calc(100% - 28px)); }
.pdf-merge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 86% 16%, rgba(242, 140, 56, 0.3), transparent 30%),
    linear-gradient(130deg, rgba(16, 34, 62, 0.98) 0%, rgba(26, 53, 95, 0.94) 72%);
}
.pdf-merge-hero h1 { font-size: clamp(1.7rem, 4vw, 2.65rem); line-height: 1.12; }
.pdf-merge-hero-copy p { max-width: 62ch; }
.pdf-merge-hero-art-wrap { display: grid; gap: 14px; justify-items: center; }
.pdf-merge-hero-art {
  width: 100%;
  max-width: 520px;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
  animation: floaty 7s ease-in-out infinite;
}
.pdf-merge-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pdf-merge-hero-badges span { border-radius: 999px; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.14); color: #fff; font-weight: 800; font-size: 0.9rem; backdrop-filter: blur(8px); }
.pdf-merge-grid, .pdf-merge-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-bottom: 28px; }
.pdf-merge-grid .box, .pdf-merge-guide .box { margin-bottom: 0; }
.pdf-merge-workbench {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(242, 140, 56, 0.14), transparent 22%),
    radial-gradient(circle at 14% 88%, rgba(16, 34, 62, 0.06), transparent 24%),
    #f7faff;
  box-shadow: 0 12px 28px rgba(12, 26, 48, 0.08);
  padding: 22px;
  margin: 30px 0 34px;
}
.pdf-merge-workbench::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,255,255,0.6), rgba(255,255,255,0.12));
  pointer-events: none;
  opacity: 0.45;
}
.pdf-merge-workbench > * { position: relative; z-index: 1; }
.pdf-merge-workbench-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.premium-state-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; border-radius: 999px; background: #fff3e7; color: #9b4d05; border: 1px solid #f3c999; padding: 8px 12px; font-weight: 900; }
.pdf-merge-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr); gap: 24px; }
.pdf-merge-panel.locked .pdf-merge-tool { opacity: 0.38; pointer-events: none; filter: grayscale(0.2); }
.pdf-merge-lock-card { display: none; grid-column: 1 / -1; background: linear-gradient(135deg, #10223e, #1a355f); color: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.pdf-merge-panel.locked .pdf-merge-lock-card { display: block; }
.pdf-merge-tool, .pdf-merge-summary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 34px rgba(16, 34, 62, 0.07);
}
.pdf-dropzone { border: 2px dashed #9ab0ca; border-radius: 20px; background: linear-gradient(145deg, #f9fcff, #eef5ff); padding: 28px; text-align: center; transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease; cursor: pointer; }
.pdf-dropzone.dragover { border-color: var(--orange); background: #fff8ef; transform: translateY(-2px); }
.pdf-dropzone strong { display: block; color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.pdf-dropzone p { margin: 0 0 14px; color: var(--muted); }
.pdf-merge-timeline { position: relative; height: 66px; margin: 12px 0 6px; }
.timeline-track { position: absolute; inset: 50% 12px auto 12px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, rgba(242,140,56,0.2), rgba(242,140,56,0.55), rgba(16,34,62,0.28)); transform: translateY(-50%); }
.pulse { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 999px; background: var(--orange); box-shadow: 0 0 0 0 rgba(242, 140, 56, 0.35); transform: translate(-50%, -50%); animation: pulseMove 5s ease-in-out infinite; }
.pulse-1 { left: 10%; animation-delay: 0s; }
.pulse-2 { left: 48%; animation-delay: 1.4s; }
.pulse-3 { left: 84%; animation-delay: 2.8s; }
.pdf-file-list { display: grid; gap: 12px; margin-top: 20px; }
.pdf-file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #d7e2ef; border-radius: 16px; background: #fbfdff; padding: 12px; }
.pdf-file-index { width: 34px; height: 34px; border-radius: 999px; background: #10223e; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.pdf-file-meta strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.pdf-file-meta span { display: block; color: #647894; font-size: 0.9rem; }
.pdf-file-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pdf-icon-button { border: 1px solid #c9d5e5; background: #fff; color: #10223e; border-radius: 10px; min-width: 36px; height: 34px; cursor: pointer; font-weight: 900; }
.pdf-icon-button:hover { border-color: var(--orange); background: #fff3e7; }
.pdf-merge-options { display: grid; gap: 14px; margin-top: 20px; }
.pdf-merge-options label { display: flex; flex-direction: column; gap: 7px; font-weight: 800; color: #2f4664; }
.pdf-merge-options input { border: 1px solid #c9d5e5; border-radius: 10px; padding: 10px 11px; font: inherit; color: var(--ink); background: #fbfdff; }
.pdf-merge-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.pdf-merge-actions button { cursor: pointer; }
.pdf-merge-actions button:disabled { opacity: 0.55; cursor: not-allowed; }
.pdf-merge-status { margin: 14px 0 0; color: #4c6078; }
.pdf-merge-status.error { color: #b42318; font-weight: 800; }
.pdf-merge-summary { position: sticky; top: 88px; align-self: start; }
.pdf-summary-card { border-radius: 16px; background: linear-gradient(135deg, #10223e, #1a355f); color: #fff; padding: 18px; margin-bottom: 16px; }
.pdf-summary-card strong { display: block; font-size: 2rem; line-height: 1; }
.pdf-summary-list { display: grid; gap: 10px; color: var(--muted); }
.pdf-summary-list span { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.pdf-merge-local-note { background: #fff7ed; border: 1px solid #f3c999; border-radius: 16px; padding: 14px; color: #6f3a06; margin-top: 16px; }
.pdf-merge-article-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.pdf-merge-article-nav a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #2f4664; background: #fff; font-weight: 800; }
.pdf-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  margin-top: 12px;
}
.pdf-faq summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}
.pdf-faq p {
  margin-top: 10px;
  color: var(--muted);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseMove {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.28; }
  20% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.22; }
}
@media (max-width: 980px) {
  .pdf-merge-hero, .pdf-merge-panel { grid-template-columns: 1fr; }
  .pdf-merge-summary { position: static; }
  .pdf-merge-workbench-header { flex-direction: column; }
  .pdf-merge-hero-badges { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .pdf-merge-workbench { padding: 14px; }
  .pdf-merge-tool, .pdf-merge-summary { padding: 16px; }
  .pdf-file-row { grid-template-columns: 1fr; }
  .pdf-file-actions { justify-content: flex-start; }
  .pdf-dropzone { padding: 20px; }
  .pdf-merge-hero-art { max-width: 100%; }
}
