:root{
  --primary:#0f766e;--primary-dark:#115e59;--primary-soft:#dff6f2;--indigo:#4f46e5;
  --warm:#f59e0b;--text:#17211e;--muted:#61706b;--bg:#f7faf9;--card:#fff;
  --border:#dfe8e4;--error:#dc3545;--success:#16845b;--shadow:0 12px 34px rgba(20,52,45,.09);
  --radius:18px;--max:1220px;--header:72px;color-scheme:light;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;background:#fff}body{margin:0;font-family:Inter,Manrope,"Noto Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);line-height:1.55}body[dir=rtl]{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}.skip-link{position:absolute;left:-9999px;top:8px;z-index:999;background:#fff;padding:10px 14px;border-radius:9px;border:2px solid var(--primary)}.skip-link:focus{left:12px}.container{width:min(calc(100% - 32px),var(--max));margin:auto}.muted{color:var(--muted)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{position:sticky;top:0;z-index:50;height:var(--header);background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}.header-inner{height:100%;display:flex;align-items:center;gap:26px}.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:23px;letter-spacing:-.7px;white-space:nowrap}.brand img{width:40px;height:40px}.desktop-nav{display:flex;align-items:center;gap:4px;flex:1}.nav-link,.nav-button{border:0;background:transparent;padding:12px 14px;border-radius:11px;font-weight:750;color:#25312d;display:inline-flex;align-items:center;gap:7px}.nav-link:hover,.nav-button:hover,.nav-link:focus-visible,.nav-button:focus-visible{background:var(--primary-soft);outline:0}.header-actions{display:flex;align-items:center;gap:8px}.btn{border:1px solid transparent;border-radius:12px;padding:11px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.btn:active{transform:translateY(1px)}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 8px 18px rgba(15,118,110,.22)}.btn-primary:hover{background:var(--primary-dark)}.btn-secondary{background:#fff;border-color:var(--border);color:var(--text)}.btn-secondary:hover{border-color:#9db8af;background:#fbfefd}.btn-ghost{background:transparent;color:var(--text)}.icon-button{width:44px;height:44px;border:1px solid var(--border);border-radius:12px;background:#fff;display:grid;place-items:center}.icon-button:hover{background:var(--primary-soft)}.mobile-toggle{display:none}
.mega-wrap{position:relative}.mega-menu{position:absolute;top:52px;left:0;width:min(920px,calc(100vw - 40px));padding:24px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);display:none}.mega-menu.open{display:grid}.mega-menu.convert{grid-template-columns:1fr 1fr;gap:24px}.mega-menu.all{left:50%;transform:translateX(-46%);grid-template-columns:repeat(4,1fr);gap:20px;width:min(1100px,calc(100vw - 30px))}.mega-title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900;margin-bottom:9px}.mega-list{display:grid;gap:4px}.mega-item{padding:8px 9px;border-radius:9px;font-size:14px;font-weight:700;display:flex;gap:9px;align-items:center}.mega-item:hover{background:var(--primary-soft)}.tool-dot{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#e6f4f2;color:var(--primary);font-weight:900}.app-switcher{position:relative}.app-panel{position:absolute;right:0;top:52px;width:320px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:14px;display:none}.app-panel.open{display:block}.app-choice{display:flex;gap:12px;padding:13px;border-radius:13px;align-items:center}.app-choice:hover{background:#f2faf8}.app-choice img{width:42px;height:42px}.app-choice strong{display:block}.app-choice span{font-size:13px;color:var(--muted)}
.hero{padding:78px 0 42px;background:radial-gradient(circle at 15% 15%,#dff7f2 0,transparent 31%),radial-gradient(circle at 88% 20%,#e9e8ff 0,transparent 30%),linear-gradient(180deg,#fff,#f6faf9)}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:54px;align-items:center}.eyebrow{display:inline-flex;gap:8px;align-items:center;background:#e5f5f2;color:var(--primary-dark);border:1px solid #c6e8e1;border-radius:999px;padding:7px 12px;font-weight:800;font-size:13px}.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.02;letter-spacing:-3px;margin:22px 0 18px}.hero p{font-size:19px;color:var(--muted);max-width:690px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.trust-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px;color:#35504a;font-size:14px;font-weight:700}.trust-row span{display:flex;align-items:center;gap:7px}.hero-visual{background:#fff;border:1px solid var(--border);border-radius:30px;padding:24px;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero-visual img{width:100%;display:block}.hero-badge{position:absolute;right:18px;bottom:18px;background:#fff;border:1px solid var(--border);padding:10px 13px;border-radius:12px;font-weight:800;box-shadow:0 8px 22px rgba(0,0,0,.08)}
.section{padding:72px 0}.section-white{background:#fff}.section-soft{background:linear-gradient(145deg,#f0f8f6,#f5f3ff)}.section-head{text-align:center;max-width:820px;margin:0 auto 32px}.section-head h2{font-size:clamp(32px,4vw,50px);letter-spacing:-1.8px;line-height:1.1;margin:0 0 12px}.section-head p{margin:0;color:var(--muted);font-size:17px}.tool-controls{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:28px}.search-box{position:relative;min-width:min(100%,390px)}.search-box input{width:100%;height:48px;border:1px solid var(--border);border-radius:13px;padding:0 15px 0 43px;background:#fff;outline:0}.search-box input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(15,118,110,.12)}.search-box svg{position:absolute;left:14px;top:14px;color:var(--muted)}.chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.chip{border:1px solid var(--border);background:#fff;border-radius:999px;padding:9px 15px;font-weight:750}.chip.active,.chip:hover{background:var(--text);color:#fff;border-color:var(--text)}.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.tool-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:20px;min-height:190px;display:flex;flex-direction:column;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.tool-card:hover,.tool-card:focus-within{transform:translateY(-3px);border-color:#9ecfc6;box-shadow:0 12px 24px rgba(25,76,65,.09)}.tool-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#e8f6f3;color:var(--primary);font-weight:950;font-size:17px}.tool-card h3{margin:16px 0 7px;font-size:19px}.tool-card p{margin:0;color:var(--muted);font-size:14px;flex:1}.tool-card .arrow{margin-top:18px;font-size:20px;color:var(--primary);font-weight:900}.category-label{font-size:12px;color:var(--primary-dark);font-weight:900;text-transform:uppercase;letter-spacing:.07em}.show-more{display:flex;justify-content:center;margin-top:24px}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{background:#fff;border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:0 8px 22px rgba(24,64,55,.05)}.feature-art{height:210px;background:linear-gradient(135deg,#d7f3ed,#e8e7ff);display:grid;place-items:center}.feature-art img{width:85%;height:85%;object-fit:contain}.feature-copy{padding:24px}.feature-copy h3{margin:0 0 8px;font-size:22px}.feature-copy p{margin:0;color:var(--muted)}.promo{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:45px;background:linear-gradient(115deg,#e0f5f1,#fff7e5);border:1px solid #d5e9e4;border-radius:28px;padding:44px;overflow:hidden}.promo h2{font-size:clamp(31px,4vw,48px);margin:0 0 12px;line-height:1.08;letter-spacing:-1.5px}.promo p{color:var(--muted);font-size:17px}.promo img{width:100%;display:block}.security-grid,.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.info-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:24px}.info-card h3{margin:12px 0 7px}.info-card p{margin:0;color:var(--muted)}.info-icon{width:44px;height:44px;border-radius:12px;background:#e9f7f4;color:var(--primary);display:grid;place-items:center;font-weight:900}.faq-list{max-width:900px;margin:auto;border-top:1px solid var(--border)}.faq-item{border-bottom:1px solid var(--border)}.faq-question{width:100%;padding:20px 4px;border:0;background:transparent;display:flex;justify-content:space-between;gap:12px;text-align:left;font-weight:850}.faq-answer{display:none;padding:0 4px 20px;color:var(--muted)}.faq-item.open .faq-answer{display:block}.ad-slot{min-height:120px;border:1px dashed #bdccc7;border-radius:16px;background:#f9fbfa;display:none;place-items:center;color:var(--muted);font-size:13px;margin:28px 0}.ad-slot.enabled{display:grid}
.page-hero{padding:62px 0 38px;background:linear-gradient(180deg,#fff,#f3f8f7);text-align:center}.page-hero h1{font-size:clamp(38px,5vw,62px);letter-spacing:-2px;line-height:1.05;margin:0 0 12px}.page-hero p{color:var(--muted);font-size:18px;max-width:760px;margin:auto}.breadcrumbs{display:flex;gap:8px;justify-content:center;color:var(--muted);font-size:13px;margin-bottom:16px}.content-page{padding:52px 0 80px}.prose{max-width:860px;margin:auto;background:#fff;border:1px solid var(--border);border-radius:20px;padding:34px}.prose h2{margin-top:34px}.prose h2:first-child{margin-top:0}.prose p,.prose li{color:#475a54}.prose a{color:var(--primary);text-decoration:underline}.legal-note{background:#fff8df;border:1px solid #f3dfa1;border-radius:14px;padding:15px 17px;margin:18px 0}
.tool-page{padding:48px 0 78px;min-height:680px;background:linear-gradient(180deg,#f8fbfa,#f3f2fb)}.tool-title{text-align:center;max-width:800px;margin:0 auto 28px}.tool-title h1{font-size:clamp(36px,5vw,58px);letter-spacing:-2px;margin:0 0 10px}.tool-title p{color:var(--muted);font-size:18px}.processor{max-width:900px;margin:auto;background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:24px}.drop-zone{border:2px dashed #9dc8bf;border-radius:18px;min-height:240px;display:grid;place-items:center;text-align:center;padding:28px;background:#f8fdfc;transition:.18s}.drop-zone.dragover{border-color:var(--primary);background:#e9f8f5}.drop-zone h2{margin:12px 0 4px}.drop-zone p{margin:0;color:var(--muted)}.upload-icon{width:64px;height:64px;border-radius:18px;background:#dff5f0;color:var(--primary);display:grid;place-items:center;font-size:30px}.file-list{display:grid;gap:10px;margin:18px 0}.file-row{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:13px;padding:11px;background:#fff}.file-row.dragging{opacity:.45}.file-thumb{width:44px;height:44px;border-radius:10px;background:#edf5f3;display:grid;place-items:center;font-weight:900;color:var(--primary)}.file-meta{min-width:0;flex:1}.file-meta strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-meta small{color:var(--muted)}.file-actions{display:flex;gap:6px}.mini-btn{width:36px;height:36px;border:1px solid var(--border);border-radius:9px;background:#fff}.settings-panel{border-top:1px solid var(--border);padding-top:18px;margin-top:18px}.settings-panel h3{margin:0 0 14px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:850}.field input,.field select,.field textarea{width:100%;border:1px solid var(--border);border-radius:11px;padding:11px 12px;background:#fff;outline:0}.field textarea{min-height:95px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,118,110,.11)}.processor-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}.progress-card{margin-top:20px;border:1px solid var(--border);border-radius:14px;padding:16px;background:#fbfdfc}.progress-track{height:10px;background:#e4ece9;border-radius:999px;overflow:hidden}.progress-bar{height:100%;width:0;background:linear-gradient(90deg,var(--primary),var(--indigo));transition:width .25s}.status-row{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px;font-size:14px}.result-card{margin-top:20px;border:1px solid #a8d8c7;background:#effbf6;border-radius:16px;padding:20px;text-align:center}.error-card{margin-top:20px;border:1px solid #efb3b7;background:#fff2f3;border-radius:14px;padding:15px;color:#8d202a}.privacy-badge{display:flex;align-items:center;gap:8px;justify-content:center;margin-top:16px;color:#456059;font-size:13px}.preview{margin:16px 0;display:none}.preview.active{display:block}.preview iframe,.preview img{width:100%;max-height:430px;border:1px solid var(--border);border-radius:14px;background:#fff;object-fit:contain}.tool-help{max-width:900px;margin:32px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:16px}.help-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px}.help-card h3{margin-top:0}
.auth-shell{min-height:calc(100vh - var(--header));display:grid;grid-template-columns:1fr 1fr}.auth-art{background:linear-gradient(145deg,#dff5ef,#ebe9ff);display:grid;place-items:center;padding:50px}.auth-art img{max-width:540px;width:100%}.auth-card-wrap{display:grid;place-items:center;padding:32px}.auth-card{width:min(100%,430px);background:#fff;border:1px solid var(--border);border-radius:20px;padding:30px;box-shadow:var(--shadow)}.auth-card h1{margin-top:0}.auth-card .field{margin-bottom:14px}.auth-message{font-size:14px;margin-top:12px}.workspace-grid{display:grid;grid-template-columns:240px 1fr;gap:24px}.side-panel{background:#fff;border:1px solid var(--border);border-radius:17px;padding:16px;height:max-content}.side-panel a{display:block;padding:10px 12px;border-radius:10px;font-weight:750}.side-panel a:hover{background:var(--primary-soft)}.dashboard-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:22px}.jobs-table{width:100%;border-collapse:collapse}.jobs-table th,.jobs-table td{text-align:left;border-bottom:1px solid var(--border);padding:12px 8px;font-size:14px}.status-pill{display:inline-flex;padding:4px 9px;border-radius:999px;background:#e5f7ef;color:#126144;font-size:12px;font-weight:850}
.site-footer{background:#202826;color:#e8efec;padding:62px 0 26px}.footer-grid{display:grid;grid-template-columns:repeat(5,1fr) 1.25fr;gap:28px}.footer-col h3{font-size:14px;text-transform:uppercase;letter-spacing:.07em;margin:0 0 14px;color:#fff}.footer-col a{display:block;color:#c2ceca;padding:5px 0;font-size:14px}.footer-col a:hover{color:#fff}.footer-brand p{color:#bdc9c5;font-size:14px}.footer-bottom{border-top:1px solid #45504c;margin-top:42px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.language-select{background:#2c3633;color:#fff;border:1px solid #596660;border-radius:10px;padding:10px 12px}.socials{display:flex;gap:8px}.socials a{width:38px;height:38px;border:1px solid #4e5a56;border-radius:10px;display:grid;place-items:center}.copyright{color:#b5c2bd;font-size:13px}
.cookie-banner{position:fixed;z-index:100;left:18px;right:18px;bottom:18px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 18px 55px rgba(0,0,0,.18);padding:18px;display:none;align-items:center;gap:18px}.cookie-banner.show{display:flex}.cookie-copy{flex:1}.cookie-copy strong{display:block}.cookie-copy p{margin:5px 0 0;color:var(--muted);font-size:14px}.cookie-actions{display:flex;gap:8px;flex-wrap:wrap}.noscript{padding:16px;background:#fff1c7;color:#493800;text-align:center}
@media(max-width:1050px){.desktop-nav{display:none}.mobile-toggle{display:grid}.header-inner{gap:12px}.header-actions{margin-left:auto}.tool-grid{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:repeat(3,1fr)}.hero-grid{gap:30px}.workspace-grid{grid-template-columns:1fr}.side-panel{display:flex;overflow:auto}.side-panel a{white-space:nowrap}}
@media(max-width:780px){:root{--header:64px}.container{width:min(calc(100% - 22px),var(--max))}.header-actions .login-link,.header-actions .signup-link{display:none}.hero{padding:48px 0 30px}.hero-grid,.promo,.auth-shell{grid-template-columns:1fr}.hero h1{letter-spacing:-2px}.hero-visual{order:-1}.tool-grid{grid-template-columns:repeat(2,1fr)}.feature-grid,.security-grid,.info-grid,.tool-help{grid-template-columns:1fr}.promo{padding:28px}.footer-grid{grid-template-columns:repeat(2,1fr)}.auth-art{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.processor{padding:16px}.cookie-banner{align-items:flex-start;flex-direction:column}.cookie-actions{width:100%}.cookie-actions .btn{flex:1}.page-hero{padding-top:42px}.mega-menu{position:fixed;top:66px;left:10px!important;right:10px;width:auto!important;transform:none!important;max-height:70vh;overflow:auto}.mega-menu.all{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.tool-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.footer-bottom{align-items:flex-start;flex-direction:column}.hero-actions .btn{width:100%}.tool-card{min-height:auto}.feature-art{height:170px}.processor-actions .btn{width:100%}.file-actions{flex-direction:column}.drop-zone{min-height:210px}.app-panel{right:-48px;width:290px}.mega-menu.all{grid-template-columns:1fr}.brand span{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Freemium plans */
.plan-strip-section{padding:28px 0 18px;background:#fff}.plan-strip{display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px;background:linear-gradient(120deg,#e7f8f4,#f4f1ff 58%,#fff6dc);border:1px solid #cfe6df;border-radius:24px;padding:28px 32px;box-shadow:0 12px 30px rgba(20,52,45,.06)}.plan-strip h2{font-size:clamp(24px,3vw,38px);line-height:1.12;letter-spacing:-1.2px;margin:7px 0 6px}.plan-strip p{margin:0;color:var(--muted)}.plan-kicker{display:inline-flex;padding:6px 11px;border-radius:999px;background:#fff;border:1px solid #c9e4dd;color:var(--primary-dark);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.plan-strip-price{display:grid;grid-template-columns:auto auto;align-items:end;column-gap:5px;min-width:210px}.plan-strip-price>span{grid-column:1/-1;font-weight:800;color:#41564f}.plan-strip-price strong{font-size:46px;line-height:1;color:var(--primary);letter-spacing:-2px}.plan-strip-price small{padding-bottom:6px;color:var(--muted);font-weight:700}.plan-strip-price .btn{grid-column:1/-1;margin-top:12px}.tool-plan-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:-4px 0 18px;padding:12px 14px;border:1px solid #cfe6df;border-radius:13px;background:#f0faf7;color:#355049;font-size:14px}.tool-plan-bar a{color:var(--primary-dark);font-weight:900}.tool-plan-bar a:hover{text-decoration:underline}
.pricing-hero{padding:66px 0 48px;text-align:center;background:radial-gradient(circle at 12% 8%,#dff7f2 0,transparent 30%),radial-gradient(circle at 88% 15%,#eceaff 0,transparent 30%),#fff}.pricing-hero h1{font-size:clamp(42px,6vw,68px);line-height:1.04;letter-spacing:-2.8px;margin:19px 0 13px}.pricing-hero p{max-width:760px;margin:auto;color:var(--muted);font-size:18px}.pricing-section{padding:54px 0 84px;background:linear-gradient(180deg,#fff,#f3f8f7)}.pricing-grid{max-width:980px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:stretch}.pricing-card{position:relative;background:#fff;border:1px solid var(--border);border-radius:24px;padding:30px;box-shadow:0 12px 32px rgba(20,52,45,.07)}.pricing-card.premium{border-color:#9fd5ca;background:linear-gradient(160deg,#fff,#edf9f6)}.pricing-card.current{box-shadow:0 0 0 3px rgba(15,118,110,.14),0 16px 36px rgba(20,52,45,.1)}.recommended{position:absolute;right:22px;top:-13px;background:var(--primary);color:#fff;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:900}.plan-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.plan-label{text-transform:uppercase;letter-spacing:.07em;color:var(--primary-dark);font-size:12px;font-weight:900}.plan-top h2{font-size:48px;line-height:1;margin:10px 0 7px;letter-spacing:-2px}.plan-top h2 small{font-size:15px;letter-spacing:0;color:var(--muted);margin-left:6px}.plan-top p{margin:0;color:var(--muted)}.plan-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#e6f5f2;color:var(--primary);font-weight:950}.plan-icon.crown{background:#fff0bf;color:#946300}.plan-features{list-style:none;padding:0;margin:28px 0;display:grid;gap:12px;color:#344a43}.plan-features li{padding-bottom:10px;border-bottom:1px solid #edf2f0}.plan-button{width:100%}.plan-button:disabled{opacity:.65;cursor:not-allowed}.plan-note{min-height:42px;margin:12px 0 0;color:var(--muted);font-size:13px;text-align:center}.pricing-comparison{max-width:980px;margin:34px auto 0;background:#fff;border:1px solid var(--border);border-radius:20px;padding:24px;overflow:hidden}.pricing-comparison h2{margin:0 0 16px}.comparison-row{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:14px;padding:13px 10px;border-top:1px solid var(--border);align-items:center}.comparison-row.head{border-top:0;background:#f3f8f6;border-radius:10px;font-size:13px;text-transform:uppercase;letter-spacing:.05em}.comparison-row strong{text-align:center}
@media(max-width:780px){.plan-strip{grid-template-columns:1fr;padding:24px}.plan-strip-price{min-width:0}.pricing-grid{grid-template-columns:1fr}.comparison-row{grid-template-columns:1.25fr .75fr .75fr;font-size:13px}.pricing-card{padding:24px}}

/* Local-first processing status */
.processing-mode-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}.processing-mode-pill.local{background:#dff7ee;color:#126144;border:1px solid #a9ddc9}.processing-mode-pill.server{background:#eef0ff;color:#3730a3;border:1px solid #c9c9f5}.privacy-badge.local{color:#126144}.privacy-badge.server{color:#4b4b79}.privacy-badge span{max-width:760px;text-align:center}.error-card .processor-actions{margin-top:14px}.tool-plan-bar .processing-mode-pill{margin-left:auto}
@media(max-width:780px){.tool-plan-bar .processing-mode-pill{margin-left:0}.privacy-badge{align-items:flex-start;text-align:left}}

/* =========================================================
   BANYANPDF VISUAL FILE EDITOR
   Purple/white selected-file workspace inspired by familiar
   document editors, while keeping original BanyanPDF styling.
   ========================================================= */

.tool-editor-page {
  padding-top: 34px;
}

.tool-editor-page .editor-container {
  width: min(calc(100% - 28px), 1440px);
}

.tool-title.editor-active {
  display: none;
}

.editor-processor {
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ddd5e8;
  box-shadow: 0 18px 44px rgba(76, 29, 149, 0.13);
}

.editor-processor .tool-plan-bar {
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #e2dbea;
  border-radius: 0;
  background: #faf8fd;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  min-height: 610px;
}

.editor-stage {
  position: relative;
  min-width: 0;
  padding: 26px;
  background:
    radial-gradient(circle at 4% 8%, rgba(139, 92, 246, 0.08), transparent 28%),
    #f7f5fb;
}

.editor-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #ddd6e7;
}

.editor-processor:not(.has-files) .editor-shell {
  display: block;
  min-height: 0;
}

.editor-processor:not(.has-files) .editor-stage {
  padding: 24px;
}

.editor-processor:not(.has-files) .editor-sidebar {
  display: none;
}

.editor-processor.has-files .drop-zone {
  display: none;
}

.editor-processor .drop-zone {
  min-height: 360px;
  margin: 0;
  border-radius: 16px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.editor-toolbar.hidden {
  display: none;
}

.editor-file-summary {
  display: grid;
  gap: 3px;
}

.editor-file-summary strong {
  color: #362e40;
  font-size: 16px;
}

.editor-file-summary span {
  color: #77707f;
  font-size: 12px;
}

.add-files-button {
  min-height: 44px;
  padding-inline: 17px;
  gap: 7px;
  border-color: #b9a4dc;
  color: #5b21b6;
}

.add-files-button span {
  font-size: 21px;
  line-height: 1;
}

.preview {
  display: none !important;
}

.editor-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  margin: 0;
}

.file-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ddd7e5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(63, 33, 91, 0.07);
  cursor: grab;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.file-card:hover,
.file-card:focus-within {
  transform: translateY(-3px);
  border-color: #a78bfa;
  box-shadow: 0 13px 25px rgba(76, 29, 149, 0.13);
}

.file-card.dragging {
  opacity: .48;
  cursor: grabbing;
}

.file-card-preview {
  display: grid;
  height: 210px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f1f8;
  border: 1px solid #ece7f1;
}

.file-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.document-placeholder {
  display: grid;
  width: 94px;
  min-height: 125px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #6d28d9;
  background: #fff;
  border: 1px solid #ded7ea;
  box-shadow: 0 7px 18px rgba(76, 29, 149, 0.10);
}

.document-extension {
  padding: 4px 7px;
  color: #fff;
  background: #6d28d9;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.file-card-name {
  margin-top: 10px;
  overflow: hidden;
  color: #3e3747;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-size {
  margin-top: 3px;
  color: #847d8d;
  font-size: 11px;
  text-align: center;
}

.file-card-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.file-card-actions .mini-btn {
  width: 32px;
  height: 32px;
  color: #5b21b6;
  border-color: #ddd2ed;
  background: #f8f4ff;
}

.file-card-actions .mini-btn:hover {
  color: #fff;
  background: #6d28d9;
  border-color: #6d28d9;
}

.editor-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e0d9e8;
}

.editor-sidebar-header h2 {
  margin: 0;
  color: #342d3c;
  font-size: 25px;
  line-height: 1.2;
}

.editor-sidebar-header p {
  margin: 5px 0 0;
  color: #7d7685;
  font-size: 12px;
}

.editor-sidebar .settings-panel {
  flex: 1;
  max-height: 455px;
  margin: 0;
  padding: 18px 18px 24px;
  overflow: auto;
  border: 0;
}

.editor-sidebar .settings-panel h3 {
  margin-bottom: 15px;
  color: #3c3445;
  font-size: 16px;
}

.editor-sidebar .form-grid {
  grid-template-columns: 1fr;
  gap: 15px;
}

.editor-sidebar .field.full {
  grid-column: auto;
}

.visual-option-group > label,
.editor-sidebar .field > label {
  color: #3d3545;
  font-size: 13px;
  font-weight: 800;
}

.visual-option-grid {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.visual-option-grid.two-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-option-grid.three-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-option {
  position: relative;
  display: grid;
  min-height: 90px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px 7px;
  color: #777080;
  background: #f8f6fb;
  border: 1px solid #e0dbe6;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.visual-option:hover {
  border-color: #b8a1dc;
  background: #f5efff;
}

.visual-option:has(input:checked) {
  color: #6d28d9;
  background: #f4eeff;
  border-color: #7c3aed;
  box-shadow: inset 0 0 0 1px #7c3aed;
}

.visual-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.visual-option strong {
  font-size: 12px;
}

.page-shape {
  display: block;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.portrait-shape {
  width: 22px;
  height: 33px;
}

.landscape-shape {
  width: 34px;
  height: 23px;
}

.margin-shape {
  position: relative;
  display: block;
  width: 33px;
  height: 33px;
  border: 2px solid currentColor;
}

.margin-shape::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: .35;
}

.no-margin-shape::after {
  inset: 2px;
}

.small-margin-shape::after {
  inset: 6px;
}

.big-margin-shape::after {
  inset: 10px;
}

.toggle-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  cursor: pointer;
}

.toggle-field input {
  width: 20px;
  height: 20px;
  accent-color: #6d28d9;
}

.sidebar-actions {
  display: grid;
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid #e0d9e8;
  background: #fff;
}

.sidebar-actions .btn {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}

.editor-sidebar .progress-card,
.editor-sidebar #message-area {
  margin-inline: 18px;
}

.editor-processor > .privacy-badge {
  margin: 0;
  padding: 11px 18px;
  border-top: 1px solid #e1dae9;
  background: #fbf9fd;
}

@media (max-width: 980px) {
  .editor-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .editor-file-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .file-card-preview {
    height: 175px;
  }
}

@media (max-width: 780px) {
  .tool-title.editor-active {
    display: block;
  }

  .editor-shell {
    display: block;
  }

  .editor-sidebar {
    border-top: 1px solid #ddd6e7;
    border-left: 0;
  }

  .editor-sidebar .settings-panel {
    max-height: none;
  }

  .editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .add-files-button {
    width: 100%;
  }

  .editor-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .editor-stage {
    padding: 15px;
  }

  .editor-file-grid {
    grid-template-columns: 1fr;
  }

  .file-card-preview {
    height: 230px;
  }

  .visual-option-grid.three-options {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   BANYANPDF LIGHT PURPLE + WHITE MASTER THEME
   ========================================================= */
:root{
  --primary:#6d28d9;
  --primary-dark:#4c1d95;
  --primary-soft:#f2ebff;
  --indigo:#8b5cf6;
  --warm:#c084fc;
  --text:#302a38;
  --muted:#746d7d;
  --bg:#f8f6fc;
  --card:#ffffff;
  --border:#ded7e8;
  --success:#6d28d9;
  --shadow:0 14px 36px rgba(76,29,149,.11);
  color-scheme:light;
}
html,body,button,input,select,textarea{
  font-family:Arial,Helvetica,"Noto Sans","Noto Sans Devanagari","Segoe UI",sans-serif;
}
body{background:var(--bg);color:var(--text);letter-spacing:0}
body[dir="rtl"]{font-family:"Noto Sans Arabic",Arial,sans-serif}
h1,h2,h3,h4,.brand,.nav-link,.nav-button,.btn{font-family:Arial,Helvetica,"Noto Sans",sans-serif}
h1,h2{color:#2f2838;font-weight:800}
h3,h4{color:#37303f;font-weight:700}
.site-header{background:rgba(255,255,255,.98);border-color:#e1daec;box-shadow:0 3px 16px rgba(76,29,149,.05)}
.brand{color:#4c1d95;font-weight:800}
.nav-link,.nav-button{color:#342d3c;font-weight:700;border-radius:9px}
.nav-link:hover,.nav-button:hover,.nav-link:focus-visible,.nav-button:focus-visible{color:#5b21b6;background:#f2ebff}
.btn{border-radius:10px;font-weight:700}
.btn-primary{background:#6d28d9;color:#fff;box-shadow:0 8px 19px rgba(109,40,217,.24)}
.btn-primary:hover{background:#5b21b6}
.btn-secondary{color:#5b21b6;background:#fff;border-color:#d4c8e7}
.btn-secondary:hover{background:#f8f4ff;border-color:#9f7aea}
.icon-button{color:#5b21b6;background:#fff;border-color:#ded7ea}
.icon-button:hover{background:#f2ebff}
.mega-menu,.app-panel{background:#fff;border-color:#ded7ea;box-shadow:0 18px 44px rgba(76,29,149,.16)}
.mega-item:hover,.app-choice:hover{background:#f4effc}
.mega-title{color:#6d28d9}
.tool-dot{color:#fff;background:linear-gradient(145deg,#8b5cf6,#5b21b6);border-radius:8px}
.hero,.pricing-hero{background:radial-gradient(circle at 10% 15%,#e9ddff 0,transparent 32%),radial-gradient(circle at 90% 18%,#f4eaff 0,transparent 30%),linear-gradient(180deg,#fff 0%,#f8f4ff 100%)}
.eyebrow{color:#5b21b6;background:#f2ebff;border-color:#d8c7f1}
.hero h1,.page-hero h1{color:#2f2838}
.hero p,.page-hero p,.section-head p{color:#716a7c}
.hero-visual{background:#fff;border-color:#ded7ea;box-shadow:0 20px 48px rgba(76,29,149,.13)}
.section-soft{background:radial-gradient(circle at 5% 20%,#eee5ff 0,transparent 32%),radial-gradient(circle at 95% 75%,#f3e9ff 0,transparent 30%),#f8f5fc}
.section-white{background:#fff}
.search-box input{background:#fff;border-color:#dcd4e8;color:#302b36}
.search-box input:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.12)}
.chip{color:#534b5e;background:#fff;border-color:#dcd4e8;font-weight:700}
.chip.active,.chip:hover{color:#fff;background:#6d28d9;border-color:#6d28d9}
.tool-grid{gap:16px}
.tool-card{min-height:228px;padding:24px;background:#fff;border:1px solid #dcd5e7;border-radius:16px;box-shadow:0 4px 13px rgba(76,29,149,.025)}
.tool-card:hover,.tool-card:focus-within{transform:translateY(-4px);border-color:#a78bfa;box-shadow:0 15px 31px rgba(76,29,149,.12)}
.tool-icon{width:48px;height:48px;color:#fff;border-radius:10px;background:linear-gradient(145deg,#8b5cf6,#6d28d9);box-shadow:0 7px 15px rgba(109,40,217,.2)}
.tool-icon svg,.tool-dot svg{width:27px;height:27px}
.tool-dot svg{width:18px;height:18px}
.tool-icon-organize{background:linear-gradient(145deg,#a78bfa,#7c3aed)}
.tool-icon-optimize{background:linear-gradient(145deg,#8b5cf6,#5b21b6)}
.tool-icon-toPdf{background:linear-gradient(145deg,#c084fc,#9333ea)}
.tool-icon-fromPdf{background:linear-gradient(145deg,#818cf8,#6366f1)}
.tool-icon-edit{background:linear-gradient(145deg,#d8b4fe,#9333ea)}
.tool-icon-security{background:linear-gradient(145deg,#7c3aed,#4c1d95)}
.tool-icon-intelligence{background:linear-gradient(145deg,#e879f9,#a21caf)}
.tool-icon-convert{background:linear-gradient(145deg,#a78bfa,#6d28d9)}
.tool-icon-create{background:linear-gradient(145deg,#c084fc,#7e22ce)}
.tool-card h3{color:#37313e;font-size:20px;font-weight:700}
.tool-card p{color:#77717f;font-size:14.5px;line-height:1.48}
.tool-card .arrow{color:#6d28d9;background:#f2ebff}
.feature-card,.info-card,.help-card,.prose,.auth-card,.side-panel,.dashboard-card{background:#fff;border-color:#ded7ea;box-shadow:0 8px 22px rgba(76,29,149,.055)}
.feature-art,.auth-art{background:linear-gradient(145deg,#eee6ff,#faf7ff)}
.info-icon{color:#fff;background:linear-gradient(145deg,#8b5cf6,#5b21b6)}
.promo,.plan-strip{background:linear-gradient(125deg,#ede4ff 0%,#fff 52%,#f6efff 100%);border-color:#d9c9ed;box-shadow:0 14px 35px rgba(76,29,149,.08)}
.page-hero{background:linear-gradient(180deg,#fff,#f5efff)}
.tool-page{background:radial-gradient(circle at 8% 8%,#eadfff 0,transparent 30%),linear-gradient(180deg,#faf8ff,#f3edff)}
.processor{background:#fff;border-color:#d9d0e7;box-shadow:0 20px 50px rgba(76,29,149,.13)}
.drop-zone{color:#fff;background:#6d28d9;border-color:#d8c5ff}
.drop-zone:hover{background:#6423c9}.drop-zone.dragover{background:#5b21b6;border-color:#fff}
.drop-zone h2,.drop-zone p,.drop-zone small{color:#fff}.drop-zone p{opacity:.9}
.upload-icon{color:#fff;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22)}
.drop-zone .btn-primary{color:#5b21b6;background:#fff;box-shadow:0 9px 24px rgba(46,16,101,.24)}
.drop-zone .btn-primary:hover{color:#4c1d95;background:#f7f2ff}
.tool-plan-bar{color:#52475d;background:#f4effc;border-color:#d8c9eb}.tool-plan-bar a{color:#5b21b6}
.processing-mode-pill.local,.processing-mode-pill.server{color:#5b21b6;background:#fff;border-color:#cab6e8}
.file-row{background:#fff;border-color:#ded7ea}.file-thumb{color:#6d28d9;background:#f2ebff}
.field input,.field select,.field textarea{color:#332d3b;background:#fff;border-color:#dcd4e8}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.progress-card{background:#faf8ff;border-color:#dcd2e9}.progress-track{background:#e9e1f2}.progress-bar{background:linear-gradient(90deg,#8b5cf6,#5b21b6)}
.result-card{color:#4c1d95;background:#f3ecff;border-color:#cbb5eb}
.pricing-section{background:linear-gradient(180deg,#fff,#f4effb)}
.pricing-card{border-color:#ded7ea;box-shadow:0 13px 34px rgba(76,29,149,.08)}
.pricing-card.premium{background:linear-gradient(160deg,#fff,#f2eaff);border-color:#a78bfa}
.recommended,.plan-icon{background:#6d28d9}.plan-icon.crown{background:#9333ea}.plan-label{color:#6d28d9}
.faq-list,.faq-item{border-color:#ded7ea}.faq-question:hover{color:#6d28d9}
.site-footer{color:#f8f5ff;background:linear-gradient(135deg,#2e1065,#4c1d95)}
.footer-col h3{color:#fff}.footer-col a{color:#ddd2ee}.footer-col a:hover{color:#fff}.footer-brand p,.copyright{color:#d5c7e8}.footer-bottom{border-color:rgba(255,255,255,.2)}
.language-select{color:#fff;background:#4c1d95;border-color:#8b5cf6}
.cookie-banner{background:#fff;border-color:#d9d0e6;box-shadow:0 20px 60px rgba(46,16,101,.22)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(124,58,237,.33);outline-offset:2px}

/* =========================================================
   BANYANPDF LIGHT LAVENDER + GRAY FOOTER REFINEMENT
   ========================================================= */
:root{
  --page-lavender:#f5f3fb;
  --page-lavender-2:#eee9f8;
  --footer-gray:#292a33;
  --footer-gray-2:#343640;
}

html,body{color-scheme:light;background:#f7f6fb}
body{background:linear-gradient(180deg,#fff 0,#f7f6fb 55%,#f2eff8 100%)}
.site-header{background:#fff;border-bottom-color:#dedde6}
.section-soft,.tool-page,.pricing-section{background:linear-gradient(180deg,#f8f7fc,#f0edf8)}

/* Entire tool tile is one accessible link */
a.tool-card{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  position:relative;
}
a.tool-card:visited{color:inherit}
a.tool-card:hover h3,a.tool-card:focus-visible h3{color:#5b21b6}
a.tool-card[aria-disabled="true"]{opacity:.78}
.tool-card .category-label{color:#51465e}
.tool-card .status-label{color:#6d28d9;background:#f0e8ff;padding:3px 8px;border-radius:999px;width:max-content}
.tool-card .arrow{pointer-events:none}

/* Each tool gets its own deterministic accent colors from app.js */
.tool-icon,.tool-dot{
  color:#fff!important;
  background:linear-gradient(145deg,var(--tool-icon-a,#8b5cf6),var(--tool-icon-b,#6d28d9))!important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--tool-icon-b,#6d28d9) 27%,transparent)!important;
}
.tool-dot{width:31px;height:31px;border-radius:8px}
.tool-dot svg{width:18px;height:18px}

/* Compact initial upload state, similar in scale to familiar PDF tools */
.editor-processor:not(.has-files){
  max-width:100%;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.editor-processor:not(.has-files) .tool-plan-bar{max-width:920px;margin:0 auto 8px;background:#fff;border:1px solid #dedbe7;border-radius:12px}
.editor-processor:not(.has-files) .editor-shell{display:block;background:transparent;border:0;min-height:500px}
.editor-processor:not(.has-files) .editor-stage{min-height:500px;display:flex;align-items:flex-start;justify-content:center;padding-top:38px}
.editor-processor:not(.has-files) .editor-sidebar{display:none}
.editor-processor:not(.has-files) .drop-zone{
  width:min(100%,660px);
  min-height:220px;
  margin:0 auto;
  padding:26px;
  color:#302b36;
  background:transparent;
  border:0;
  box-shadow:none;
}
.editor-processor:not(.has-files) .drop-zone:hover{background:transparent}
.editor-processor:not(.has-files) .upload-icon{display:none}
.editor-processor:not(.has-files) .drop-zone h2{margin:0 0 12px}
.editor-processor:not(.has-files) .drop-zone .btn-primary{
  width:min(100%,330px);
  min-height:72px;
  padding:17px 28px;
  color:#fff;
  background:linear-gradient(135deg,#7c3aed,#5b21b6);
  border-radius:12px;
  font-size:21px;
  box-shadow:0 10px 24px rgba(91,33,182,.24);
}
.editor-processor:not(.has-files) .drop-zone .btn-primary:hover{color:#fff;background:linear-gradient(135deg,#6d28d9,#4c1d95)}
.editor-processor:not(.has-files) .drop-zone p,.editor-processor:not(.has-files) .drop-zone small{color:#686171}
.editor-processor:not(.has-files) .privacy-badge{max-width:760px;margin-inline:auto}

/* Once selected, preserve the full editor workspace */
.editor-processor.has-files{
  max-width:1180px;
  background:#fff;
  border:1px solid #dcd8e6;
  box-shadow:0 20px 50px rgba(55,42,78,.12);
}
.editor-processor.has-files .editor-shell{background:#f4f3f8}
.editor-processor.has-files .editor-sidebar{background:#fff}
.editor-processor.has-files .drop-zone{display:none}

/* Footer: neutral charcoal gray, not purple */
.site-footer{
  color:#f4f4f6!important;
  background:linear-gradient(180deg,var(--footer-gray),#24252c)!important;
  padding:62px 0 26px;
}
.footer-grid{grid-template-columns:repeat(5,minmax(130px,1fr)) minmax(205px,1.25fr);gap:30px}
.footer-col h3{color:#fff!important}
.footer-col a,.footer-brand p,.footer-brand a{color:#cfd0d7!important}
.footer-col a:hover,.footer-brand a:hover{color:#fff!important}
.footer-brand .brand span{color:#fff!important}
.footer-brand .brand img{width:43px;height:43px}
.footer-trust-copy{max-width:260px;line-height:1.55}
.footer-bottom{border-top:1px solid #4b4d58!important}
.language-select{color:#fff!important;background:var(--footer-gray-2)!important;border-color:#666873!important}
.copyright{color:#c6c7ce!important}
.socials{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.socials a{
  width:38px;height:38px;
  display:grid;place-items:center;
  color:#d7d8de!important;
  border:1px solid #5c5e69!important;
  border-radius:50%!important;
  background:#30313a;
  transition:transform .18s ease,color .18s ease,background .18s ease;
}
.socials a:hover{color:#fff!important;background:#444650;transform:translateY(-2px)}
.socials svg{width:19px;height:19px}

/* Top auth controls remain visible and premium-ready */
.header-actions .login-link{display:inline-flex}
.header-actions .signup-link{display:inline-flex;min-height:42px;align-items:center}

/* Google OAuth button */
.google-auth-btn{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#2f2937;
  background:#fff;
  border:1px solid #d7d4dd;
  box-shadow:0 3px 10px rgba(40,35,50,.06);
}
.google-auth-btn:hover{background:#f8f7fb;border-color:#b9b3c4}
.google-mark{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;font-weight:900;color:#4285f4;background:#fff;border:1px solid #e1e1e1}
.auth-divider{display:flex;align-items:center;gap:12px;color:#77717f;font-size:13px;margin:5px 0}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:#e1dee7;flex:1}

@media(max-width:1100px){.footer-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  .editor-processor:not(.has-files) .editor-stage{min-height:420px;padding-top:22px}
  .editor-processor:not(.has-files) .drop-zone .btn-primary{min-height:62px;font-size:18px}
}
@media(max-width:520px){
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{align-items:flex-start}
  .header-actions .login-link{display:none}
  .editor-processor:not(.has-files) .editor-stage{min-height:360px}
}


/* =========================================================
   BANYANPDF PRODUCT SWITCHER + BRAND SOCIALS + PHOTO PROMO
   ========================================================= */

/* Wide 9-dot product menu: only the two real Banyan products */
.app-panel{
  right:0;
  top:54px;
  width:min(760px,calc(100vw - 28px));
  padding:0;
  overflow:hidden;
  border:1px solid #ded9e7;
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(35,29,47,.20);
}
.app-panel.open{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(230px,.8fr)}
.app-panel-products{padding:26px;border-right:1px solid #e5e1eb}
.app-panel-title{margin-bottom:15px;color:#74707c;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.app-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.app-product-card{display:flex;align-items:center;gap:13px;min-width:0;padding:18px;border:1px solid #e2dce9;border-radius:15px;background:#faf9fc;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.app-product-card:hover{transform:translateY(-2px);border-color:#a78bfa;background:#fff;box-shadow:0 11px 24px rgba(76,29,149,.11)}
.app-product-logo{width:50px;height:50px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#f0eaff}
.app-product-card-img .app-product-logo{background:#f7eaff}
.app-product-logo img{width:39px;height:39px}
.app-product-card strong{display:block;color:#332d3b;font-size:16px}
.app-product-card>span:last-child>span{display:block;margin-top:4px;color:#77717f;font-size:12.5px;line-height:1.35}
.app-panel-links{display:grid;align-content:center;gap:4px;padding:22px;background:#fbfafc}
.app-panel-link{width:100%;display:flex;align-items:center;gap:11px;padding:11px 12px;border:0;border-radius:10px;color:#3d3745;background:transparent;text-align:left;font:inherit;font-weight:700;cursor:pointer}
.app-panel-link:hover,.app-panel-link:focus-visible{color:#5b21b6;background:#eee8f8}
.app-panel-link svg{width:18px;height:18px;flex:0 0 auto}

/* User-provided photography in the BanyanIMG promotion */
.promo{grid-template-columns:minmax(0,.9fr) minmax(340px,1.1fr);padding:0;min-height:360px;background:#fff;border-color:#ded9e7}
.promo>div{padding:44px}
.promo .promo-photo{width:100%;height:100%;min-height:360px;display:block;object-fit:cover;object-position:center;border-radius:0}

/* Recognizable social marks with their official brand colours on hover */
.socials svg{width:20px;height:20px;display:block;fill:currentColor}
.social-link.social-facebook:hover{background:#1877f2!important;border-color:#1877f2!important}
.social-link.social-instagram:hover{background:#d62976!important;border-color:#d62976!important}
.social-link.social-linkedin:hover{background:#0a66c2!important;border-color:#0a66c2!important}
.social-link.social-youtube:hover{background:#ff0000!important;border-color:#ff0000!important}
.social-link.social-tiktok:hover{background:#111!important;border-color:#25f4ee!important}
.social-link.social-x:hover{background:#000!important;border-color:#777!important}

@media(max-width:900px){
  .app-panel.open{grid-template-columns:1fr}
  .app-panel-products{border-right:0;border-bottom:1px solid #e5e1eb}
  .app-panel-links{grid-template-columns:1fr 1fr;align-content:start}
  .promo{grid-template-columns:1fr}
  .promo>div{padding:32px}
  .promo .promo-photo{min-height:280px;max-height:380px}
}
@media(max-width:560px){
  .app-panel{position:fixed;top:68px;left:10px;right:10px;width:auto;max-height:calc(100vh - 82px);overflow:auto}
  .app-product-grid,.app-panel-links{grid-template-columns:1fr}
  .app-panel-products{padding:18px}
  .app-panel-links{padding:16px}
  .promo>div{padding:26px}
  .promo .promo-photo{min-height:230px}
}

/* =========================================================
   BANYANPDF FUNCTIONAL SETTINGS FIX + HELVETICA-STYLE STACK
   Uses installed system fonts only; no proprietary font files.
   ========================================================= */
html,
body,
button,
input,
select,
textarea,
.btn,
.nav-link,
.nav-button,
.tool-card,
.editor-sidebar,
.settings-panel {
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif !important;
}

body[dir="rtl"],
body[dir="rtl"] button,
body[dir="rtl"] input,
body[dir="rtl"] select,
body[dir="rtl"] textarea {
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif !important;
}

/* Keep every control usable without relying only on :has(). */
.visual-option.selected,
.visual-option:has(input:checked) {
  color: #6d28d9;
  background: #f4eeff;
  border-color: #7c3aed;
  box-shadow: inset 0 0 0 1px #7c3aed, 0 5px 14px rgba(109, 40, 217, .10);
}

.visual-option:focus-within {
  outline: 3px solid rgba(124, 58, 237, .20);
  outline-offset: 2px;
}

.visual-option input {
  pointer-events: none;
}

.editor-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  align-self: start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 96px);
  overflow: hidden;
}

.editor-sidebar .settings-panel {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.sidebar-actions {
  position: relative;
  z-index: 3;
  box-shadow: 0 -8px 18px rgba(38, 30, 52, .06);
}

.sidebar-actions #process-button {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border-color: transparent;
}

.sidebar-actions #process-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
}

.sidebar-actions #process-button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

/* Live document preview proves that each option changes immediately. */
.image-pdf-live-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 13px 18px 14px;
  background: #faf9fd;
  border-bottom: 1px solid #e3deea;
}

.pdf-preview-sheet {
  --preview-pad: 2px;
  position: relative;
  width: 72px;
  aspect-ratio: 1 / 1.4142;
  padding: var(--preview-pad);
  overflow: hidden;
  background: #fff;
  border: 1px solid #cbc4d5;
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(39, 29, 54, .13);
  transition: width .18s ease, aspect-ratio .18s ease, padding .18s ease;
}

.pdf-preview-sheet.landscape {
  width: 104px;
  aspect-ratio: 1.4142 / 1;
}

.pdf-preview-sheet.size-letter:not(.landscape) { aspect-ratio: 8.5 / 11; }
.pdf-preview-sheet.size-letter.landscape { aspect-ratio: 11 / 8.5; }
.pdf-preview-sheet.size-auto { border-style: dashed; }
.pdf-preview-sheet.margin-none { --preview-pad: 2px; }
.pdf-preview-sheet.margin-small { --preview-pad: 8px; }
.pdf-preview-sheet.margin-big { --preview-pad: 15px; }

.pdf-preview-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #756d80;
  background: #ece9f1;
}

.pdf-preview-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pdf-preview-meta {
  max-width: 100%;
  color: #625a6e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.editor-sidebar .field input,
.editor-sidebar .field select,
.editor-sidebar .field textarea {
  min-height: 46px;
  color: #2f2936;
  background: #fff;
  border-color: #d8d0e3;
}

.editor-sidebar .field input:focus,
.editor-sidebar .field select:focus,
.editor-sidebar .field textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .13);
}

.toggle-field input {
  cursor: pointer;
}

@media (max-width: 980px) {
  .editor-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .editor-sidebar .settings-panel {
    max-height: none;
    overflow: visible;
  }
}
.field-help {
  display: block;
  margin-top: 5px;
  color: #746c7e;
  font-size: 11px;
  line-height: 1.4;
}
.toggle-field input:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.toggle-field:has(input:disabled) {
  opacity: .72;
}

/* =========================================================
   NAVIGATION DIRECTORY PATCH
   Makes every header, footer and product-switcher link a
   clearly clickable destination page.
   ========================================================= */
.app-panel{
  width:min(1120px,calc(100vw - 32px));
  max-height:calc(100vh - 88px);
  overflow:auto;
}
.app-panel.open{
  display:grid;
  grid-template-columns:minmax(310px,.9fr) minmax(0,2.1fr);
  align-items:stretch;
}
.app-panel-products{
  min-height:100%;
}
.app-panel-directory{
  display:grid;
  grid-template-columns:repeat(3,minmax(170px,1fr));
  gap:18px 22px;
  padding:24px;
  background:#fbfafc;
}
.app-link-group{
  min-width:0;
}
.app-link-group .app-panel-title{
  margin-bottom:8px;
}
.app-panel-link{
  min-height:42px;
  text-decoration:none;
}
.app-panel-link span{
  min-width:0;
  overflow-wrap:anywhere;
}
.app-product-card,
.app-panel-link,
.site-footer a,
.login-link,
.signup-link{
  cursor:pointer;
}
.auth-switch{
  margin:18px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}
.auth-switch a{
  color:var(--primary);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media(max-width:980px){
  .app-panel.open{grid-template-columns:1fr}
  .app-panel-products{border-right:0;border-bottom:1px solid #e5e1eb}
  .app-panel-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .app-panel-directory{grid-template-columns:1fr;padding:16px}
  .app-product-grid{grid-template-columns:1fr}
}

/* =========================================================
   COMPACT TOOL OPTIONS + VISIBLE MERGE CHECKBOX PATCH
   Keeps each tool's own settings together without an inner
   sidebar scrollbar on normal desktop screens.
   ========================================================= */

/* Wider options column and no nested settings scrollbar. */
.editor-shell{
  grid-template-columns:minmax(0,1fr) 430px;
  min-height:540px;
}
.editor-sidebar{
  position:static !important;
  display:flex !important;
  max-height:none !important;
  overflow:visible !important;
  align-self:stretch;
}
.editor-sidebar .settings-panel{
  flex:0 0 auto;
  min-height:0;
  max-height:none !important;
  overflow:visible !important;
  padding:12px 16px 10px;
}
.editor-sidebar .settings-panel h3{
  display:none;
}
.editor-sidebar .form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
}
.editor-sidebar .field.full{
  grid-column:1/-1;
}
.editor-sidebar-header{
  padding:12px 18px 10px;
}
.editor-sidebar-header h2{
  font-size:24px;
}
.editor-sidebar-header p{
  margin-top:2px;
}
.editor-sidebar .field>label,
.visual-option-group>label{
  font-size:12px;
}
.editor-sidebar .field input,
.editor-sidebar .field select,
.editor-sidebar .field textarea{
  min-height:38px;
  padding:8px 10px;
  border-radius:9px;
  font-size:14px;
}
.editor-sidebar .field textarea{
  min-height:76px;
}

/* Compact live preview row. */
.image-pdf-live-preview{
  grid-template-columns:auto minmax(0,1fr);
  justify-items:start;
  align-items:center;
  gap:12px;
  padding:8px 16px;
}
.pdf-preview-sheet{
  width:42px;
  border-radius:2px;
}
.pdf-preview-sheet.landscape{
  width:62px;
}
.pdf-preview-meta{
  text-align:left;
  font-size:10.5px;
  line-height:1.3;
}

/* Image-to-PDF option layout: all controls visible together. */
.settings-image-pdf .form-grid{
  grid-template-columns:1.25fr .95fr;
  align-items:start;
}
.settings-image-pdf .compact-orientation{
  grid-column:1;
}
.settings-image-pdf .compact-page-size{
  grid-column:2;
}
.settings-image-pdf .compact-margin{
  grid-column:1;
}
.settings-image-pdf .compact-dpi{
  grid-column:2;
  align-self:end;
}
.settings-image-pdf .compact-merge-toggle{
  grid-column:1/-1;
}
.visual-option-grid{
  gap:6px;
  margin-top:5px;
}
.visual-option{
  min-height:58px;
  gap:4px;
  padding:6px 5px;
  border-radius:9px;
}
.visual-option strong{
  font-size:10.5px;
  line-height:1.15;
  text-align:center;
}
.portrait-shape{
  width:15px;
  height:23px;
}
.landscape-shape{
  width:25px;
  height:16px;
}
.margin-shape{
  width:28px;
  height:23px;
}

/* Always-visible, branded checkbox with a real check icon. */
.compact-merge-toggle{
  margin-top:1px;
  padding:8px 10px;
  background:#f7f3ff;
  border:1px solid #d9c9f5;
  border-radius:10px;
}
.custom-checkbox-label{
  display:grid !important;
  grid-template-columns:24px minmax(0,1fr);
  align-items:start;
  gap:9px;
  margin:0;
  cursor:pointer;
}
.custom-checkbox-label input{
  position:absolute;
  width:1px !important;
  height:1px !important;
  opacity:0;
  pointer-events:none;
}
.custom-checkbox-box{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  color:transparent;
  background:#fff;
  border:2px solid #7c3aed;
  border-radius:6px;
  transition:.16s ease;
}
.custom-checkbox-box svg{
  width:14px;
  height:14px;
  stroke-width:3;
}
.custom-checkbox-label input:checked + .custom-checkbox-box{
  color:#fff;
  background:#7c3aed;
  box-shadow:0 4px 10px rgba(124,58,237,.22);
}
.custom-checkbox-label input:focus-visible + .custom-checkbox-box{
  outline:3px solid rgba(124,58,237,.22);
  outline-offset:2px;
}
.custom-checkbox-copy{
  display:grid;
  gap:2px;
  min-width:0;
}
.custom-checkbox-copy strong{
  color:#3b3246;
  font-size:12.5px;
  line-height:1.3;
}
.custom-checkbox-copy .field-help{
  margin:0;
  color:#746c7e;
  font-size:10.5px;
  line-height:1.3;
}

/* Keep process controls close to settings instead of below a scroll area. */
.sidebar-actions{
  margin-top:auto;
  padding:12px 16px 14px;
  background:#fff;
  border-top:1px solid #e6e0eb;
  box-shadow:none;
}
.sidebar-actions .btn{
  min-height:46px;
}
.editor-sidebar .progress-card,
.editor-sidebar #message-area{
  margin-left:16px;
  margin-right:16px;
}

/* Compact all other tool-specific settings in a two-column grid. */
.settings-document-tool .field.full{
  grid-column:1/-1;
}
.settings-document-tool .field:only-child{
  grid-column:1/-1;
}

@media(max-width:1100px){
  .editor-shell{grid-template-columns:minmax(0,1fr) 390px}
}
@media(max-width:980px){
  .editor-shell{grid-template-columns:1fr}
  .editor-sidebar{border-left:0;border-top:1px solid #ddd6e7}
  .editor-sidebar .form-grid,
  .settings-image-pdf .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-image-pdf .compact-orientation,
  .settings-image-pdf .compact-page-size,
  .settings-image-pdf .compact-margin,
  .settings-image-pdf .compact-dpi{grid-column:auto}
  .settings-image-pdf .compact-merge-toggle{grid-column:1/-1}
}
@media(max-width:620px){
  .editor-sidebar .form-grid,
  .settings-image-pdf .form-grid{grid-template-columns:1fr}
  .settings-image-pdf .compact-orientation,
  .settings-image-pdf .compact-page-size,
  .settings-image-pdf .compact-margin,
  .settings-image-pdf .compact-dpi,
  .settings-image-pdf .compact-merge-toggle{grid-column:1}
}
