/* ==========================================================================
   I Love Convertify — Tool UI styles
   ========================================================================== */
/* Tool container is FULL WIDTH — interactive stages (Edit PDF, Organize,
   Sign, Crop…) use the whole page. Narrow bits (drop zone, options, run
   button, results) stay centered at a readable width via their own rules. */
.icv-tool{max-width:none;width:100%;margin:0 auto;font-family:'Inter',sans-serif}
.icv-drop,.icv-list,.icv-options,.icv-actions,.icv-results,.icv-error,.icv-note,.icv-order-hint{max-width:760px;margin-left:auto;margin-right:auto}
.icv-drop{border:2px dashed #c3d3f5;border-radius:14px;background:var(--bg-soft,#f6f8fc);padding:44px 24px;text-align:center;cursor:pointer;transition:.18s}
.icv-drop:hover,.icv-drop.drag{border-color:var(--blue,#1d4ed8);background:var(--bg-tint,#eef3fe)}
.icv-drop-ic{width:56px;height:56px;margin:0 auto 16px;background:var(--blue,#1d4ed8);border-radius:14px;display:flex;align-items:center;justify-content:center}
.icv-drop-ic svg{width:28px;height:28px;color:#fff}
.icv-drop h4{font-family:'Sora',sans-serif;font-size:19px;margin:0 0 6px;color:var(--ink,#0f172a)}
.icv-drop p{font-size:14.5px;color:#64748b;margin:0 0 18px}
.icv-select{background:var(--blue,#1d4ed8);color:#fff;font-family:'Sora',sans-serif;font-weight:600;font-size:15px;padding:12px 28px;border-radius:8px;border:none;cursor:pointer;transition:.15s}
.icv-select:hover{background:var(--blue-dark,#1533a3)}

.icv-list{margin-top:16px}
.icv-file{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line,#e2e8f0);border-radius:10px;margin-bottom:8px;background:#fff}
.icv-file-name{flex:1;font-size:14.5px;font-weight:500;color:var(--ink,#0f172a);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.icv-file-size{font-size:13px;color:#64748b;font-family:'Sora',sans-serif}
.icv-remove{background:none;border:none;font-size:22px;line-height:1;color:#94a3b8;cursor:pointer;padding:0 4px}
.icv-remove:hover{color:#ef4444}

.icv-options{margin-top:18px;display:flex;flex-direction:column;gap:16px}
.icv-options:empty{display:none}
.icv-field{display:flex;flex-direction:column;gap:8px}
.icv-field>span{font-family:'Sora',sans-serif;font-weight:500;font-size:14px;color:var(--ink,#0f172a)}
.icv-field input[type="range"]{width:100%;accent-color:var(--blue,#1d4ed8)}
.icv-field input[type="number"],.icv-field input[type="text"],.icv-field select{font-family:'Inter';font-size:16px;padding:12px 14px;border:1.5px solid var(--line,#e2e8f0);border-radius:9px;background:#fff;color:var(--ink,#0f172a)}
.icv-field input:focus,.icv-field select:focus{outline:none;border-color:var(--blue,#1d4ed8);box-shadow:0 0 0 3px rgba(29,78,216,.1)}
.icv-radio-row{display:flex;gap:20px}
.icv-radio-row label,.icv-check{font-size:15px;color:var(--slate,#475569);display:flex;align-items:center;gap:7px;cursor:pointer}
.icv-check{margin-top:4px}

.icv-actions{margin-top:22px}
.icv-run{width:100%;background:var(--blue,#1d4ed8);color:#fff;font-family:'Sora',sans-serif;font-weight:600;font-size:17px;padding:15px;border-radius:9px;border:none;cursor:pointer;transition:.15s}
.icv-run:hover{background:var(--blue-dark,#1533a3)}
.icv-run:disabled{opacity:.6;cursor:not-allowed}

.icv-results{margin-top:20px;display:flex;flex-direction:column;gap:10px}
.icv-result{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line,#e2e8f0);border-radius:11px;background:#fff;border-left:3px solid #22c55e}
.icv-result-info{flex:1;min-width:0}
.icv-result-info b{display:block;font-family:'Sora',sans-serif;font-size:14.5px;color:var(--ink,#0f172a);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.icv-result-info small{font-size:13px;color:#64748b}
.icv-dl{background:var(--blue,#1d4ed8);color:#fff;font-family:'Sora',sans-serif;font-weight:600;font-size:14px;padding:10px 20px;border-radius:8px;border:none;cursor:pointer;white-space:nowrap}
.icv-dl:hover{background:var(--blue-dark,#1533a3)}
.icv-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;padding:14px 16px;border-radius:10px;font-size:15px}
.icv-note{font-size:13px;color:#64748b;background:#f8fafc;border-left:3px solid #cbd5e1;padding:10px 12px;border-radius:0 8px 8px 0;margin:4px 0 0;line-height:1.5}

/* ---- [icv_tools_grid] categorized tools index ---- */
.icv-tools-index{margin:8px 0 24px}
.icv-cat-title{font-family:'Sora',sans-serif;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b;margin:36px 0 14px;padding-bottom:10px;border-bottom:1px solid var(--line,#e2e8f0)}
.icv-tools-index .icv-cat-title:first-child{margin-top:8px}
.icv-tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin:0 0 8px}
.icv-grid-card{display:flex;flex-direction:column;gap:5px;padding:18px;background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:12px;text-decoration:none;transition:.18s}
.icv-grid-card:hover{border-color:var(--blue,#1d4ed8);box-shadow:0 6px 18px rgba(29,78,216,.09);transform:translateY(-2px)}
.icv-grid-name{color:var(--ink,#0f172a);font-weight:600;font-size:15.5px}
.icv-grid-desc{color:#64748b;font-size:13px;line-height:1.45}
.icv-hero-sub{font-size:18px;line-height:1.65;color:var(--slate,#475569);max-width:640px;margin:0 0 8px}
.entry-content > h2:first-child{font-family:'Sora',sans-serif;font-size:clamp(30px,4.5vw,44px);line-height:1.15;letter-spacing:-.02em;color:var(--ink,#0f172a);margin:8px 0 16px}

/* ---- optional tool content block (content="yes" on [icv_tool]) ---- */
.icv-tool-extra{max-width:720px;margin:32px auto 0}
.icv-tool-extra h3{font-family:'Sora',sans-serif;font-size:22px;color:var(--ink,#0f172a);margin:0 0 16px}
.icv-tool-about{font-size:16.5px;line-height:1.75;color:var(--slate,#475569);margin:0 0 40px}
.icv-tool-steps{counter-reset:tstep;list-style:none;margin:0 0 40px;padding:0;display:flex;flex-direction:column;gap:18px}
.icv-tool-steps li{counter-increment:tstep;position:relative;padding-left:50px;font-size:15.5px;line-height:1.6;color:var(--slate,#475569)}
.icv-tool-steps li::before{content:counter(tstep);position:absolute;left:0;top:-2px;width:34px;height:34px;border-radius:10px;background:var(--blue,#1d4ed8);color:#fff;font-family:'Sora',sans-serif;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center}
.icv-tool-faq{display:flex;flex-direction:column;gap:10px}
.icv-faq-item{border:1px solid var(--line,#e2e8f0);border-radius:12px;padding:0 20px;background:#fff}
.icv-faq-item summary{cursor:pointer;font-family:'Sora',sans-serif;font-weight:600;font-size:15.5px;color:var(--ink,#0f172a);padding:16px 30px 16px 0;list-style:none;position:relative}
.icv-faq-item summary::-webkit-details-marker{display:none}
.icv-faq-item summary::after{content:'+';position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:20px;color:var(--blue,#1d4ed8);font-weight:400}
.icv-faq-item[open] summary::after{content:'–'}
.icv-faq-item p{font-size:15px;line-height:1.65;color:var(--slate,#475569);margin:0 0 18px}

/* ---- breadcrumb nav (ilc_the_breadcrumb(), inc/seo.php) ---- */
.ilc-breadcrumb{max-width:1320px;margin:0 auto;padding:16px 24px 0}
.ilc-breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:6px;font-size:13.5px;color:#64748b}
.ilc-breadcrumb a{color:#64748b;text-decoration:none}
.ilc-breadcrumb a:hover{color:var(--blue,#1d4ed8);text-decoration:underline}
.ilc-breadcrumb .ilc-crumb-sep{color:#cbd5e1}
.ilc-breadcrumb [aria-current="page"]{color:var(--ink,#0f172a);font-weight:500}

/* ============================================================
   Tool index: search + tabs + flat-icon card grid
   ============================================================ */
.icv-tools-index{--blue:#1d4ed8;--blue-tile:#eef3fe;max-width:1120px;margin:0 auto}
.icv-tools-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin:0 0 26px}
.icv-tools-tabs{display:flex;flex-wrap:wrap;gap:8px}
.icv-tools-tab{appearance:none;border:1px solid #e2e8f0;background:#fff;color:#475569;font:inherit;font-size:14px;font-weight:500;padding:8px 16px;border-radius:999px;cursor:pointer;transition:.15s}
.icv-tools-tab:hover{border-color:#c7d2fe;color:var(--blue)}
.icv-tools-tab.on{background:var(--blue);border-color:var(--blue);color:#fff}
.icv-tools-search{flex:1 1 240px;min-width:200px;max-width:340px;border:1px solid #e2e8f0;border-radius:10px;padding:11px 15px;font:inherit;font-size:14.5px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4-4'/%3E%3C/svg%3E") no-repeat right 13px center;padding-right:42px}
.icv-tools-search:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(29,78,216,.12)}
.icv-cat{margin:0 0 34px}
.icv-cat-title{font-size:15px;font-weight:600;letter-spacing:.02em;color:#0f172a;margin:0 0 14px}
.icv-tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:14px}
.icv-grid-card{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:18px;text-decoration:none;color:inherit;transition:.16s;position:relative}
.icv-grid-card:hover{border-color:#c7d2fe;box-shadow:0 8px 22px -12px rgba(29,78,216,.35);transform:translateY(-2px)}
.icv-grid-ic{flex:0 0 auto;width:46px;height:46px;border-radius:12px;background:var(--blue-tile);color:var(--blue);display:flex;align-items:center;justify-content:center}
.icv-grid-ic svg{width:24px;height:24px}
.icv-grid-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.icv-grid-name{font-size:15.5px;font-weight:600;color:#0f172a;line-height:1.25}
.icv-grid-desc{font-size:13px;color:#64748b;line-height:1.45}
.icv-grid-arrow{position:absolute;top:16px;right:16px;color:#cbd5e1;opacity:0;transform:translateX(-4px);transition:.16s;font-size:16px}
.icv-grid-card:hover .icv-grid-arrow{opacity:1;transform:none;color:var(--blue)}
.icv-tools-empty{text-align:center;color:#94a3b8;padding:30px 0;font-size:15px}
@media(max-width:640px){.icv-tools-grid{grid-template-columns:1fr}.icv-tools-controls{flex-direction:column;align-items:stretch}.icv-tools-search{max-width:none}}

/* ============================================================
   Interactive stages: sign / organize / edit / crop / fill
   ============================================================ */
.icv-stage:empty{display:none}
.icv-stage{margin:16px 0}
.icv-stage-title{font-size:14px;font-weight:600;color:#334155;margin:0 0 10px}
.icv-crop-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.icv-crop-row label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:#475569;font-weight:500}
.icv-crop-row input{width:88px;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;font:inherit}

/* Fill form fields */
.icv-ff{display:flex;flex-direction:column;gap:4px;margin:0 0 12px}
.icv-ff label{font-size:12.5px;font-weight:600;color:#475569}
.icv-ff input[type=text],.icv-ff select{border:1px solid #e2e8f0;border-radius:8px;padding:9px 11px;font:inherit}
.icv-ff.icv-ff-check{flex-direction:row;align-items:center;gap:8px}

/* Signature */
.icv-sign-tabs{display:flex;gap:6px;margin:0 0 12px}
.icv-tab{appearance:none;border:1px solid #e2e8f0;background:#fff;padding:7px 14px;border-radius:8px;font:inherit;font-size:13.5px;cursor:pointer;color:#475569}
.icv-tab.on{background:var(--blue,#1d4ed8);border-color:var(--blue,#1d4ed8);color:#fff}
.icv-sign-pane{display:none}.icv-sign-pane.on{display:block}
.icv-sign-pad{border:1px dashed #cbd5e1;border-radius:12px;background:#fff;touch-action:none;width:100%;max-width:440px;height:170px;display:block;cursor:crosshair}
.icv-sign-type{border:1px solid #e2e8f0;border-radius:8px;padding:11px 13px;font-size:22px;font-family:"Segoe Script","Brush Script MT",cursive;width:100%;max-width:440px}
.icv-sign-opts{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 0}
.icv-sign-opts label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:#475569;font-weight:500}
.icv-sign-opts select,.icv-sign-opts input{border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;font:inherit}
.icv-mini{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer;color:#475569;margin-top:8px}
.icv-mini:hover{background:#e2e8f0}

/* Organize */
.icv-org-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
.icv-org-card{border:1px solid #e2e8f0;border-radius:10px;padding:8px;background:#fff;display:flex;flex-direction:column;gap:6px;position:relative}
.icv-org-card.deleted{opacity:.4;filter:grayscale(1)}
.icv-org-thumb{width:100%;border-radius:6px;display:block;background:#f8fafc}
.icv-org-num{position:absolute;top:6px;left:6px;background:rgba(15,23,42,.78);color:#fff;font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px}
.icv-org-bar{display:flex;justify-content:center;gap:2px;flex-wrap:wrap}
.icv-org-bar button{border:none;background:#f1f5f9;border-radius:6px;width:28px;height:26px;cursor:pointer;font-size:13px;color:#475569}
.icv-org-bar button:hover{background:#e2e8f0;color:var(--blue,#1d4ed8)}

/* Edit */
.icv-edit-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 12px;padding:8px;background:#f8fafc;border:1px solid #eef2f7;border-radius:10px}
.icv-etool{appearance:none;border:1px solid #e2e8f0;background:#fff;padding:6px 12px;border-radius:7px;font:inherit;font-size:13px;cursor:pointer;color:#475569}
.icv-etool.on{background:var(--blue,#1d4ed8);border-color:var(--blue,#1d4ed8);color:#fff}
.icv-ecolor{width:34px;height:32px;border:1px solid #e2e8f0;border-radius:7px;padding:2px;cursor:pointer;background:#fff}
.icv-edit-pages{display:flex;flex-direction:column;gap:16px;max-height:640px;overflow:auto;padding:4px;background:#f1f5f9;border-radius:10px}
.icv-edit-page{position:relative;margin:0 auto;box-shadow:0 2px 10px rgba(15,23,42,.12);background:#fff}
.icv-edit-base,.icv-edit-overlay{position:absolute;inset:0;width:100%;height:100%;display:block}
.icv-edit-base{position:relative}
.icv-edit-overlay{cursor:crosshair}

/* ============================================================
   Tool-page hero: icon tile + H1 + tagline + trust badges.
   Rendered by ilc_build_tool_block() before the .icv-tool widget.
   ============================================================ */
/* Full-bleed banner: breaks out of the .wrap container to span the whole
   viewport, with its own soft blue background. Inner content stays centered. */
.icv-tool-hero{position:relative;width:100vw;margin:-16px calc(50% - 50vw) 40px;padding:52px 24px 46px;background:linear-gradient(180deg,#eef3fe 0%,#f8faff 78%,#fff 100%);border-bottom:1px solid #e6edfb;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;overflow:hidden}
.icv-tool-hero::before{content:'';position:absolute;top:-140px;left:50%;transform:translateX(-50%);width:820px;height:340px;background:radial-gradient(closest-side,rgba(29,78,216,.10),transparent 72%);pointer-events:none}
.icv-tool-hero-ic{position:relative;flex:0 0 auto;width:64px;height:64px;border-radius:18px;background:#fff;color:var(--blue,#1d4ed8);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px -12px rgba(29,78,216,.35),0 0 0 1px #e2e9fa;margin:0 0 18px}
.icv-tool-hero-ic svg{width:32px;height:32px}
.icv-tool-hero-copy{position:relative;max-width:760px;display:flex;flex-direction:column;align-items:center}
.icv-tool-hero-copy h1{font-family:'Sora',sans-serif;font-size:clamp(30px,4.4vw,42px);line-height:1.12;letter-spacing:-.02em;color:var(--ink,#0f172a);margin:0 0 12px}
.icv-tool-hero-copy>p{font-size:17.5px;line-height:1.6;color:var(--slate,#475569);margin:0 0 20px;max-width:620px}
.icv-tool-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;list-style:none;margin:0;padding:0}
.icv-tool-badges li{font-family:'Sora',sans-serif;font-weight:500;font-size:13.5px;color:var(--slate,#475569);display:flex;align-items:center;gap:7px}
.icv-tool-badges li::before{content:'';width:16px;height:16px;flex:none;border-radius:50%;background:var(--blue,#1d4ed8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center/9px no-repeat}
@media(max-width:560px){
  .icv-tool-hero{padding:38px 18px 34px;margin-bottom:30px}
  .icv-tool-hero-copy>p{font-size:16px}
}

/* ============================================================
   Advanced tool features: file/result thumbnails, reorder ("move")
   controls, and the click-to-select page picker (Delete/Extract Pages).
   ============================================================ */

/* ---- thumbnail slot: shared by upload list rows AND result rows ---- */
.icv-thumb-slot{flex:0 0 auto;width:40px;height:40px;border-radius:8px;overflow:hidden;background:#f1f5f9;display:flex;align-items:center;justify-content:center}
.icv-thumb-slot img{width:100%;height:100%;object-fit:cover;display:block}
.icv-file-badge{font-family:'Sora',sans-serif;font-weight:700;font-size:10px;letter-spacing:.02em;padding:3px 6px;border-radius:5px;line-height:1;white-space:nowrap}

/* ---- upload list: reorder ("move") buttons ---- */
.icv-order-hint{margin:0 0 10px}
.icv-file-move{display:flex;flex-direction:column;gap:2px;flex:0 0 auto}
.icv-file-move button{appearance:none;border:1px solid var(--line,#e2e8f0);background:#fff;width:24px;height:19px;border-radius:5px;font-size:8px;line-height:1;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:.14s}
.icv-file-move button:hover:not(:disabled){border-color:var(--blue,#1d4ed8);color:var(--blue,#1d4ed8);background:var(--bg-tint,#eef3fe)}
.icv-file-move button:disabled{opacity:.3;cursor:not-allowed}
.icv-file-move button:focus-visible{outline:2px solid var(--blue,#1d4ed8);outline-offset:1px}

/* ---- click-to-select page picker (Delete Pages / Extract Pages) ---- */
.icv-pick-bar{display:flex;align-items:center;gap:10px;margin:0 0 14px;flex-wrap:wrap}
.icv-pick-count{font-size:13px;color:#64748b;font-family:'Sora',sans-serif;font-weight:500;margin-left:auto}
.icv-pick-card{cursor:pointer;transition:.15s;position:relative}
.icv-pick-card:hover{border-color:#c7d2fe}
.icv-pick-card:focus-visible{outline:2px solid var(--blue,#1d4ed8);outline-offset:2px}
.icv-pick-card.marked-del{border-color:#fca5a5;background:#fef2f2}
.icv-pick-card.marked-del .icv-org-thumb{opacity:.4}
.icv-pick-card.marked-keep{border-color:#93c5fd;background:#eff6ff}
.icv-pick-badge{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;font-weight:700;box-shadow:0 2px 6px rgba(15,23,42,.25)}
.icv-pick-card.marked-del .icv-pick-badge{background:#ef4444}
.icv-pick-card.marked-keep .icv-pick-badge{background:#2563eb}
@media(max-width:640px){
  .icv-pick-count{margin-left:0;width:100%}
}

/* ============================================================
   Edit PDF: movable text/image elements + Move tool
   ============================================================ */
.icv-edit-elements{position:absolute;inset:0;pointer-events:none;z-index:2}
.icv-edit-elements.move-mode{pointer-events:auto}
.icv-edit-el{position:absolute;cursor:default;touch-action:none}
.icv-edit-elements.move-mode .icv-edit-el{cursor:move}
.icv-edit-el-text{min-width:14px;min-height:1em;font-family:Arial,sans-serif;line-height:1.15;white-space:pre;outline:none;padding:1px 2px}
.icv-edit-el-text:empty::before{content:'Type\u2026';color:#94a3b8;font-style:italic}
.icv-edit-elements.move-mode .icv-edit-el-text{outline:1.5px dashed #94a3b8;outline-offset:2px}
.icv-edit-el-img{background-size:contain;background-repeat:no-repeat;background-position:center}
.icv-edit-elements.move-mode .icv-edit-el-img{outline:1.5px dashed #94a3b8;outline-offset:2px}
.icv-el-del{display:none;position:absolute;top:-11px;right:-11px;width:22px;height:22px;border-radius:50%;background:#ef4444;color:#fff;border:2px solid #fff;font-size:14px;line-height:1;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 6px rgba(15,23,42,.3);padding:0}
.icv-edit-elements.move-mode .icv-el-del{display:flex}

/* ============================================================
   Compress Image: proper before/after slider preview
   ============================================================ */
.icv-compare-card{border:1px solid var(--line,#e2e8f0);border-radius:12px;padding:14px;background:#fff;margin-bottom:12px}
.icv-compare{position:relative;width:100%;max-width:380px;aspect-ratio:4/3;border-radius:9px;overflow:hidden;background:#f1f5f9;margin:0 auto 12px;touch-action:none;user-select:none}
.icv-compare-after,.icv-compare-before{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.icv-compare-tag{position:absolute;top:8px;font-family:'Sora',sans-serif;font-weight:600;font-size:10.5px;color:#fff;background:rgba(15,23,42,.6);padding:3px 9px;border-radius:100px;letter-spacing:.02em;pointer-events:none;z-index:1}
.icv-compare-tag-before{left:8px}
.icv-compare-tag-after{right:8px}
.icv-compare-handle{position:absolute;top:0;bottom:0;width:3px;background:rgba(255,255,255,.95);transform:translateX(-50%);cursor:ew-resize;touch-action:none;z-index:2}
.icv-compare-handle-grip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(15,23,42,.32)}
.icv-compare-handle-grip svg{width:16px;height:16px;color:var(--blue,#1d4ed8)}
.icv-compare-handle:focus-visible .icv-compare-handle-grip{outline:2px solid var(--blue,#1d4ed8);outline-offset:2px}
.icv-compare-foot{display:flex;align-items:center;justify-content:space-between;gap:14px}
@media(max-width:480px){
  .icv-compare-foot{flex-direction:column;align-items:stretch}
  .icv-compare-foot .icv-dl{width:100%}
}

/* ============================================================
   Tool-page layout: full-width main + banner spacing.
   body.icv-tool-page is added in functions.php when the page
   contains an [icv_tool] shortcode.
   ============================================================ */
.icv-tool-page .ilc-main{padding-top:0}
.icv-tool-page .icv-tool-hero{margin-top:0}
/* Let the working area use the full container width on tool pages */
.icv-tool-page .wrap{max-width:1320px}
/* Give heavy interactive stages generous height */
.icv-tool-page .icv-edit-pages{max-height:78vh}
/* Breadcrumb sits inside the banner-colored strip? No — keep it minimal
   above the banner: tighter, small, unobtrusive. */
.icv-tool-page .ilc-breadcrumb{padding-top:14px;padding-bottom:10px}
/* 100vw full-bleed can add ~15px horizontal scroll from the scrollbar —
   clip it on tool pages. */
body.icv-tool-page{overflow-x:hidden}

/* ============================================================
   v2.2: progress bars, big result previews, lightbox, larger
   before/after comparison.
   ============================================================ */

/* ---- progress bar (upload + processing) ---- */
.icv-progress{max-width:760px;margin:14px auto;padding:14px 16px;border:1px solid var(--line,#e2e8f0);border-radius:11px;background:#fff}
.icv-progress-top{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 9px}
.icv-progress-label{font-family:'Sora',sans-serif;font-weight:600;font-size:14px;color:var(--ink,#0f172a)}
.icv-progress-pct{font-family:'Sora',sans-serif;font-weight:600;font-size:13px;color:var(--blue,#1d4ed8)}
.icv-progress-track{height:8px;border-radius:100px;background:#eef2f8;overflow:hidden}
.icv-progress-bar{height:100%;width:0;border-radius:100px;background:linear-gradient(90deg,#1d4ed8,#3b82f6);transition:width .18s ease}
.icv-progress.indet .icv-progress-bar{animation:icvIndet 1.1s ease-in-out infinite;transition:none}
@keyframes icvIndet{0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}

/* ---- results: block layout with a large inline preview ---- */
.icv-result{display:block;padding:0;overflow:hidden}
.icv-result-main{display:flex;align-items:center;gap:14px;padding:14px 16px}
.icv-result-big{border-top:1px solid var(--line,#e2e8f0);background:
  conic-gradient(#f1f5f9 25%,#fff 0 50%,#f1f5f9 0 75%,#fff 0) 0 0/22px 22px;padding:14px;text-align:center}
.icv-result-big img{max-width:100%;max-height:520px;border-radius:8px;box-shadow:0 4px 18px rgba(15,23,42,.14);cursor:zoom-in}
.icv-preview-btn{background:#fff;color:var(--blue,#1d4ed8);font-family:'Sora',sans-serif;font-weight:600;font-size:14px;padding:10px 18px;border-radius:8px;border:1.5px solid #c7d2fe;cursor:pointer;white-space:nowrap;transition:.15s}
.icv-preview-btn:hover{background:var(--bg-tint,#eef3fe)}
.icv-thumb-zoom{cursor:zoom-in}

/* ---- lightbox (full-screen preview for images + PDFs) ---- */
.icv-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(10,14,25,.86);display:flex;align-items:center;justify-content:center;padding:28px;backdrop-filter:blur(3px);animation:icvFade .16s ease}
@keyframes icvFade{from{opacity:0}to{opacity:1}}
.icv-lightbox-inner{position:relative;max-width:min(1100px,94vw);max-height:92vh;overflow:auto;border-radius:14px}
.icv-lightbox-close{position:fixed;top:18px;right:22px;width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.14);color:#fff;font-size:26px;line-height:1;cursor:pointer;z-index:2;transition:.15s}
.icv-lightbox-close:hover{background:rgba(255,255,255,.28)}
.icv-lightbox-img{display:block;max-width:min(1060px,92vw);max-height:88vh;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.5)}
.icv-lightbox-pdf{display:flex;flex-direction:column;gap:16px;align-items:center;padding:6px}
.icv-lightbox-page{max-width:min(900px,90vw);width:100%;height:auto;border-radius:8px;box-shadow:0 10px 34px rgba(0,0,0,.45);background:#fff}
.icv-lightbox-loading{color:#e2e8f0;font-family:'Sora',sans-serif;font-size:15px;padding:40px 20px}

/* ---- bigger before/after comparison (was 380px — too small) ---- */
.icv-compare-card{max-width:860px;margin-left:auto;margin-right:auto}
.icv-compare{max-width:780px;aspect-ratio:16/10}
@media(max-width:640px){.icv-compare{aspect-ratio:4/3}}

/* ============================================================
   v2.5 UI PRO — tools grid + tool page refinement.
   Icon tiles are color-coded per tool family (inline styles from
   ilc_tool_icon_style) — these rules handle shape and motion.
   ============================================================ */

/* Grid cards: calmer borders, colored icon pop on hover */
.icv-grid-ic{width:50px;height:50px;border-radius:13px;transition:transform .18s ease}
.icv-grid-ic svg{width:26px;height:26px}
.icv-grid-card{border-color:#e9edf4;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.icv-grid-card:hover{border-color:#d5def0;box-shadow:0 16px 34px -22px rgba(15,23,42,.28);transform:translateY(-3px)}
.icv-grid-card:hover .icv-grid-ic{transform:scale(1.07)}
.icv-grid-name{font-family:'Sora',sans-serif}

/* Category sections: numbered feel via count, tighter title */
.icv-cat-title{font-size:22px;letter-spacing:-.015em;display:flex;align-items:center;gap:10px}
.icv-cat-title::after{content:'';flex:1;height:1px;background:#e9edf4}

/* Tabs: proper segmented pills */
.icv-tools-tabs{gap:8px}
.icv-tools-tab{border:1px solid #e2e8f0;background:#fff;border-radius:100px;padding:9px 18px;font-family:'Sora',sans-serif;font-weight:500;font-size:14px;color:#475569;cursor:pointer;transition:.15s}
.icv-tools-tab:hover{border-color:#c7d2fe;color:var(--blue,#1d4ed8)}
.icv-tools-tab.on{background:var(--blue,#1d4ed8);border-color:var(--blue,#1d4ed8);color:#fff;box-shadow:0 6px 16px -8px rgba(29,78,216,.5)}
.icv-tools-search{border:1.5px solid #e2e8f0;border-radius:12px;padding:13px 18px;font-size:15.5px;transition:.15s}
.icv-tools-search:focus{outline:none;border-color:var(--blue,#1d4ed8);box-shadow:0 0 0 4px rgba(29,78,216,.1)}

/* Tool banner icon: inherits its family color from inline style; give it a
   soft ring in that color instead of the generic blue shadow */
.icv-tool-hero-ic{box-shadow:0 10px 26px -12px rgba(15,23,42,.25),0 0 0 1px rgba(15,23,42,.05)}

/* Drop zone: friendlier, clearer affordance */
.icv-drop{border-width:2px;transition:border-color .15s,background .15s}
.icv-drop:hover,.icv-drop.drag{border-color:var(--blue,#1d4ed8);background:#f6f9ff}
.icv-select{box-shadow:0 8px 20px -10px rgba(29,78,216,.5)}

/* Buttons: consistent press states */
.icv-run:active,.icv-select:active,.icv-dl:active{transform:translateY(1px)}
@media (prefers-reduced-motion: reduce){
  .icv-grid-card,.icv-grid-ic,.icv-post-tool{transition:none;transform:none!important}
}
