.tool-hero { background:linear-gradient(135deg,#9f1239 0%,#e11d48 50%,#f43f5e 100%); padding:5rem 1.5rem 3rem; margin-top:68px; text-align:center; position:relative; overflow:hidden; }
.tool-hero::before { content:''; position:absolute; width:400px; height:400px; border-radius:50%; background:rgba(255,255,255,.06); top:-150px; right:-100px; }
.tool-hero::after { content:''; position:absolute; width:300px; height:300px; border-radius:50%; background:rgba(255,255,255,.04); bottom:-100px; left:-50px; }
.tool-hero-content { position:relative; z-index:1; }
.tool-hero-icon { width:72px; height:72px; border-radius:20px; background:rgba(255,255,255,.15); backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:center; font-size:2rem; margin:0 auto 1.25rem; border:1px solid rgba(255,255,255,.2); }
.tool-hero h1 { font-size:clamp(1.75rem,4vw,2.75rem); font-weight:800; color:white; letter-spacing:-1px; margin-bottom:.75rem; }
.tool-hero p { font-size:1rem; color:rgba(255,255,255,.82); max-width:520px; margin:0 auto; }
.tool-main { max-width:960px; margin:0 auto; padding:2.5rem 1.5rem 5rem; }

.breadcrumb-nav { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; font-size:.82rem; margin-bottom:1.5rem; }
.breadcrumb-nav a { color:var(--text-muted); text-decoration:none; }
.breadcrumb-nav a:hover { color:#e11d48; }
.bc-sep { color:var(--text-light); }
.bc-current { color:var(--text); font-weight:600; }

.drop-zone { border:2px dashed var(--border); border-radius:var(--radius-lg); padding:3.5rem 2rem; text-align:center; background:white; transition:var(--transition); cursor:pointer; position:relative; overflow:hidden; margin-bottom:1.5rem; }
.drop-zone:hover,.drop-zone.drag-over { border-color:#e11d48; background:rgba(225,29,72,.03); }
.drop-zone.drag-over { transform:scale(1.01); }
.drop-zone-icon { font-size:3rem; margin-bottom:1rem; display:block; }
.drop-zone-title { font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.375rem; }
.drop-zone-sub { font-size:.82rem; color:var(--text-muted); }
.drop-zone-btn { display:inline-flex; align-items:center; gap:.4rem; margin-top:1rem; padding:.55rem 1.25rem; background:linear-gradient(135deg,#e11d48,#be123c); color:white; border:none; border-radius:100px; font-size:.82rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); box-shadow:0 4px 12px rgba(225,29,72,.3); }
.drop-zone-btn:hover { transform:translateY(-1px); }
.drop-input { display:none; }

.controls-bar { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow); padding:1.25rem 1.5rem; display:flex; flex-direction:column; gap:1rem; margin-bottom:1.5rem; }
.controls-title { font-size:.875rem; font-weight:700; color:var(--text); }
.ptj-controls-row { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.ptj-field { display:flex; align-items:center; gap:.5rem; }
.quality-label { font-size:.78rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px; white-space:nowrap; }
.field-select { padding:.5rem .85rem; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:.85rem; font-family:'Inter',sans-serif; color:var(--text); outline:none; background:var(--bg); cursor:pointer; transition:var(--transition); }
.field-select:focus { border-color:#e11d48; background:white; }
.ptj-file-meta { font-size:.8rem; color:var(--text-muted); font-weight:600; }
.btn-convert-all { padding:.75rem 1.75rem; background:linear-gradient(135deg,#e11d48,#be123c); color:white; border:none; border-radius:var(--radius); font-size:.9rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); box-shadow:0 4px 12px rgba(225,29,72,.3); }
.btn-convert-all:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(225,29,72,.4); }
.btn-dl-all { padding:.75rem 1.5rem; background:linear-gradient(135deg,#10b981,#059669); color:white; border:none; border-radius:var(--radius); font-size:.9rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); box-shadow:0 4px 12px rgba(16,185,129,.25); }
.btn-dl-all:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(16,185,129,.35); }
.btn-reset { padding:.75rem 1.5rem; background:transparent; color:var(--text-muted); border:1.5px solid var(--border); border-radius:var(--radius); font-size:.9rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); margin-left:auto; }
.btn-reset:hover { border-color:var(--text); color:var(--text); }

.progress-wrap { display:flex; flex-direction:column; gap:.5rem; }
.progress-bar-wrap { height:6px; background:var(--border); border-radius:100px; overflow:hidden; }
.progress-bar-fill { height:100%; background:linear-gradient(90deg,#e11d48,#f43f5e); border-radius:100px; transition:width .3s ease; }
.progress-text { font-size:.78rem; color:var(--text-muted); font-weight:600; }

.inline-msg { padding:.75rem 1rem; border-radius:var(--radius-sm); font-size:.82rem; font-weight:600; }
.inline-msg.error { background:rgba(239,68,68,.08); color:#dc2626; border:1px solid rgba(239,68,68,.2); }
.inline-msg.success { background:rgba(16,185,129,.08); color:#059669; border:1px solid rgba(16,185,129,.2); }

.pages-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.page-card { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column; }
.page-card-preview { background:var(--bg); padding:.75rem; display:flex; align-items:center; justify-content:center; min-height:160px; }
.page-card-preview img { max-width:100%; max-height:280px; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.page-card-body { padding:.75rem 1rem 1rem; }
.page-card-label { font-size:.78rem; font-weight:700; color:var(--text); margin-bottom:.5rem; text-align:center; }
.btn-download-page { width:100%; padding:.5rem; background:linear-gradient(135deg,#e11d48,#be123c); color:white; border:none; border-radius:var(--radius-sm); font-size:.78rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); }
.btn-download-page:hover { transform:translateY(-1px); box-shadow:0 4px 10px rgba(225,29,72,.3); }

@media (max-width:768px){
  .ptj-controls-row { flex-direction:column; align-items:stretch; }
  .ptj-field { justify-content:space-between; }
  .btn-reset { margin-left:0; }
  .pages-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
}
