.tool-hero { background:linear-gradient(135deg,#7c3aed 0%,#6d28d9 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:900px; margin:0 auto; padding:2.5rem 1.5rem 5rem; }

.breadcrumb-nav { color:var(--text-muted); margin-bottom:1.5rem; }
.breadcrumb-nav a { color:var(--text-muted); }
.breadcrumb-nav a:hover { color:#7c3aed; }
.breadcrumb-nav .bc-current { color:var(--text); }

.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:#7c3aed; background:rgba(124,58,237,.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,#7c3aed,#6d28d9); 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(124,58,237,.3); }
.drop-zone-btn:hover { transform:translateY(-1px); }
.drop-input { display:none; }

.cr-error { background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.25); color:#dc2626; padding:.75rem 1rem; border-radius:var(--radius-sm); font-size:.85rem; font-weight:600; margin-bottom:1.5rem; }

.cr-editor { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow); padding:1.5rem; }
.cr-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.cr-preset-group { display:flex; gap:.5rem; flex-wrap:wrap; }
.cr-preset-btn { padding:.45rem .85rem; border:1.5px solid var(--border); background:var(--bg); border-radius:100px; font-size:.78rem; font-weight:700; font-family:'Inter',sans-serif; color:var(--text-muted); cursor:pointer; transition:var(--transition); }
.cr-preset-btn:hover { border-color:#7c3aed; color:#7c3aed; }
.cr-preset-btn.active { background:linear-gradient(135deg,#7c3aed,#6d28d9); color:white; border-color:transparent; }
.cr-lock { display:flex; align-items:center; gap:.5rem; font-size:.82rem; font-weight:600; color:var(--text); cursor:pointer; white-space:nowrap; }
.cr-lock input { width:16px; height:16px; accent-color:#7c3aed; cursor:pointer; }

.cr-stage-wrap { display:flex; justify-content:center; margin-bottom:1.25rem; }
.cr-stage { position:relative; display:inline-block; max-width:100%; background:#1e293b; border-radius:var(--radius-sm); overflow:hidden; touch-action:none; user-select:none; background-image:linear-gradient(45deg,#334155 25%,transparent 25%),linear-gradient(-45deg,#334155 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#334155 75%),linear-gradient(-45deg,transparent 75%,#334155 75%); background-size:20px 20px; background-position:0 0,0 10px,10px -10px,-10px 0px; }
.cr-stage canvas { display:block; max-width:100%; }
.cr-crop-box { position:absolute; border:2px solid #fff; box-shadow:0 0 0 9999px rgba(0,0,0,.5); cursor:move; box-sizing:border-box; }
.cr-crop-box::before,.cr-crop-box::after { content:''; position:absolute; background:rgba(255,255,255,.4); }
.cr-crop-box::before { left:33.33%; right:33.33%; top:0; bottom:0; border-left:1px solid rgba(255,255,255,.4); border-right:1px solid rgba(255,255,255,.4); }
.cr-crop-box::after { top:33.33%; bottom:33.33%; left:0; right:0; border-top:1px solid rgba(255,255,255,.4); border-bottom:1px solid rgba(255,255,255,.4); }
.cr-handle { position:absolute; width:14px; height:14px; background:#fff; border:2px solid #7c3aed; border-radius:50%; z-index:2; }
.cr-nw { top:-7px; left:-7px; cursor:nwse-resize; }
.cr-ne { top:-7px; right:-7px; cursor:nesw-resize; }
.cr-sw { bottom:-7px; left:-7px; cursor:nesw-resize; }
.cr-se { bottom:-7px; right:-7px; cursor:nwse-resize; }

.cr-controls { display:flex; flex-direction:column; gap:1rem; }
.cr-zoom-row { display:flex; align-items:center; gap:1rem; }
.cr-zoom-label { font-size:.78rem; font-weight:700; color:var(--text-muted); white-space:nowrap; }
.field-range { flex:1; -webkit-appearance:none; appearance:none; height:4px; background:var(--border); border-radius:100px; outline:none; cursor:pointer; }
.field-range::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:#7c3aed; cursor:pointer; box-shadow:0 2px 6px rgba(124,58,237,.3); }
.field-range::-moz-range-thumb { width:18px; height:18px; border:none; border-radius:50%; background:#7c3aed; cursor:pointer; }
.cr-zoom-val { font-size:.85rem; font-weight:800; color:var(--text); min-width:44px; text-align:right; }
.cr-btn-row { display:flex; gap:.625rem; flex-wrap:wrap; }
.cr-tool-btn { flex:1; min-width:120px; padding:.6rem; background:var(--bg); border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:.82rem; font-weight:700; font-family:'Inter',sans-serif; color:var(--text); cursor:pointer; transition:var(--transition); }
.cr-tool-btn:hover { border-color:#7c3aed; color:#7c3aed; }
.cr-btn-primary { flex:1; min-width:150px; padding:.75rem; background:linear-gradient(135deg,#7c3aed,#6d28d9); color:white; border:none; border-radius:var(--radius); font-size:.88rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); box-shadow:0 4px 12px rgba(124,58,237,.3); }
.cr-btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(124,58,237,.4); }
.cr-btn-jpg { background:linear-gradient(135deg,#0891b2,#0e7490); box-shadow:0 4px 12px rgba(8,145,178,.3); }
.cr-btn-jpg:hover { box-shadow:0 6px 16px rgba(8,145,178,.4); }
.cr-btn-reset { padding:.6rem; background:transparent; color:var(--text-muted); border:1.5px solid var(--border); border-radius:var(--radius); font-size:.85rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); }
.cr-btn-reset:hover { border-color:var(--text); color:var(--text); }

@media (max-width:768px) {
  .cr-toolbar { flex-direction:column; align-items:flex-start; }
  .cr-btn-primary,.cr-tool-btn { min-width:100%; }
}
