:root {
  --pdf-bg: #0b0d12;
  --pdf-card: #141820;
  --pdf-card2: #1a1f29;
  --pdf-border: #2a303c;
  --pdf-text: #f5f7fb;
  --pdf-muted: #aab1bf;
  --pdf-gold: #d1b245;
  --pdf-gold2: #f0d36c;
  --pdf-danger: #ef5b5b;
  --pdf-good: #3ecf8e;
}
.pdf-page {
  background: var(--pdf-bg);
  color: var(--pdf-text);
  min-height: 100vh;
}
.pdf-page main {
  padding-top: 82px;
}
.pdf-hero {
  padding: 70px 20px 34px;
  text-align: center;
  background: radial-gradient(circle at 50% 0, #d1b24522, transparent 45%);
}
.pdf-hero .eyebrow {
  color: var(--pdf-gold2);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.pdf-hero h1 {
  max-width: 900px;
  margin: 12px auto 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
}
.pdf-hero h1 span {
  color: var(--pdf-gold);
}
.pdf-hero p {
  max-width: 740px;
  margin: 0 auto;
  color: var(--pdf-muted);
  font-size: 17px;
  line-height: 1.65;
}
.pdf-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.pdf-trust span {
  border: 1px solid var(--pdf-border);
  background: #ffffff08;
  padding: 7px 12px;
  border-radius: 999px;
  color: #dfe3eb;
  font-size: 12px;
}
.pdf-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 70px;
}
.pdf-workspace {
  background: linear-gradient(145deg, var(--pdf-card), #10131a);
  border: 1px solid var(--pdf-border);
  border-radius: 22px;
  box-shadow: 0 24px 70px #0008;
  overflow: hidden;
}
.pdf-drop {
  margin: 20px;
  border: 2px dashed #48505f;
  border-radius: 16px;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px;
  background: #ffffff03;
  transition: 0.2s;
}
.pdf-drop.drag,
.pdf-drop:hover {
  border-color: var(--pdf-gold);
  background: #d1b2450b;
}
.pdf-drop-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 12px;
}
.pdf-drop h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.pdf-drop p {
  margin: 0 0 18px;
  color: var(--pdf-muted);
}
.pdf-primary,
.pdf-secondary,
.pdf-danger {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  transition: 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pdf-primary {
  background: var(--pdf-gold);
  color: #111;
}
.pdf-primary:hover {
  background: var(--pdf-gold2);
  transform: translateY(-1px);
}
.pdf-secondary {
  background: #242a35;
  color: #fff;
  border: 1px solid #353d4b;
}
.pdf-secondary:hover {
  border-color: var(--pdf-gold);
}
.pdf-danger {
  background: #ef5b5b20;
  color: #ff9494;
  border: 1px solid #ef5b5b55;
}
.pdf-primary:disabled,
.pdf-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.pdf-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.pdf-stage {
  display: none;
}
.pdf-stage.active {
  display: block;
}
.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--pdf-border);
  background: #0f1218;
}
.pdf-field {
  display: grid;
  gap: 6px;
  min-width: 150px;
}
.pdf-field label {
  font-size: 12px;
  color: var(--pdf-muted);
  font-weight: 700;
}
.pdf-field input,
.pdf-field select {
  background: #1a1f29;
  border: 1px solid #353d4b;
  color: #fff;
  border-radius: 9px;
  padding: 10px 11px;
  min-height: 42px;
}
.pdf-field.grow {
  flex: 1;
}
.pdf-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
  flex-wrap: wrap;
}
.pdf-summary {
  padding: 14px 20px;
  color: var(--pdf-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--pdf-border);
}
.pdf-files,
.pdf-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 20px;
  min-height: 160px;
}
.pdf-file,
.pdf-thumb {
  position: relative;
  background: var(--pdf-card2);
  border: 1px solid var(--pdf-border);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}
.pdf-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
}
.pdf-file .file-icon {
  font-size: 28px;
}
.pdf-file b {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-file small {
  color: var(--pdf-muted);
}
.pdf-file button,
.pdf-thumb button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid #ffffff20;
  background: #0d1016dd;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
.pdf-thumb {
  cursor: grab;
  text-align: center;
}
.pdf-thumb.dragging {
  opacity: 0.35;
}
.pdf-thumb.selected {
  outline: 2px solid var(--pdf-gold);
}
.pdf-thumb canvas,
.pdf-thumb img {
  width: 100%;
  height: 175px;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
  display: block;
}
.pdf-thumb span {
  display: block;
  padding-top: 8px;
  font-size: 12px;
  color: var(--pdf-muted);
}
.pdf-progress {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--pdf-border);
}
.pdf-progress.show {
  display: block;
}
.pdf-progress-track {
  height: 8px;
  border-radius: 99px;
  background: #282e38;
  overflow: hidden;
}
.pdf-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pdf-gold), var(--pdf-gold2));
  transition: width 0.2s;
}
.pdf-progress-text {
  font-size: 13px;
  color: var(--pdf-muted);
  margin-top: 9px;
}
.pdf-note {
  margin: 0 20px 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #d1b24510;
  border: 1px solid #d1b24533;
  color: #d8dbe2;
  font-size: 13px;
  line-height: 1.55;
}
.pdf-seo {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}
.pdf-seo h2 {
  font-size: 28px;
  margin: 48px 0 12px;
}
.pdf-seo h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}
.pdf-seo p,
.pdf-seo li {
  color: var(--pdf-muted);
  line-height: 1.75;
}
.pdf-steps,
.pdf-features,
.pdf-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pdf-step,
.pdf-feature,
.pdf-related {
  background: var(--pdf-card);
  border: 1px solid var(--pdf-border);
  border-radius: 14px;
  padding: 18px;
}
.pdf-step b {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pdf-gold);
  color: #111;
  margin-bottom: 12px;
}
.pdf-feature strong,
.pdf-related strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}
.pdf-related {
  text-decoration: none;
  color: var(--pdf-muted);
  transition: 0.2s;
}
.pdf-related:hover {
  transform: translateY(-2px);
  border-color: var(--pdf-gold);
}
.pdf-faq details {
  border-bottom: 1px solid var(--pdf-border);
  padding: 15px 0;
}
.pdf-faq summary {
  cursor: pointer;
  font-weight: 800;
}
.pdf-faq p {
  margin-bottom: 0;
}
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-hub-card {
  background: var(--pdf-card);
  border: 1px solid var(--pdf-border);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--pdf-muted);
  transition: 0.2s;
}
.tool-hub-card:hover {
  border-color: var(--pdf-gold);
  transform: translateY(-3px);
}
.tool-hub-card .ico {
  font-size: 34px;
}
.tool-hub-card h2 {
  font-size: 18px;
  color: #fff;
  margin: 12px 0 7px;
}
.tool-hub-card p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.tool-hub-card .tag {
  display: inline-block;
  margin-top: 12px;
  color: var(--pdf-gold2);
  font-size: 12px;
  font-weight: 800;
}
.site-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: 360px;
  background: #20252f;
  color: #fff;
  border: 1px solid #394151;
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 14px 45px #000a;
  animation: toastin 0.2s ease;
}
.site-toast.error {
  border-color: #ef5b5b88;
}
.site-toast.ok {
  border-color: #3ecf8e88;
}
@keyframes toastin {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .tools-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdf-steps,
  .pdf-features,
  .pdf-related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pdf-page main {
    padding-top: 68px;
  }
}
@media (max-width: 600px) {
  .pdf-hero {
    padding-top: 48px;
  }
  .pdf-shell {
    padding-left: 10px;
    padding-right: 10px;
  }
  .pdf-drop {
    margin: 10px;
    min-height: 230px;
  }
  .pdf-toolbar {
    align-items: stretch;
  }
  .pdf-field {
    width: 100%;
  }
  .pdf-actions {
    margin-left: 0;
    width: 100%;
  }
  .pdf-actions > * {
    flex: 1;
  }
  .pdf-files,
  .pdf-pages {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
  }
  .pdf-thumb canvas,
  .pdf-thumb img {
    height: 135px;
  }
  .pdf-steps,
  .pdf-features,
  .pdf-related-grid,
  .tools-hub-grid {
    grid-template-columns: 1fr;
  }
}
