.tool-hero { background:linear-gradient(135deg,#059669 0%,#047857 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,.78); max-width:480px; margin:0 auto; }
.tool-main { max-width:1100px; margin:0 auto; padding:2rem 1.5rem 5rem; }

.json-toolbar { display:flex; align-items:center; gap:.625rem; flex-wrap:wrap; margin-bottom:1.25rem; background:white; padding:.875rem 1.25rem; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.toolbar-sep { width:1px; height:24px; background:var(--border); margin:0 .25rem; }
.btn-tool { padding:.45rem 1rem; border-radius:var(--radius-sm); border:1.5px solid var(--border); font-size:.8rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); background:white; color:var(--text-muted); display:flex; align-items:center; gap:.375rem; }
.btn-tool:hover { border-color:#059669; color:#047857; background:rgba(5,150,105,.05); }
.btn-tool.primary { background:linear-gradient(135deg,#059669,#047857); color:white; border-color:transparent; }
.btn-tool.primary:hover { box-shadow:0 4px 12px rgba(5,150,105,.3); transform:translateY(-1px); }
.btn-tool.danger { border-color:rgba(239,68,68,.25); color:#dc2626; }
.btn-tool.danger:hover { background:rgba(239,68,68,.05); border-color:#ef4444; }
.toolbar-status { margin-left:auto; font-size:.78rem; font-weight:600; display:flex; align-items:center; gap:.4rem; }
.status-dot { width:8px; height:8px; border-radius:50%; }
.status-dot.valid { background:#10b981; }
.status-dot.invalid { background:#ef4444; }
.status-dot.idle { background:#94a3b8; }

.json-panes { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
.json-pane { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow); overflow:hidden; }
.json-pane-header { padding:.875rem 1.25rem; border-bottom:1px solid var(--border-light); display:flex; align-items:center; justify-content:space-between; }
.json-pane-title { font-size:.825rem; font-weight:700; color:var(--text); }
.json-pane-actions { display:flex; gap:.4rem; }
.btn-pane { padding:.3rem .7rem; border:1px solid var(--border); border-radius:6px; font-size:.72rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; background:var(--bg); color:var(--text-muted); transition:var(--transition); }
.btn-pane:hover { border-color:#059669; color:#047857; }
.json-textarea { width:100%; border:none; outline:none; resize:none; padding:1.25rem; font-family:'JetBrains Mono','Courier New',monospace; font-size:.8rem; line-height:1.7; color:var(--text); background:var(--bg); min-height:420px; }
.json-textarea.output { background:#f8fafc; color:#334155; }
.json-textarea.error-state { border-top:2px solid #ef4444; }

.error-banner { padding:.625rem 1.25rem; background:rgba(239,68,68,.06); border-top:1px solid rgba(239,68,68,.15); font-size:.78rem; color:#dc2626; font-weight:600; display:none; }
.error-banner.show { display:block; }

.drop-zone-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:999; align-items:center; justify-content:center; }

@media(max-width:700px) { .json-panes{grid-template-columns:1fr;} .json-toolbar{gap:.375rem;} }
