.tool-hero { background:linear-gradient(135deg,#831843 0%,#be123c 50%,#e11d48 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:820px; margin:0 auto; padding:2.5rem 1.5rem 5rem; }

.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; }

.pdf-list { display:flex; flex-direction:column; gap:.75rem; margin-bottom:1.5rem; }
.pdf-item { background:white; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); padding:.9rem 1rem; display:flex; align-items:center; gap:1rem; cursor:grab; transition:var(--transition); }
.pdf-item.dragging { opacity:.45; }
.pdf-item.drag-target { border-color:#e11d48; box-shadow:0 0 0 2px rgba(225,29,72,.25); }
.pdf-icon { font-size:1.6rem; flex-shrink:0; }
.pdf-info { flex:1; min-width:0; }
.pdf-name { font-size:.88rem; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pdf-meta { font-size:.75rem; color:var(--text-muted); margin-top:2px; }
.pdf-actions { display:flex; gap:.4rem; flex-shrink:0; }
.pdf-btn { width:32px; height:32px; display:flex; align-items:center; justify-content:center; border:1.5px solid var(--border); background:var(--bg); border-radius:8px; font-size:.85rem; font-weight:700; cursor:pointer; font-family:'Inter',sans-serif; color:var(--text-muted); transition:var(--transition); }
.pdf-btn:hover { border-color:#e11d48; color:#e11d48; }
.pdf-btn:disabled { opacity:.35; cursor:not-allowed; }
.pdf-btn.del:hover { border-color:var(--danger); color:var(--danger); }

.merge-bar { display:flex; gap:.625rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.btn-merge { padding:.8rem 1.75rem; background:linear-gradient(135deg,#e11d48,#be123c); color:white; border:none; border-radius:var(--radius); font-size:.95rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); box-shadow:0 4px 12px rgba(225,29,72,.3); }
.btn-merge:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(225,29,72,.4); }
.btn-reset { padding:.8rem 1.5rem; background:transparent; color:var(--text-muted); border:1.5px solid var(--border); border-radius:var(--radius); font-size:.95rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); }
.btn-reset:hover { border-color:var(--danger); color:var(--danger); }

.progress-wrap { margin-bottom:1.5rem; display:none; }
.progress-wrap.show { display:block; }
.progress-label { font-size:.8rem; font-weight:600; color:var(--text-muted); margin-bottom:.4rem; }
.progress-bar-wrap { height:6px; background:var(--border); border-radius:100px; overflow:hidden; }
.progress-bar-fill { height:100%; width:0%; background:linear-gradient(90deg,#e11d48,#be123c); border-radius:100px; transition:width .3s ease; }

.pages-hint { font-size:.78rem; color:var(--text-muted); margin-bottom:.75rem; display:none; }
.pages-hint.show { display:block; }

.inline-msg { padding:.75rem 1rem; border-radius:var(--radius-sm); font-size:.85rem; font-weight:600; margin-bottom:1.5rem; display:none; }
.inline-msg.show { display:block; }
.inline-msg.error { background:rgba(239,68,68,.08); color:var(--danger); 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); }

@media (max-width:768px) {
  .btn-merge, .btn-reset { flex:1; }
}
