/* hp-unified.css — shared upload + download (result) UI for ALL tools, matching Word to PDF */

.hp-header ~ section.tool-hero:first-of-type { margin-top: 6px; padding-top: 8px; padding-bottom: 2px; }
.tool-hero h1 { margin-bottom: 0; }
.tool-hero p { white-space: normal; max-width: 760px; margin-bottom: 0; }
@media (min-width: 980px) { .tool-hero p { white-space: nowrap; max-width: none; } }

/* Catchy, prominent upload box — soft brand-tinted gradient with modern depth */
.dropzone {
  margin: 2px auto !important;
  padding: 35px 40px !important;
  min-height: 0 !important;
  max-width: 1104px !important;
  background: linear-gradient(135deg, #FFFBFB 0%, #EFF6FF 60%, #EFF6FF 100%) !important;
  border: 2px dashed #93C5FD !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: all .2s !important;
  position: relative !important;
}
.dropzone::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.15), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.dropzone:hover::before { opacity: 1; }
.dropzone:hover, .dropzone.drag-over {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 50%, #DBEAFE 100%) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-2px) !important;
}
.dropzone .icon {
  margin-bottom: 4px !important;
  font-size: 42px !important;
  color: var(--brand) !important;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.25));
}
.dropzone h3 {
  margin: 0 0 4px !important;
  font-size: 20px !important;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.dropzone p { margin: 0 !important; color: #6B7280 !important; }

/* Source buttons with cloud-service icons */
.wp-sources {
  max-width: 1104px; margin: 14px auto 0;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.wp-sources .label { font-size: 12px; color: var(--text-3); margin-right: 4px; }
.wp-source-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  transition: border-color .15s, color .15s, transform .12s;
}
.wp-source-btn:hover { transform: translateY(-1px); }
.wp-source-btn.computer:hover { border-color: var(--brand); color: var(--brand); }
.wp-source-btn.gdrive:hover { border-color: #1A73E8; color: #1A73E8; }
.wp-source-btn.dropbox:hover { border-color: #0061FF; color: #0061FF; }
.wp-source-btn.onedrive:hover { border-color: #0364B8; color: #0364B8; }
.wp-source-btn.url:hover { border-color: #6B7280; color: #6B7280; }
.wp-source-btn svg { width: 18px; height: 18px; }

.wp-url-panel {
  max-width: 1104px; margin: 12px auto;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 16px 20px;
  display: none;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.wp-url-panel.show { display: block; }
.wp-url-panel h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wp-url-panel h4 svg { width: 18px; height: 18px; }
.wp-url-panel .hint { font-size: 12px; color: var(--text-3); margin: 0 0 12px; line-height: 1.5; }
.wp-url-panel .hint code {
  background: var(--bg); padding: 1px 5px; border-radius: 3px;
  font-family: ui-monospace, monospace; font-size: 11px;
}
.wp-url-panel .steps {
  background: #fff; border: 1px solid var(--border); border-radius: 7px;
  padding: 8px 12px; font-size: 12px; color: var(--text-2); margin-bottom: 10px;
  line-height: 1.6;
}
.wp-url-panel .steps ol { margin: 4px 0 0 18px; padding: 0; }
.wp-url-panel .steps li { margin: 2px 0; }
.wp-url-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-url-row input[type=text] {
  flex: 1; min-width: 240px;
  padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 7px; font-family: inherit; font-size: 13.5px;
  background: var(--bg); box-sizing: border-box;
}
.wp-url-row input[type=text]:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.wp-url-row button {
  padding: 10px 16px; border: 1px solid var(--border);
  border-radius: 7px; background: var(--bg);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.wp-url-row button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.wp-url-row button.primary:hover { background: var(--brand-dark); }
.wp-url-row button.primary:disabled { opacity: .55; cursor: wait; }

.file-list { display: none; }
.actions { display: none; }
.result {
  max-width: 1104px !important;
  margin: 12px auto !important;
  background: linear-gradient(135deg, #FFFBFB 0%, #EFF6FF 60%, #EFF6FF 100%) !important;
  border: 2px dashed #93C5FD !important;
  border-radius: 16px !important;
  padding: 16px 40px !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  box-sizing: border-box !important;
  width: calc(100% - 32px) !important;
  text-align: center !important;
}
.result > * {
  margin-left: auto !important;
  margin-right: auto !important;
}
.result .next-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 768px) {
  .result .next-tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .result .next-tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .result { padding: 24px 20px !important; }
}
/* Internal result elements - compact for smaller box */
.result .result-icon { 
  width: 42px !important; 
  height: 42px !important; 
  margin: 0 auto 4px !important; 
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.25));
}
.result .result-icon svg { width: 22px !important; height: 22px !important; color: #10B981 !important; }
.result h3 { 
  margin: 0 0 2px !important; 
  font-size: 18px !important; 
  font-weight: 700 !important;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result p { margin: 0 0 8px !important; font-size: 12.5px !important; color: #6B7280 !important; }
.result a.download { 
  padding: 10px 22px !important; 
  font-size: 14px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #2563EB, #3B82F6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all .2s !important;
  margin: 0 auto !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}
.result a.download:hover { 
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35) !important;
}

/* Stack download button & "Process another file" link vertically, centered */
.result .result-actions,
.result .download-row,
.result .actions-row,
.result > div:has(> a.download),
.result > div:has(> .result-again) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
}

/* Force any direct sibling layout to stack */
.result a.download + .result-again,
.result .result-again {
  display: inline-block !important;
  margin-top: 8px !important;
}
.result .share-row {
  display: none !important;
}

/* Share & Save buttons row - mirrors .wp-sources */
.wp-share-row {
  max-width: 1104px;
  width: calc(100% - 32px);
  margin: 12px auto 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
}
.wp-share-row.show { display: flex; }
.wp-share-row .label { 
  font-size: 12px; 
  color: var(--text-3, #94A3B8); 
  margin-right: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wp-share-row .wp-source-btn {
  padding: 7px 10px !important;
  font-size: 12px !important;
  gap: 5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.wp-share-row .wp-source-btn svg {
  width: 14px !important;
  height: 14px !important;
}
.wp-share-row .wp-source-btn.share-whatsapp:hover { border-color: #25D366; color: #25D366; }
.wp-share-row .wp-source-btn.share-copylink:hover { border-color: #6B7280; color: #6B7280; }
.wp-share-row .wp-source-btn.save-gdrive:hover { border-color: #1A73E8; color: #1A73E8; }
.wp-share-row .wp-source-btn.save-dropbox:hover { border-color: #0061FF; color: #0061FF; }
.wp-share-row .wp-source-btn.save-onedrive:hover { border-color: #0364B8; color: #0364B8; }
.wp-share-row .wp-source-btn.share-email:hover { border-color: #2563EB; color: #2563EB; }

@media (max-width: 640px) {
  .wp-share-row { flex-wrap: wrap !important; gap: 6px; overflow-x: visible; }
  .wp-share-row .label { width: 100%; text-align: center; margin-right: 0; margin-bottom: 4px; }
}

/* Toast notification for copy link feedback */
.wp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.wp-toast svg { width: 18px; height: 18px; color: #10B981; }

/* ====== Email Share Modal ====== */
.wp-email-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wp-email-modal.show { display: flex; }
.wp-email-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: wpFadeIn .2s ease;
}
.wp-email-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 8px 25px rgba(0,0,0,0.15);
  animation: wpModalSlide .3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wpModalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wp-email-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: #F3F4F6;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  z-index: 2;
}
.wp-email-close:hover { background: #E5E7EB; color: #0F172A; }

.wp-email-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #F1F5F9;
}
.wp-email-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.wp-email-icon svg { width: 22px; height: 22px; }
.wp-email-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}
.wp-email-header p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #6B7280;
}

.wp-email-body { padding: 20px 28px 24px; }
.wp-email-field { margin-bottom: 14px; }
.wp-email-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wp-email-row .wp-email-field { margin-bottom: 14px; }
.wp-email-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.wp-email-field .hint-text {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #94A3B8;
  margin-top: 2px;
  font-style: italic;
}
.wp-email-field .req { color: #2563EB; }
.wp-email-field .optional { color: #94A3B8; font-weight: 400; font-size: 11.5px; }
.wp-email-field input,
.wp-email-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  color: #0F172A;
  background: #FAFBFC;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
  resize: vertical;
}
.wp-email-field input:focus,
.wp-email-field textarea:focus {
  outline: none;
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wp-email-preview {
  background: linear-gradient(135deg, #FFFBFB 0%, #EFF6FF 100%);
  border: 1px dashed #93C5FD;
  border-radius: 11px;
  padding: 12px 14px;
  margin: 4px 0 14px;
}
.wp-email-preview .prev-label {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.wp-email-preview .prev-file {
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  word-break: break-all;
}
.wp-email-preview .prev-note {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 4px;
}

.wp-email-status {
  font-size: 12.5px;
  margin: 0 0 12px;
  min-height: 16px;
}
.wp-email-status.success { color: #059669; font-weight: 600; }
.wp-email-status.error { color: #1D4ED8; font-weight: 600; }

.wp-email-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.wp-email-cancel {
  padding: 11px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.wp-email-cancel:hover { background: #F9FAFB; border-color: #D1D5DB; }
.wp-email-send {
  padding: 11px 22px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform .12s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.wp-email-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.wp-email-send:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.wp-email-send svg { width: 15px; height: 15px; }

@media (max-width: 520px) {
  .wp-email-row { grid-template-columns: 1fr; gap: 0; }
  .wp-email-header { padding: 20px 20px 14px; }
  .wp-email-body { padding: 16px 20px 20px; }
  .wp-email-actions { flex-direction: column-reverse; }
  .wp-email-actions button { width: 100%; justify-content: center; }
}

/* ====== Professional Progress Overlay ====== */
.wp-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 30% 20%, rgba(254, 226, 226, 0.45) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(252, 231, 243, 0.4) 0%, transparent 50%),
              rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wpFadeIn .3s ease;
}
.wp-progress-overlay.show { display: flex; }

.wp-progress-card {
  width: 100%;
  max-width: 640px;
  text-align: center;
  padding: 40px 36px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 24px;
  box-shadow: 
    0 30px 80px rgba(37, 99, 235, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: wpProgressIn .5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.wp-progress-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 50%, #3B82F6 100%);
  background-size: 200% 100%;
  animation: wpTopShimmer 3s linear infinite;
}
@keyframes wpTopShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes wpProgressIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stage tracker pills */
.wp-stage-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}
.stage-pill .stage-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  transition: all .3s ease;
}
.stage-line {
  flex: 0 0 28px;
  height: 2px;
  background: #E5E7EB;
  transition: background .4s ease;
  position: relative;
  overflow: hidden;
}
.stage-pill.active {
  background: linear-gradient(135deg, #EFF6FF, #EFF6FF);
  border-color: #93C5FD;
  color: #2563EB;
  box-shadow: 
    0 4px 12px rgba(37, 99, 235, 0.15),
    0 0 0 4px rgba(37, 99, 235, 0.08);
  transform: scale(1.04);
}
.stage-pill.active .stage-dot {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: wpDotPulse 1.5s ease-in-out infinite;
}
@keyframes wpDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.stage-pill.done {
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  border-color: #86EFAC;
  color: #059669;
}
.stage-pill.done .stage-dot {
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.stage-pill.done .stage-dot::before {
  content: '✓';
  font-size: 13px;
  font-weight: 800;
}
.stage-pill.done .stage-dot-num { display: none; }
.stage-line.done { 
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
}
@media (max-width: 480px) {
  .stage-pill { padding: 6px 10px; font-size: 11px; gap: 6px; }
  .stage-pill .stage-dot { width: 18px; height: 18px; font-size: 10px; }
  .stage-line { flex-basis: 14px; }
}

/* ====== Animated Document Visualization ====== */
.wp-doc-visual {
  margin: 8px auto 24px;
  display: flex;
  justify-content: center;
}
.doc-icon-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-source, .doc-target {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12));
  flex-shrink: 0;
}
.doc-source { animation: wpDocFloat 3s ease-in-out infinite; }
.doc-target { animation: wpDocFloat 3s ease-in-out infinite .3s; }
@keyframes wpDocFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.doc-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 24px;
  flex-shrink: 0;
}
.doc-arrow svg { width: 60px; height: 24px; }
.flow-dot {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
  transform: translateY(-50%);
}
.flow-dot.dot1 { animation: wpFlowMove 1.4s ease-in-out infinite;        }
.flow-dot.dot2 { animation: wpFlowMove 1.4s ease-in-out infinite .47s;   }
.flow-dot.dot3 { animation: wpFlowMove 1.4s ease-in-out infinite .93s;   }
@keyframes wpFlowMove {
  0%   { left: 4px;  opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 44px; opacity: 0; }
}

.wp-progress-stage {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.6px;
}
.wp-progress-stage .stage-text {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wp-progress-stage .stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  border-radius: 14px;
  font-size: 22px;
  box-shadow: 
    0 6px 20px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  animation: wpPulseIcon 2s ease-in-out infinite;
  position: relative;
}
.wp-progress-stage .stage-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  animation: wpIconRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes wpIconRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}
@keyframes wpPulseIcon {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.wp-progress-file {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 22px;
  word-break: break-all;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(248,250,252,0.6) 100%);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wp-progress-file::before {
  content: '📄';
  font-size: 14px;
}
.wp-progress-file .file-size {
  color: #94A3B8;
  font-weight: 600;
  font-size: 12.5px;
}

.wp-progress-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 11px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,251,252,0.95) 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 99px;
  font-size: 13.5px;
  box-shadow: 
    0 4px 12px rgba(37, 99, 235, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wp-progress-stats .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wp-progress-stats .stat-label {
  color: #94A3B8;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.wp-progress-stats .stat-value {
  color: #0F172A;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.wp-progress-stats .stat-divider {
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}

/* ====== DUAL PROGRESS BARS ====== */
.wp-dual-progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px auto 4px;
  max-width: 520px;
  width: 100%;
}
.wp-dp-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.wp-dp-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wp-dp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
}
.wp-dp-icon svg { width: 14px; height: 14px; }
.wp-dp-icon-upload {
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.wp-dp-icon-process {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.wp-dp-row.active .wp-dp-icon-process svg {
  animation: wpGearSpin 2s linear infinite;
}
@keyframes wpGearSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.wp-dp-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.2px;
}
.wp-dp-percent {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
}
.wp-dp-row.active .wp-dp-percent {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wp-dp-row#wpDpUploadRow.active .wp-dp-percent {
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wp-dp-row.complete .wp-dp-percent {
  color: #059669;
  background: none;
  -webkit-text-fill-color: #059669;
}
.wp-dp-bar-wrap {
  background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), inset 0 -1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.wp-dp-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.wp-dp-bar-upload {
  background: linear-gradient(90deg, #3B82F6 0%, #06B6D4 50%, #3B82F6 100%);
  background-size: 200% 100%;
  animation: wpBarGradient 3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.wp-dp-bar-process {
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 50%, #3B82F6 100%);
  background-size: 200% 100%;
  animation: wpBarGradient 3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.wp-dp-row.complete .wp-dp-bar {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important;
  animation: none !important;
}
.wp-dp-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: wpShimmer 1.5s linear infinite;
}
.wp-dp-row:not(.active):not(.complete) .wp-dp-shimmer { display: none; }
.wp-dp-row:not(.active):not(.complete) .wp-dp-icon { opacity: 0.45; }
.wp-dp-row:not(.active):not(.complete) .wp-dp-label { color: #94A3B8; font-weight: 600; }
.wp-dp-row:not(.active):not(.complete) .wp-dp-percent { color: #94A3B8; font-weight: 700; }

.wp-progress-bar-wrap {
  background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
  height: 14px;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.06),
    inset 0 -1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(37, 99, 235, 0.08);
}
.wp-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, 
    #2563EB 0%, 
    #3B82F6 33%, 
    #3B82F6 66%, 
    #3B82F6 100%);
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 12px rgba(37, 99, 235, 0.5),
    0 2px 6px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.3);
  animation: wpBarGradient 3s ease-in-out infinite;
}
@keyframes wpBarGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.wp-progress-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.5) 30%, 
    rgba(255,255,255,0.7) 50%, 
    rgba(255,255,255,0.5) 70%, 
    transparent 100%);
  animation: wpShimmer 1.5s linear infinite;
}
@keyframes wpShimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
/* Glowing pulse dot at end of progress bar */
.wp-progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.6) 60%, transparent 100%);
  border-radius: 50%;
  animation: wpEndPulse 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wpEndPulse {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.4); }
}

.wp-progress-percent {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: #0F172A;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  position: relative;
}
.wp-progress-percent::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: wpGlowPulse 2.5s ease-in-out infinite;
}
@keyframes wpGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}
.wp-progress-percent .percent-number {
  font-size: 84px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
  font-weight: 900;
}
.wp-progress-percent .percent-symbol {
  font-size: 44px;
  color: #94A3B8;
  font-weight: 700;
}

.wp-progress-label {
  font-size: 13.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
  margin-top: 8px;
  text-transform: uppercase;
}

.wp-progress-footer {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.wp-progress-spinner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,251,252,0.95) 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  box-shadow: 
    0 2px 8px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.wp-progress-spinner svg {
  width: 15px;
  height: 15px;
  color: #3B82F6;
}

/* Trust badges row */
@media (max-width: 520px) {
  .wp-progress-stage { font-size: 22px; gap: 8px; }
  .wp-progress-stage .stage-icon { width: 38px; height: 38px; font-size: 18px; }
  .wp-progress-percent .percent-number { font-size: 56px; }
  .wp-progress-percent .percent-symbol { font-size: 32px; }
  .wp-progress-stats { gap: 14px; padding: 8px 16px; font-size: 12.5px; }
  .wp-progress-label { font-size: 12px; letter-spacing: 2px; }
}
.result .next-tools-section { 
  display: none !important;
}
.result .next-tools-title { 
  margin-bottom: 14px !important; 
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #6B7280 !important;
  text-align: center !important;
}
.result .next-tool { 
  padding: 12px 8px !important; 
  min-height: 64px !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: border-color .15s, box-shadow .15s, transform .12s !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.result .next-tool:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
  transform: translateY(-2px) !important;
}
.result .next-tool .nt-ico { font-size: 22px !important; }
.result .next-tool .nt-lbl { 
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #374151 !important;
}
.result .result-again { 
  margin: 0 !important; 
  padding: 0 !important; 
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  letter-spacing: -0.2px !important;
  transition: color .2s !important;
}
.result .result-again:hover {
  color: #2563EB !important;
}

/* ====== Standalone "Process another file" — below share row ====== */
.wp-process-another {
  margin: 22px auto 8px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  user-select: none;
  text-align: center;
  position: relative;
  width: fit-content;
}
.wp-process-another.show { display: flex; }

/* The whole element acts as one tactile button */
.wp-process-another > * {
  pointer-events: none;
}

/* Pill-style clickable wrapper */
.wp-process-another::before {
  content: '';
  position: absolute;
  inset: -10px -22px;
  border-radius: 99px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1.5px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.wp-process-another:hover::before {
  border-color: #3B82F6;
  background: linear-gradient(180deg, #FFFBFB 0%, #EFF6FF 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18), 0 2px 6px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px) scale(1.02);
}
/* Apply transform to ::before only — keep content centered */
.wp-process-another:hover {
  transform: translateY(-2px);
}

.wp-process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .2s ease;
  flex-shrink: 0;
  margin-right: 10px;
  position: relative;
  z-index: 1;
}
.wp-process-icon svg { width: 15px; height: 15px; stroke-width: 2.5; }
.wp-process-another:hover .wp-process-icon {
  transform: rotate(-180deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}

.wp-process-another .wp-process-link,
.wp-process-link {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  letter-spacing: -0.2px !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  transition: color .2s ease !important;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.wp-process-another:hover .wp-process-link {
  color: #2563EB !important;
}

/* Tiny arrow that slides in on hover - delightful interaction */
.wp-process-another .wp-process-link::after {
  content: '→';
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease, color .2s ease;
  color: #2563EB;
  display: inline-block;
}
.wp-process-another:hover .wp-process-link::after {
  opacity: 1;
  transform: translateX(0);
}

/* ====== Trending Tools Section (Unified) ====== */
.trending-wrapper {
  max-width: 1104px;
  width: calc(100% - 32px);
  margin: 18px auto 12px;
  display: none;
  flex-direction: column;
  position: relative;
}
.trending-wrapper.show { display: flex; }

/* Single unified container */
.trending-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.trending-box:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* STRICT: prevent ANY colored accent bars on trending box or sections */
.trending-box::before,
.trending-box::after,
.trending-section::before,
.trending-section::after,
.trending-popular::before,
.trending-popular::after,
.trending-ai::before,
.trending-ai::after {
  display: none !important;
  content: none !important;
  background: none !important;
  height: 0 !important;
}

/* Subtle internal divider between sections (REMOVED - tight spacing) */
.trending-divider {
  height: 6px;
  background: transparent;
  margin: 0;
  border: none;
  padding: 0;
}
.trending-section {
  margin: 0 !important;
  padding: 0 !important;
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  padding: 0 !important;
}
.trending-icon {
  font-size: 15px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.trending-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  flex: 1;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.trending-badge {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}
.trending-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: badgeShine 2.5s ease-in-out infinite;
}
@keyframes badgeShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.trending-badge-ai {
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.3);
}
.trending-subtitle {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
  line-height: 1.2;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
}
.trending-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 12px 8px 11px;
  background: #FFFFFF;
  border: 1px solid #EEF0F3;
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.trending-tool::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.04) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.trending-section:nth-child(3) .trending-tool::before {
  background: linear-gradient(135deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
}
.trending-tool:hover {
  border-color: #D1D5DB;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
}
.trending-tool:hover::before {
  opacity: 1;
}
.trending-tool:hover .tt-icon {
  transform: scale(1.08);
}
.tt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}
.tt-info { width: 100%; min-width: 0; position: relative; z-index: 1; }
.tt-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  letter-spacing: -0.1px;
}
.tt-desc {
  display: none;
}

@media (max-width: 768px) {
  .trending-grid { grid-template-columns: repeat(3, 1fr); }
  .trending-box { padding: 12px 14px; }
  .trending-divider { margin: 12px 0; }
}
@media (max-width: 480px) {
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .trending-title { font-size: 12.5px; }
}

.wp-organize {
  max-width: 1104px; margin: 12px auto;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px 26px;
  display: none;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.wp-organize.show { display: block; }
.wp-org-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 16px;
  flex-wrap: wrap; gap: 8px;
}
.wp-org-head .title {
  font-weight: 700; font-size: 16px; color: #0F172A;
  display: inline-flex; align-items: center; gap: 8px;
}
.wp-org-head .title::before {
  content: '';
  width: 6px; height: 22px;
  background: linear-gradient(180deg, #2563EB, #3B82F6);
  border-radius: 3px;
}
.wp-org-head .title .count {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  font-size: 11.5px; padding: 2px 9px; border-radius: 99px;
  margin-left: 4px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.wp-org-head .hint { font-size: 12px; color: #94A3B8; font-style: italic; }
.wp-list { 
  list-style: none; 
  padding: 0; 
  margin: 0 0 18px; 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}
.wp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 12px 10px 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 11px;
  cursor: grab;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  position: relative;
  overflow: visible;
  min-height: 124px;
}
.wp-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  opacity: 0;
  transition: opacity .15s;
  border-radius: 11px 11px 0 0;
}
.wp-item:hover { 
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); 
  border-color: #93C5FD; 
  transform: translateY(-2px);
}
.wp-item:hover::before { opacity: 1; }
.wp-item.dragging { opacity: .4; cursor: grabbing; }
.wp-item.drag-over { 
  border-color: var(--brand); 
  background: linear-gradient(135deg, #EFF6FF, #FFF); 
  border-style: dashed;
  transform: scale(1.02);
}

/* Position handle/num inside the card */
.wp-handle { 
  position: absolute;
  top: 6px; left: 6px;
  color: #CBD5E1; 
  font-size: 12px; 
  cursor: grab; 
  user-select: none; 
  padding: 3px;
  line-height: 1;
}
.wp-num {
  position: absolute;
  top: 6px; right: 6px;
  background: linear-gradient(135deg, #FAFBFC, #F1F5F9);
  border: 1px solid #E5E7EB;
  border-radius: 50%; 
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #475569; 
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Compact corporate file icon */
.wp-fileicon { 
  width: 36px; 
  height: 36px; 
  flex-shrink: 0;
  margin: 4px auto 2px;
  filter: drop-shadow(0 2px 5px rgba(43, 91, 161, 0.22));
  transition: transform .2s ease;
}
.wp-fileicon svg { 
  width: 100%; 
  height: 100%; 
  display: block; 
}
.wp-item:hover .wp-fileicon {
  transform: scale(1.08);
}

/* File info — centered below icon */
.wp-fileinfo { 
  width: 100%;
  text-align: center;
  min-width: 0; 
}
.wp-fileinfo .name {
  font-weight: 600; 
  font-size: 11.5px; 
  color: #0F172A;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
  display: block;
  letter-spacing: -0.1px;
}
.wp-fileinfo .meta { 
  font-size: 10px; 
  color: #94A3B8; 
  margin-top: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-weight: 500;
}
.wp-source-tag {
  display: inline-block; 
  font-size: 8.5px; 
  font-weight: 700;
  padding: 1px 5px; 
  border-radius: 99px; 
  text-transform: uppercase; 
  letter-spacing: .3px;
}
.wp-source-tag.local { background: #F3F4F6; color: #4B5563; }
.wp-source-tag.url { background: #DBEAFE; color: #1E40AF; }
.wp-source-tag.gdrive { background: #FEF3C7; color: #92400E; }
.wp-source-tag.dropbox { background: #DBEAFE; color: #1E40AF; }
.wp-source-tag.onedrive { background: #DBEAFE; color: #0364B8; }

.wp-row-actions { 
  display: flex; 
  gap: 3px; 
  flex-shrink: 0;
  margin-top: 2px;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transition: opacity .2s;
}
.wp-item:hover .wp-row-actions { opacity: 1; }
.wp-row-actions button {
  width: 22px; height: 22px;
  border: 1px solid #E5E7EB;
  border-radius: 5px; 
  background: #FFFFFF;
  font-family: inherit; 
  font-size: 11px; 
  font-weight: 700;
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: #64748B; 
  padding: 0;
  transition: all .15s;
}
.wp-row-actions button:hover { 
  border-color: var(--brand); 
  color: var(--brand); 
  transform: scale(1.08);
}
.wp-row-actions button.remove { 
  font-size: 14px; 
  background: #FFFFFF;
}
.wp-row-actions button.remove:hover { 
  border-color: #2563EB; 
  color: #2563EB; 
  background: #EFF6FF; 
}
.wp-row-actions button:disabled { opacity: .3; cursor: not-allowed; }

.wp-bottom-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.wp-add-more-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wp-add-more {
  background: var(--bg);
  border: 1px dashed var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.wp-add-more:hover { border-color: var(--brand); color: var(--brand); }
.wp-add-more svg { width: 14px; height: 14px; }

.wp-btn-convert {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff; 
  border: 0;
  padding: 16px 36px;
  border-radius: 12px;
  font-family: inherit; 
  font-size: 16px; 
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(37, 99, 235,.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform .15s, box-shadow .15s;
  margin: 8px auto 0;
  display: block;
  min-width: 280px;
}

/* Merge Option Toggle */
.wp-merge-option {
  max-width: 480px;
  margin: 16px auto 14px;
  background: linear-gradient(135deg, #FFFBFB 0%, #EFF6FF 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 12px;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
}
.wp-merge-option::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2563EB, #3B82F6);
}
.wp-merge-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.wp-merge-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wp-merge-slider {
  position: relative;
  width: 40px;
  height: 22px;
  background: #CBD5E1;
  border-radius: 99px;
  transition: background .25s ease;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.wp-merge-slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.wp-merge-toggle input:checked + .wp-merge-slider {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 0 8px rgba(37, 99, 235, 0.25);
}
.wp-merge-toggle input:checked + .wp-merge-slider::after {
  transform: translateX(18px);
}
.wp-merge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.wp-merge-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wp-merge-title svg {
  width: 14px; height: 14px;
  color: #2563EB;
}
.wp-merge-desc {
  font-size: 11.5px;
  color: #6B7280;
  font-weight: 500;
}

/* ====== Multi-PDF Downloads List (when merge is OFF) ====== */
.wp-multi-dl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  margin: 16px auto 12px;
}
.wp-multi-dl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
}
.wp-multi-dl:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateX(2px);
}
.wp-multi-dl .dl-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.wp-multi-dl .dl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
.wp-multi-dl .dl-name {
  font-weight: 700;
  font-size: 13px;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-multi-dl .dl-sub {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}
.wp-multi-dl .dl-arrow {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform .15s;
}
.wp-multi-dl:hover .dl-arrow {
  transform: translateY(2px);
}
.wp-btn-convert:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 28px rgba(37, 99, 235,.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.wp-btn-convert:disabled { opacity: .55; cursor: wait; transform: none; }

html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
#hp-tool-main { flex: 1 0 auto; }
footer.tool-footer {
  flex-shrink: 0;
  max-height: 48px;
  padding: 6px 16px;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 0;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
}
footer.tool-footer br { display: none; }
footer.tool-footer a { margin: 0 4px; font-size: 11px; }


/* ===== HuntPDF unified tool UI tweaks ===== */
.tool-hero, section.tool-hero, section.hero { text-align: center !important; }
.tool-hero h1, .tool-hero h2, .tool-hero p,
section.hero h1, section.hero h2, section.hero p { text-align:center !important; margin-left:auto !important; margin-right:auto !important; }

.dropzone { max-width: 530px !important; width: 100% !important; margin-left:auto !important; margin-right:auto !important; text-align:center !important; display:block !important; }
.dropzone > * { margin-left:auto !important; margin-right:auto !important; text-align:center !important; }
.dropzone input[type="file"] { display:block !important; margin: 8px auto 0 !important; }

.result:empty, .wp-result:empty { display:none !important; padding:0 !important; margin:0 !important; border:0 !important; box-shadow:none !important; min-height:0 !important; }
.hp-seo-section { margin-top: 3in !important; }


/* ===== Unified DOWNLOAD (result) panel — identical on every tool ===== */
.result, #result, #dpResult, #ulResult, .wp-result {
  max-width: 1104px !important;
  width: calc(100% - 32px) !important;
  margin: 12px auto !important;
  background: linear-gradient(135deg, #FFFBFB 0%, #EFF6FF 60%, #EFF6FF 100%) !important;
  border: 2px dashed #93C5FD !important;
  border-radius: 16px !important;
  padding: 16px 40px !important;
  box-shadow: 0 4px 20px rgba(37,99,235,.08), 0 1px 3px rgba(15,23,42,.04) !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
.result .result-icon {
  width: 42px !important; height: 42px !important; margin: 0 auto 4px !important;
  background: linear-gradient(135deg,#10B981,#059669) !important; border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #fff !important; box-shadow: 0 6px 20px rgba(16,185,129,.3) !important;
}
.result .result-icon svg { width: 22px !important; height: 22px !important; color: #fff !important; }

/* Every flavour of download button gets the Word-to-PDF button */
.result a.download,
.result .dl-btn, .result .rf-dl, .result .result-dl,
.result .dp-bb-download, .result .btn-dl-top, .result .download-btn {
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg,#2563EB,#3B82F6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  margin: 0 auto !important;
  box-shadow: 0 3px 10px rgba(37,99,235,.25) !important;
  transition: all .2s !important;
}
.result a.download:hover,
.result .dl-btn:hover, .result .rf-dl:hover, .result .result-dl:hover,
.result .dp-bb-download:hover, .result .btn-dl-top:hover, .result .download-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,.35) !important;
}
.result .result-again {
  display: inline-block !important;
  margin-top: 8px !important;
  background: transparent !important;
  border: 0 !important;
  color: #64748B !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
