:root{
  --red:#b31224;
  --red-dark:#760b16;
  --red-soft:#f5e4e6;
  --black:#121212;
  --black-2:#202020;
  --gray-950:#171717;
  --gray-800:#303030;
  --gray-650:#5e5e5e;
  --gray-500:#888;
  --gray-300:#cfcfcf;
  --gray-200:#e4e4e4;
  --gray-100:#f2f2f2;
  --white:#fff;
  --shadow:0 18px 45px rgba(18,18,18,.13);
  --radius:22px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{touch-action:manipulation;overscroll-behavior:none}
body{margin:0;min-height:100vh;background:
  radial-gradient(circle at 12% 0%,rgba(179,18,36,.11),transparent 33%),
  linear-gradient(145deg,#f5f5f5 0%,#e7e7e7 55%,#d3d3d3 100%);
  color:var(--black);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-user-select:none;user-select:none;overflow-x:hidden}
input,textarea{-webkit-user-select:text;user-select:text}
button,input,select{font:inherit}
button{cursor:pointer;touch-action:manipulation}
button:focus,input:focus,select:focus{outline:2px solid var(--red);outline-offset:2px}
button:focus:not(:focus-visible),input:focus:not(:focus-visible),select:focus:not(:focus-visible){outline:none}
button:hover{filter:none}
.hidden{display:none!important}
.app-header{position:sticky;top:0;z-index:40;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:max(12px,env(safe-area-inset-top)) 16px 12px;background:linear-gradient(105deg,#090909 0%,#222 55%,#5a0b13 100%);box-shadow:0 10px 30px rgba(0,0,0,.22)}
.brand-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#fff;padding:0;text-align:left}
.brand-mark{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#d11b30,#730813);font-size:22px;font-weight:950;box-shadow:0 8px 22px rgba(179,18,36,.42)}
.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:18px;line-height:1.05}.brand-copy small{margin-top:4px;color:#cfcfcf;font-size:11px;font-weight:700}
.header-actions{display:flex;align-items:center;gap:8px}.icon-action,.account-button{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:14px;min-height:43px}
.icon-action{width:43px;font-size:22px}.account-button{display:flex;align-items:center;gap:8px;padding:6px 11px;font-weight:850}.account-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--red);font-size:13px;font-weight:950}
.app-shell{max-width:1180px;margin:0 auto;padding:18px 14px calc(45px + env(safe-area-inset-bottom))}
.view{display:none}.active-view{display:block}
.hero-panel{padding:34px 28px;border-radius:28px;color:#fff;background:linear-gradient(125deg,#111 0%,#2c2c2c 55%,#8a0b19 100%);box-shadow:var(--shadow)}
.hero-kicker,.section-label{font-size:11px;letter-spacing:.16em;font-weight:950;color:var(--red)}.hero-kicker{color:#ff7888}.hero-panel h1{font-size:clamp(30px,7vw,54px);line-height:1.02;margin:8px 0 12px}.hero-panel p{max-width:690px;margin:0;color:#ddd;font-size:16px;line-height:1.55}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:16px}.choice-card{min-height:190px;border:0;border-radius:26px;padding:22px;display:grid;grid-template-columns:auto 1fr auto;gap:17px;align-items:center;text-align:left;color:#fff;box-shadow:var(--shadow);transition:transform .16s ease}.choice-card:active{transform:scale(.985)}.choice-jpg{background:linear-gradient(140deg,#b31224 0%,#670710 75%,#111 100%)}.choice-scan{background:linear-gradient(140deg,#111 0%,#3b3b3b 62%,#8d8d8d 100%)}.choice-icon{width:68px;height:68px;border-radius:20px;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.17);font-weight:950;font-size:18px}.choice-content{display:flex;flex-direction:column}.choice-content strong{font-size:25px}.choice-content small{margin-top:7px;color:#e2e2e2;line-height:1.45}.choice-arrow{font-size:30px}
.card-panel{background:rgba(255,255,255,.93);border:1px solid rgba(255,255,255,.82);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);backdrop-filter:blur(12px)}.saved-summary{margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:20px}.saved-summary h2,.tool-side h2{margin:5px 0 8px}.saved-summary p{margin:0;color:var(--gray-650);line-height:1.5;max-width:720px}
.view-head{display:flex;align-items:center;gap:13px;margin-bottom:14px}.view-head h1{margin:4px 0 0;font-size:30px}.back-button{width:46px;height:46px;border:0;border-radius:15px;background:linear-gradient(145deg,#242424,#000);color:#fff;font-size:23px}.tool-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:15px}.tool-side{align-self:start;position:sticky;top:84px}.no-padding{padding:0;overflow:hidden}
.primary-button,.secondary-button,.dark-button,.danger-button,.small-button{border:0;border-radius:14px;min-height:45px;padding:11px 15px;font-weight:900}.primary-button{background:linear-gradient(135deg,#c1152a,#750914);color:#fff}.dark-button{background:linear-gradient(135deg,#111,#444);color:#fff}.secondary-button,.small-button{background:linear-gradient(145deg,#f8f8f8,#dfdfdf);color:#252525;border:1px solid #cfcfcf}.danger-button{background:#f6e8ea;color:var(--red-dark);border:1px solid #e4b9bf}.full-button{width:100%;margin-top:9px}.primary-button:active,.dark-button:active,.secondary-button:active,.danger-button:active,.small-button:active{transform:scale(.985)}.primary-button:disabled,.dark-button:disabled,.secondary-button:disabled,.danger-button:disabled{opacity:.43;cursor:not-allowed;transform:none}
.drop-zone{min-height:210px;border:2px dashed #b7b7b7;border-radius:20px;background:linear-gradient(145deg,#fafafa,#ededed);display:grid;place-items:center;text-align:center;padding:24px}.drop-zone.drag{border-color:var(--red);background:#f8e8eb}.drop-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;margin:0 auto 10px;background:linear-gradient(145deg,#c3162a,#740912);color:#fff;font-size:30px}.drop-zone h2{margin:0 0 7px}.drop-zone p{margin:0 0 16px;color:var(--gray-650)}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0}.file-queue{display:grid;gap:9px}.queue-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border-radius:15px;background:linear-gradient(145deg,#fff,#ececec);border:1px solid #ddd}.queue-thumb{width:58px;height:68px;border-radius:9px;object-fit:cover;background:#ccc}.queue-info{min-width:0}.queue-name{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-meta{font-size:12px;color:var(--gray-650);margin-top:4px}.queue-actions{display:flex;gap:5px}.queue-action{min-width:35px;height:35px;border:1px solid #cfcfcf;border-radius:10px;background:#fff;color:#333;font-weight:900}.queue-action.pdf{color:var(--red);font-size:10px}.queue-action.delete{color:var(--red)}.empty-message{color:var(--gray-650);font-size:13px}.field-label{display:block;font-size:12px;font-weight:900;margin:13px 0 6px}.select-field{width:100%;border:1px solid #cfcfcf;background:#f5f5f5;border-radius:13px;padding:12px;color:#222}.quality-box{margin:12px 0;padding:12px;border-radius:15px;background:linear-gradient(145deg,#f8e9eb,#eee);border-left:4px solid var(--red);display:flex;flex-direction:column;gap:4px}.quality-box span{font-size:12px;color:var(--gray-650);line-height:1.45}
.scan-empty-state{min-height:64vh;display:grid;place-items:center;text-align:center;padding:28px}.scan-empty-icon{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,#b31224,#1a1a1a);color:#fff;font-size:38px;margin:0 auto 12px}.scan-empty-state h2{margin:0 0 8px}.scan-empty-state p{margin:0 0 16px;color:var(--gray-650)}.scan-stage{position:relative;min-height:58vh;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#070707,#333);touch-action:none}.scan-stage canvas{display:block;max-width:100%;max-height:72vh}.scan-badge,.scan-hint{position:absolute;z-index:5;background:rgba(0,0,0,.72);color:#fff;font-size:12px;font-weight:900}.scan-badge{top:11px;left:11px;border-left:4px solid #e11c34;padding:7px 10px;border-radius:8px}.scan-hint{bottom:11px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:8px 12px;border-radius:999px}.loading-overlay{position:absolute;inset:0;z-index:10;display:grid;place-items:center;background:rgba(0,0,0,.62)}.loading-box{display:flex;align-items:center;gap:10px;padding:13px 16px;border-radius:14px;background:#111;color:#fff;font-weight:900}.spinner{width:21px;height:21px;border:3px solid #666;border-top-color:#e11c34;border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.scan-toolbar{display:flex;gap:7px;flex-wrap:wrap;padding:10px;border-top:1px solid #ddd}.scan-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;padding:0 10px 12px}.scan-nav strong{text-align:center}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mode-button{border:1px solid #ccc;border-radius:12px;padding:10px 7px;background:linear-gradient(145deg,#fafafa,#e5e5e5);font-weight:900;color:#333}.mode-button.active{background:linear-gradient(145deg,#c1162a,#6c0812);color:#fff;border-color:#6c0812}.range-field{display:block;margin-top:13px}.range-field span{display:flex;justify-content:space-between;font-size:12px;font-weight:900;margin-bottom:7px}.range-field input{width:100%;accent-color:var(--red)}.scan-thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:14px;padding-bottom:4px}.scan-thumb{position:relative;min-width:82px;width:82px;height:108px;padding:0;border:2px solid transparent;border-radius:11px;overflow:hidden;background:#ccc}.scan-thumb.active{border-color:var(--red)}.scan-thumb img{width:100%;height:100%;object-fit:cover}.scan-thumb span{position:absolute;bottom:4px;left:4px;background:#111c;color:#fff;padding:2px 6px;border-radius:6px;font-size:11px;font-weight:900}.scan-thumb i{position:absolute;right:4px;top:4px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#eee;color:#7e4d00;font-style:normal;font-size:11px;font-weight:950}.scan-thumb i.done{background:var(--red);color:#fff}
.modal-layer{position:fixed;inset:0;z-index:80;padding:18px;display:grid;place-items:center;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}.modal-card{position:relative;width:min(720px,100%);max-height:90vh;overflow:auto;border-radius:24px;padding:22px;background:linear-gradient(145deg,#fff,#ececec);box-shadow:0 28px 80px rgba(0,0,0,.36)}.modal-close{position:absolute;right:11px;top:11px;width:38px;height:38px;border:0;border-radius:12px;background:#1c1c1c;color:#fff;font-size:24px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:15px 0}.auth-tab{border:1px solid #ccc;background:#eee;padding:10px;border-radius:12px;font-weight:900}.auth-tab.active{background:var(--red);color:#fff;border-color:var(--red)}.auth-form{display:grid;gap:12px}.auth-form label{display:grid;gap:6px;font-size:12px;font-weight:900}.auth-form input{width:100%;border:1px solid #c7c7c7;border-radius:12px;padding:12px;background:#fff}.modal-note{font-size:12px;color:var(--gray-650)}.account-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.user-files{display:grid;gap:9px;margin-top:14px}.user-file{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border-radius:14px;background:#fff;border:1px solid #d7d7d7}.user-file strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-file small{display:block;margin-top:4px;color:var(--gray-650)}.user-file-actions{display:flex;gap:6px}.user-file-actions a,.user-file-actions button{border:0;border-radius:9px;padding:8px 10px;font-weight:900;text-decoration:none}.user-file-actions a{background:#1c1c1c;color:#fff}.user-file-actions button{background:#f4e4e7;color:var(--red)}.toast{position:fixed;left:50%;top:76px;z-index:100;transform:translateX(-50%);max-width:90%;padding:11px 15px;border-radius:13px;background:#111;color:#fff;box-shadow:var(--shadow);font-size:13px;font-weight:900;text-align:center}
@media(max-width:880px){.choice-grid,.tool-grid{grid-template-columns:1fr}.tool-side{position:static}.saved-summary{align-items:flex-start;flex-direction:column}.hero-panel{padding:27px 20px}.choice-card{min-height:150px}.app-shell{padding-left:10px;padding-right:10px}}
@media(max-width:520px){.account-button #accountLabel{display:none}.choice-card{grid-template-columns:auto 1fr}.choice-arrow{display:none}.choice-content strong{font-size:22px}.choice-icon{width:58px;height:58px}.queue-item{grid-template-columns:50px minmax(0,1fr)}.queue-thumb{width:50px;height:60px}.queue-actions{grid-column:1/-1;justify-content:flex-end}.scan-hint{max-width:90%;white-space:normal;text-align:center}.small-button{padding:9px 10px}.app-header{padding-left:10px;padding-right:10px}}


/* ================================================================
   IPDF v3 — visual refresh
   ================================================================ */
:root{
  --red:#d71932;
  --red-bright:#ef263d;
  --red-dark:#760a16;
  --black:#111318;
  --black-2:#20242b;
  --metal:#69717c;
  --silver:#d9dde2;
  --paper:#f6f7f8;
}
html,body{background:#e8eaed}
body{
  background:
    radial-gradient(circle at 10% -5%,rgba(215,25,50,.22),transparent 34%),
    radial-gradient(circle at 100% 6%,rgba(18,20,25,.20),transparent 32%),
    linear-gradient(150deg,#f5f6f7 0%,#dfe2e5 58%,#cdd1d6 100%);
}
button,a{-webkit-tap-highlight-color:transparent}
button:hover,a:hover{filter:none!important}
button:active{box-shadow:none}
.app-header{
  background:linear-gradient(108deg,#08090b 0%,#252a31 57%,#8c0c1c 100%);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.brand-symbol-shell{
  width:48px;height:48px;border-radius:15px;display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(145deg,#fff,#d7dbe0);
  box-shadow:0 8px 22px rgba(0,0,0,.32),inset 0 0 0 1px rgba(255,255,255,.9);
}
.brand-symbol-image{width:42px;height:42px;object-fit:contain}
.brand-copy strong{font-size:21px;letter-spacing:-.03em}
.brand-copy strong span{color:#ef263d}
.brand-copy small{color:#c8cbd0}
.install-header-button{
  border:1px solid rgba(255,255,255,.20);background:linear-gradient(145deg,#dc1c35,#8b0b1a);
  color:#fff;border-radius:13px;min-height:43px;padding:8px 12px;font-weight:900
}
.account-button{background:rgba(255,255,255,.10)}
.account-avatar{background:linear-gradient(145deg,#fff,#cfd3d9);color:#c4142b}
.app-shell{padding-top:16px}

.hero-v3{
  min-height:380px;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);
  align-items:center;gap:30px;position:relative;overflow:hidden;padding:40px;
  background:
    linear-gradient(128deg,rgba(8,9,11,.97) 0%,rgba(34,38,45,.96) 52%,rgba(126,10,24,.96) 100%);
}
.hero-v3:before{
  content:"";position:absolute;width:430px;height:430px;border-radius:50%;
  right:-120px;top:-210px;border:70px solid rgba(255,255,255,.035)
}
.hero-copy-v3{position:relative;z-index:2}
.hero-copy-v3 h1{font-size:clamp(37px,6.5vw,68px);letter-spacing:-.055em;margin:10px 0 15px}
.hero-copy-v3 h1 span{color:#f32941}
.hero-copy-v3 p{font-size:16px;max-width:650px}
.hero-actions-v3{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.hero-login-button,.hero-register-button,.hero-install-button{
  border-radius:14px;min-height:48px;padding:11px 17px;font-weight:950
}
.hero-login-button{border:0;background:linear-gradient(145deg,#ee243d,#9b0c1f);color:#fff}
.hero-register-button{border:1px solid rgba(255,255,255,.30);background:#fff;color:#17191e}
.hero-install-button{border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.08);color:#fff}
.hero-logo-v3{
  position:relative;z-index:2;min-height:280px;border-radius:28px;display:grid;place-items:center;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(211,215,220,.94));
  box-shadow:0 26px 65px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,255,255,.95);
  overflow:hidden
}
.hero-logo-v3 img{width:min(90%,480px);height:auto;position:relative;z-index:2}
.hero-logo-glow{position:absolute;width:220px;height:220px;border-radius:50%;right:-30px;top:-60px;background:rgba(220,23,48,.19);filter:blur(2px)}
.home-title-row{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:25px 4px 12px}
.home-title-row h2{font-size:29px;margin:5px 0 0;letter-spacing:-.035em}
.version-pill{padding:7px 11px;border-radius:999px;background:#1d2026;color:#fff;font-size:11px;font-weight:900}

.choice-grid-v3{gap:18px;margin-top:0}
.choice-card-v3{
  position:relative;min-height:300px;display:flex;flex-direction:column;align-items:flex-start;
  padding:25px;border:1px solid rgba(255,255,255,.13);overflow:hidden
}
.choice-card-v3:before{
  content:"";position:absolute;width:240px;height:240px;border-radius:50%;
  right:-95px;top:-90px;border:44px solid rgba(255,255,255,.055)
}
.choice-card-v3 .choice-number{
  position:absolute;right:22px;top:17px;font-size:43px;font-weight:950;color:rgba(255,255,255,.13)
}
.choice-card-v3 .choice-icon{width:76px;height:76px;border-radius:22px;font-size:20px;position:relative}
.choice-card-v3 .choice-content{position:relative;margin-top:18px}
.choice-card-v3 .choice-content em{font-style:normal;font-size:10px;letter-spacing:.15em;font-weight:950;color:#ff9ba7;margin-bottom:8px}
.choice-card-v3 .choice-content strong{font-size:32px;letter-spacing:-.04em}
.choice-card-v3 .choice-content small{font-size:14px;max-width:480px}
.choice-card-v3 .choice-cta{position:relative;margin-top:auto;padding-top:22px;font-size:13px;font-weight:950}
.choice-card-v3 .choice-cta b{font-size:20px;margin-left:7px}
.choice-jpg{background:linear-gradient(140deg,#df1d37 0%,#8d091a 58%,#18191d 100%)}
.choice-scan{background:linear-gradient(140deg,#0c0d10 0%,#343941 58%,#8b929b 100%)}

.account-showcase{
  margin-top:18px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  gap:18px;align-items:center;padding:23px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(222,225,229,.96));
  border:1px solid rgba(255,255,255,.9)
}
.account-showcase-icon{
  width:64px;height:64px;border-radius:20px;display:grid;place-items:center;
  background:linear-gradient(145deg,#1a1d22,#4a5059);color:#fff;font-size:25px;font-weight:950;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.12)
}
.account-showcase-copy h2{margin:5px 0 7px;font-size:24px}
.account-showcase-copy p{margin:0;color:#5f6670;max-width:720px}
.account-showcase-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.logged-pill{padding:10px 12px;border-radius:12px;background:#e5e7ea;color:#343941;font-size:12px}
.feature-strip{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:18px;overflow:hidden;
  border-radius:19px;background:#737982;box-shadow:var(--shadow)
}
.feature-strip div{padding:17px;background:linear-gradient(145deg,#1a1d22,#343941);color:#fff}
.feature-strip strong{display:block;color:#ff6678;margin-bottom:5px}
.feature-strip span{font-size:12px;color:#d5d8dc}

.section-label{color:#c7152d}
.primary-button{background:linear-gradient(135deg,#ea203a,#8b091a)}
.dark-button{background:linear-gradient(135deg,#0d0e11,#454b54)}
.back-button{background:linear-gradient(145deg,#282c33,#090a0c)}
.card-panel{border-color:rgba(255,255,255,.92)}
.modal-card{background:linear-gradient(145deg,#fff,#dfe2e6)}
.auth-tab.active{background:linear-gradient(145deg,#df1c35,#8e0a1a)}
.mode-button.active{background:linear-gradient(145deg,#df1c35,#780816)}
.scan-badge{border-left-color:#ef263d}
.range-field input{accent-color:#d71932}

@media(max-width:900px){
  .hero-v3{grid-template-columns:1fr;padding:28px 22px}
  .hero-logo-v3{min-height:240px}
  .account-showcase{grid-template-columns:auto 1fr}
  .account-showcase-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:620px){
  .app-header{padding-left:9px;padding-right:9px}
  .brand-copy strong{font-size:18px}.brand-copy small{font-size:10px}
  .brand-symbol-shell{width:43px;height:43px}.brand-symbol-image{width:38px;height:38px}
  .install-header-button{display:none!important}
  .hero-v3{min-height:auto;padding:25px 17px;gap:20px}
  .hero-copy-v3 h1{font-size:39px}
  .hero-actions-v3{display:grid;grid-template-columns:1fr 1fr}
  .hero-install-button{grid-column:1/-1}
  .hero-logo-v3{min-height:190px;border-radius:21px}
  .hero-logo-v3 img{width:85%}
  .home-title-row h2{font-size:25px}
  .choice-card-v3{min-height:265px;padding:21px}
  .choice-card-v3 .choice-content strong{font-size:28px}
  .account-showcase{grid-template-columns:1fr;text-align:left}
  .account-showcase-actions{grid-column:auto;justify-content:stretch}
  .account-showcase-actions .primary-button,.account-showcase-actions .dark-button{flex:1}
  .feature-strip{grid-template-columns:1fr}
}


/* ================================================================
   IPDF v4 — compact root HTML + mobile appbar
   ================================================================ */
:root{
  --appbar-height:72px;
}
body{
  background:
    radial-gradient(circle at 0% 0%,rgba(215,25,50,.14),transparent 28%),
    linear-gradient(145deg,#f3f4f5,#d7dade);
}
.compact-header{
  min-height:66px;
  padding:max(8px,env(safe-area-inset-top)) 14px 8px;
  background:linear-gradient(105deg,#090a0d 0%,#282d35 67%,#8d0b1c 100%);
}
.compact-header .brand-symbol-shell{width:43px;height:43px;border-radius:13px}
.compact-header .brand-symbol-image{width:38px;height:38px}
.compact-header .brand-copy strong{font-size:19px}
.compact-header .brand-copy small{font-size:10px;margin-top:3px}
.compact-header .account-button{min-height:40px;padding:5px 10px}
.compact-header .account-avatar{width:27px;height:27px}
.app-shell{
  padding-top:12px;
  padding-bottom:calc(32px + env(safe-area-inset-bottom));
}
.home-intro{
  min-height:148px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 215px;
  align-items:center;
  gap:18px;
  padding:22px 24px;
  overflow:hidden;
  background:linear-gradient(125deg,#111318 0%,#343a43 68%,#8c0b1c 100%);
  color:#fff;
}
.home-intro-copy h1{
  margin:5px 0 7px;
  font-size:clamp(28px,4vw,42px);
  line-height:1;
  letter-spacing:-.04em;
}
.home-intro-copy p{margin:0;max-width:650px;color:#d9dce0}
.home-intro-logo{
  display:block;
  width:100%;
  max-height:112px;
  object-fit:contain;
  filter:drop-shadow(0 12px 20px rgba(0,0,0,.28));
}
.compact-choice-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px;
  margin-top:14px;
}
.compact-choice-card{
  min-height:228px!important;
  padding:20px!important;
  display:flex!important;
  flex-direction:column;
  align-items:stretch!important;
  gap:0!important;
  overflow:hidden;
}
.compact-choice-card .choice-top-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  position:relative;
  z-index:2;
}
.compact-choice-card .choice-icon{
  width:61px;height:61px;border-radius:18px;font-size:16px
}
.compact-choice-card .choice-number{
  position:static!important;
  font-size:37px!important;
  line-height:1;
  color:rgba(255,255,255,.18)!important;
}
.compact-choice-card .choice-content{
  margin-top:15px!important;
  position:relative;
  z-index:2;
}
.compact-choice-card .choice-content em{
  font-style:normal;
  font-size:10px;
  letter-spacing:.14em;
  font-weight:950;
  color:#ff9eaa;
}
.compact-choice-card .choice-content strong{
  display:block;
  margin-top:6px;
  font-size:29px!important;
  line-height:1;
}
.compact-choice-card .choice-content small{
  display:block;
  margin-top:9px;
  font-size:13px!important;
  line-height:1.4;
  color:#e3e5e8;
}
.compact-choice-card .choice-cta{
  margin-top:auto!important;
  padding-top:15px!important;
  font-size:13px;
  position:relative;
  z-index:2;
}
.compact-account-card{
  margin-top:14px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:18px 20px;
}
.compact-account-copy h2{margin:5px 0 5px;font-size:21px}
.compact-account-copy p{margin:0;color:#656c75;font-size:13px}
.mobile-appbar{display:none}

@media(max-width:760px){
  body{padding-bottom:calc(var(--appbar-height) + env(safe-area-inset-bottom))}
  .compact-header{
    position:sticky;
    min-height:58px;
    padding:max(6px,env(safe-area-inset-top)) 9px 6px;
  }
  .compact-header .brand-symbol-shell{width:39px;height:39px}
  .compact-header .brand-symbol-image{width:35px;height:35px}
  .compact-header .brand-copy strong{font-size:17px}
  .compact-header .brand-copy small{display:none}
  .compact-header .header-login-button{display:flex!important}
  .compact-header .header-login-button #accountLabel{display:none}
  .compact-header .install-header-button{display:none!important}
  .app-shell{
    padding:9px 8px calc(var(--appbar-height) + 18px + env(safe-area-inset-bottom));
  }
  .home-intro{
    min-height:104px;
    grid-template-columns:minmax(0,1fr) 105px;
    padding:15px;
    border-radius:18px;
    gap:8px;
  }
  .home-intro-copy h1{font-size:25px}
  .home-intro-copy p{font-size:12px;line-height:1.35}
  .home-intro-logo{max-height:75px}
  .compact-choice-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:9px;
  }
  .compact-choice-card{
    min-height:205px!important;
    border-radius:18px!important;
    padding:13px!important;
  }
  .compact-choice-card:before{width:150px!important;height:150px!important}
  .compact-choice-card .choice-icon{
    width:48px;height:48px;border-radius:14px;font-size:13px
  }
  .compact-choice-card .choice-number{font-size:27px!important}
  .compact-choice-card .choice-content{margin-top:12px!important}
  .compact-choice-card .choice-content em{font-size:8px}
  .compact-choice-card .choice-content strong{
    font-size:22px!important;
    line-height:1.03;
  }
  .compact-choice-card .choice-content small{
    margin-top:7px;
    font-size:11px!important;
    line-height:1.32;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .compact-choice-card .choice-cta{
    padding-top:10px!important;
    font-size:11px;
  }
  .compact-account-card{
    grid-template-columns:1fr;
    margin-top:9px;
    padding:14px;
    border-radius:18px;
  }
  .compact-account-copy h2{font-size:18px}
  .compact-account-copy p{font-size:12px}
  .compact-account-card .account-showcase-actions{justify-content:stretch}
  .compact-account-card .account-showcase-actions button{flex:1}
  .view-head{
    margin-bottom:9px;
    padding:0 2px;
  }
  .view-head h1{font-size:25px}
  .tool-grid{gap:9px}
  .card-panel{border-radius:17px;padding:13px}
  .mobile-appbar{
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:90;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    min-height:var(--appbar-height);
    padding:6px 6px calc(6px + env(safe-area-inset-bottom));
    background:linear-gradient(180deg,rgba(24,27,32,.97),rgba(5,6,8,.99));
    border-top:1px solid rgba(255,255,255,.13);
    box-shadow:0 -12px 28px rgba(0,0,0,.28);
    backdrop-filter:blur(15px);
  }
  .mobile-nav-item{
    border:0;
    border-radius:14px;
    background:transparent;
    color:#aeb3ba;
    min-width:0;
    padding:5px 3px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    font-size:10px;
    font-weight:900;
  }
  .mobile-nav-item.active{
    color:#fff;
    background:linear-gradient(145deg,#e3213a,#810918);
  }
  .mobile-nav-icon{
    min-width:27px;
    height:27px;
    padding:0 5px;
    border-radius:9px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.11);
    font-size:12px;
    font-weight:950;
  }
  .mobile-nav-item.active .mobile-nav-icon{background:rgba(255,255,255,.18)}
  .mobile-user-icon{border-radius:50%;padding:0;width:27px}
  .modal-layer{padding-bottom:calc(var(--appbar-height) + env(safe-area-inset-bottom))}
}


/* iPDF v6 — ștergere poze și resetare scanare */
.danger-small-button{
  border-color:#d5a1a8!important;
  color:#b31228!important;
  background:linear-gradient(145deg,#fff5f6,#ead9dc)!important;
}
.danger-small-button:active{
  background:linear-gradient(145deg,#e11c34,#850918)!important;
  color:#fff!important;
}
.scan-thumb-wrap{
  position:relative;
  min-width:82px;
  width:82px;
  height:108px;
  flex:0 0 82px;
}
.scan-thumb-wrap .scan-thumb{
  width:82px;
  height:108px;
  min-width:82px;
}
.scan-thumb-delete{
  position:absolute;
  z-index:4;
  top:-6px;
  right:-6px;
  width:27px;
  height:27px;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#ed263f,#870916);
  color:#fff;
  font-size:18px;
  line-height:1;
  font-weight:950;
  box-shadow:0 5px 12px rgba(0,0,0,.28);
  -webkit-tap-highlight-color:transparent;
}
.scan-thumb-delete:active{
  transform:scale(.94);
}
@media(max-width:760px){
  .scan-toolbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .scan-toolbar .small-button{
    width:100%;
    min-width:0;
  }
  .scan-toolbar #scanAddButton{
    grid-column:1/-1;
  }
}


/* ================================================================
   IPDF v7 — appbar SVG, meniu instrumente, cont ca pagină
   ================================================================ */
.graphic-choice-icon svg{
  width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round
}
.choice-cta b{display:inline-grid;place-items:center;width:22px;height:22px}
.choice-cta b svg{
  width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round
}
.pdf-tools-menu{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:36px;
  padding:28px 34px;
  background:linear-gradient(145deg,#ffffff,#f2f3f5);
}
.pdf-tools-column h2{
  margin:0 0 17px;
  color:#6c7079;
  font-size:18px;
  letter-spacing:.015em;
}
.pdf-tools-list{display:grid;gap:7px}
.pdf-tool-row{
  width:100%;
  min-height:52px;
  border:0;
  border-radius:13px;
  padding:7px 9px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  background:transparent;
  text-align:left;
  color:#181a1f;
  -webkit-tap-highlight-color:transparent;
}
.pdf-tool-row:active{
  background:#e8e9ec;
  transform:scale(.99);
}
.pdf-tool-icon{
  position:relative;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
}
.pdf-tool-icon:before{
  content:"";
  position:absolute;
  left:2px;top:1px;
  width:27px;height:27px;
  border-radius:5px;
  background:color-mix(in srgb,var(--tool-color),white 22%);
}
.pdf-tool-icon b{
  position:relative;
  z-index:2;
  color:#fff;
  font-size:13px;
  font-weight:950;
}
.pdf-tool-icon i{
  position:absolute;
  right:1px;
  bottom:1px;
  width:20px;height:20px;
  border-radius:4px;
  display:grid;
  place-items:center;
  background:var(--tool-color);
  color:#fff;
  font-style:normal;
  font-size:13px;
  font-weight:950;
}
.pdf-tool-name{
  font-size:17px;
  font-weight:900;
  white-space:nowrap;
}
.pdf-tool-row[data-open-view="jpgView"] .pdf-tool-name{color:#e22538}
.tool-coming{
  padding:4px 7px;
  border-radius:999px;
  background:#e7e8eb;
  color:#777d86;
  font-size:9px;
  font-weight:900;
  white-space:nowrap
}
.svg-nav-icon svg{
  width:23px;height:23px;
  fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round
}
.mobile-nav-item.active{
  background:linear-gradient(145deg,#e6223b,#820918)!important;
  color:#fff!important
}
.mobile-nav-item.account-active{
  background:linear-gradient(145deg,#e6223b,#820918)!important;
  color:#fff!important
}
.mobile-nav-item.account-active .mobile-nav-icon{
  background:rgba(255,255,255,.18)
}
.account-page{
  display:grid;
  gap:20px;
  padding:24px
}
.account-page-hero{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:18px;
  align-items:center
}
.account-page-icon{
  width:74px;height:74px;
  border-radius:22px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#1a1d22,#4a5059);
  color:#fff
}
.account-page-icon svg{
  width:38px;height:38px;
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round
}
.account-page h2{margin:5px 0 7px;font-size:25px}
.account-page p{margin:0;color:#656b74}
.account-page-actions{
  display:flex;gap:9px;flex-wrap:wrap
}
.account-page-header{
  display:flex;justify-content:space-between;align-items:center;gap:16px
}
.account-user-files{margin-top:0}
.auth-only-modal .account-head{display:none}

@media(max-width:760px){
  .pdf-tools-menu{
    grid-template-columns:1fr;
    gap:24px;
    padding:20px 16px
  }
  .pdf-tools-column h2{font-size:15px}
  .pdf-tool-row{
    grid-template-columns:42px minmax(0,1fr) auto;
    min-height:48px;
    padding:5px 4px
  }
  .pdf-tool-icon{width:38px;height:38px}
  .pdf-tool-icon:before{width:25px;height:25px}
  .pdf-tool-name{font-size:15px}
  .tool-coming{font-size:8px;padding:3px 6px}
  .account-page{padding:17px}
  .account-page-hero{grid-template-columns:1fr}
  .account-page-icon{width:62px;height:62px}
  .account-page h2{font-size:21px}
  .account-page-header{align-items:flex-start;flex-direction:column}
}


/* ================================================================
   IPDF v9 — accordions, converters, avatar
   ================================================================ */
.pdf-tools-accordion{margin-top:14px;padding:0;overflow:hidden;background:linear-gradient(145deg,#fff,#eceef1)}
.tools-accordion-item+.tools-accordion-item{border-top:1px solid #d6d9de}
.tools-accordion-button{width:100%;border:0;background:linear-gradient(145deg,#fff,#e6e8eb);padding:18px 20px;display:flex;justify-content:space-between;align-items:center;text-align:left;color:#202329;-webkit-tap-highlight-color:transparent}
.tools-accordion-item.open .tools-accordion-button{background:linear-gradient(120deg,#17191e,#343941 72%,#8a0a1b);color:#fff}
.tools-accordion-title{display:flex;align-items:center;gap:13px}.tools-accordion-title>span:last-child{display:grid;gap:3px}.tools-accordion-title strong{font-size:17px}.tools-accordion-title small{font-size:11px;color:#707680}.tools-accordion-item.open .tools-accordion-title small{color:#d6d9de}
.tools-accordion-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#e7213a,#830918);color:#fff;font-size:20px;font-weight:950}
.tools-accordion-chevron{font-size:25px;transition:transform .22s}.tools-accordion-item.open .tools-accordion-chevron{transform:rotate(180deg)}
.tools-accordion-content{max-height:0;overflow:hidden;transition:max-height .28s ease}.tools-accordion-item.open .tools-accordion-content{max-height:520px}.tools-accordion-content .pdf-tools-list{padding:10px 16px 17px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px}
.pdf-tool-row{width:100%;min-height:52px;border:0;border-radius:13px;padding:7px 9px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;background:transparent;text-align:left;color:#181a1f}.pdf-tool-row:active{background:#dddfe3}.pdf-tool-icon{position:relative;width:42px;height:42px;display:grid;place-items:center}.pdf-tool-icon:before{content:"";position:absolute;left:2px;top:1px;width:27px;height:27px;border-radius:5px;background:color-mix(in srgb,var(--tool-color),white 22%)}.pdf-tool-icon b{position:relative;z-index:2;color:#fff;font-size:12px}.pdf-tool-icon i{position:absolute;right:1px;bottom:1px;width:20px;height:20px;border-radius:4px;display:grid;place-items:center;background:var(--tool-color);color:#fff;font-style:normal}.pdf-tool-name{font-size:16px;font-weight:900}
.converter-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.converter-main-card{display:grid;gap:11px}.converter-tool-badge{width:70px;height:70px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,#e8223b,#7f0817);color:#fff;font-weight:950;font-size:18px}.converter-main-card h2{font-size:25px;margin:3px 0 0}.converter-main-card p{margin:0;color:#676e77}.converter-drop-zone{min-height:190px;border:2px dashed #adb2ba;border-radius:18px;background:linear-gradient(145deg,#f8f9fa,#e5e7ea);display:grid;place-items:center;align-content:center;gap:7px;color:#22252a}.converter-drop-zone.drag{border-color:#d71932;background:#fff0f2}.converter-drop-icon{width:52px;height:52px;border-radius:17px;background:linear-gradient(145deg,#24282f,#08090b);color:#fff;display:grid;place-items:center;font-size:27px}.converter-drop-zone strong{font-size:18px}.converter-drop-zone small{color:#6d747d}.converter-selected{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px;border-radius:13px;background:#eef0f2}.converter-selected div{display:grid;gap:3px;min-width:0}.converter-selected strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.converter-selected small{color:#6c727b}.converter-progress{display:grid;gap:7px}.converter-progress-bar{height:9px;border-radius:999px;background:#dddfe3;overflow:hidden}.converter-progress-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e8233b,#7f0817);transition:width .2s}.converter-progress span{font-size:12px;color:#646b74}.converter-info-card{align-self:start}.converter-feature{display:flex;gap:10px;margin-top:13px;padding:10px;border-radius:12px;background:#eef0f2}.converter-feature>b{color:#ce152d}.converter-feature span{display:grid;gap:2px}.converter-feature small{color:#707780}
.profile-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px;border-radius:18px;background:linear-gradient(120deg,#15171b,#353b44 72%,#850a19);color:#fff}.profile-avatar-button{position:relative;width:92px;height:92px;border:3px solid rgba(255,255,255,.76);border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#fff,#bdc2c9);display:grid;place-items:center;color:#bd1128;font-size:32px;font-weight:950}.profile-avatar-button img{width:100%;height:100%;object-fit:cover}.profile-avatar-button i{position:absolute;right:3px;bottom:3px;width:26px;height:26px;border-radius:50%;background:#d71932;color:#fff;display:grid;place-items:center;font-style:normal;font-size:13px}.profile-copy h2{margin:4px 0 4px;font-size:25px}.profile-copy p{margin:0;color:#d5d8dc;font-size:12px}.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.profile-actions .secondary-button{background:#fff;color:#202329}.profile-logout{align-self:start}
.header-avatar-image{width:100%;height:100%;object-fit:cover;border-radius:50%}
@media(max-width:760px){.tools-accordion-content .pdf-tools-list{grid-template-columns:1fr;padding:8px 10px 14px}.tools-accordion-button{padding:15px 13px}.tools-accordion-title strong{font-size:15px}.converter-layout{grid-template-columns:1fr}.profile-card{grid-template-columns:auto 1fr}.profile-avatar-button{width:72px;height:72px}.profile-logout{grid-column:1/-1;width:100%}}


/* iPDF v12 — scanner inline și indicator vizibil */
.scan-engine-indicator{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 9px;
  padding:8px 10px;
  border-radius:11px;
  background:linear-gradient(145deg,#21252c,#0b0c0f);
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.scan-engine-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#e6213a;
  box-shadow:0 0 0 4px rgba(230,33,58,.18);
}
html[data-scan-engine="v12"] .scan-engine-dot{
  animation:scanEnginePulse 1.4s ease-in-out infinite;
}
@keyframes scanEnginePulse{
  0%,100%{transform:scale(.85);opacity:.7}
  50%{transform:scale(1.12);opacity:1}
}


/* iPDF v14 – stare PWA */
.pwa-runtime-status{
  position:fixed;
  z-index:150;
  left:50%;
  top:calc(76px + env(safe-area-inset-top));
  transform:translateX(-50%);
  max-width:calc(100% - 24px);
  padding:10px 14px;
  border-radius:12px;
  background:#1b1e23;
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 12px 30px rgba(0,0,0,.3);
}
.pwa-runtime-status.error{
  background:linear-gradient(145deg,#d71c35,#7e0817);
}


/* v15 scan ai / cookies */
.scan-ai-copy-box{padding:12px 14px;border-radius:16px;background:linear-gradient(145deg,#181c22,#2c3139);color:#fff;margin-bottom:14px;box-shadow:0 12px 28px rgba(0,0,0,.18)}
.scan-ai-copy-box strong{display:block;font-size:14px;letter-spacing:.02em;margin-bottom:6px;color:#fff}
.scan-ai-copy-box p{margin:0 0 6px;font-size:13px;line-height:1.45;color:#edf0f5}
.scan-ai-copy-box small{display:block;color:#b7bdc7;line-height:1.4}
.scan-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.cookie-banner{position:fixed;left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:180}
.cookie-banner-card{padding:16px 18px;border-radius:20px;background:linear-gradient(145deg,#111318,#2c3139 70%,#8c0a1a);color:#fff;box-shadow:0 24px 50px rgba(0,0,0,.35)}
.cookie-banner-copy h3{margin:4px 0 8px;font-size:22px}
.cookie-banner-copy p{margin:0;color:#e1e5ea;line-height:1.45}
.cookie-banner-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.cookie-modal-card{max-width:520px}
.cookie-option{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid rgba(0,0,0,.06)}
.cookie-option:first-of-type{border-top:0}
.cookie-option small{display:block;color:#6a7079;line-height:1.4}
.cookie-switch{position:relative;display:inline-block;width:52px;height:30px}
.cookie-switch input{opacity:0;width:0;height:0}
.cookie-switch span{position:absolute;inset:0;background:#d2d5db;border-radius:999px;transition:.2s}
.cookie-switch span:before{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 3px 8px rgba(0,0,0,.2)}
.cookie-switch input:checked + span{background:#d91f37}
.cookie-switch input:checked + span:before{transform:translateX(22px)}
@media(max-width:760px){.scan-quick-actions{grid-template-columns:1fr}.cookie-banner-actions{display:grid;grid-template-columns:1fr}.cookie-banner-copy h3{font-size:20px}}


/* v16 – cameră și galerie */
.source-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px}
.source-choice-buttons button{min-height:48px}
.source-choice-buttons button span{font-size:18px}
.image-source-inline{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media(max-width:620px){.source-choice-buttons{grid-template-columns:1fr}.image-source-inline{grid-template-columns:1fr 1fr}.image-source-inline .danger-button{grid-column:1/-1}}


/* v17 – filter previews */
.filter-help-text{margin:0 0 12px;color:#69707a;font-size:12px;line-height:1.45}
.scan-filter-strip{display:flex;gap:9px;overflow-x:auto;padding:10px 10px 12px;background:linear-gradient(180deg,#f7f7f8,#dfe2e6);border-top:1px solid #d2d5da;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.scan-filter-card{min-width:112px;width:112px;padding:5px;border:2px solid transparent;border-radius:13px;background:#fff;color:#22252b;scroll-snap-align:start;box-shadow:0 6px 14px rgba(0,0,0,.10);-webkit-tap-highlight-color:transparent}
.scan-filter-card.active{border-color:#e11e37;box-shadow:0 0 0 2px rgba(225,30,55,.15),0 8px 18px rgba(0,0,0,.14)}
.scan-filter-preview{display:block;width:100%;height:76px;object-fit:cover;border-radius:8px;background:#d5d7db}
.scan-filter-card span{display:block;padding:6px 2px 3px;font-size:11px;font-weight:900;white-space:nowrap}
@media(max-width:760px){.scan-filter-strip{position:relative;padding-left:8px;padding-right:8px}.scan-filter-card{min-width:104px;width:104px}.scan-filter-preview{height:70px}}


/* v18 simplificare panou scan */
.scan-view .tool-side > .section-label,
.scan-view .tool-side > h2,
.scan-view .tool-side > .scan-ai-copy-box,
.scan-view .tool-side > .filter-help-text,
.scan-view .tool-side > .range-field,
.scan-view .tool-side > .scan-engine-indicator{display:none!important;}


/* v19 preview mai clar + buton sub poză */
.scan-process-wrap{padding:10px 12px 4px;background:#f3f4f6}
.scan-process-wrap .primary-button{margin:0}
.scan-filter-strip{gap:10px;padding:10px 12px 14px;background:linear-gradient(180deg,#f5f5f6,#e5e7eb);border-top:1px solid #d6d9de}
.scan-filter-card{min-width:136px;width:136px;padding:6px;border-radius:14px;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.scan-filter-preview{display:block;width:100%;height:96px;object-fit:cover;border-radius:10px;background:#d5d7db;image-rendering:auto}
.scan-filter-card span{display:block;padding:7px 2px 4px;font-size:12px;font-weight:900;white-space:nowrap;text-align:center}
@media(max-width:760px){.scan-process-wrap{padding:10px 10px 2px}.scan-filter-strip{padding-left:10px;padding-right:10px}.scan-filter-card{min-width:128px;width:128px}.scan-filter-preview{height:92px}}


/* v20 colțuri mai precise */
.scan-stage canvas{touch-action:none; image-rendering:auto;}


/* v21 UI polish */
.back-button{display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(255,255,255,.06);border-radius:18px;background:linear-gradient(145deg,#1b2027,#050608);box-shadow:0 16px 30px rgba(0,0,0,.22);transition:transform .18s ease, box-shadow .18s ease}
.back-button:active{transform:scale(.98)}
.back-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02))}
.back-icon svg{width:18px;height:18px;stroke:#fff;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.choice-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding:0;background:none!important;color:inherit!important;font-size:13px;font-weight:950}
.choice-cta-label{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:linear-gradient(145deg,#ff2946,#970d1e);color:#fff;letter-spacing:.06em;box-shadow:0 10px 24px rgba(193,22,42,.28)}
.choice-cta b{width:28px;height:28px;border-radius:999px;background:linear-gradient(145deg,#1b2027,#090a0c);box-shadow:0 10px 18px rgba(0,0,0,.18)}
.choice-cta b svg{width:16px;height:16px;stroke:#fff;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.scan-status-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px 0;background:#f3f4f6;flex-wrap:wrap}
.scan-status-bar .scan-badge,.scan-status-bar .scan-hint{position:static;transform:none;z-index:auto;background:linear-gradient(145deg,#171a20,#2c3139);color:#fff;font-size:12px;font-weight:900;padding:9px 12px;border-radius:12px;box-shadow:0 10px 22px rgba(0,0,0,.12)}
.scan-status-bar .scan-badge{border-left:4px solid #e11c34}
.scan-status-bar .scan-hint{white-space:normal;max-width:100%;text-align:center;background:linear-gradient(145deg,#242a33,#161a1f)}
.scan-stage .scan-badge,.scan-stage .scan-hint{display:none!important}
@media(max-width:760px){.scan-status-bar{padding:10px 10px 0}.scan-status-bar .scan-badge,.scan-status-bar .scan-hint{width:100%;justify-content:center;text-align:center}.choice-cta{margin-top:14px}}


/* v22 HQ auto corners */
#scanResetButton{font-weight:900}


/* v23 lupă colț la mutare */
.scan-magnifier{position:absolute;top:12px;right:12px;z-index:7;width:136px;padding:8px;border-radius:18px;background:linear-gradient(145deg,rgba(10,12,16,.96),rgba(31,35,43,.94));box-shadow:0 18px 36px rgba(0,0,0,.34);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.1)}
.scan-magnifier-title{margin:0 0 6px;color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;text-align:center}
#scanMagnifierCanvas{display:block;width:100%;height:auto;aspect-ratio:1/1;border-radius:14px;background:#0f1115;border:2px solid rgba(38,220,207,.9)}
@media(max-width:760px){.scan-magnifier{top:10px;right:10px;width:122px;padding:7px} .scan-magnifier-title{font-size:10px}}


/* v24 auto-colțuri reale + mesh dewarp */
.scan-status-bar .scan-badge{min-width:150px}


/* ================================================================
   IPDF v25 — carte identitate / buletin / tessera
   ================================================================ */
.id-card-launch{
  width:100%;margin-top:14px;padding:18px 20px;border:0;display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;
  text-align:left;background:linear-gradient(125deg,#f7f8fa,#e0e3e8 58%,#c8cdd4);
  color:#17191e;box-shadow:0 16px 35px rgba(0,0,0,.13)
}
.id-card-launch-icon{width:68px;height:68px;border-radius:21px;display:grid;place-items:center;background:linear-gradient(145deg,#20242b,#08090b);color:#fff;box-shadow:0 12px 25px rgba(0,0,0,.22)}
.id-card-launch-icon svg,.id-card-intro-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.id-card-launch-copy em{display:block;font-style:normal;font-size:10px;font-weight:950;letter-spacing:.13em;color:#c5162c;margin-bottom:5px}
.id-card-launch-copy strong{display:block;font-size:21px;letter-spacing:-.025em}
.id-card-launch-copy small{display:block;margin-top:5px;color:#606771;line-height:1.4}
.id-card-launch-cta{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:linear-gradient(145deg,#e5223b,#850918);color:#fff;font-size:11px;font-weight:950;letter-spacing:.06em}
.id-card-launch-cta b{font-size:18px}
.id-card-intro{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;background:linear-gradient(125deg,#111318,#303640 65%,#870a19);color:#fff}
.id-card-intro-icon{width:72px;height:72px;border-radius:23px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#d9dde2);color:#c5162c}
.id-card-intro h2{margin:5px 0 7px;font-size:25px}.id-card-intro p{margin:0;color:#dfe2e7;line-height:1.45}
.id-card-progress{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.id-card-progress span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.09);color:#cfd3da;font-size:10px;font-weight:900}.id-card-progress span.active{background:#e5223b;color:#fff}.id-card-progress span.done{background:#fff;color:#17191e}
.id-card-capture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.id-side-card{display:grid;gap:14px;transition:opacity .2s ease,filter .2s ease}.id-side-card.locked{opacity:.48;filter:grayscale(.35)}
.id-side-head{display:flex;align-items:center;gap:13px}.id-side-head h2{margin:3px 0 0;font-size:22px}.id-side-number{width:47px;height:47px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#20242b,#07080a);color:#fff;font-weight:950}
.id-preview{position:relative;min-height:260px;border-radius:19px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#15181d,#3b414a);border:1px solid rgba(255,255,255,.11)}
.id-preview img{width:100%;height:100%;object-fit:contain;background:#1b1e24}.id-preview-placeholder{font-size:31px;font-weight:950;letter-spacing:.12em;color:rgba(255,255,255,.22)}
.id-preview:not(.empty) .id-preview-placeholder{display:none}.id-processing{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;background:rgba(5,6,8,.78);color:#fff;font-size:12px}
.id-source-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.id-source-actions button{min-width:0}
.id-card-export{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:center;margin-top:14px}.id-card-export h2{margin:5px 0 7px;font-size:24px}.id-card-export p{margin:0;color:#646b75;line-height:1.45}.id-card-export-actions{display:grid;gap:8px}
.id-save-option{display:flex;align-items:center;gap:9px;margin-top:14px;font-weight:900;font-size:13px}.id-save-option input{width:18px;height:18px;accent-color:#d71932}.id-privacy-note{display:block;margin-top:8px;color:#777e88;line-height:1.4}
@media(max-width:760px){
  .id-card-launch{grid-template-columns:auto minmax(0,1fr);padding:15px}.id-card-launch-icon{width:57px;height:57px}.id-card-launch-copy strong{font-size:17px}.id-card-launch-cta{grid-column:1/-1;justify-self:stretch;justify-content:center}
  .id-card-intro{grid-template-columns:auto 1fr;padding:17px}.id-card-intro-icon{width:58px;height:58px}.id-card-progress{grid-column:1/-1;justify-content:flex-start}.id-card-capture-grid{grid-template-columns:1fr}.id-preview{min-height:220px}.id-card-export{grid-template-columns:1fr;padding:17px}.id-source-actions{grid-template-columns:1fr}
}


/* v26 ID card editor with corner lines */
.id-editor-modal-card{max-width:min(920px,calc(100vw - 20px));padding:20px}
.id-editor-head h2{margin:6px 0 6px}
.id-editor-head p{margin:0;color:#69707a;line-height:1.45}
.id-editor-stage-wrap{margin-top:14px;border-radius:20px;overflow:hidden;background:#11151b;display:flex;justify-content:center;align-items:center;min-height:280px}
#idEditorCanvas{display:block;max-width:100%;touch-action:none}
.id-editor-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}
.id-editor-actions .primary-button,.id-editor-actions .secondary-button,.id-editor-actions .dark-button{min-width:170px}
@media(max-width:760px){.id-editor-modal-card{padding:16px}.id-editor-actions{display:grid;grid-template-columns:1fr}.id-editor-actions .primary-button,.id-editor-actions .secondary-button,.id-editor-actions .dark-button{width:100%;min-width:0}}


/* v27 – eliminare fundal ID card */
.id-bg-remove-badge{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:8px 11px;border-radius:999px;background:linear-gradient(145deg,#defbf7,#c4f2eb);color:#087d72;font-size:11px;font-weight:950;border:1px solid rgba(8,125,114,.15)}


/* v28 ID detectie mai automata + A4 mai mare */
#idFrontPreview img,#idBackPreview img{object-fit:contain;background:#fff}


/* v29 fundal eliminat mai strict la ID cards */
#idFrontPreview, #idBackPreview { background:#fff; }


/* v30 FREE COMPLETE */
.theme-header-button{width:42px;height:42px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font-size:20px;font-weight:900}
.free-suite{margin-top:18px}.free-suite-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.free-suite-head h2{margin:5px 0 7px;font-size:28px}.free-suite-head p{margin:0;color:#6b7078}.free-badge{padding:9px 13px;border-radius:999px;background:linear-gradient(145deg,#ef213f,#900b1b);color:#fff;font-size:11px;font-weight:950;letter-spacing:.08em;white-space:nowrap}.free-suite-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.suite-tool{border:1px solid #e0e3e8;border-radius:18px;background:linear-gradient(145deg,#fff,#f2f3f5);padding:16px;text-align:left;box-shadow:0 10px 26px rgba(12,17,25,.07)}.suite-tool:active{transform:scale(.99)}.suite-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:linear-gradient(145deg,#1b2027,#090a0c);color:#fff;font-weight:950;margin-bottom:13px}.suite-tool strong{display:block;font-size:16px}.suite-tool small{display:block;margin-top:5px;color:#717780;line-height:1.4}.studio-two-col,.sign-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);gap:16px}.studio-drop-zone{width:100%;min-height:180px;border:2px dashed #cbd0d7;border-radius:20px;background:linear-gradient(145deg,#fff,#f0f2f5);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:22px}.studio-drop-icon{display:grid;place-items:center;min-width:58px;height:58px;padding:0 12px;border-radius:17px;background:linear-gradient(145deg,#e91f3d,#940c1d);color:#fff;font-weight:950}.studio-file-selected{padding:12px 14px;margin:12px 0;border-radius:14px;background:#eef0f4}.studio-file-selected strong,.studio-file-selected small{display:block}.studio-progress{position:relative;margin-top:14px;height:44px;border-radius:14px;background:#e5e7eb;overflow:hidden}.studio-progress i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#e91f3d,#850918);transition:width .2s}.studio-progress span{position:relative;display:grid;place-items:center;height:100%;color:#111;font-weight:900;font-size:12px}.studio-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.ocr-result-head{display:flex;justify-content:space-between;align-items:flex-start}.ocr-confidence{padding:7px 10px;border-radius:999px;background:#11151b;color:#fff;font-weight:900}.ocr-output{width:100%;min-height:360px;margin-top:8px;padding:14px;border:1px solid #cfd3d9;border-radius:15px;resize:vertical;font:14px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.studio-help{display:block;color:#737983;margin:5px 0}.studio-toolbar-card{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-bottom:14px}.compact-select{width:auto;min-width:120px}.editor-pages-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.editor-page-card{position:relative;padding:10px;border-radius:17px;background:#fff;border:1px solid #dfe2e7;box-shadow:0 10px 24px rgba(0,0,0,.07)}.editor-page-card.selected{outline:3px solid #d91f37}.editor-page-card canvas{display:block;width:100%;height:190px;object-fit:contain;background:#e8eaee;border-radius:11px}.editor-page-meta{display:flex;justify-content:space-between;gap:6px;margin:8px 0;font-size:12px;font-weight:900}.editor-page-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.editor-page-actions button{padding:7px 5px;border:0;border-radius:8px;background:#eceef2;font-weight:900}.sign-document-card{position:relative;min-height:520px;overflow:auto}.sign-empty{min-height:460px;display:grid;place-items:center}.sign-document-card>canvas{display:block;max-width:100%;margin:auto;box-shadow:0 12px 30px rgba(0,0,0,.15);touch-action:none}.sign-page-nav{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:12px}.sign-tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.sign-controls #signaturePad{display:block;width:100%;height:125px;background:#fff;border:1px solid #cdd1d7;border-radius:14px;touch-action:none}.account-file-toolbar{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:8px;margin:14px 0}.favorite-file{border-color:#e6b400;background:linear-gradient(145deg,#fffdf2,#fff)}.home-legal-footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;padding:20px 10px 90px;color:#747a83}.home-legal-footer button{border:0;background:none;text-decoration:underline;color:#5c626b}.legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.admin-stat{padding:18px;border-radius:18px;background:linear-gradient(145deg,#161a20,#900b1b);color:#fff}.admin-stat strong{display:block;font-size:30px}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:11px;text-align:left;border-bottom:1px solid #e3e5e9}.admin-table th{font-size:11px;letter-spacing:.07em}.quality-box{margin-top:12px}
html[data-theme="dark"] body{background:#0d0f13;color:#f5f6f8}html[data-theme="dark"] .card-panel,html[data-theme="dark"] .suite-tool,html[data-theme="dark"] .editor-page-card{background:linear-gradient(145deg,#181b21,#101217);border-color:#2c3139;color:#fff}html[data-theme="dark"] .text-field,html[data-theme="dark"] .select-field,html[data-theme="dark"] .ocr-output{background:#111318;color:#fff;border-color:#343a44}html[data-theme="dark"] .suite-tool small,html[data-theme="dark"] .free-suite-head p,html[data-theme="dark"] .studio-help{color:#aeb4bd}html[data-theme="dark"] .studio-drop-zone{background:#12151a;border-color:#3a404a;color:#fff}html[data-theme="dark"] .studio-file-selected{background:#22262d}html[data-theme="dark"] .studio-progress{background:#2c3139}
@media(max-width:900px){.free-suite-grid{grid-template-columns:repeat(2,1fr)}.studio-two-col,.sign-layout{grid-template-columns:1fr}.editor-pages-grid{grid-template-columns:repeat(2,1fr)}.account-file-toolbar{grid-template-columns:1fr 1fr}.admin-stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.free-suite-head{display:block}.free-badge{display:inline-flex;margin-top:12px}.free-suite-grid{grid-template-columns:1fr 1fr;gap:9px}.suite-tool{padding:13px}.suite-tool strong{font-size:14px}.suite-tool small{font-size:11px}.editor-pages-grid{grid-template-columns:1fr 1fr}.editor-page-card canvas{height:150px}.studio-action-grid{grid-template-columns:1fr}.account-file-toolbar{grid-template-columns:1fr}.legal-grid{grid-template-columns:1fr}.admin-stats-grid{grid-template-columns:1fr 1fr}.studio-toolbar-card>*{width:100%}}

.profile-danger-actions{display:flex;flex-direction:column;gap:8px}

.scan-thumb-move{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:3px}.scan-thumb-move button{border:0;border-radius:7px;background:#e7e9ed;font-weight:900;padding:4px}.scan-thumb-move button:disabled{opacity:.35}


/* ================================================================
   IPDF v31 — premium index, complete dark contrast, RO/EN/IT
   ================================================================ */
:root{
  --v31-surface:#ffffff;
  --v31-surface-soft:#f3f5f8;
  --v31-border:rgba(20,24,31,.10);
  --v31-text:#14171c;
  --v31-muted:#626a76;
  --v31-red:#df1f39;
  --v31-red-dark:#8e091c;
}
.language-switcher{
  display:flex;align-items:center;gap:3px;padding:4px;border-radius:14px;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)
}
.language-button{
  min-width:34px;height:32px;padding:0 7px;border:0;border-radius:10px;
  background:transparent;color:#d7dbe1;font-size:11px;font-weight:950;letter-spacing:.05em
}
.language-button.active{
  background:linear-gradient(145deg,#f52a45,#a40c21);color:#fff;
  box-shadow:0 7px 16px rgba(190,18,43,.35)
}
.theme-header-button{
  width:42px;height:42px;border-radius:13px;border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.09);color:#fff;font-size:20px
}

/* Cleaner and more premium home hierarchy. */
#homeView{display:grid;gap:16px}
.home-intro{
  position:relative;overflow:hidden;min-height:210px;padding:28px 30px;
  background:linear-gradient(125deg,#0b0d11 0%,#292e37 58%,#9b0c21 100%);
  border:1px solid rgba(255,255,255,.14);box-shadow:0 22px 52px rgba(20,23,30,.18)
}
.home-intro:before,.home-intro:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.home-intro:before{width:280px;height:280px;right:-120px;top:-170px;border:48px solid rgba(255,255,255,.055)}
.home-intro:after{width:130px;height:130px;left:48%;bottom:-105px;background:rgba(235,31,57,.20);filter:blur(4px)}
.home-intro-copy{position:relative;z-index:2}
.home-intro .section-label{color:#ff7d8d}
.home-intro h1{color:#fff;font-size:clamp(34px,6vw,58px);letter-spacing:-.055em;margin:7px 0 11px}
.home-intro p{color:#d7dbe1;font-size:15px;line-height:1.55;max-width:670px}
.home-intro-logo{position:relative;z-index:2;filter:drop-shadow(0 15px 28px rgba(0,0,0,.24))}

.compact-choice-grid{gap:16px}
.compact-choice-card{
  min-height:250px;padding:23px;border-radius:24px;border:1px solid rgba(255,255,255,.16);
  box-shadow:0 18px 38px rgba(17,20,26,.16);isolation:isolate;transition:transform .18s ease,box-shadow .18s ease
}
.compact-choice-card:after{
  content:"";position:absolute;inset:auto -70px -110px auto;width:220px;height:220px;
  border-radius:50%;border:40px solid rgba(255,255,255,.06);z-index:-1
}
.compact-choice-card:active{transform:scale(.985)}
.compact-choice-card .choice-icon{box-shadow:0 14px 30px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.18)}
.compact-choice-card .choice-content strong{font-size:clamp(27px,4vw,35px)}
.compact-choice-card .choice-content small{color:rgba(255,255,255,.78);line-height:1.5}
.choice-cta-label{padding:9px 14px;box-shadow:0 11px 24px rgba(0,0,0,.22)}

.id-card-launch{
  position:relative;overflow:hidden;min-height:125px;padding:22px 24px;border-radius:23px;
  background:linear-gradient(135deg,#ffffff 0%,#edf0f4 63%,#d9dde3 100%);
  border:1px solid rgba(255,255,255,.92);box-shadow:0 16px 36px rgba(20,23,29,.12)
}
.id-card-launch:after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:-80px;top:-85px;background:rgba(220,27,51,.10)}
.id-card-launch-icon{position:relative;z-index:2;box-shadow:0 13px 28px rgba(20,24,31,.18)}
.id-card-launch-copy,.id-card-launch-cta{position:relative;z-index:2}

.pdf-tools-accordion,.free-suite,.compact-account-card{
  border-radius:23px;border:1px solid var(--v31-border);box-shadow:0 15px 34px rgba(22,26,34,.10)
}
.tools-accordion-button{min-height:70px}
.pdf-tool-row{border:1px solid transparent}
.pdf-tool-row:active{border-color:rgba(222,31,56,.22)}
.free-suite-grid{gap:12px}
.suite-tool{
  min-height:150px;border-radius:19px;border:1px solid rgba(22,26,33,.08);
  background:linear-gradient(145deg,#fff,#f2f4f7);box-shadow:0 9px 22px rgba(23,27,34,.08)
}
.suite-tool .suite-icon{box-shadow:0 10px 22px rgba(180,16,39,.18)}
.suite-tool strong{color:#171a20}.suite-tool small{color:#626a75;line-height:1.45}

/* Complete dark theme: no dark text on dark backgrounds and no washed-out white cards. */
html[data-theme="dark"]{
  --v31-surface:#15191f;--v31-surface-soft:#1c2129;--v31-border:#303741;
  --v31-text:#f4f6f9;--v31-muted:#aeb6c1
}
html[data-theme="dark"] body{
  color:var(--v31-text)!important;
  background:radial-gradient(circle at 8% -5%,rgba(218,27,52,.19),transparent 34%),linear-gradient(150deg,#090b0f,#11151b 58%,#191e26)!important
}
html[data-theme="dark"] .app-shell,html[data-theme="dark"] .view{color:var(--v31-text)}
html[data-theme="dark"] .card-panel,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .account-page,
html[data-theme="dark"] .id-side-card,
html[data-theme="dark"] .converter-main-card,
html[data-theme="dark"] .converter-info-card,
html[data-theme="dark"] .studio-toolbar-card,
html[data-theme="dark"] .sign-controls,
html[data-theme="dark"] .sign-document-card{
  background:linear-gradient(145deg,#191e25,#11151a)!important;
  border-color:#303741!important;color:#f4f6f9!important;box-shadow:0 18px 40px rgba(0,0,0,.28)
}
html[data-theme="dark"] .home-intro{background:linear-gradient(125deg,#080a0d,#252a32 58%,#880b1d)!important}
html[data-theme="dark"] .id-card-launch{background:linear-gradient(135deg,#1d2229,#11151a 68%,#300b13)!important}
html[data-theme="dark"] .id-card-launch strong,
html[data-theme="dark"] .id-card-launch small,
html[data-theme="dark"] .id-card-launch em{color:#f4f6f9!important}
html[data-theme="dark"] .id-card-launch small{color:#aeb6c1!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,
html[data-theme="dark"] strong,html[data-theme="dark"] label,
html[data-theme="dark"] .pdf-tool-name,html[data-theme="dark"] .tools-accordion-title strong,
html[data-theme="dark"] .choice-content strong,html[data-theme="dark"] .account-showcase-copy h2{color:#f7f8fa!important}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] .empty-message,
html[data-theme="dark"] .studio-help,html[data-theme="dark"] .id-privacy-note,
html[data-theme="dark"] .account-showcase-copy p,html[data-theme="dark"] .converter-description{color:#aeb6c1!important}
html[data-theme="dark"] .section-label{color:#ff6176!important}
html[data-theme="dark"] .pdf-tools-accordion,
html[data-theme="dark"] .tools-accordion-item,
html[data-theme="dark"] .tools-accordion-button,
html[data-theme="dark"] .tools-accordion-content{background:#151a20!important;color:#f5f7fa!important;border-color:#303741!important}
html[data-theme="dark"] .pdf-tool-row{background:#1b2027!important;color:#f5f7fa!important;border-color:#2c333d!important}
html[data-theme="dark"] .pdf-tool-row:active{background:#252b34!important}
html[data-theme="dark"] .pdf-tool-row[data-open-view="jpgView"] .pdf-tool-name{color:#ff687b!important}
html[data-theme="dark"] .suite-tool{
  background:linear-gradient(145deg,#202630,#14181e)!important;border-color:#303844!important;color:#f6f8fa!important
}
html[data-theme="dark"] .suite-tool strong{color:#f7f8fa!important}
html[data-theme="dark"] .suite-tool small{color:#aeb6c1!important}
html[data-theme="dark"] .compact-account-card,html[data-theme="dark"] .account-showcase{background:linear-gradient(145deg,#1b2027,#11151a)!important}
html[data-theme="dark"] .logged-pill,html[data-theme="dark"] .studio-file-selected,
html[data-theme="dark"] .converter-selected,html[data-theme="dark"] .quality-box,
html[data-theme="dark"] .profile-card,html[data-theme="dark"] .user-file,
html[data-theme="dark"] .editor-page-card,html[data-theme="dark"] .cookie-option{
  background:#20262e!important;color:#f4f6f8!important;border-color:#343c47!important
}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,
html[data-theme="dark"] .text-field,html[data-theme="dark"] .select-field,
html[data-theme="dark"] .ocr-output,html[data-theme="dark"] .drop-zone,
html[data-theme="dark"] .studio-drop-zone,html[data-theme="dark"] .converter-drop-zone{
  background:#0f1318!important;color:#f5f7fa!important;border-color:#38414d!important
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#7f8996!important;opacity:1}
html[data-theme="dark"] option{background:#151a20;color:#f5f7fa}
html[data-theme="dark"] .secondary-button,html[data-theme="dark"] .small-button{
  background:#252c35!important;color:#f5f7fa!important;border-color:#3b4552!important
}
html[data-theme="dark"] .mode-button{background:#232a33!important;color:#eef1f5!important;border-color:#3a4450!important}
html[data-theme="dark"] .mode-button.active{background:linear-gradient(145deg,#e5233e,#8e0a1c)!important;color:#fff!important}
html[data-theme="dark"] .scan-status-bar,html[data-theme="dark"] .scan-process-wrap,
html[data-theme="dark"] .scan-filter-strip{background:#12171d!important;border-color:#303843!important}
html[data-theme="dark"] .scan-filter-card{background:#1e242c!important;color:#fff!important}
html[data-theme="dark"] .home-legal-footer button,html[data-theme="dark"] .home-legal-footer span{color:#aeb6c1!important}
html[data-theme="dark"] .admin-table th{color:#dce1e7!important;background:#20262e!important}
html[data-theme="dark"] .admin-table td{color:#e9edf2!important;border-color:#303741!important}
html[data-theme="dark"] .cookie-banner-card{background:linear-gradient(145deg,#11151a,#292f38 70%,#780b1a)!important}

@media(max-width:720px){
  .header-actions{gap:5px}.language-switcher{padding:3px}.language-button{min-width:30px;height:30px;padding:0 5px}
  .theme-header-button{width:38px;height:38px}.home-intro{padding:23px 19px;min-height:185px}
  .home-intro h1{font-size:36px}.compact-choice-card{min-height:230px;padding:20px}
  .id-card-launch{padding:19px 17px}.suite-tool{min-height:135px}
}
@media(max-width:440px){
  .brand-copy small{display:none}.header-login-button #accountLabel{display:none}
  .language-button{min-width:28px;font-size:10px}.language-switcher{gap:1px}
}


/* ================================================================
   IPDF v32 — pagini izolate și deschidere mereu de sus
   ================================================================ */
html{
  scroll-behavior:auto!important;
  scroll-padding-top:0!important;
}
body{
  overflow-anchor:none;
}
main.app-shell > .view{
  display:none!important;
  width:100%;
  min-height:calc(100dvh - 92px);
  position:relative;
  isolation:isolate;
}
main.app-shell > .view.active-view{
  display:block!important;
  animation:viewEnterV32 .16s ease-out both;
}
main.app-shell > .view[aria-hidden="true"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
#homeView:not(.active-view) .home-legal-footer{
  display:none!important;
}
#homeView.active-view .home-legal-footer{
  display:flex;
}
.home-legal-footer{
  position:static!important;
  clear:both;
}
@keyframes viewEnterV32{
  from{opacity:.35;transform:translateY(4px)}
  to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  main.app-shell > .view.active-view{animation:none}
}


/* ================================================================
   IPDF v33 — portrait PWA, premium personal/studio/accordions
   ================================================================ */
.portrait-guard{display:none;position:fixed;inset:0;z-index:1000;background:linear-gradient(145deg,#080a0e,#1a1f27 62%,#820a1a);place-items:center;padding:24px}
.portrait-guard-card{max-width:390px;width:100%;padding:28px 22px;border-radius:26px;text-align:center;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);box-shadow:0 28px 70px rgba(0,0,0,.42);color:#fff;backdrop-filter:blur(10px)}
.portrait-guard-icon{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 14px;border-radius:22px;background:linear-gradient(145deg,#f12643,#870a1a);font-size:34px;font-weight:950;box-shadow:0 16px 34px rgba(216,25,51,.30)}
.portrait-guard-card strong{display:block;font-size:22px;color:#fff!important}
.portrait-guard-card small{display:block;margin-top:8px;color:#d8dde5!important;line-height:1.45}
@media (orientation:landscape) and (max-width:1366px){body.pwa-standalone .portrait-guard{display:grid}}

/* Personal document: standalone premium feature card. */
.premium-personal-card{
  position:relative;overflow:hidden;min-height:168px!important;padding:25px 26px!important;
  grid-template-columns:82px minmax(0,1fr) auto!important;gap:20px!important;
  background:linear-gradient(128deg,#0a0c10 0%,#262c35 58%,#9c0d22 100%)!important;
  border:1px solid rgba(255,255,255,.15)!important;border-radius:27px!important;
  box-shadow:0 24px 54px rgba(15,18,24,.24)!important;color:#fff!important
}
.premium-personal-card:before{content:"";position:absolute;width:260px;height:260px;right:-125px;top:-145px;border:46px solid rgba(255,255,255,.055);border-radius:50%}
.premium-personal-card:after{content:"";position:absolute;width:150px;height:150px;left:38%;bottom:-125px;border-radius:50%;background:rgba(239,31,59,.22);filter:blur(3px)}
.premium-personal-card .id-card-launch-icon{
  width:76px;height:76px;border-radius:25px;background:linear-gradient(145deg,#ffffff,#dfe4ea)!important;
  color:#bd132b!important;box-shadow:0 18px 34px rgba(0,0,0,.28)!important
}
.premium-personal-card .id-card-launch-copy{display:block;position:relative;z-index:2}
.premium-personal-card .id-card-launch-copy em{color:#ff7e90!important}
.premium-personal-card .id-card-launch-copy strong{font-size:clamp(23px,3.4vw,31px)!important;color:#fff!important;letter-spacing:-.035em}
.premium-personal-card .id-card-launch-copy small{max-width:720px;color:#d9dee5!important;font-size:13px;line-height:1.5}
.id-card-launch-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.id-card-launch-meta i{font-style:normal;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);color:#fff;font-size:9px;font-weight:950;letter-spacing:.08em}
.premium-personal-card .id-card-launch-cta{
  position:relative;z-index:2;padding:10px 12px 10px 15px!important;gap:11px!important;
  background:rgba(255,255,255,.11)!important;border:1px solid rgba(255,255,255,.16);
  box-shadow:0 14px 28px rgba(0,0,0,.22);backdrop-filter:blur(8px)
}
.premium-personal-card .id-card-launch-cta b{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#fff;color:#9e0d21;font-size:17px}

/* Conversion accordions: separate, closed premium cards. */
.premium-tools-accordion{
  margin-top:2px!important;padding:0!important;display:grid;gap:12px;overflow:visible!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
.premium-tools-accordion .tools-accordion-item{
  overflow:hidden;border:1px solid rgba(21,25,32,.10)!important;border-radius:22px!important;
  background:linear-gradient(145deg,#fff,#eef1f5)!important;box-shadow:0 15px 34px rgba(19,23,30,.11)
}
.premium-tools-accordion .tools-accordion-item+.tools-accordion-item{border-top:1px solid rgba(21,25,32,.10)!important}
.premium-tools-accordion .tools-accordion-button{
  min-height:82px;padding:17px 18px!important;background:linear-gradient(145deg,#fff,#edf0f4)!important;
  color:#171b21!important;transition:background .2s ease,transform .16s ease
}
.premium-tools-accordion .tools-accordion-button:active{transform:scale(.994)}
.premium-tools-accordion .tools-accordion-item.open .tools-accordion-button{
  background:linear-gradient(125deg,#0d1015,#2d333d 68%,#920b1e)!important;color:#fff!important
}
.premium-tools-accordion .tools-accordion-icon{
  width:48px;height:48px;border-radius:16px!important;background:linear-gradient(145deg,#ef2441,#8b0a1a)!important;
  box-shadow:0 12px 25px rgba(196,19,43,.25);font-size:23px
}
.premium-tools-accordion .tools-accordion-title{gap:15px}
.premium-tools-accordion .tools-accordion-title strong{font-size:17px;letter-spacing:.015em;color:#171b21}
.premium-tools-accordion .tools-accordion-title small{margin-top:2px;color:#69717d;font-size:11px}
.premium-tools-accordion .tools-accordion-item.open .tools-accordion-title strong{color:#fff!important}
.premium-tools-accordion .tools-accordion-item.open .tools-accordion-title small{color:#ced4dc!important}
.premium-tools-accordion .tools-accordion-chevron{
  display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:rgba(18,22,28,.07);font-size:22px;color:#232831
}
.premium-tools-accordion .tools-accordion-item.open .tools-accordion-chevron{background:rgba(255,255,255,.12);color:#fff}
.premium-tools-accordion .tools-accordion-content{background:linear-gradient(180deg,#f7f8fa,#edf0f4)}
.premium-tools-accordion .tools-accordion-content .pdf-tools-list{padding:13px;gap:9px}
.premium-tools-accordion .pdf-tool-row{
  min-height:61px;padding:8px 11px;border-radius:16px!important;border:1px solid rgba(25,30,38,.08)!important;
  background:linear-gradient(145deg,#fff,#f2f4f7)!important;box-shadow:0 7px 18px rgba(20,24,31,.06)
}
.premium-tools-accordion .pdf-tool-row:active{background:linear-gradient(145deg,#f0f2f5,#e4e7eb)!important}
.premium-tools-accordion .pdf-tool-icon{width:45px;height:45px}
.premium-tools-accordion .pdf-tool-name{font-size:15px;font-weight:950;color:#1b1f25}

/* Complete studio: premium dark container with glass tool cards. */
.premium-studio-card{
  position:relative;overflow:hidden;margin-top:2px!important;padding:24px!important;border-radius:27px!important;
  background:linear-gradient(128deg,#090b0f,#252b34 62%,#720a18)!important;
  border:1px solid rgba(255,255,255,.13)!important;box-shadow:0 24px 55px rgba(15,18,24,.23)!important
}
.premium-studio-card:before{content:"";position:absolute;width:330px;height:330px;right:-190px;top:-220px;border:55px solid rgba(255,255,255,.045);border-radius:50%}
.premium-studio-card .free-suite-head,.premium-studio-card .free-suite-grid{position:relative;z-index:2}
.premium-studio-card .section-label{color:#ff7185!important}
.premium-studio-card .free-suite-head h2{color:#fff!important;font-size:clamp(25px,4vw,34px);letter-spacing:-.035em}
.premium-studio-card .free-suite-head p{color:#cbd1d9!important;max-width:720px;line-height:1.5}
.premium-studio-card .free-badge{background:#fff!important;color:#980d21!important;box-shadow:0 13px 26px rgba(0,0,0,.22)}
.premium-studio-card .free-suite-grid{gap:11px;margin-top:20px}
.premium-studio-card .suite-tool{
  min-height:164px;padding:17px;border-radius:20px!important;background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 13px 27px rgba(0,0,0,.17)!important;
  color:#fff!important;backdrop-filter:blur(7px)
}
.premium-studio-card .suite-tool:active{background:rgba(255,255,255,.12)!important}
.premium-studio-card .suite-icon{background:linear-gradient(145deg,#f22542,#870919)!important;box-shadow:0 12px 24px rgba(217,25,51,.24)}
.premium-studio-card .suite-tool strong{color:#fff!important;font-size:16px}
.premium-studio-card .suite-tool small{color:#c5ccd5!important}

/* Dark theme stays premium and fully readable. */
html[data-theme="dark"] .premium-tools-accordion .tools-accordion-item{background:#151a20!important;border-color:#303844!important}
html[data-theme="dark"] .premium-tools-accordion .tools-accordion-button{background:linear-gradient(145deg,#1d232b,#12161c)!important;color:#f6f8fa!important}
html[data-theme="dark"] .premium-tools-accordion .tools-accordion-title strong{color:#f7f8fa!important}
html[data-theme="dark"] .premium-tools-accordion .tools-accordion-title small{color:#aeb6c1!important}
html[data-theme="dark"] .premium-tools-accordion .tools-accordion-chevron{background:#2a313a;color:#fff}
html[data-theme="dark"] .premium-tools-accordion .tools-accordion-content{background:#11151a!important}
html[data-theme="dark"] .premium-tools-accordion .pdf-tool-row{background:linear-gradient(145deg,#202630,#171b21)!important;border-color:#303844!important}
html[data-theme="dark"] .premium-tools-accordion .pdf-tool-name{color:#f6f8fa!important}

@media(max-width:760px){
  .premium-personal-card{grid-template-columns:64px minmax(0,1fr)!important;padding:19px!important;gap:14px!important}
  .premium-personal-card .id-card-launch-icon{width:62px;height:62px;border-radius:20px}
  .premium-personal-card .id-card-launch-copy strong{font-size:21px!important}
  .premium-personal-card .id-card-launch-cta{grid-column:1/-1!important;justify-self:stretch!important;justify-content:space-between!important}
  .id-card-launch-meta{gap:5px}.id-card-launch-meta i{font-size:8px;padding:5px 7px}
  .premium-tools-accordion .tools-accordion-button{min-height:76px;padding:14px!important}
  .premium-tools-accordion .tools-accordion-icon{width:43px;height:43px}
  .premium-tools-accordion .tools-accordion-title strong{font-size:15px}
  .premium-studio-card{padding:19px!important}
  .premium-studio-card .free-suite-grid{grid-template-columns:1fr 1fr}
  .premium-studio-card .suite-tool{min-height:148px;padding:14px}
}


/* ================================================================
   IPDF v34 — upload frames, conversion hub, compact footer/appbar
   ================================================================ */

/* Keep scrolling fully functional but remove visible scrollbars. */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}

/* Dashed upload frame shared by JPG, Scan and personal documents. */
.upload-dash-panel{
  border:2px dashed #aeb4bd!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 50% 0%,rgba(218,28,53,.08),transparent 42%),
    linear-gradient(145deg,#fbfcfd,#edf0f3)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)!important;
}
.scan-upload-panel{
  min-height:360px!important;
  margin:14px!important;
  padding:28px 20px!important;
}
.scan-upload-panel .scan-empty-icon{
  width:68px;height:68px;border-radius:21px;
  background:linear-gradient(145deg,#ed2340,#800918);
  box-shadow:0 14px 30px rgba(187,17,40,.24)
}
.id-preview.empty.upload-dash-panel{
  min-height:245px;
  background:
    radial-gradient(circle at 50% 0%,rgba(215,25,50,.08),transparent 44%),
    linear-gradient(145deg,#fbfcfd,#eceff3)!important;
  border:2px dashed #adb4be!important;
}
.id-preview.empty .id-preview-placeholder{
  color:#7d8590!important;
  font-size:24px;
  letter-spacing:.16em;
}
html[data-theme="dark"] .upload-dash-panel,
html[data-theme="dark"] .id-preview.empty.upload-dash-panel{
  background:linear-gradient(145deg,#151a20,#0f1318)!important;
  border-color:#4a5563!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important
}
html[data-theme="dark"] .id-preview.empty .id-preview-placeholder{color:#8f99a7!important}

/* Cleaner conversion command buttons. */
.premium-tools-accordion{gap:10px!important}
.premium-tools-accordion .tools-accordion-item{
  border-radius:20px!important;
  box-shadow:0 11px 28px rgba(20,24,31,.10)!important
}
.conversion-command{
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:88px!important;
  padding:13px 15px!important;
  text-align:left!important;
}
.conversion-command-badge{
  width:58px;height:58px;border-radius:18px;display:grid;place-items:center;
  position:relative;color:#fff;background:linear-gradient(145deg,#161a20,#050607);
  box-shadow:0 13px 26px rgba(0,0,0,.20)
}
.conversion-command-in .conversion-command-badge{background:linear-gradient(145deg,#ed2441,#860919)}
.conversion-command-badge b{font-size:15px;letter-spacing:.05em}
.conversion-command-badge i{
  position:absolute;right:-4px;bottom:-4px;width:23px;height:23px;border-radius:8px;
  display:grid;place-items:center;background:#fff;color:#9c0d20;font-style:normal;
  font-size:14px;font-weight:950;box-shadow:0 6px 12px rgba(0,0,0,.18)
}
.conversion-command-copy{display:block!important}
.conversion-command-copy>span{display:grid;gap:2px}
.conversion-command-copy em{
  color:#d51b35;font-size:9px;font-style:normal;font-weight:950;letter-spacing:.15em
}
.conversion-command-copy strong{font-size:18px!important;letter-spacing:-.01em!important}
.conversion-command-copy small{font-size:11px!important;color:#6c7480!important}
.conversion-command-open{
  width:auto!important;min-width:76px;height:48px!important;padding:0 8px!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
  background:transparent!important
}
.conversion-command-open small{font-size:9px;font-weight:950;color:#717985;white-space:nowrap}
.conversion-command-open b{
  display:grid;place-items:center;width:31px;height:31px;border-radius:11px;
  background:#161a20;color:#fff;font-size:17px;transition:transform .2s ease
}
.tools-accordion-item.open .conversion-command-open b{transform:rotate(45deg);background:#fff;color:#9a0d20}
.tools-accordion-item.open .conversion-command-copy em{color:#ff8192!important}
html[data-theme="dark"] .conversion-command-copy em{color:#ff667b!important}
html[data-theme="dark"] .conversion-command-open small{color:#aeb6c1!important}

/* Footer: compact, useful and visibly clickable. */
.home-legal-footer{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;gap:16px;
  margin-top:16px;padding:14px 16px!important;
  border-radius:20px;
  color:#e9edf2!important;
  background:linear-gradient(125deg,#0b0d11,#242a32 70%,#740a18);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 15px 34px rgba(14,17,22,.18)
}
.footer-brand-block{display:flex;align-items:center;gap:10px;min-width:0}
.footer-brand-block img{width:38px;height:38px;object-fit:contain;border-radius:11px;background:#fff;padding:3px}
.footer-brand-block div{display:grid;gap:2px}
.footer-brand-block strong{color:#fff!important;font-size:15px}
.footer-brand-block small{color:#aeb6c1!important;font-size:10px;white-space:nowrap}
.footer-link-grid{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.home-legal-footer .footer-link-grid a{
  text-decoration:none!important;color:#e7ebf0!important;
  padding:8px 10px;border-radius:10px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);
  font-size:11px;font-weight:900
}
.home-legal-footer .footer-link-grid a:active{background:rgba(255,255,255,.14)}
.footer-meta{display:grid;justify-items:end;gap:3px}
.footer-meta span{color:#aeb6c1!important;font-size:9px;white-space:nowrap}
.legal-section-card{scroll-margin-top:92px;transition:outline-color .25s ease,transform .25s ease}
.legal-section-card.legal-focus{outline:3px solid #e3213a;outline-offset:3px;transform:translateY(-2px)}

/* Six compact mobile destinations. */
@media(max-width:760px){
  :root{--appbar-height:68px}
  body{padding-bottom:0!important}
  .app-shell{padding-bottom:calc(var(--appbar-height) + 10px + env(safe-area-inset-bottom))!important}
  .mobile-appbar{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    min-height:var(--appbar-height)!important;
    padding:5px 4px calc(5px + env(safe-area-inset-bottom))!important
  }
  .mobile-nav-item{font-size:8.5px!important;gap:2px!important;padding:4px 1px!important;border-radius:11px!important}
  .mobile-nav-icon{min-width:24px!important;width:24px!important;height:24px!important;padding:0!important;border-radius:8px!important}
  .svg-nav-icon svg{width:19px!important;height:19px!important}
  .mobile-user-icon{border-radius:50%!important}
  .scan-upload-panel{min-height:310px!important;margin:10px!important;padding:22px 15px!important}
  .id-preview.empty.upload-dash-panel{min-height:205px!important}
  .conversion-command{grid-template-columns:52px minmax(0,1fr) auto!important;min-height:78px!important;gap:10px!important;padding:11px!important}
  .conversion-command-badge{width:50px;height:50px;border-radius:15px}
  .conversion-command-copy strong{font-size:15px!important}
  .conversion-command-copy small{font-size:9px!important;line-height:1.3}
  .conversion-command-open{min-width:34px!important;padding:0!important}
  .conversion-command-open small{display:none}
  .home-legal-footer{grid-template-columns:1fr!important;gap:10px!important;padding:13px!important;margin-bottom:0!important}
  .footer-brand-block{justify-content:center}.footer-brand-block small{white-space:normal;text-align:left}
  .footer-link-grid{display:grid;grid-template-columns:repeat(2,1fr);width:100%}
  .home-legal-footer .footer-link-grid a{text-align:center;padding:9px 7px}
  .footer-meta{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
  .footer-meta span{white-space:normal;text-align:center}
}


/* ================================================================
   IPDF v35 — polished ID arrow, internal PWA back, legal footer
   ================================================================ */
html,body{
  width:100%;max-width:100%;overflow-x:hidden!important;
  overscroll-behavior-x:none!important
}
.app-shell{
  overscroll-behavior-x:none!important;
  -webkit-overflow-scrolling:touch
}
html.pwa-standalone,html.pwa-standalone body{
  overscroll-behavior:none!important
}

.premium-personal-card .id-card-launch-cta b{
  display:grid!important;place-items:center!important;
  width:34px!important;height:34px!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,#fff,#e8ebef)!important;
  color:#991025!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20)!important
}
.premium-personal-card .id-card-launch-cta b svg{
  width:19px;height:19px;fill:none;stroke:currentColor;
  stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round
}
.premium-personal-card .id-card-launch-cta:active b{
  transform:translateX(2px)
}

#legalView .legal-grid{
  grid-template-columns:minmax(0,860px)!important;
  justify-content:center
}
#legalView .legal-section-card.legal-selected{
  display:block!important;
  min-height:220px;
  padding:clamp(22px,4vw,38px);
  border:1px solid rgba(197,22,44,.20);
  box-shadow:0 20px 48px rgba(15,19,25,.12)
}
#legalView .legal-section-card.legal-selected h2{
  font-size:clamp(25px,4vw,36px);margin:8px 0 12px
}
#legalView .legal-section-card.legal-selected p{
  max-width:760px;font-size:15px;line-height:1.7
}
.home-legal-footer .footer-link-grid a{
  cursor:pointer;touch-action:manipulation
}


/* ================================================================
   IPDF v36 — scroll vertical complet până după footer
   ================================================================ */
html{
  height:auto!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  touch-action:pan-y pinch-zoom!important;
  overscroll-behavior-x:none!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
body{
  position:static!important;
  height:auto!important;
  min-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  touch-action:pan-y!important;
  overscroll-behavior-x:none!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
main.app-shell{
  position:relative!important;
  height:auto!important;
  min-height:100dvh!important;
  overflow:visible!important;
  touch-action:pan-y!important;
  overscroll-behavior-y:auto!important;
}
main.app-shell > .view,
main.app-shell > .view.active-view{
  height:auto!important;
  overflow:visible!important;
  touch-action:pan-y!important;
}
#homeView.active-view{
  overflow:visible!important;
}
.home-legal-footer{
  flex-shrink:0!important;
  touch-action:pan-y!important;
}

@media(max-width:760px){
  body{
    padding-bottom:0!important;
  }
  .app-shell{
    padding-bottom:0!important;
  }
  #homeView.active-view{
    padding-bottom:calc(var(--appbar-height) + 22px + env(safe-area-inset-bottom))!important;
  }
  .home-legal-footer{
    margin-bottom:0!important;
  }
  .mobile-appbar{
    pointer-events:auto!important;
  }
}


/* ================================================================
   IPDF v37 — container de scroll mobil independent
   Headerul și appbar-ul rămân fixe în structură, doar main se derulează.
   ================================================================ */
@media(max-width:760px){
  html{
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body{
    width:100%!important;
    height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    padding:0!important;
    overscroll-behavior:none!important;
  }
  .app-header,
  .compact-header{
    position:relative!important;
    inset:auto!important;
    flex:0 0 auto!important;
    width:100%!important;
    z-index:40!important;
  }
  main.app-shell,
  .app-shell{
    position:relative!important;
    inset:auto!important;
    flex:1 1 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    padding:9px 8px 20px!important;
    scroll-padding-bottom:24px!important;
  }
  main.app-shell > .view,
  main.app-shell > .view.active-view,
  #homeView.active-view{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    padding-bottom:12px!important;
  }
  .mobile-appbar{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    flex:0 0 auto!important;
    width:100%!important;
    z-index:90!important;
    margin:0!important;
  }
  .home-legal-footer{
    margin:0 0 4px!important;
    padding-bottom:13px!important;
  }
}


/* ================================================================
   iPDF v38 — premium forms and responsive account
   ================================================================ */
*,*::before,*::after{box-sizing:border-box}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
textarea,
select,
.text-field,
.select-field,
.ocr-output{
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:52px;
  padding:14px 15px;
  border:1px solid #cfd4dc;
  border-radius:16px;
  outline:none;
  background:linear-gradient(145deg,#ffffff,#f0f2f5);
  color:#171a1f;
  font:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 20px rgba(18,24,34,.06);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease
}
input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):focus,
textarea:focus,
select:focus,
.text-field:focus,
.select-field:focus,
.ocr-output:focus{
  border-color:#d91f37;
  background:#fff;
  box-shadow:0 0 0 4px rgba(217,31,55,.13),0 12px 28px rgba(18,24,34,.10)
}
textarea,.ocr-output{min-height:170px;resize:vertical;line-height:1.55}
select,.select-field{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#303640 50%),linear-gradient(135deg,#303640 50%,transparent 50%),linear-gradient(145deg,#fff,#f0f2f5);background-position:calc(100% - 20px) 22px,calc(100% - 14px) 22px,0 0;background-size:6px 6px,6px 6px,100% 100%;background-repeat:no-repeat;padding-right:42px}
.field-label{margin:0 0 8px;font-size:12px;letter-spacing:.035em;color:#353a42}
.field-label small{font-weight:700;color:#7b828d}
.premium-field{display:grid;gap:0;margin:15px 0;min-width:0}
.premium-field-compact{margin:10px 0 4px}
.premium-input-shell{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;min-width:0;border:1px solid #cfd4dc;border-radius:17px;background:linear-gradient(145deg,#fff,#edf0f4);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 9px 22px rgba(18,24,34,.07);transition:border-color .18s ease,box-shadow .18s ease}
.premium-input-shell:focus-within{border-color:#d91f37;box-shadow:0 0 0 4px rgba(217,31,55,.13),0 14px 30px rgba(18,24,34,.11)}
.premium-input-shell input{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;min-height:52px!important;padding:13px 9px!important}
.premium-field-icon{display:grid;place-items:center;width:38px;height:38px;margin-left:7px;border-radius:12px;background:linear-gradient(145deg,#e8233f,#850a19);color:#fff;font-size:13px;font-weight:950;box-shadow:0 8px 18px rgba(197,19,43,.25)}
.password-toggle{display:grid;place-items:center;width:42px;height:42px;margin-right:6px;border:0;border-radius:12px;background:linear-gradient(145deg,#272c34,#0d0f13);color:#fff;font-size:18px}
.password-toggle.visible{background:linear-gradient(145deg,#e8233f,#850a19)}
.password-strength{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;margin-top:8px;color:#747b85;font-size:11px;font-weight:800}
.password-strength::before{content:"";grid-column:1/2;height:6px;border-radius:999px;background:#dfe2e7}
.password-strength i{position:absolute;pointer-events:none}
.password-strength span{grid-column:2/3;grid-row:1}
.password-strength[data-level="weak"]::before{background:linear-gradient(90deg,#e4233d 33%,#dfe2e7 33%)}
.password-strength[data-level="medium"]::before{background:linear-gradient(90deg,#f09b22 66%,#dfe2e7 66%)}
.password-strength[data-level="strong"]::before{background:#2bb673}
.secure-fields-grid{display:grid;grid-template-columns:1fr;gap:2px}
.local-download-note{margin:10px 2px 0!important;padding:10px 12px;border-radius:13px;background:linear-gradient(145deg,#f7e9ec,#edf0f4);border-left:4px solid #d91f37;color:#5e6570!important;font-size:11px!important;line-height:1.45}
.sign-upload-zone{min-height:300px;width:100%}
.sign-empty{min-height:460px;display:grid;place-items:center;padding:12px}
.sign-controls #signaturePad{border:2px dashed #c7ccd4!important;background:linear-gradient(145deg,#fff,#f3f4f6)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)}

/* Account page */
#accountView,.account-page,.account-page *{min-width:0}
.account-page{width:100%;max-width:100%;overflow:hidden}
.profile-card{grid-template-columns:auto minmax(0,1fr) minmax(145px,auto)}
.profile-danger-actions{display:grid;gap:9px;align-self:stretch;align-content:start}
.profile-danger-actions button{width:100%}
.account-file-toolbar{width:100%;max-width:100%}
.account-user-files{width:100%;max-width:100%;overflow:hidden}
.user-file{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr);align-items:stretch;padding:14px;border-radius:18px;overflow:hidden}
.user-file>div:first-child{min-width:0;padding:2px 2px 5px}
.user-file strong{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;font-size:15px;line-height:1.35}
.user-file small{overflow-wrap:anywhere;line-height:1.45}
.user-file-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;min-width:0}
.user-file-actions a,.user-file-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:42px;padding:9px 8px;border-radius:12px;white-space:normal;text-align:center;font-size:12px;line-height:1.15;overflow-wrap:anywhere}
.user-file-actions .file-download{grid-column:span 2;background:linear-gradient(145deg,#20252c,#090b0e);color:#fff}
.user-file-actions .file-delete{background:linear-gradient(145deg,#f7dfe4,#f1cdd4);color:#a80d22}
.user-file-actions .file-favorite{font-size:20px}

html[data-theme="dark"] input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .text-field,
html[data-theme="dark"] .select-field,
html[data-theme="dark"] .ocr-output,
html[data-theme="dark"] .premium-input-shell{
  background:linear-gradient(145deg,#20252d,#111419)!important;
  color:#f6f7f9!important;
  border-color:#3a424d!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 10px 24px rgba(0,0,0,.22)!important
}
html[data-theme="dark"] select,html[data-theme="dark"] .select-field{background-image:linear-gradient(45deg,transparent 50%,#dce1e8 50%),linear-gradient(135deg,#dce1e8 50%,transparent 50%),linear-gradient(145deg,#20252d,#111419)!important}
html[data-theme="dark"] .field-label{color:#e8ebef}
html[data-theme="dark"] .field-label small,html[data-theme="dark"] .password-strength{color:#aeb6c1}
html[data-theme="dark"] .local-download-note{background:linear-gradient(145deg,#2b2025,#171a20);color:#c8ced7!important;border-left-color:#ef2946}
html[data-theme="dark"] .sign-controls #signaturePad{background:linear-gradient(145deg,#f8f8f8,#e8eaed)!important;border-color:#59616d!important}
html[data-theme="dark"] .user-file{background:linear-gradient(145deg,#222832,#14181e)!important;border-color:#353e49!important}

@media(max-width:900px){
  .profile-card{grid-template-columns:auto minmax(0,1fr)}
  .profile-danger-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;width:100%}
  .user-file-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  #accountView{padding-left:8px!important;padding-right:8px!important}
  #accountView .view-head{padding-left:4px;padding-right:4px}
  .account-page{padding:12px!important;gap:14px;border-radius:20px}
  .profile-card{grid-template-columns:1fr!important;text-align:center;padding:16px 13px!important;gap:13px!important}
  .profile-avatar-button{margin:0 auto;width:82px!important;height:82px!important}
  .profile-copy h2{font-size:22px}
  .profile-actions,.profile-danger-actions{display:grid!important;grid-template-columns:1fr!important;width:100%;gap:8px}
  .profile-actions button,.profile-danger-actions button{width:100%;min-height:46px}
  .account-page-header{display:block}
  .account-file-toolbar{grid-template-columns:1fr!important;gap:10px!important;margin:12px 0!important}
  .account-file-toolbar>*{width:100%!important;max-width:100%!important}
  .user-files{gap:12px}
  .user-file{padding:13px 11px}
  .user-file-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .user-file-actions .file-download{grid-column:1/-1}
  .user-file-actions a,.user-file-actions button{min-height:44px;font-size:12px}
  .studio-two-col,.sign-layout{width:100%;max-width:100%}
  .card-panel{max-width:100%;overflow:hidden}
  .premium-field{margin:13px 0}
  .secure-fields-grid{grid-template-columns:1fr}
  .sign-upload-zone{min-height:230px}
  .sign-empty{min-height:300px;padding:0}
}
@media(max-width:390px){
  .user-file-actions{grid-template-columns:1fr}
  .user-file-actions .file-download{grid-column:auto}
}


/* ================================================================
   iPDF v39 — free messaging, compact footer, live account preview
   ================================================================ */
.home-free-promise{
  display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin:4px 0 9px;padding:7px 10px;border-radius:999px;
  background:linear-gradient(145deg,rgba(222,28,54,.16),rgba(255,255,255,.72));
  border:1px solid rgba(201,18,43,.20)
}
.home-free-promise b{color:#b20e25;font-size:11px;letter-spacing:.08em}
.home-free-promise span{color:#343a43;font-size:12px;font-weight:850}
html[data-theme="dark"] .home-free-promise{background:linear-gradient(145deg,#2c171d,#171b21);border-color:#5b2832}
html[data-theme="dark"] .home-free-promise b{color:#ff657a}
html[data-theme="dark"] .home-free-promise span{color:#e7ebef}

/* Clear separation above footer, with almost no empty area below it. */
#homeView .home-legal-footer{margin-top:30px!important;margin-bottom:0!important}
@media(max-width:760px){
  main.app-shell,.app-shell{padding-bottom:5px!important}
  main.app-shell>.view.active-view,#homeView.active-view{padding-bottom:2px!important}
  #homeView .home-legal-footer{margin-top:24px!important;margin-bottom:0!important}
}

/* Strong dark controls: avoids white A4/recent controls with white text. */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] select,
html[data-theme="dark"] .select-field,
html[data-theme="dark"] .compact-select,
html[data-theme="dark"] #fileSortSelect,
html[data-theme="dark"] #scanPageSize,
html[data-theme="dark"] #editorPageSize{
  background-color:#151a20!important;
  color:#f5f7fa!important;
  border-color:#3b4450!important
}
html[data-theme="dark"] select option{background:#151a20!important;color:#f5f7fa!important}
html[data-theme="dark"] .id-card-launch-meta i{
  background:#272e37!important;border-color:#46505d!important;color:#f7f8fa!important
}

.legal-detail-list{display:grid;gap:9px;margin:16px 0 0;padding-left:21px;color:#545b65;line-height:1.55}
.legal-detail-list li::marker{color:#d91f37}
html[data-theme="dark"] .legal-detail-list{color:#c6cdd6}

.account-file-toolbar{grid-template-columns:minmax(160px,2fr) minmax(145px,1fr) minmax(145px,1fr) auto auto}
.account-refresh-button{white-space:nowrap}
.account-user-files{display:grid;gap:13px}
.user-file{
  display:grid!important;grid-template-columns:108px minmax(0,1fr)!important;
  gap:13px!important;align-items:stretch!important
}
.account-file-preview{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:108px;min-height:126px;padding:7px;border:1px solid #d8dde4;border-radius:15px;
  background:linear-gradient(145deg,#f7f8fa,#e7eaee);overflow:hidden
}
.account-file-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.account-file-preview::after{content:"";position:absolute;inset:auto 0 0;height:36px;background:linear-gradient(transparent,rgba(7,9,12,.8))}
.account-file-preview small{position:relative;z-index:2;margin-top:auto;color:#fff!important;font-size:10px;font-weight:900}
.account-file-type{display:grid;place-items:center;width:65px;height:75px;border-radius:13px;background:linear-gradient(145deg,#df203a,#7f0818);color:#fff;font-weight:950;font-size:15px;box-shadow:0 11px 24px rgba(159,12,32,.24)}
.account-file-content{display:grid;align-content:space-between;gap:10px;min-width:0}
.account-file-details{min-width:0;padding-top:2px}
.user-file-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.user-file-actions .file-download{grid-column:auto!important}
.user-file-actions .file-preview-action{background:linear-gradient(145deg,#e8233f,#850a19)!important;color:#fff!important}
html[data-theme="dark"] .account-file-preview{background:linear-gradient(145deg,#252c35,#13171c);border-color:#3a4450}

.file-preview-modal-card{width:min(900px,100%);padding:22px}
.file-preview-modal-card h2{padding-right:45px;overflow-wrap:anywhere}
.file-preview-stage{display:grid;place-items:center;min-height:380px;max-height:68vh;margin:14px 0;border-radius:18px;overflow:hidden;background:#13171d;border:1px solid #343c47}
.file-preview-stage img{display:block;max-width:100%;max-height:68vh;object-fit:contain}
.file-preview-stage iframe{display:block;width:100%;height:68vh;border:0;background:#fff}
.file-preview-unavailable{text-align:center;color:#fff;padding:30px}
.file-preview-unavailable strong,.file-preview-unavailable small{display:block}
.file-preview-unavailable small{margin-top:7px;color:#aeb6c1}
.file-preview-download{display:flex;align-items:center;justify-content:center;text-decoration:none}

@media(max-width:900px){
  .account-file-toolbar{grid-template-columns:1fr 1fr!important}
  .account-file-toolbar #fileSearchInput,.account-file-toolbar #fileFolderFilter{grid-column:span 2}
}
@media(max-width:760px){
  .account-file-toolbar{grid-template-columns:1fr!important}
  .account-file-toolbar>*{grid-column:auto!important}
  .user-file{grid-template-columns:82px minmax(0,1fr)!important;padding:11px!important;gap:10px!important}
  .account-file-preview{width:82px;min-height:108px}
  .account-file-type{width:54px;height:64px;font-size:13px}
  .user-file-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .user-file-actions .file-download,.user-file-actions .file-preview-action{grid-column:auto!important}
  .file-preview-modal-card{padding:17px}
  .file-preview-stage{min-height:310px;max-height:62vh}
  .file-preview-stage iframe{height:62vh}
}
@media(max-width:390px){
  .user-file{grid-template-columns:72px minmax(0,1fr)!important}
  .account-file-preview{width:72px;min-height:96px}
  .user-file-actions{grid-template-columns:1fr!important}
}


/* ================================================================
   iPDF v40 — high-contrast controls on dark and light themes
   ================================================================ */

/* Remove the Android/native oversized triangle and use one fixed chevron. */
select,
.select-field,
.compact-select,
#scanPageSize,
#jpgPageSize,
#editorPageSize,
#fileSortSelect{
  -webkit-appearance:none!important;
  appearance:none!important;
  color-scheme:light;
  background-color:#f2f4f7!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23202730' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 17px center!important;
  background-size:20px 20px!important;
  color:#171b21!important;
  -webkit-text-fill-color:#171b21!important;
  border:2px solid #c9d0d9!important;
  border-radius:17px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 24px rgba(16,22,31,.08)!important;
  padding-right:52px!important;
  font-weight:850!important;
  opacity:1!important;
}
select:focus,
.select-field:focus,
.compact-select:focus{
  border-color:#e5203d!important;
  box-shadow:0 0 0 4px rgba(229,32,61,.16),0 14px 28px rgba(16,22,31,.12)!important;
}
select:disabled,
.select-field:disabled,
.compact-select:disabled{
  opacity:1!important;
  color:#747d88!important;
  -webkit-text-fill-color:#747d88!important;
  background-color:#e4e8ed!important;
  border-color:#c9cfd7!important;
}

html[data-theme="dark"] select,
html[data-theme="dark"] .select-field,
html[data-theme="dark"] .compact-select,
html[data-theme="dark"] #scanPageSize,
html[data-theme="dark"] #jpgPageSize,
html[data-theme="dark"] #editorPageSize,
html[data-theme="dark"] #fileSortSelect{
  color-scheme:dark;
  background-color:#171c23!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f7f9fb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 17px center!important;
  background-size:20px 20px!important;
  color:#f7f9fb!important;
  -webkit-text-fill-color:#f7f9fb!important;
  border:2px solid #46515f!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 12px 28px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] .select-field:disabled,
html[data-theme="dark"] .compact-select:disabled{
  opacity:1!important;
  color:#aab2bd!important;
  -webkit-text-fill-color:#aab2bd!important;
  background-color:#222831!important;
  border-color:#39434f!important;
}
html[data-theme="dark"] select option{
  background:#171c23!important;
  color:#f7f9fb!important;
}

/* Authentication tabs: inactive must never be white text on a white button. */
.auth-tabs{
  gap:10px!important;
  padding:4px!important;
  border-radius:18px!important;
  background:rgba(20,24,30,.62)!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
.auth-tab{
  min-height:54px!important;
  border:1px solid #3c4653!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#29313b,#171b21)!important;
  color:#f4f6f9!important;
  -webkit-text-fill-color:#f4f6f9!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
  opacity:1!important;
}
.auth-tab.active{
  background:linear-gradient(145deg,#f12443,#a40c22)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:#f02a46!important;
  box-shadow:0 12px 24px rgba(217,22,52,.27),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
html:not([data-theme="dark"]) .auth-tabs{
  background:#e8ebef!important;
  border-color:#d3d8df!important;
}
html:not([data-theme="dark"]) .auth-tab:not(.active){
  background:linear-gradient(145deg,#ffffff,#e8ebef)!important;
  color:#171b21!important;
  -webkit-text-fill-color:#171b21!important;
  border-color:#cbd1d9!important;
}

/* Stronger free promise on the home page. */
.home-free-promise{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  width:min(100%,470px)!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#202630,#101318)!important;
  border:1px solid #424c59!important;
  box-shadow:0 13px 28px rgba(0,0,0,.20)!important;
}
.home-free-promise b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#f12443,#a20b20)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:11px!important;
  letter-spacing:.075em!important;
  white-space:nowrap!important;
}
.home-free-promise span{
  color:#f5f7fa!important;
  -webkit-text-fill-color:#f5f7fa!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.35!important;
}

@media(max-width:480px){
  .auth-tab{font-size:14px!important;padding:10px 8px!important}
  .home-free-promise{grid-template-columns:1fr!important;gap:8px!important}
  .home-free-promise b{justify-self:start!important}
}

/* iPDF v41 — automation, safety, drafts, trash and previews */
.scan-smart-panel{margin:12px;border:1px solid rgba(230,33,58,.22);border-radius:20px;padding:14px;background:linear-gradient(145deg,rgba(24,28,35,.96),rgba(43,47,57,.92));color:#fff;box-shadow:0 16px 34px rgba(0,0,0,.16)}
.scan-smart-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.scan-smart-head strong{display:block;font-size:18px}.smart-camera-button{border:0;border-radius:14px;padding:11px 15px;background:linear-gradient(145deg,#ff2144,#a80820);color:#fff;font-weight:950;box-shadow:0 10px 24px rgba(211,20,49,.3)}
.scan-quality-grid,.quality-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.scan-quality-grid span,.quality-live-grid span{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.07);font-size:12px}.scan-quality-grid i{font-style:normal;font-weight:900}.good{color:#5ce3a0!important}.medium{color:#ffd76b!important}.bad{color:#ff788b!important}
.sensitive-row{display:flex;align-items:center;gap:11px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}.sensitive-row strong,.sensitive-row small{display:block}.sensitive-row small{color:#b9c0ca;margin-top:3px}.smart-switch{position:relative;width:52px;height:30px;flex:0 0 auto}.smart-switch input{opacity:0;width:0;height:0}.smart-switch span{position:absolute;inset:0;border-radius:999px;background:#555d69;transition:.2s}.smart-switch span:before{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.2s}.smart-switch input:checked+span{background:#df1734}.smart-switch input:checked+span:before{transform:translateX(22px)}
.smart-watermark-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:10px}.smart-watermark-row label{font-size:12px;color:#d6dbe2}.draft-restore{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin-top:12px;padding:12px;border-radius:14px;background:rgba(226,28,52,.12);border:1px solid rgba(255,72,96,.22)}.draft-restore strong,.draft-restore small{display:block}.draft-restore small{color:#c8ced7;margin-top:3px}
.editor-smart-actions{display:flex;gap:8px;flex-wrap:wrap;width:100%;margin-top:8px}.editor-decoration-panel{width:100%;margin-top:6px;border-radius:15px;background:rgba(255,255,255,.05);padding:10px 12px}.editor-decoration-panel summary{cursor:pointer;font-weight:900}.editor-decoration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;align-items:center;margin-top:10px}
.smart-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.smart-dashboard-grid>.card-panel{min-width:0}.diagnostic-list{display:grid;gap:8px;margin:14px 0}.diagnostic-list span{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.06)}.smart-action-grid{display:flex;gap:9px;flex-wrap:wrap}.compare-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.compact-drop{padding:16px!important;min-height:120px!important}.compare-result{margin-top:12px}.compare-result strong{font-size:28px}.compare-result span{display:block;margin:3px 0 10px;color:#adb5c1}.compare-result canvas{display:block;width:100%;height:auto;border-radius:14px;background:#fff}.smart-code-output{min-height:130px}.share-manager-list{display:grid;gap:8px;margin-top:10px}.share-manager-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border-radius:13px;background:rgba(255,255,255,.06)}.share-manager-list strong,.share-manager-list small{display:block}.share-manager-list small{color:#aeb6c2;margin-top:3px}
.scan-preview-modal-card{max-width:min(880px,calc(100vw - 20px))}.before-after-stage{position:relative;overflow:hidden;border-radius:18px;background:#101318;aspect-ratio:3/4;max-height:66vh}.before-after-stage>img,.after-layer img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#101318}.after-layer{position:absolute;inset:0;clip-path:inset(0 50% 0 0);overflow:hidden}.before-after-stage>i{position:absolute;top:0;bottom:0;left:50%;width:3px;background:#20d6cb;box-shadow:0 0 0 1px #fff}.preview-quality-summary{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.preview-quality-summary span{padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.07)}#scanPreviewSlider{width:100%;accent-color:#e21c34;margin-top:10px}
.auto-camera-card{max-width:min(760px,calc(100vw - 20px))}.auto-camera-stage{position:relative;overflow:hidden;border-radius:20px;background:#050607;aspect-ratio:3/4}.auto-camera-stage video{width:100%;height:100%;object-fit:cover}.auto-document-guide{position:absolute;inset:9%;border:3px solid #2adbcf;border-radius:18px;box-shadow:0 0 0 999px rgba(0,0,0,.2)}.auto-camera-status{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);max-width:88%;padding:10px 14px;border-radius:999px;background:rgba(9,12,17,.86);color:#fff;font-weight:900;text-align:center}
.account-storage-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:9px;margin:12px 0}.account-storage-summary>span{display:flex;flex-direction:column;align-items:center;padding:11px;border-radius:14px;background:rgba(255,255,255,.06)}.account-storage-summary b{font-size:18px}.account-storage-summary small{color:#aeb6c2}.account-bulk-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:11px;border-radius:15px;background:rgba(226,28,52,.1);border:1px solid rgba(226,28,52,.2)}.account-file-check{width:20px;height:20px;accent-color:#e21c34;align-self:center;flex:0 0 auto}.user-file{position:relative}.trash-file{padding:14px}.version-list{display:grid;gap:8px;margin-top:12px}.version-list a{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px;border-radius:12px;background:rgba(255,255,255,.06);color:inherit;text-decoration:none}.file-tags,.file-history{white-space:nowrap}
.suite-tool-smart{grid-column:span 2;background:linear-gradient(145deg,rgba(18,22,28,.98),rgba(122,9,27,.88))!important}.suite-tool-smart .suite-icon{background:linear-gradient(145deg,#ff2445,#8e081b)!important;color:#fff!important}
@media(max-width:760px){.scan-quality-grid,.quality-live-grid{grid-template-columns:1fr}.scan-smart-head{align-items:flex-start}.smart-camera-button{font-size:12px;padding:9px 10px}.smart-watermark-row{grid-template-columns:1fr}.draft-restore{grid-template-columns:1fr 1fr}.draft-restore>div{grid-column:1/-1}.editor-decoration-grid{grid-template-columns:1fr}.smart-dashboard-grid{grid-template-columns:1fr}.compare-input-grid{grid-template-columns:1fr}.account-storage-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.account-storage-summary>button{grid-column:1/-1}.suite-tool-smart{grid-column:auto}.scan-preview-modal-card,.auto-camera-card{padding:15px}.before-after-stage{max-height:58vh}.account-bulk-toolbar{display:grid;grid-template-columns:1fr 1fr}.account-bulk-toolbar>strong{grid-column:1/-1}.user-file{padding-left:36px!important}.account-file-check{position:absolute;left:10px;top:14px}.smart-action-grid>*{flex:1 1 140px}}


/* v42 — scanare automată pentru carduri / acte personale */
.id-source-actions-auto{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,.8fr);
  gap:8px;
}
.id-source-actions-auto > button{min-width:0}
.id-auto-capture-button{
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,#ef2643,#8d0919)!important;
  box-shadow:0 12px 26px rgba(198,18,42,.28)!important;
}
.id-auto-capture-button:before{
  content:"";
  position:absolute;
  inset:-60% auto -60% -45%;
  width:34%;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);
  animation:idAutoButtonShine 3.2s ease-in-out infinite;
}
@keyframes idAutoButtonShine{0%,55%{left:-45%}85%,100%{left:125%}}
.id-auto-camera-card{width:min(760px,calc(100vw - 18px));padding:18px}
.id-auto-camera-card h2{margin:5px 0 5px}
.id-auto-camera-copy{margin:0 0 13px;color:var(--gray-650);line-height:1.45}
.id-auto-camera-stage{
  position:relative;
  min-height:360px;
  max-height:66vh;
  overflow:hidden;
  border-radius:22px;
  background:#07090c;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
#idAutoCameraVideo{display:block;width:100%;height:100%;min-height:360px;max-height:66vh;object-fit:cover;background:#050608}
.id-auto-card-guide{
  position:absolute;
  left:50%;top:50%;
  width:min(84%,560px);
  aspect-ratio:85.6/53.98;
  transform:translate(-50%,-50%);
  border:1.5px dashed rgba(255,255,255,.72);
  border-radius:15px;
  background:rgba(0,0,0,.05);
  box-shadow:0 0 0 999px rgba(2,4,7,.28);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.id-auto-card-guide span{
  position:absolute;
  left:50%;bottom:-38px;
  transform:translateX(-50%);
  padding:7px 11px;
  border-radius:999px;
  background:rgba(7,9,12,.82);
  color:#fff;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
  backdrop-filter:blur(5px);
}
.id-auto-card-guide .corner{position:absolute;width:36px;height:36px;border-color:#fff;border-style:solid;transition:border-color .2s ease,filter .2s ease}
.id-auto-card-guide .corner-tl{left:-3px;top:-3px;border-width:4px 0 0 4px;border-radius:14px 0 0 0}
.id-auto-card-guide .corner-tr{right:-3px;top:-3px;border-width:4px 4px 0 0;border-radius:0 14px 0 0}
.id-auto-card-guide .corner-br{right:-3px;bottom:-3px;border-width:0 4px 4px 0;border-radius:0 0 14px 0}
.id-auto-card-guide .corner-bl{left:-3px;bottom:-3px;border-width:0 0 4px 4px;border-radius:0 0 0 14px}
.id-auto-card-guide.detected{border-color:#ffd24a;background:rgba(255,210,74,.06)}
.id-auto-card-guide.detected .corner{border-color:#ffd24a}
.id-auto-card-guide.ready{border-color:#28dfc8;background:rgba(40,223,200,.08);box-shadow:0 0 0 999px rgba(2,4,7,.22),0 0 32px rgba(40,223,200,.32)}
.id-auto-card-guide.ready .corner{border-color:#28dfc8;filter:drop-shadow(0 0 6px rgba(40,223,200,.65))}
.id-auto-countdown{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:82px;height:82px;
  border-radius:50%;
  display:grid;place-items:center;
  background:rgba(7,9,12,.72);
  color:#fff;
  font-size:38px;
  font-weight:950;
  border:3px solid #28dfc8;
  box-shadow:0 0 32px rgba(40,223,200,.42);
}
.id-auto-camera-stage .auto-camera-status{
  position:absolute;
  left:50%;bottom:12px;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 24px);
  padding:9px 13px;
  border-radius:12px;
  background:rgba(7,9,12,.82);
  color:#fff;
  text-align:center;
  font-size:12px;
  font-weight:900;
  backdrop-filter:blur(6px);
}
.id-auto-quality-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.id-auto-quality-grid span{
  display:grid;
  gap:3px;
  min-width:0;
  padding:9px 8px;
  border-radius:12px;
  background:var(--surface-soft,#f0f1f3);
  color:var(--gray-650);
  font-size:10px;
  font-weight:800;
  text-align:center;
}
.id-auto-quality-grid b{color:var(--text,#15171b);font-size:11px;overflow-wrap:anywhere}
.id-auto-camera-actions{display:grid;grid-template-columns:1.2fr 1fr .7fr;gap:8px;margin-top:12px}
html[data-theme="dark"] .id-auto-camera-copy{color:#b9c0ca}
html[data-theme="dark"] .id-auto-quality-grid span{background:#1b2027;color:#aeb6c1}
html[data-theme="dark"] .id-auto-quality-grid b{color:#fff}
@media(max-width:760px){
  .id-source-actions-auto{grid-template-columns:1fr 1fr}
  .id-source-actions-auto .id-auto-capture-button{grid-column:1/-1}
  .id-auto-camera-card{padding:14px}
  .id-auto-camera-stage,#idAutoCameraVideo{min-height:52vh;max-height:62vh}
  .id-auto-card-guide{width:88%}
  .id-auto-quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .id-auto-quality-grid span:first-child{grid-column:1/-1}
  .id-auto-camera-actions{grid-template-columns:1fr}
}


/* ================================================================
   iPDF 1.4.1 — premium spacing, compact studio, type chooser,
   red appbar interaction effects
   ================================================================ */
.premium-personal-card{margin-bottom:30px!important}
.premium-personal-card + .premium-tools-accordion{margin-top:0!important}
.premium-tools-accordion{margin-bottom:32px!important}
.premium-tools-accordion + .premium-studio-card{margin-top:0!important}

/* Studio tools in one compact horizontal row. */
.premium-studio-card{overflow:hidden}
.premium-studio-card .studio-compact-row{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:9px!important;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  padding:2px 2px 8px;
  scrollbar-width:none;
}
.premium-studio-card .studio-compact-row::-webkit-scrollbar{display:none}
.premium-studio-card .studio-compact-row .suite-tool{
  flex:0 0 142px;
  min-height:94px!important;
  padding:11px!important;
  text-align:center!important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  scroll-snap-align:start;
  border-radius:16px!important;
}
.premium-studio-card .studio-compact-row .suite-icon{
  width:38px!important;height:38px!important;border-radius:12px!important;
  margin:0 0 8px!important;font-size:13px
}
.premium-studio-card .studio-compact-row .suite-tool strong{
  font-size:12px!important;line-height:1.25;text-align:center
}
.premium-studio-card .studio-compact-row .suite-tool small{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important
}

/* Document type chooser. */
.id-document-type-chooser{margin-bottom:18px;padding:20px;overflow:hidden;position:relative}
.id-document-type-chooser:after{content:"";position:absolute;right:-70px;top:-80px;width:190px;height:190px;border-radius:50%;background:rgba(222,27,52,.08)}
.id-type-copy,.id-type-grid,.id-type-note{position:relative;z-index:1}
.id-type-copy h2{margin:5px 0 7px;font-size:clamp(23px,4vw,30px)}
.id-type-copy p{margin:0;color:#6a717b;line-height:1.5}
.id-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:17px}
.id-type-option{border:1px solid #dde1e7;border-radius:18px;background:linear-gradient(145deg,#fff,#f1f3f6);padding:14px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:center;text-align:left;box-shadow:0 10px 24px rgba(12,17,25,.07);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.id-type-option:active{transform:scale(.985)}
.id-type-option.active{border-color:#df2039;background:linear-gradient(145deg,#fff5f7,#fff);box-shadow:0 14px 30px rgba(205,22,47,.18),inset 0 0 0 1px rgba(223,32,57,.22)}
.id-type-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#191e25,#07080a);color:#fff;box-shadow:0 10px 22px rgba(0,0,0,.18)}
.id-type-option.active .id-type-icon{background:linear-gradient(145deg,#f12a46,#850918);box-shadow:0 12px 25px rgba(210,25,50,.28)}
.id-type-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.id-type-option strong{display:block;font-size:14px}
.id-type-option small{display:block;margin-top:4px;color:#6f7680;line-height:1.35}
.id-type-note{display:block;margin-top:10px;color:#7a818b;font-size:11px}

html[data-theme="dark"] .id-document-type-chooser{background:linear-gradient(145deg,#191d23,#101217);border-color:#2b3038}
html[data-theme="dark"] .id-type-copy p,html[data-theme="dark"] .id-type-note{color:#aeb5bf}
html[data-theme="dark"] .id-type-option{background:linear-gradient(145deg,#20242b,#13161b);border-color:#343a44;color:#fff}
html[data-theme="dark"] .id-type-option.active{background:linear-gradient(145deg,#321019,#19171c);border-color:#ed3550}
html[data-theme="dark"] .id-type-option small{color:#b3bac4}

/* Red motion/elevation effects in mobile appbar. */
@media(max-width:900px){
  .mobile-appbar{overflow:visible!important}
  .mobile-nav-item{position:relative;isolation:isolate;transition:transform .2s ease,color .2s ease,background .2s ease,box-shadow .2s ease}
  .mobile-nav-item:before{content:"";position:absolute;left:50%;bottom:-5px;width:5px;height:5px;border-radius:999px;background:#f22a46;transform:translateX(-50%) scale(0);opacity:0;box-shadow:0 0 0 5px rgba(232,29,57,.12),0 0 14px rgba(242,42,70,.7);transition:transform .2s ease,opacity .2s ease}
  .mobile-nav-item:active{transform:translateY(-2px) scale(.97);background:rgba(225,26,52,.12)!important}
  .mobile-nav-item:active .mobile-nav-icon{box-shadow:0 0 0 5px rgba(226,30,56,.12),0 0 18px rgba(226,30,56,.38)}
  .mobile-nav-item.active{transform:translateY(-5px);box-shadow:0 12px 24px rgba(145,8,25,.28)!important}
  .mobile-nav-item.active:before{transform:translateX(-50%) scale(1);opacity:1}
  .mobile-nav-item.active .mobile-nav-icon{animation:scan4youNavPulse 1.8s ease-in-out infinite}
  @keyframes scan4youNavPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.14)}50%{box-shadow:0 0 0 5px rgba(255,255,255,.08),0 0 17px rgba(238,37,65,.42)}}
}

@media(max-width:760px){
  .premium-personal-card{margin-bottom:24px!important}
  .premium-tools-accordion{margin-bottom:26px!important}
  .id-type-grid{grid-template-columns:1fr}
  .id-type-option{padding:12px}
  .premium-studio-card .studio-compact-row .suite-tool{flex-basis:124px;min-height:88px!important}
  .premium-studio-card .free-suite-head p{font-size:12px}
}

.document-type-hidden{display:none!important}


/* 1.4.2 Release Candidate */
.rc-badge{display:inline-flex;vertical-align:middle;margin-left:8px;padding:4px 8px;border-radius:999px;background:linear-gradient(145deg,#e51f3a,#8d0b1c);color:#fff;font-size:10px;font-weight:950;letter-spacing:.06em;text-transform:uppercase}


/* ================================================================
   iPDF 1.4.4 — full placeholder i18n, vertical studio,
   subtle appbar gradient, share/install and back-to-top
   ================================================================ */

/* Studio is now a compact vertical list, without horizontal scrolling. */
.premium-studio-card{overflow:visible!important}
.premium-studio-card .studio-compact-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  overflow:visible!important;
  scroll-snap-type:none!important;
  padding:2px 0 0!important;
}
.premium-studio-card .studio-compact-row .suite-tool{
  width:100%!important;
  min-height:76px!important;
  padding:12px 14px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 24px!important;
  grid-template-rows:auto auto!important;
  column-gap:13px!important;
  row-gap:3px!important;
  align-items:center!important;
  text-align:left!important;
  border-radius:17px!important;
}
.premium-studio-card .studio-compact-row .suite-tool:after{
  content:"›";
  grid-column:3;
  grid-row:1/3;
  align-self:center;
  justify-self:center;
  color:#d91f37;
  font-size:30px;
  font-weight:500;
  line-height:1;
}
.premium-studio-card .studio-compact-row .suite-icon{
  grid-column:1;
  grid-row:1/3;
  width:46px!important;
  height:46px!important;
  margin:0!important;
  border-radius:14px!important;
  font-size:13px!important;
}
.premium-studio-card .studio-compact-row .suite-tool strong{
  grid-column:2;
  grid-row:1;
  font-size:14px!important;
  line-height:1.25!important;
  text-align:left!important;
}
.premium-studio-card .studio-compact-row .suite-tool small{
  grid-column:2;
  grid-row:2;
  position:static!important;
  width:auto!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  clip:auto!important;
  white-space:normal!important;
  border:0!important;
  font-size:11px!important;
  line-height:1.35!important;
}

/* Appbar: only a restrained red gradient in the background. */
@media(max-width:900px){
  .mobile-appbar{
    overflow:hidden!important;
    background:
      radial-gradient(circle at 50% 130%,rgba(225,27,54,.25),transparent 54%),
      linear-gradient(180deg,rgba(20,23,29,.98),rgba(5,6,8,.99))!important;
  }
  .mobile-nav-item:before{display:none!important;content:none!important}
  .mobile-nav-item,.mobile-nav-item.active,.mobile-nav-item:active{
    transform:none!important;
    box-shadow:none!important;
  }
  .mobile-nav-item.active{
    background:linear-gradient(145deg,rgba(226,27,55,.25),rgba(122,7,24,.13))!important;
    border:1px solid rgba(245,63,88,.28)!important;
  }
  .mobile-nav-item.active .mobile-nav-icon,
  .mobile-nav-item:active .mobile-nav-icon{
    animation:none!important;
    box-shadow:none!important;
  }
}

/* Share and install panel. */
.home-connect-card{margin-top:24px;overflow:hidden;position:relative}
.home-connect-card:after{content:"";position:absolute;right:-90px;top:-110px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(221,27,53,.15),transparent 68%);pointer-events:none}
.home-connect-copy,.home-connect-actions{position:relative;z-index:1}
.home-connect-copy h2{margin:5px 0 7px;font-size:clamp(24px,4vw,30px)}
.home-connect-copy p{margin:0;color:#707781;line-height:1.5}
.home-connect-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:17px}
.connect-action{border:1px solid #dfe3e9;border-radius:18px;background:linear-gradient(145deg,#fff,#f0f2f5);padding:13px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:11px;align-items:center;text-align:left;box-shadow:0 10px 24px rgba(12,17,25,.07)}
.connect-action:active{transform:scale(.985)}
.connect-action strong,.connect-action small{display:block}
.connect-action strong{font-size:13px;color:#15181d}
.connect-action small{margin-top:3px;color:#737a84;font-size:10px;line-height:1.3}
.connect-brand-image,.connect-brand-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px}
.connect-brand-image{padding:9px;background:#11151b;object-fit:contain}
.connect-brand-icon{background:linear-gradient(145deg,#ef2945,#8c091b);color:#fff}
.connect-brand-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.android-action .connect-brand-image{background:#101716}
.ios-action .connect-brand-image{background:#11151b}
html[data-theme="dark"] .home-connect-card{background:linear-gradient(145deg,#191d23,#101217);border-color:#303640}
html[data-theme="dark"] .home-connect-copy p{color:#abb3be}
html[data-theme="dark"] .connect-action{background:linear-gradient(145deg,#20252d,#12151a);border-color:#343b46}
html[data-theme="dark"] .connect-action strong{color:#fff}
html[data-theme="dark"] .connect-action small{color:#aeb6c1}

/* iPhone install instructions. */
.ios-install-modal-card{max-width:500px;text-align:center}
.ios-install-logo{display:block;width:66px;height:66px;margin:0 auto 12px;padding:12px;border-radius:20px;background:linear-gradient(145deg,#20252d,#08090b);box-shadow:0 15px 30px rgba(0,0,0,.22)}
.ios-install-modal-card h2{margin:6px 0 8px}
.ios-install-modal-card>p{color:#6f7680}
.ios-install-steps{list-style:none;padding:0;margin:18px 0;display:grid;gap:9px;text-align:left}
.ios-install-steps li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;padding:11px;border-radius:14px;background:#f0f2f5}
.ios-install-steps b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#ef2945,#8c091b);color:#fff}
html[data-theme="dark"] .ios-install-steps li{background:#20252d;color:#fff}
html[data-theme="dark"] .ios-install-modal-card>p{color:#aeb6c1}

/* Fixed back-to-top control. */
.back-to-top-button{position:fixed;right:16px;bottom:24px;z-index:115;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:linear-gradient(145deg,#ef2441,#8d091b);color:#fff;min-width:54px;height:54px;padding:0 13px;display:flex;align-items:center;justify-content:center;gap:5px;box-shadow:0 16px 34px rgba(136,7,25,.34);font-weight:900;transition:opacity .2s ease,transform .2s ease}
.back-to-top-button.hidden{display:flex!important;opacity:0;pointer-events:none;transform:translateY(12px)}
.back-to-top-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.back-to-top-button span{font-size:11px}
@media(max-width:900px){.back-to-top-button{right:12px;bottom:calc(var(--appbar-height,84px) + 16px + env(safe-area-inset-bottom));min-width:50px;height:50px;padding:0 10px}.back-to-top-button span{display:none}}

@media(max-width:760px){
  .home-connect-actions{grid-template-columns:1fr}
  .connect-action{min-height:72px}
  .premium-studio-card .studio-compact-row .suite-tool{min-height:74px!important}
}


/* iPDF.pro 1.4.10 – favicon, brand and crawlable SEO links */
.brand-copy strong i{font-style:normal;color:#f7f8fb;font-size:.68em;font-weight:900;letter-spacing:-.02em;margin-left:1px;opacity:.96}
.seo-tool-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0 18px}
.seo-tool-links a{display:flex;flex-direction:column;gap:4px;padding:14px 15px;border-radius:16px;text-decoration:none;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(236,239,244,.94));border:1px solid rgba(24,29,36,.1);box-shadow:0 10px 24px rgba(20,25,32,.08);color:#171b21}
.seo-tool-links a strong{font-size:14px}.seo-tool-links a small{color:#666f7b;line-height:1.35}
html[data-theme="dark"] .seo-tool-links a{background:linear-gradient(145deg,#171c23,#252c35);border-color:#3a4452;color:#fff}
html[data-theme="dark"] .seo-tool-links a small{color:#bac1cb}
@media(max-width:760px){.seo-tool-links{grid-template-columns:1fr 1fr;gap:8px;margin:20px 0 16px}.seo-tool-links a{padding:12px}.brand-copy strong i{font-size:.64em}}


/* iPDF 1.4.10 – autentificare cu e-mail și recuperare parolă */
.auth-modal-premium{max-width:620px}
.auth-intro{margin:4px 0 14px;color:#737983}
.auth-password-shell{position:relative}
.auth-password-shell input{padding-right:54px!important}
.auth-password-toggle{position:absolute!important;right:7px!important;top:50%!important;transform:translateY(-50%)!important;width:42px!important;height:42px!important;border-radius:12px!important;border:1px solid rgba(120,128,140,.35)!important;background:linear-gradient(145deg,#202630,#0d1015)!important;color:#fff!important;font-size:18px!important;display:grid!important;place-items:center!important}
.auth-forgot-link,.auth-back-button{justify-self:start;border:0;background:none;color:#d91f37;font-weight:900;padding:2px 0;text-decoration:underline}
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#7b828c;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:rgba(130,138,150,.25)}
.auth-back-row{display:flex}.auth-form h3{margin:0;font-size:21px}.auth-form a,.modal-note a{color:#d91f37;font-weight:800}
.profile-email{margin:2px 0 8px!important;font-weight:800;color:#6a727d!important;overflow-wrap:anywhere}
.contact-email-card{display:flex;flex-direction:column;gap:5px;padding:16px;border-radius:16px;text-decoration:none;background:linear-gradient(145deg,#e91f3d,#850918);color:#fff;margin-top:14px}.contact-email-card strong{font-size:20px}.contact-email-card small{color:rgba(255,255,255,.8)}.legal-action-link{display:inline-flex;margin-top:12px;text-decoration:none}.footer-email-link{font-weight:900!important;color:#fff!important;background:linear-gradient(145deg,#e91f3d,#8b0a1b)!important}
.reset-page{min-height:100vh;background:linear-gradient(145deg,#080a0d,#242a32 60%,#890b1c);padding:24px;color:#fff}.reset-shell{width:min(620px,100%);margin:auto}.reset-logo{display:block;width:190px;max-height:120px;object-fit:contain;margin:18px auto}.reset-card{color:#14181d}.reset-card h1{font-size:32px;margin:8px 0}.reset-home-link{display:flex;margin-top:14px;text-decoration:none;justify-content:center}.reset-error{padding:14px;border-radius:13px;background:#ffe7eb;color:#8b0b1b;font-weight:900}
html[data-theme="dark"] .auth-modal-premium{background:linear-gradient(145deg,#151a21,#0a0d11)!important;color:#fff}html[data-theme="dark"] .auth-modal-premium input{background:#11161d!important;color:#fff!important;border-color:#39414d!important}html[data-theme="dark"] .auth-intro,html[data-theme="dark"] .modal-note{color:#aeb7c3!important}html[data-theme="dark"] .profile-email{color:#aeb7c3!important}
@media(max-width:640px){.auth-modal-premium{padding:20px 16px}.footer-link-grid{grid-template-columns:1fr 1fr!important}.footer-email-link{grid-column:1/-1}.reset-page{padding:14px}.reset-card{padding:18px}.reset-card h1{font-size:27px}}



/* iPDF 1.4.10 – configurare administrator inițial */
.field-help{display:block;margin:7px 4px 0;color:#7b8491;font-size:12px;line-height:1.35}
html[data-theme="dark"] .field-help{color:#aeb6c2}


/* iPDF.pro 1.4.10 — tema Day deschisă, verificare e-mail, export final și admin */
html[data-theme="light"] body,
html:not([data-theme="dark"]) body{background:linear-gradient(180deg,#f8fafc,#eef1f5)!important;color:#171a20!important}
html[data-theme="light"] .card-panel,
html:not([data-theme="dark"]) .card-panel,
html[data-theme="light"] .suite-tool,
html:not([data-theme="dark"]) .suite-tool,
html[data-theme="light"] .choice-card,
html:not([data-theme="dark"]) .choice-card,
html[data-theme="light"] .premium-personal-card,
html:not([data-theme="dark"]) .premium-personal-card,
html[data-theme="light"] .premium-studio-card,
html:not([data-theme="dark"]) .premium-studio-card,
html[data-theme="light"] .conversion-command,
html:not([data-theme="dark"]) .conversion-command,
html[data-theme="light"] .tools-accordion-content,
html:not([data-theme="dark"]) .tools-accordion-content,
html[data-theme="light"] .user-file,
html:not([data-theme="dark"]) .user-file,
html[data-theme="light"] .modal-card,
html:not([data-theme="dark"]) .modal-card{
  background:linear-gradient(145deg,#ffffff,#f5f7fa)!important;
  color:#171a20!important;border-color:#dce1e7!important;
  box-shadow:0 14px 34px rgba(27,34,45,.09)!important;
}
html[data-theme="light"] .choice-content strong,
html:not([data-theme="dark"]) .choice-content strong,
html[data-theme="light"] .choice-content small,
html:not([data-theme="dark"]) .choice-content small,
html[data-theme="light"] .id-card-launch-copy strong,
html:not([data-theme="dark"]) .id-card-launch-copy strong,
html[data-theme="light"] .id-card-launch-copy small,
html:not([data-theme="dark"]) .id-card-launch-copy small,
html[data-theme="light"] .premium-studio-card h2,
html:not([data-theme="dark"]) .premium-studio-card h2,
html[data-theme="light"] .premium-studio-card p,
html:not([data-theme="dark"]) .premium-studio-card p,
html[data-theme="light"] .premium-studio-card .suite-tool strong,
html:not([data-theme="dark"]) .premium-studio-card .suite-tool strong{color:#171a20!important}
html[data-theme="light"] .premium-studio-card .suite-tool small,
html:not([data-theme="dark"]) .premium-studio-card .suite-tool small{color:#69717d!important}
html[data-theme="light"] .choice-card:before,
html:not([data-theme="dark"]) .choice-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(#ff3150,#a0091d)}
html[data-theme="light"] .choice-number,
html:not([data-theme="dark"]) .choice-number{color:#aeb4bc!important}
html[data-theme="light"] .choice-content em,
html:not([data-theme="dark"]) .choice-content em,
html[data-theme="light"] .id-card-launch-copy em,
html:not([data-theme="dark"]) .id-card-launch-copy em{color:#c21732!important}
html[data-theme="light"] .id-card-launch-meta i,
html:not([data-theme="dark"]) .id-card-launch-meta i{background:#f0f2f5!important;color:#343a43!important;border:1px solid #dce1e7}
html[data-theme="light"] .free-badge,
html:not([data-theme="dark"]) .free-badge{background:#fff0f3!important;color:#b10d27!important;border:1px solid #f2bdc7}
html[data-theme="light"] .studio-drop-zone,
html:not([data-theme="dark"]) .studio-drop-zone{background:linear-gradient(145deg,#fff,#f5f7fa)!important;color:#171a20!important;border-color:#cfd5dc!important}
html[data-theme="light"] .admin-stat,
html:not([data-theme="dark"]) .admin-stat{background:linear-gradient(145deg,#fff,#f5f7fa)!important;color:#171a20!important;border:1px solid #dce1e7}

.email-verification-status{display:inline-flex;width:max-content;margin:7px 0;padding:7px 10px;border-radius:999px;background:#fff0f2;color:#a40b22;font-size:12px;font-weight:900}
.email-verification-status.verified{background:#eaf8ef;color:#176a35}
.auth-link-row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.export-result-card{width:min(860px,calc(100vw - 24px));max-height:92vh;overflow:auto}
.export-result-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0;padding:12px 14px;border-radius:15px;background:#f0f2f5}.export-result-meta strong,.export-result-meta small{display:block;overflow-wrap:anywhere}.export-result-preview{min-height:260px;max-height:56vh;display:grid;place-items:center;overflow:hidden;border-radius:18px;background:#e9edf2;border:1px solid #d8dde4}.export-result-preview img{max-width:100%;max-height:56vh}.export-result-preview iframe{width:100%;height:56vh;border:0;background:#fff}.export-result-unavailable{padding:30px;text-align:center;color:#68717d}.export-result-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.export-result-status{margin:10px 0 0;color:#68717d;font-weight:700;text-align:center}
.admin-stats-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.admin-users-table td small{display:block;color:#7a828d;margin-top:3px}.admin-status{display:inline-flex;margin-top:5px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}.admin-status.verified,.admin-status.active{background:#eaf8ef;color:#176a35}.admin-status.pending{background:#fff4d9;color:#8a5d00}.admin-status.suspended{background:#fff0f2;color:#a40b22}.admin-row-actions{display:flex;flex-wrap:wrap;gap:5px}.admin-row-actions button{border:0;border-radius:8px;padding:6px 8px;background:#e9edf2;color:#20252c;font-size:11px;font-weight:900}.admin-row-actions button.danger{background:#fff0f2;color:#a40b22}.admin-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-audit-list{display:grid;gap:8px}.admin-audit-list article{display:grid;grid-template-columns:1fr auto;gap:3px;padding:10px 12px;border-radius:12px;background:#f0f2f5}.admin-audit-list article small{grid-column:1/-1;color:#7a828d}
html[data-theme="dark"] .export-result-meta,html[data-theme="dark"] .admin-audit-list article{background:#22262d}html[data-theme="dark"] .export-result-preview{background:#111318;border-color:#343a44}html[data-theme="dark"] .export-result-status{color:#aeb6c1}html[data-theme="dark"] .admin-row-actions button{background:#292e36;color:#fff}
@media(max-width:900px){.admin-stats-grid{grid-template-columns:repeat(3,1fr)}.admin-bottom-grid{grid-template-columns:1fr}.export-result-actions{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.admin-stats-grid{grid-template-columns:1fr 1fr}.export-result-actions{grid-template-columns:1fr}.export-result-card{padding:16px}.export-result-preview{min-height:220px}.auth-link-row{display:grid;grid-template-columns:1fr}.admin-users-table{min-width:980px}}


/* iPDF.pro 1.4.10 hotfix — day theme contrast, home hero and footer */
html[data-theme="light"] .home-intro,
html:not([data-theme="dark"]) .home-intro{
  background:linear-gradient(145deg,#ffffff,#f5f7fa)!important;
  border-color:#dce1e7!important;
  color:#171a20!important;
}
html[data-theme="light"] .home-intro h1,
html:not([data-theme="dark"]) .home-intro h1,
html[data-theme="light"] .home-intro p,
html:not([data-theme="dark"]) .home-intro p{
  color:#171a20!important;
}
html[data-theme="light"] .home-intro .section-label,
html:not([data-theme="dark"]) .home-intro .section-label{
  color:#c21732!important;
}
html[data-theme="light"] .home-intro-logo,
html:not([data-theme="dark"]) .home-intro-logo{
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.10));
}
html[data-theme="light"] .home-free-promise,
html:not([data-theme="dark"]) .home-free-promise{
  background:linear-gradient(145deg,#fff5f7,#ffffff)!important;
  border:1px solid #f0ccd4!important;
  box-shadow:0 10px 24px rgba(20,26,35,.06)!important;
}
html[data-theme="light"] .home-free-promise b,
html:not([data-theme="dark"]) .home-free-promise b{
  align-self:start!important;
  justify-self:start!important;
  width:auto!important;
}
html[data-theme="light"] .home-free-promise span,
html:not([data-theme="dark"]) .home-free-promise span{
  color:#2b3139!important;
  -webkit-text-fill-color:#2b3139!important;
}
html[data-theme="light"] .premium-personal-card,
html:not([data-theme="dark"]) .premium-personal-card{
  background:linear-gradient(145deg,#ffffff,#f5f7fa)!important;
  border-color:#dce1e7!important;
  color:#171a20!important;
}
html[data-theme="light"] .premium-personal-card .id-card-launch-copy strong,
html:not([data-theme="dark"]) .premium-personal-card .id-card-launch-copy strong,
html[data-theme="light"] .premium-personal-card .id-card-launch-copy small,
html:not([data-theme="dark"]) .premium-personal-card .id-card-launch-copy small{
  color:#171a20!important;
}
html[data-theme="light"] .premium-personal-card .id-card-launch-cta,
html:not([data-theme="dark"]) .premium-personal-card .id-card-launch-cta{
  background:linear-gradient(145deg,#f6f8fb,#eceff3)!important;
  border-color:#dce1e7!important;
  box-shadow:0 12px 26px rgba(17,24,34,.08)!important;
}
html[data-theme="light"] .premium-personal-card .id-card-launch-cta span,
html:not([data-theme="dark"]) .premium-personal-card .id-card-launch-cta span{
  color:#171a20!important;
}
html[data-theme="light"] .premium-personal-card .id-card-launch-cta b,
html:not([data-theme="dark"]) .premium-personal-card .id-card-launch-cta b{
  background:linear-gradient(145deg,#ffffff,#edf1f5)!important;
  color:#a10d21!important;
}
html[data-theme="light"] .home-legal-footer,
html:not([data-theme="dark"]) .home-legal-footer{
  background:linear-gradient(145deg,#ffffff,#f5f7fa)!important;
  border-color:#dce1e7!important;
  box-shadow:0 14px 34px rgba(17,24,34,.08)!important;
  color:#171a20!important;
}
html[data-theme="light"] .footer-brand-block strong,
html:not([data-theme="dark"]) .footer-brand-block strong,
html[data-theme="light"] .footer-brand-block small,
html:not([data-theme="dark"]) .footer-brand-block small,
html[data-theme="light"] .footer-meta span,
html:not([data-theme="dark"]) .footer-meta span{
  color:#5d6774!important;
}
html[data-theme="light"] .home-legal-footer .footer-link-grid a,
html:not([data-theme="dark"]) .home-legal-footer .footer-link-grid a{
  background:linear-gradient(145deg,#ffffff,#eef2f6)!important;
  border:1px solid #d7dde5!important;
  color:#171a20!important;
}
html[data-theme="light"] .footer-email-link,
html:not([data-theme="dark"]) .footer-email-link{
  background:linear-gradient(145deg,#ef233f,#920b1d)!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-theme="light"] .conversion-command-open,
html:not([data-theme="dark"]) .conversion-command-open,
html[data-theme="light"] .conversion-command-open *,
html:not([data-theme="dark"]) .conversion-command-open *{
  pointer-events:none!important;
}


/* iPDF.pro 1.4.10 — Night implicit, Day curat, conversii complet clicabile */
.home-free-promise .free-promise-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:static!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:32px!important;
  max-width:max-content!important;
  aspect-ratio:auto!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#f12443,#a20b20)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.075em!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:visible!important;
}
.home-free-promise .free-promise-badge::before,
.home-free-promise .free-promise-badge::after{content:none!important;display:none!important}

/* Day: primul card fără forme decorative mari sau suprapuneri roșii. */
html[data-theme="light"] .home-intro::before,
html[data-theme="light"] .home-intro::after{content:none!important;display:none!important}
html[data-theme="light"] .home-intro{
  isolation:isolate!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#ffffff 0%,#f7f9fb 70%,#fff2f5 100%)!important;
}
html[data-theme="light"] .home-intro-copy,
html[data-theme="light"] .home-intro-logo{position:relative!important;z-index:2!important}
html[data-theme="light"] .home-free-promise{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  width:min(100%,470px)!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  background:#fff!important;
  border:1px solid #efcbd3!important;
}
html[data-theme="light"] .home-free-promise span:last-child{
  color:#2b3139!important;
  -webkit-text-fill-color:#2b3139!important;
}

/* Day: scanarea asistată este și ea un card luminos. */
html[data-theme="light"] .scan-smart-panel{
  background:linear-gradient(145deg,#ffffff,#f3f6f9)!important;
  color:#171a20!important;
  border-color:#d8dee6!important;
  box-shadow:0 14px 32px rgba(22,29,39,.09)!important;
}
html[data-theme="light"] .scan-smart-head strong,
html[data-theme="light"] .scan-smart-panel strong,
html[data-theme="light"] .scan-smart-panel b,
html[data-theme="light"] .scan-smart-panel label{color:#171a20!important}
html[data-theme="light"] .scan-smart-panel .section-label{color:#c21732!important}
html[data-theme="light"] .scan-quality-grid span,
html[data-theme="light"] .quality-live-grid span{
  background:#e9edf2!important;
  color:#252b33!important;
  border:1px solid #d9dfe7!important;
}
html[data-theme="light"] .sensitive-row{
  border-top-color:#d9dfe7!important;
}
html[data-theme="light"] .sensitive-row small,
html[data-theme="light"] .smart-watermark-row label,
html[data-theme="light"] .draft-restore small{color:#68717d!important}
html[data-theme="light"] .draft-restore{
  background:#fff2f4!important;
  border-color:#efc8d0!important;
}

/* Orice zonă din cardul de conversie declanșează butonul principal. */
.tools-accordion-button,
.conversion-command{
  cursor:pointer!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}
.tools-accordion-button > *,
.tools-accordion-button > * *,
.conversion-command > *,
.conversion-command > * *{pointer-events:none!important}
.tools-accordion-item.open .tools-accordion-content{max-height:760px!important}


/* ================================================================
   iPDF.pro 1.4.11 — definitive Day + cache-safe home/scan fixes
   ================================================================ */
.free-message-v1411{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  width:min(100%,470px)!important;
  min-height:0!important;
  margin:4px 0 10px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  overflow:visible!important;
  isolation:isolate!important;
}
.free-message-v1411::before,.free-message-v1411::after,
.free-message-v1411>*::before,.free-message-v1411>*::after{
  content:none!important;display:none!important
}
.free-message-v1411 .free-message-badge-v1411{
  position:static!important;
  inset:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  height:32px!important;
  min-width:0!important;
  max-width:max-content!important;
  min-height:32px!important;
  padding:0 11px!important;
  margin:0!important;
  aspect-ratio:auto!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#f12443,#a20b20)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:.075em!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  transform:none!important;
}
.free-message-v1411 .free-message-copy-v1411{
  display:block!important;
  flex:1 1 190px!important;
  position:static!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  background:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:none!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.35!important;
}
html[data-theme="dark"] .free-message-v1411{
  background:linear-gradient(145deg,#202630,#101318)!important;
  border:1px solid #424c59!important;
  box-shadow:0 13px 28px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .free-message-copy-v1411{color:#f5f7fa!important;-webkit-text-fill-color:#f5f7fa!important}
html[data-theme="light"] .free-message-v1411{
  background:#fff!important;
  border:1px solid #efcbd3!important;
  box-shadow:0 10px 24px rgba(20,26,35,.06)!important;
}
html[data-theme="light"] .free-message-copy-v1411{color:#2b3139!important;-webkit-text-fill-color:#2b3139!important}

/* Remove every decorative pseudo-element from the home hero in Day. */
html[data-theme="light"] .home-intro::before,
html[data-theme="light"] .home-intro::after,
html[data-theme="light"] .home-intro-copy::before,
html[data-theme="light"] .home-intro-copy::after{
  content:none!important;display:none!important;background:none!important;border:0!important
}
html[data-theme="light"] .home-intro{
  background:linear-gradient(145deg,#fff 0%,#f7f9fb 76%,#fff4f6 100%)!important;
  color:#171a20!important;
  border-color:#dce1e7!important;
  overflow:hidden!important;
}
html[data-theme="light"] .home-intro h1,
html[data-theme="light"] .home-intro p{color:#171a20!important;-webkit-text-fill-color:#171a20!important}

/* Day must also make assisted scanning fully light. */
html[data-theme="light"] .scan-smart-panel{
  background:linear-gradient(145deg,#fff,#f3f6f9)!important;
  color:#171a20!important;
  border:1px solid #d8dee6!important;
  box-shadow:0 14px 32px rgba(22,29,39,.09)!important;
}
html[data-theme="light"] .scan-smart-panel::before,
html[data-theme="light"] .scan-smart-panel::after{content:none!important;display:none!important}
html[data-theme="light"] .scan-smart-panel strong,
html[data-theme="light"] .scan-smart-panel b,
html[data-theme="light"] .scan-smart-panel label{color:#171a20!important;-webkit-text-fill-color:#171a20!important}
html[data-theme="light"] .scan-smart-panel .section-label{color:#c21732!important;-webkit-text-fill-color:#c21732!important}
html[data-theme="light"] .scan-quality-grid span,
html[data-theme="light"] .quality-live-grid span{
  background:#e9edf2!important;color:#252b33!important;border:1px solid #d9dfe7!important
}
html[data-theme="light"] .sensitive-row{border-top-color:#d9dfe7!important}
html[data-theme="light"] .sensitive-row small{color:#68717d!important;-webkit-text-fill-color:#68717d!important}

/* The entire conversion command is one tap target. */
.tools-accordion-button,.conversion-command{cursor:pointer!important;touch-action:manipulation!important}
.tools-accordion-button *,.conversion-command *{pointer-events:none!important}

/* Day footer stays light. */
html[data-theme="light"] .home-legal-footer{
  background:linear-gradient(145deg,#fff,#f5f7fa)!important;
  color:#171a20!important;border-color:#dce1e7!important
}
html[data-theme="light"] .home-legal-footer .footer-link-grid a{
  background:linear-gradient(145deg,#fff,#eef2f6)!important;color:#171a20!important;border-color:#d7dde5!important
}
html[data-theme="light"] .home-legal-footer .footer-email-link{background:linear-gradient(145deg,#ef233f,#920b1d)!important;color:#fff!important}
html[data-theme="light"] .footer-brand-block strong,
html[data-theme="light"] .footer-brand-block small,
html[data-theme="light"] .footer-meta span{color:#5d6774!important}

/* ================================================================
   iPDF.pro 1.4.12 — robust hero promo fix for Day/Night
   ================================================================ */
.free-message-v1412{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  width:min(100%,470px)!important;
  min-height:0!important;
  margin:4px 0 10px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.free-message-v1412::before,.free-message-v1412::after,
.free-message-v1412 *::before,.free-message-v1412 *::after{
  content:none!important;
  display:none!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}
.free-message-v1412 .free-message-badge-v1412{
  position:static!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  flex:0 0 auto!important;
  float:none!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:max-content!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 12px!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#f12443,#a20b20)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:.075em!important;
  white-space:nowrap!important;
  text-align:center!important;
  text-indent:0!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:visible!important;
}
.free-message-v1412 .free-message-copy-v1412{
  display:block!important;
  flex:1 1 190px!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  background:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:none!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.35!important;
}
html[data-theme="dark"] .free-message-v1412{
  background:linear-gradient(145deg,#202630,#101318)!important;
  border:1px solid #424c59!important;
  box-shadow:0 13px 28px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .free-message-v1412 .free-message-copy-v1412{
  color:#f5f7fa!important;
  -webkit-text-fill-color:#f5f7fa!important;
}
html[data-theme="light"] .free-message-v1412,
html:not([data-theme="dark"]) .free-message-v1412{
  background:#fff!important;
  border:1px solid #efcbd3!important;
  box-shadow:0 10px 24px rgba(20,26,35,.06)!important;
}
html[data-theme="light"] .free-message-v1412 .free-message-copy-v1412,
html:not([data-theme="dark"]) .free-message-v1412 .free-message-copy-v1412{
  color:#2b3139!important;
  -webkit-text-fill-color:#2b3139!important;
}
/* Kill the old hero decorative overlays in Day with stronger specificity. */
html[data-theme="light"] #homeView .home-intro::before,
html[data-theme="light"] #homeView .home-intro::after,
html[data-theme="light"] #homeView .home-intro-copy::before,
html[data-theme="light"] #homeView .home-intro-copy::after,
html[data-theme="light"] #homeView .free-message-v1411,
html[data-theme="light"] #homeView .home-free-promise{
  background-clip:padding-box!important;
}
html[data-theme="light"] #homeView .home-intro::before,
html[data-theme="light"] #homeView .home-intro::after,
html[data-theme="light"] #homeView .home-intro-copy::before,
html[data-theme="light"] #homeView .home-intro-copy::after{
  content:none!important;
  display:none!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}
/* Ensure the entire JPG→PDF card and CTA are clickable. */
.choice-card[data-open-view="jpgView"],
.choice-card[data-open-view="jpgView"] *,
.conversion-command,
.conversion-command *{
  cursor:pointer!important;
}
.choice-card[data-open-view="jpgView"] .choice-cta,
.choice-card[data-open-view="jpgView"] .choice-cta *{
  pointer-events:none!important;
}


/* iPDF.pro 1.4.13 — removed the 100% free badge completely */
.hero-free-text-v1413{
  display:block!important;
  position:static!important;
  float:none!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:620px!important;
  margin:4px 0 12px!important;
  padding:0!important;
  background:none!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:visible!important;
  color:#f5f7fa!important;
  -webkit-text-fill-color:#f5f7fa!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.45!important;
}
.hero-free-text-v1413::before,.hero-free-text-v1413::after{content:none!important;display:none!important}
html[data-theme="light"] .hero-free-text-v1413,
html:not([data-theme="dark"]) .hero-free-text-v1413{
  color:#a10d21!important;
  -webkit-text-fill-color:#a10d21!important;
}

/* ================================================================
   iPDF.pro 1.4.14 — Day red-square fix
   The Day accent pseudo-element was positioned against #homeView
   because the compact cards were not positioned containers.
   ================================================================ */
.compact-choice-card{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.compact-choice-card > *{
  position:relative;
  z-index:2;
}
html[data-theme="light"] .compact-choice-card::before,
html:not([data-theme="dark"]) .compact-choice-card::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:5px!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:linear-gradient(#ff3150,#a0091d)!important;
  box-shadow:none!important;
  transform:none!important;
  z-index:1!important;
  pointer-events:none!important;
}
.compact-choice-card::after{
  pointer-events:none!important;
}

/* ================================================================
   iPDF.pro 1.4.15 — Day card depth and contrast
   More visible external shadows without changing the Dark theme.
   ================================================================ */

/* Slightly darker page surface so white cards separate more clearly. */
html[data-theme="light"] body,
html:not([data-theme="dark"]) body{
  background:linear-gradient(180deg,#f4f7fa 0%,#e9edf2 100%)!important;
}

/* Hero card. */
html[data-theme="light"] #homeView .home-intro,
html:not([data-theme="dark"]) #homeView .home-intro{
  background:linear-gradient(145deg,#fff 0%,#f8f9fb 100%)!important;
  border:1px solid rgba(176,185,198,.48)!important;
  box-shadow:
    0 22px 52px rgba(24,32,44,.14),
    0 5px 15px rgba(24,32,44,.07),
    inset 0 1px 0 rgba(255,255,255,.95)!important;
}

/* Main JPG and Scan cards. */
html[data-theme="light"] #homeView .compact-choice-card,
html:not([data-theme="dark"]) #homeView .compact-choice-card{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:linear-gradient(145deg,#fff 0%,#f6f8fa 100%)!important;
  border:1px solid rgba(174,184,197,.50)!important;
  box-shadow:
    0 20px 44px rgba(23,31,43,.15),
    0 5px 14px rgba(23,31,43,.07),
    inset 0 1px 0 rgba(255,255,255,.96)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}

/* Keep the red accent attached to each card, never to the page. */
html[data-theme="light"] #homeView .compact-choice-card::before,
html:not([data-theme="dark"]) #homeView .compact-choice-card::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  left:0!important;
  right:auto!important;
  width:6px!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#ff3150 0%,#df1633 48%,#9d091d 100%)!important;
  box-shadow:3px 0 12px rgba(216,23,52,.13)!important;
  transform:none!important;
  z-index:1!important;
  pointer-events:none!important;
}
html[data-theme="light"] #homeView .compact-choice-card > *,
html:not([data-theme="dark"]) #homeView .compact-choice-card > *{
  position:relative;
  z-index:2;
}

/* Personal-document card. */
html[data-theme="light"] #homeView .premium-personal-card,
html:not([data-theme="dark"]) #homeView .premium-personal-card{
  background:linear-gradient(145deg,#fff 0%,#f7f9fb 100%)!important;
  border:1px solid rgba(174,184,197,.50)!important;
  box-shadow:
    0 22px 48px rgba(23,31,43,.15),
    0 5px 15px rgba(23,31,43,.07),
    inset 0 1px 0 rgba(255,255,255,.96)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}

html[data-theme="light"] #homeView .premium-personal-card .id-card-launch-cta,
html:not([data-theme="dark"]) #homeView .premium-personal-card .id-card-launch-cta{
  background:linear-gradient(145deg,#fff 0%,#edf1f5 100%)!important;
  border:1px solid rgba(178,188,201,.46)!important;
  box-shadow:
    0 12px 28px rgba(23,31,43,.11),
    inset 0 1px 0 rgba(255,255,255,.95)!important;
}

/* Secondary Home sections. */
html[data-theme="light"] #homeView .premium-tools-accordion,
html:not([data-theme="dark"]) #homeView .premium-tools-accordion,
html[data-theme="light"] #homeView .pdf-tools-accordion,
html:not([data-theme="dark"]) #homeView .pdf-tools-accordion,
html[data-theme="light"] #homeView .free-suite,
html:not([data-theme="dark"]) #homeView .free-suite,
html[data-theme="light"] #homeView .compact-account-card,
html:not([data-theme="dark"]) #homeView .compact-account-card{
  background:linear-gradient(145deg,#fff 0%,#f7f9fb 100%)!important;
  border:1px solid rgba(174,184,197,.48)!important;
  box-shadow:
    0 19px 42px rgba(23,31,43,.13),
    0 4px 13px rgba(23,31,43,.06),
    inset 0 1px 0 rgba(255,255,255,.96)!important;
}

@media (hover:hover) and (pointer:fine){
  html[data-theme="light"] #homeView .compact-choice-card:hover,
  html:not([data-theme="dark"]) #homeView .compact-choice-card:hover,
  html[data-theme="light"] #homeView .premium-personal-card:hover,
  html:not([data-theme="dark"]) #homeView .premium-personal-card:hover{
    transform:translateY(-3px)!important;
    box-shadow:
      0 26px 56px rgba(23,31,43,.18),
      0 7px 18px rgba(23,31,43,.08),
      inset 0 1px 0 rgba(255,255,255,.98)!important;
  }
}

@media (max-width:720px){
  html[data-theme="light"] #homeView .home-intro,
  html:not([data-theme="dark"]) #homeView .home-intro{
    box-shadow:
      0 17px 38px rgba(23,31,43,.13),
      0 4px 11px rgba(23,31,43,.06),
      inset 0 1px 0 rgba(255,255,255,.96)!important;
  }
  html[data-theme="light"] #homeView .compact-choice-card,
  html:not([data-theme="dark"]) #homeView .compact-choice-card,
  html[data-theme="light"] #homeView .premium-personal-card,
  html:not([data-theme="dark"]) #homeView .premium-personal-card{
    box-shadow:
      0 17px 38px rgba(23,31,43,.14),
      0 4px 11px rgba(23,31,43,.06),
      inset 0 1px 0 rgba(255,255,255,.96)!important;
  }
}


/* ================================================================
   iPDF.pro 1.4.16 — accessibility, privacy notice and admin controls
   ================================================================ */
.home-processing-note{
  display:flex;align-items:flex-start;gap:12px;margin:16px 0;padding:14px 16px;
  border:1px solid rgba(125,135,150,.28);border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,243,247,.96));
  box-shadow:0 12px 28px rgba(20,28,40,.08);color:#20242b
}
.home-processing-note>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:14px;background:#11151b;color:#fff;font-size:20px}
.home-processing-note strong,.home-processing-note small{display:block}.home-processing-note small{margin-top:3px;color:#68717d;line-height:1.45}
html[data-theme="dark"] .home-processing-note{background:linear-gradient(145deg,#181c23,#111318);border-color:rgba(255,255,255,.11);color:#f7f8fa;box-shadow:0 14px 32px rgba(0,0,0,.28)}
html[data-theme="dark"] .home-processing-note small{color:#b9c0ca}
.admin-header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.auth-verification-note{margin:0;padding:10px 12px;border-radius:13px;background:#fff4e5;border:1px solid #f0d5a9;color:#704b13;font-size:12px;font-weight:750;line-height:1.45}
html[data-theme="dark"] .auth-verification-note{background:#2a2115;border-color:#5f4928;color:#f1d7a9}
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #ff3150!important;outline-offset:3px!important}
@media (max-width:720px){.home-processing-note{margin:14px 0;padding:13px}.admin-header-actions{width:100%;justify-content:stretch}.admin-header-actions>*{flex:1}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* ================================================================
   iPDF 1.4.17 — meniu complet, tutoriale și statistici conversii
   ================================================================ */
.tools-menu-button{
  width:42px;height:42px;flex:0 0 42px;display:grid;place-content:center;gap:4px;
  border:1px solid rgba(255,255,255,.16);border-radius:13px;
  background:rgba(255,255,255,.09);color:#fff
}
.tools-menu-button span{display:block;width:18px;height:2px;border-radius:999px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.tools-menu-button[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.tools-menu-button[aria-expanded="true"] span:nth-child(2){opacity:0}
.tools-menu-button[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.tools-menu-layer{position:fixed;inset:0;z-index:110;display:flex;justify-content:flex-end}
.tools-menu-layer.hidden{display:none!important}
.tools-menu-backdrop{position:absolute;inset:0;background:rgba(4,6,9,.60);backdrop-filter:blur(7px)}
.tools-menu-panel{
  position:relative;width:min(560px,94vw);height:100%;display:flex;flex-direction:column;
  background:linear-gradient(160deg,#f9fafc 0%,#eef1f5 70%,#f8e7ea 100%);
  color:#15181e;border-left:1px solid rgba(255,255,255,.45);
  box-shadow:-24px 0 70px rgba(0,0,0,.34);animation:toolsMenuIn .24s ease both
}
@keyframes toolsMenuIn{from{transform:translateX(100%);opacity:.6}to{transform:translateX(0);opacity:1}}
.tools-menu-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:max(18px,env(safe-area-inset-top)) 20px 14px;border-bottom:1px solid rgba(21,24,30,.09)}
.tools-menu-brand{display:flex;align-items:center;gap:12px}.tools-menu-brand img{width:48px;height:48px;object-fit:contain;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(20,25,35,.12)}
.tools-menu-brand h2{margin:3px 0 0;font-size:25px;letter-spacing:-.04em}.tools-menu-close{width:42px;height:42px;border:0;border-radius:14px;background:#171b21;color:#fff;font-size:28px;line-height:1}
.tools-menu-search-wrap{display:flex;align-items:center;gap:10px;margin:14px 18px 8px;padding:0 14px;border:1px solid rgba(21,24,30,.12);border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(18,24,34,.07)}
.tools-menu-search-wrap span{font-size:24px;color:#a10d21}.tools-menu-search-wrap input{width:100%;height:48px;border:0;outline:0;background:transparent;color:#171a20;font:800 14px/1.2 inherit}
.tools-menu-scroll{overflow:auto;padding:8px 18px calc(26px + env(safe-area-inset-bottom));overscroll-behavior:contain}
.tools-menu-category{padding:13px 0 15px;border-bottom:1px solid rgba(21,24,30,.08)}
.tools-menu-category-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.tools-menu-category-head>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(145deg,#ee2340,#950b1e);color:#fff;font-size:10px;font-weight:950}.tools-menu-category-head strong,.tools-menu-category-head small{display:block}.tools-menu-category-head strong{font-size:16px}.tools-menu-category-head small{margin-top:2px;color:#747b86;font-size:11px}
.tools-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tools-menu-item{display:flex;align-items:center;gap:10px;min-height:72px;padding:11px;border:1px solid rgba(20,24,31,.10);border-radius:16px;background:linear-gradient(145deg,#fff,#f3f5f8);text-align:left;color:#15181e;box-shadow:0 8px 20px rgba(17,23,33,.06)}
.tools-menu-item>b{display:grid;place-items:center;flex:0 0 39px;min-width:39px;height:39px;padding:0 4px;border-radius:12px;background:linear-gradient(145deg,#20252d,#0b0d11);color:#fff;font-size:10px;letter-spacing:-.02em}.tools-menu-item span{min-width:0}.tools-menu-item strong,.tools-menu-item small{display:block}.tools-menu-item strong{font-size:13px;line-height:1.2}.tools-menu-item small{margin-top:4px;color:#737a85;font-size:10px;line-height:1.25}.tools-menu-item:active{transform:scale(.985)}
.tools-menu-admin{grid-column:1/-1;background:linear-gradient(145deg,#fff1f3,#fff);border-color:rgba(206,20,48,.18)}.tools-menu-admin>b{background:linear-gradient(145deg,#ed2642,#8d091b)}
.tools-menu-empty{text-align:center;padding:28px 10px;color:#6f7782;font-weight:800}
body.tools-menu-open{overflow:hidden!important}

.tutorial-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#11151b 0%,#303743 62%,#9a0b20 100%)!important;color:#fff!important}.tutorial-hero h2{margin:6px 0 8px;font-size:32px}.tutorial-hero p{margin:0;max-width:720px;color:#d7dbe1}.tutorial-hero-mark{display:grid;place-items:center;flex:0 0 82px;height:82px;border-radius:26px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);font-size:48px;font-weight:950}
.tutorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.tutorial-card{padding:0;overflow:hidden}.tutorial-card summary{list-style:none;display:flex;align-items:center;gap:12px;padding:18px;cursor:pointer}.tutorial-card summary::-webkit-details-marker{display:none}.tutorial-card summary>div{flex:1}.tutorial-card summary strong,.tutorial-card summary small{display:block}.tutorial-card summary strong{font-size:17px}.tutorial-card summary small{margin-top:4px;color:#737a84}.tutorial-card summary>b{font-size:22px;transition:transform .2s}.tutorial-card[open] summary>b{transform:rotate(45deg)}.tutorial-number{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,#ed2541,#8d091c);color:#fff;font-size:11px;font-weight:950}.tutorial-card ol{margin:0;padding:0 22px 4px 42px;color:#59616c;line-height:1.5}.tutorial-card li{padding:4px 0}.tutorial-card>.primary-button,.tutorial-card>.tutorial-actions{margin:12px 18px 18px}.tutorial-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}

.admin-conversion-card{margin-bottom:14px}.admin-conversion-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}.admin-conversion-summary article{padding:15px;border-radius:16px;background:linear-gradient(145deg,#f4f6f9,#fff);border:1px solid rgba(20,24,31,.09)}.admin-conversion-summary small,.admin-conversion-summary strong{display:block}.admin-conversion-summary small{color:#737b86;font-weight:800}.admin-conversion-summary strong{margin-top:5px;font-size:28px}.admin-conversion-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:20px}.admin-conversion-layout h3{margin:0 0 10px}.admin-conversion-tools{display:grid;gap:9px}.admin-conversion-tools article{padding:10px 12px;border-radius:13px;background:#f2f4f7}.admin-conversion-tools article div{display:flex;justify-content:space-between;gap:10px;font-size:12px}.admin-conversion-tools article i{display:block;height:6px;margin-top:7px;border-radius:999px;background:linear-gradient(90deg,#ef2542,#920a1d)}.admin-conversion-days{display:grid;gap:9px}.admin-conversion-days article{display:grid;grid-template-columns:90px 1fr 36px;align-items:center;gap:8px;font-size:12px}.admin-conversion-days article div{height:9px;border-radius:999px;background:#e4e7eb;overflow:hidden}.admin-conversion-days article i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#242a33,#d51c36)}.admin-conversion-days article strong{text-align:right}

html[data-theme="dark"] .tools-menu-panel{background:linear-gradient(160deg,#11151a,#1b2027 72%,#420812);color:#f5f7fa;border-left-color:#343b45}html[data-theme="dark"] .tools-menu-head,html[data-theme="dark"] .tools-menu-category{border-color:#303741}html[data-theme="dark"] .tools-menu-search-wrap,html[data-theme="dark"] .tools-menu-item{background:linear-gradient(145deg,#20262e,#15191f);border-color:#343b45;color:#fff}html[data-theme="dark"] .tools-menu-search-wrap input{color:#fff}html[data-theme="dark"] .tools-menu-category-head small,html[data-theme="dark"] .tools-menu-item small{color:#aeb5bf}html[data-theme="dark"] .admin-conversion-summary article,html[data-theme="dark"] .admin-conversion-tools article{background:#20262e;border-color:#343b45}html[data-theme="dark"] .tutorial-card ol{color:#b8bec7}

@media(max-width:720px){.tools-menu-button{width:38px;height:38px;flex-basis:38px}.tools-menu-panel{width:100vw}.tools-menu-head{padding-left:15px;padding-right:15px}.tools-menu-scroll{padding-left:12px;padding-right:12px}.tools-menu-search-wrap{margin-left:12px;margin-right:12px}.tutorial-grid{grid-template-columns:1fr}.tutorial-hero{padding:20px}.tutorial-hero-mark{flex-basis:62px;height:62px;font-size:38px}.admin-conversion-layout{grid-template-columns:1fr}.admin-conversion-summary{grid-template-columns:1fr 1fr}.admin-conversion-summary article:last-child{grid-column:1/-1}}
@media(max-width:440px){.tools-menu-grid{grid-template-columns:1fr}.tools-menu-admin{grid-column:auto}.tools-menu-brand h2{font-size:21px}.tools-menu-brand img{width:42px;height:42px}.tutorial-actions{grid-template-columns:1fr}.admin-conversion-days article{grid-template-columns:78px 1fr 32px}}


/* iPDF 1.4.17 — menu complet, ancore și formate extinse */
.converter-page-size-field{display:grid;gap:7px;margin:14px 0 4px;text-align:left}.converter-page-size-field small{color:var(--muted);font-size:.78rem;line-height:1.35}.smart-dashboard-grid>section[id]{scroll-margin-top:118px}.smart-target-highlight{animation:smartTargetPulse 1.2s ease both}@keyframes smartTargetPulse{0%,100%{box-shadow:var(--card-shadow)}35%{box-shadow:0 0 0 4px rgba(225,24,55,.18),0 18px 42px rgba(19,28,42,.18)}}@media(max-width:760px){.smart-dashboard-grid>section[id]{scroll-margin-top:102px}.converter-page-size-field{margin-top:12px}}

/* Header compact cu meniu hamburger pe telefoane înguste */
@media (max-width:520px){
  .app-header{gap:6px;padding-left:8px;padding-right:8px}
  .brand-button{gap:7px;min-width:0}
  .brand-symbol-shell{width:43px;height:43px;flex:0 0 43px}
  .brand-symbol-image{width:38px;height:38px}
  .brand-copy strong{font-size:17px;white-space:nowrap}
  .header-actions{gap:4px;flex:0 0 auto}
  .tools-menu-button,.theme-header-button{width:38px;height:38px;min-height:38px;flex-basis:38px;border-radius:12px}
  .header-login-button{width:38px;height:38px;min-height:38px;flex:0 0 38px;padding:4px;justify-content:center;border-radius:12px}
  .header-login-button .account-avatar{width:28px;height:28px}
}
@media (max-width:380px){
  .brand-copy strong{font-size:15px}
  .language-button{min-width:26px!important;padding:0 4px!important}
  .tools-menu-button,.theme-header-button,.header-login-button{width:36px;height:36px;min-height:36px;flex-basis:36px}
}


/* ================================================================
   iPDF.pro 1.4.18 — avatar rotund + iconuri reale în meniul complet
   ================================================================ */
.header-login-button{
  flex-shrink:0!important;
  overflow:visible!important;
}
.header-login-button .account-avatar{
  display:grid!important;
  place-items:center!important;
  flex:0 0 32px!important;
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  aspect-ratio:1/1!important;
  border-radius:999px!important;
  padding:0!important;
  line-height:1!important;
  font-size:14px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}

.tools-menu-item>.menu-real-icon{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 46px;
  width:46px;
  min-width:46px;
  height:46px;
  border-radius:13px;
  overflow:visible;
  isolation:isolate;
  filter:drop-shadow(0 5px 8px rgba(17,24,34,.12));
}
.tools-menu-item>.menu-real-icon+span{min-width:0}
.tools-menu-item>.menu-line-icon{
  --icon:#e92943;
  --icon-soft:#fff0f2;
  color:var(--icon);
  background:linear-gradient(145deg,#fff,var(--icon-soft));
  border:1px solid color-mix(in srgb,var(--icon) 22%,transparent);
}
.tools-menu-item>.menu-line-icon svg{
  width:29px;height:29px;overflow:visible;
  fill:none;stroke:currentColor;stroke-width:2.05;stroke-linecap:round;stroke-linejoin:round;
}
.menu-line-icon.icon-scan{--icon:#f0644d;--icon-soft:#fff1ed}
.menu-line-icon.icon-id{--icon:#2f72d6;--icon-soft:#edf4ff}
.menu-line-icon.icon-ocr{--icon:#78ad45;--icon-soft:#f1f9e9}
.menu-line-icon.icon-edit{--icon:#f06a4f;--icon-soft:#fff0ec}
.menu-line-icon.icon-compress{--icon:#68a742;--icon-soft:#eff8e9}
.menu-line-icon.icon-sign{--icon:#d44c78;--icon-soft:#fff0f6}
.menu-line-icon.icon-protect{--icon:#7156c8;--icon-soft:#f2efff}
.menu-line-icon.icon-form{--icon:#2f87a7;--icon-soft:#ebf8fc}
.menu-line-icon.icon-pwa{--icon:#319b68;--icon-soft:#eaf9f1}
.menu-line-icon.icon-backup{--icon:#4277c8;--icon-soft:#edf4ff}
.menu-line-icon.icon-compare{--icon:#9a62c7;--icon-soft:#f6effd}
.menu-line-icon.icon-extract{--icon:#e09a28;--icon-soft:#fff7e6}
.menu-line-icon.icon-qr{--icon:#20252d;--icon-soft:#f0f2f4}
.menu-line-icon.icon-link{--icon:#2885a8;--icon-soft:#eaf7fb}
.menu-line-icon.icon-account{--icon:#c91e39;--icon-soft:#fff0f3}
.menu-line-icon.icon-tutorial{--icon:#e06b28;--icon-soft:#fff2e9}
.menu-line-icon.icon-faq{--icon:#5378bd;--icon-soft:#edf3ff}
.menu-line-icon.icon-info{--icon:#777f8b;--icon-soft:#f1f3f5}
.menu-line-icon.icon-admin{--icon:#d51c38;--icon-soft:#fff0f3}

.tools-menu-item>.menu-file-icon{
  --file:#df2942;
  --file-soft:#ffe9ed;
  --badge:#bd142d;
  --badge-text:#fff;
  background:transparent;
}
.menu-file-page{
  position:absolute;left:4px;top:2px;width:34px;height:40px;
  display:grid;place-items:center;
  border:1px solid rgba(20,25,33,.10);
  border-left:5px solid var(--file);
  border-radius:5px 8px 8px 5px;
  background:linear-gradient(145deg,#fff,var(--file-soft));
  box-shadow:0 5px 12px rgba(15,22,32,.13);
  overflow:hidden;
}
.menu-file-page::before{
  content:"";position:absolute;right:-1px;top:-1px;width:10px;height:10px;
  background:linear-gradient(225deg,#fff 0 49%,rgba(20,25,33,.12) 50% 53%,var(--file-soft) 54%);
  border-radius:0 0 0 3px;
}
.menu-file-page i{
  position:relative;z-index:1;font-style:normal;font-weight:950;font-size:12px;line-height:1;
  color:var(--file);letter-spacing:-.05em;
}
.menu-file-badge{
  position:absolute;right:0;bottom:0;z-index:3;
  display:grid;place-items:center;min-width:24px;height:18px;padding:0 4px;
  border:2px solid #fff;border-radius:6px;
  background:var(--badge);color:var(--badge-text);
  font-size:7px;font-weight:950;line-height:1;letter-spacing:-.03em;
  box-shadow:0 4px 9px rgba(20,25,34,.18);
}
.menu-file-icon::after{
  content:"↘";position:absolute;right:8px;top:5px;z-index:4;
  display:grid;place-items:center;width:14px;height:14px;border-radius:50%;
  background:#fff;color:var(--badge);font-size:10px;font-weight:950;
  box-shadow:0 2px 6px rgba(20,25,34,.16);
}
.menu-file-icon.icon-jpg-pdf{--file:#e6b315;--file-soft:#fff9dc;--badge:#df2c43}
.menu-file-icon.icon-word-pdf{--file:#3975c9;--file-soft:#eaf2ff;--badge:#df2c43}
.menu-file-icon.icon-ppt-pdf{--file:#e76f45;--file-soft:#fff0ea;--badge:#df2c43}
.menu-file-icon.icon-excel-pdf{--file:#399b5d;--file-soft:#eaf8ef;--badge:#df2c43}
.menu-file-icon.icon-html-pdf{--file:#e6a411;--file-soft:#fff7dc;--badge:#df2c43}
.menu-file-icon.icon-pdf-jpg{--file:#df2c43;--file-soft:#ffecef;--badge:#d8a80d;--badge-text:#fff}
.menu-file-icon.icon-pdf-word{--file:#df2c43;--file-soft:#ffecef;--badge:#3975c9}
.menu-file-icon.icon-pdf-ppt{--file:#df2c43;--file-soft:#ffecef;--badge:#e76f45}
.menu-file-icon.icon-pdf-excel{--file:#df2c43;--file-soft:#ffecef;--badge:#399b5d}
.menu-file-icon.icon-pdfa{--file:#df2c43;--file-soft:#ffecef;--badge:#3a75c8}

html[data-theme="dark"] .tools-menu-item>.menu-line-icon{
  background:linear-gradient(145deg,color-mix(in srgb,var(--icon) 20%,#262c34),#171c22);
  border-color:color-mix(in srgb,var(--icon) 45%,#303741);
}
html[data-theme="dark"] .menu-file-page{border-color:#3a424d;background:linear-gradient(145deg,#f9fafc,var(--file-soft))}
html[data-theme="dark"] .menu-file-badge{border-color:#1b2027}

@media(max-width:520px){
  .header-login-button{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex:0 0 42px!important;
    padding:4px!important;border-radius:14px!important;
  }
  .header-login-button .account-avatar{
    width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;flex-basis:32px!important;
  }
}
@media(max-width:380px){
  .header-login-button{
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex-basis:40px!important;
  }
  .header-login-button .account-avatar{
    width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;flex-basis:30px!important;
  }
}


/* ================================================================
   iPDF.pro 1.4.19 — iconuri Home, meniu în colț și ochi parolă
   ================================================================ */
/* Meniul cu trei linii rămâne ultimul element, lipit de colțul drept. */
.header-actions .header-login-button{order:90}
.header-actions .tools-menu-button{order:100;margin-right:0!important}
.compact-header .header-actions{margin-left:auto!important;padding-right:0!important}

/* Iconuri grafice reale pe prima pagină. */
.home-real-icon{
  position:relative!important;display:grid!important;place-items:center!important;
  overflow:visible!important;isolation:isolate!important
}
.compact-choice-card .choice-icon.home-real-icon{
  width:76px!important;height:76px!important;border-radius:22px!important;
  padding:0!important;background:linear-gradient(145deg,#fff,#eef1f5)!important;
  border:1px solid rgba(24,29,38,.10)!important;
  box-shadow:0 14px 30px rgba(17,23,32,.16),inset 0 1px 0 rgba(255,255,255,.96)!important
}
.compact-choice-card .choice-icon.home-real-icon.menu-line-icon{
  color:var(--icon)!important;background:linear-gradient(145deg,#fff,var(--icon-soft))!important
}
.compact-choice-card .choice-icon.home-real-icon.menu-line-icon svg{
  width:42px!important;height:42px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important
}
.compact-choice-card .choice-icon.home-real-icon.menu-file-icon .menu-file-page{
  left:11px;top:8px;width:48px;height:57px;border-left-width:6px;border-radius:7px 10px 10px 7px
}
.compact-choice-card .choice-icon.home-real-icon.menu-file-icon .menu-file-page i{font-size:14px}
.compact-choice-card .choice-icon.home-real-icon.menu-file-icon .menu-file-badge{
  right:4px;bottom:4px;min-width:31px;height:22px;font-size:8px;border-radius:7px
}
.compact-choice-card .choice-icon.home-real-icon.menu-file-icon::after{
  right:13px;top:10px;width:17px;height:17px;font-size:11px
}
.premium-personal-card .id-card-launch-icon.home-real-icon{
  --icon:#d01b36;--icon-soft:#fff0f3;color:var(--icon)!important;
  background:linear-gradient(145deg,#fff,var(--icon-soft))!important;
  border:1px solid rgba(208,27,54,.16)!important
}
.premium-personal-card .id-card-launch-icon.home-real-icon svg{
  width:39px!important;height:39px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important
}

/* Iconuri reale în listele de conversie de pe Home. */
.pdf-tool-row>.menu-real-icon{
  position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;
  border-radius:13px;overflow:visible;isolation:isolate;filter:drop-shadow(0 5px 8px rgba(17,24,34,.10))
}
.pdf-tool-row>.menu-file-icon .menu-file-page{left:3px;top:1px;width:33px;height:39px}
.pdf-tool-row>.menu-file-icon .menu-file-badge{right:-1px;bottom:-1px}

/* Iconuri reale în Studio complet. */
.suite-tool>.menu-real-icon{
  position:relative;display:grid;place-items:center;width:48px;min-width:48px;height:48px;
  margin-bottom:13px;border-radius:15px;overflow:visible;isolation:isolate;
  filter:drop-shadow(0 6px 10px rgba(17,24,34,.12))
}
.suite-tool>.menu-line-icon{
  color:var(--icon);background:linear-gradient(145deg,#fff,var(--icon-soft));
  border:1px solid color-mix(in srgb,var(--icon) 22%,transparent)
}
.suite-tool>.menu-line-icon svg{
  width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.05;stroke-linecap:round;stroke-linejoin:round
}
.menu-line-icon.icon-smart{--icon:#9a62c7;--icon-soft:#f6effd}
.suite-tool-smart>.menu-line-icon{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.2)!important;color:#fff!important}

/* Cele șase carduri rapide de deasupra footerului. */
.seo-tool-links a{
  display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;align-items:center!important;
  gap:11px!important;text-align:left!important
}
.seo-tool-links .menu-real-icon{
  position:relative;display:grid;place-items:center;width:44px;min-width:44px;height:44px;
  border-radius:13px;overflow:visible;isolation:isolate;filter:drop-shadow(0 5px 8px rgba(17,24,34,.10))
}
.seo-tool-links .menu-line-icon{
  color:var(--icon);background:linear-gradient(145deg,#fff,var(--icon-soft));
  border:1px solid color-mix(in srgb,var(--icon) 22%,transparent)
}
.seo-tool-links .menu-line-icon svg{
  width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.05;stroke-linecap:round;stroke-linejoin:round
}
.seo-tool-links .menu-file-icon .menu-file-page{left:3px;top:1px;width:33px;height:39px}
.seo-tool-links .menu-file-icon .menu-file-badge{right:-1px;bottom:-1px}
.seo-tool-copy{display:block;min-width:0}.seo-tool-copy strong,.seo-tool-copy small{display:block}

/* Ochi realist pentru toate câmpurile de parolă. */
.password-toggle{line-height:0!important}
.password-toggle .password-eye-icon{
  width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;pointer-events:none
}
.password-toggle.visible .password-eye-icon{width:21px;height:21px}

html[data-theme="dark"] .compact-choice-card .choice-icon.home-real-icon,
html[data-theme="dark"] .premium-personal-card .id-card-launch-icon.home-real-icon{
  background:linear-gradient(145deg,#252b33,#12161c)!important;border-color:#3b444f!important
}
html[data-theme="dark"] .suite-tool>.menu-line-icon,
html[data-theme="dark"] .seo-tool-links .menu-line-icon{
  background:linear-gradient(145deg,color-mix(in srgb,var(--icon) 20%,#262c34),#171c22);
  border-color:color-mix(in srgb,var(--icon) 45%,#303741)
}

@media(max-width:520px){
  .compact-choice-card .choice-icon.home-real-icon{width:64px!important;height:64px!important}
  .compact-choice-card .choice-icon.home-real-icon.menu-line-icon svg{width:35px!important;height:35px!important}
  .compact-choice-card .choice-icon.home-real-icon.menu-file-icon .menu-file-page{left:9px;top:7px;width:40px;height:48px}
  .compact-choice-card .choice-icon.home-real-icon.menu-file-icon .menu-file-badge{right:2px;bottom:2px}
  .seo-tool-links a{grid-template-columns:42px minmax(0,1fr)!important;gap:9px!important}
  .seo-tool-links .menu-real-icon{width:40px;min-width:40px;height:40px}
}


/* ================================================================
   iPDF.pro 1.4.21 — badge „Deschide” tip colț promoțional
   ================================================================ */
/* Cardurile principale păstrează badge-ul în interiorul conturului. */
#homeView .compact-choice-card,
#homeView .premium-personal-card{
  overflow:hidden!important;
}

/* JPG → PDF și Scan PDF: butonul devine un badge lipit de colțul stânga-jos,
   inspirat din forma badge-ului promoțional -5%. */
#homeView .compact-choice-card .choice-cta{
  margin-left:-20px!important;
  margin-right:-2px!important;
  margin-bottom:-20px!important;
  min-height:66px!important;
  align-items:flex-end!important;
}
#homeView .compact-choice-card .choice-cta-label{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:136px!important;
  height:62px!important;
  padding:0 28px 0 22px!important;
  margin:0!important;
  border-radius:0 48px 0 0!important;
  background:linear-gradient(145deg,#ff2c4b 0%,#ed1638 48%,#b60725 100%)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:950!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
  box-shadow:
    9px -7px 22px rgba(215,15,48,.26),
    inset 0 1px 0 rgba(255,255,255,.24)!important;
  text-shadow:0 1px 1px rgba(80,0,14,.22)!important;
}
#homeView .compact-choice-card .choice-cta-label::after{
  content:"";
  position:absolute;
  left:0;
  right:24px;
  bottom:0;
  height:4px;
  background:rgba(91,4,20,.18);
  pointer-events:none;
}
#homeView .compact-choice-card .choice-cta b{
  width:42px!important;
  height:42px!important;
  margin:0 15px 12px auto!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22)!important;
}

/* Document personal: aceeași formă, integrată în bara mare de deschidere. */
#homeView .premium-personal-card .id-card-launch-cta{
  min-height:66px!important;
  padding:0 14px 0 0!important;
  gap:10px!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#ffffff 0%,#edf1f5 100%)!important;
  border-radius:28px!important;
}
#homeView .premium-personal-card .id-card-launch-cta>span{
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:152px!important;
  padding:0 30px 0 24px!important;
  margin:-1px 0 -1px -1px!important;
  border-radius:0 50px 0 0!important;
  background:linear-gradient(145deg,#ff2c4b 0%,#ed1638 48%,#b60725 100%)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:950!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
  box-shadow:
    9px -7px 22px rgba(215,15,48,.24),
    inset 0 1px 0 rgba(255,255,255,.24)!important;
  text-shadow:0 1px 1px rgba(80,0,14,.22)!important;
}
#homeView .premium-personal-card .id-card-launch-cta b{
  flex:0 0 44px!important;
  width:44px!important;
  height:44px!important;
  margin-left:auto!important;
  border-radius:50%!important;
}

/* Tema night: păstrează badge-ul roșu, iar bara de sub el rămâne închisă. */
html[data-theme="dark"] #homeView .premium-personal-card .id-card-launch-cta{
  background:linear-gradient(145deg,#252b33 0%,#11151b 100%)!important;
  border-color:#3a424d!important;
}

@media(max-width:520px){
  #homeView .compact-choice-card .choice-cta{
    margin-left:-15px!important;
    margin-bottom:-15px!important;
    min-height:59px!important;
  }
  #homeView .compact-choice-card .choice-cta-label{
    min-width:112px!important;
    height:56px!important;
    padding:0 21px 0 17px!important;
    border-radius:0 42px 0 0!important;
    font-size:12px!important;
  }
  #homeView .compact-choice-card .choice-cta b{
    width:36px!important;
    height:36px!important;
    margin:0 10px 10px auto!important;
  }
  #homeView .premium-personal-card .id-card-launch-cta{
    min-height:60px!important;
    border-radius:25px!important;
  }
  #homeView .premium-personal-card .id-card-launch-cta>span{
    min-width:128px!important;
    padding:0 23px 0 19px!important;
    border-radius:0 44px 0 0!important;
    font-size:12px!important;
  }
  #homeView .premium-personal-card .id-card-launch-cta b{
    flex-basis:40px!important;
    width:40px!important;
    height:40px!important;
  }
}


/* ================================================================
   iPDF.pro 1.4.21 — rafinare Home, animații scanare și pagini legale
   ================================================================ */

/* În tema Day, badge-urile DESCHIDE folosesc exact aceeași paletă ca bara
   verticală din stânga cardurilor. */
html[data-theme="light"] #homeView .compact-choice-card .choice-cta-label,
html:not([data-theme="dark"]) #homeView .compact-choice-card .choice-cta-label,
html[data-theme="light"] #homeView .premium-personal-card .id-card-launch-cta>span,
html:not([data-theme="dark"]) #homeView .premium-personal-card .id-card-launch-cta>span{
  background:linear-gradient(180deg,#ff3150 0%,#df1633 48%,#9d091d 100%)!important;
}

/* Primul card: icon mai mare, branding iPDF.pro și efect de fotografiere. */
#homeView .compact-choice-card .choice-icon.home-photo-icon{
  width:88px!important;height:92px!important;border-radius:24px!important;
  overflow:hidden!important;padding:0!important;
}
#homeView .home-photo-icon .menu-file-page{
  left:14px!important;top:8px!important;width:52px!important;height:55px!important;
}
#homeView .home-photo-icon .menu-file-page i{font-size:15px!important}
#homeView .home-photo-icon .menu-file-badge{
  right:7px!important;bottom:23px!important;min-width:33px!important;height:22px!important;font-size:8px!important;
}
#homeView .home-photo-icon.menu-file-icon::after{right:13px!important;top:9px!important}
#homeView .home-icon-brand{
  position:absolute;left:4px;right:4px;bottom:5px;z-index:7;display:flex;align-items:baseline;
  justify-content:center;gap:1px;color:#20242b;line-height:1;letter-spacing:-.045em;
}
#homeView .home-icon-brand b{font-size:13px;font-weight:950;color:#d81735}
#homeView .home-icon-brand small{font-size:9px;font-weight:950;color:#343b45}
#homeView .photo-focus-frame{
  position:absolute;inset:5px 7px 24px;z-index:5;border-radius:15px;pointer-events:none;
  background:
    linear-gradient(#ef2441,#ef2441) left top/13px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) left top/2px 13px no-repeat,
    linear-gradient(#ef2441,#ef2441) right top/13px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) right top/2px 13px no-repeat,
    linear-gradient(#ef2441,#ef2441) left bottom/13px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) left bottom/2px 13px no-repeat,
    linear-gradient(#ef2441,#ef2441) right bottom/13px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) right bottom/2px 13px no-repeat;
  opacity:.28;animation:ipdfPhotoFocus 3.4s ease-in-out infinite;
}
#homeView .photo-flash{
  position:absolute;right:5px;top:3px;z-index:8;width:22px;height:22px;border-radius:50%;
  background:radial-gradient(circle,#fff 0 18%,#ffe58b 31%,rgba(255,224,100,.22) 58%,transparent 72%);
  opacity:0;transform:scale(.4);pointer-events:none;animation:ipdfPhotoFlash 3.4s ease-out infinite;
}
#homeView .home-photo-icon .menu-file-page{animation:ipdfPhotoSnap 3.4s ease-in-out infinite}
@keyframes ipdfPhotoFocus{0%,55%,100%{opacity:.25}62%{opacity:1}72%{opacity:.45}}
@keyframes ipdfPhotoFlash{0%,64%,100%{opacity:0;transform:scale(.4)}67%{opacity:1;transform:scale(.8)}70%{opacity:0;transform:scale(2.1)}}
@keyframes ipdfPhotoSnap{0%,62%,100%{transform:scale(1)}67%{transform:scale(.95)}72%{transform:scale(1)}}

/* Card Scan PDF: simulare de detectare automată cu ramă și linie mobilă. */
#homeView .compact-choice-card .choice-icon.home-scan-icon{
  width:82px!important;height:82px!important;border-radius:24px!important;overflow:hidden!important;
}
#homeView .home-scan-icon svg{position:relative;z-index:3}
#homeView .scan-auto-frame{
  position:absolute;inset:7px;z-index:4;border-radius:14px;pointer-events:none;
  background:
    linear-gradient(#ef2441,#ef2441) left top/12px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) left top/2px 12px no-repeat,
    linear-gradient(#ef2441,#ef2441) right top/12px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) right top/2px 12px no-repeat,
    linear-gradient(#ef2441,#ef2441) left bottom/12px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) left bottom/2px 12px no-repeat,
    linear-gradient(#ef2441,#ef2441) right bottom/12px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) right bottom/2px 12px no-repeat;
  animation:ipdfAutoFrame 2.6s ease-in-out infinite;
}
#homeView .scan-auto-line{
  position:absolute;left:9px;right:9px;top:12px;z-index:5;height:2px;border-radius:999px;
  background:linear-gradient(90deg,transparent,#ff3150 18%,#fff 50%,#df1633 82%,transparent);
  box-shadow:0 0 8px rgba(239,36,65,.62);animation:ipdfScanSweep 2.6s ease-in-out infinite;
}
#homeView .scan-auto-status{
  position:absolute;right:7px;bottom:5px;z-index:6;padding:2px 5px;border-radius:999px;
  background:#ef2441;color:#fff;font-size:6px;font-weight:950;letter-spacing:.08em;
  box-shadow:0 3px 8px rgba(200,17,45,.25);animation:ipdfAutoStatus 2.6s ease-in-out infinite;
}
@keyframes ipdfScanSweep{0%,10%{transform:translateY(0);opacity:.2}45%{opacity:1}80%,100%{transform:translateY(55px);opacity:.25}}
@keyframes ipdfAutoFrame{0%,100%{opacity:.38;filter:saturate(.8)}45%,70%{opacity:1;filter:saturate(1.3)}}
@keyframes ipdfAutoStatus{0%,35%,100%{opacity:.45}50%,75%{opacity:1}}

/* După eliminarea etichetelor 3 TIPURI / A4 / GRATUIT, cardul personal rămâne aerisit. */
#homeView .premium-personal-card .id-card-launch-copy{padding-bottom:2px}
#homeView .premium-personal-card .id-card-launch-copy>small{margin-bottom:0!important}

/* Studio: fără badge-ul redundant „Ediție gratuită”. */
#homeView .free-suite-head{align-items:flex-start!important}
#homeView .free-suite-head>div{max-width:820px}

/* Pagini legale și ajutor integrate în stilul aplicației. */
.legal-mission-box{
  display:grid;gap:5px;margin-top:18px;padding:16px 17px;border-radius:17px;
  background:linear-gradient(145deg,rgba(238,36,65,.09),rgba(255,255,255,.72));
  border:1px solid rgba(222,25,55,.15);
}
.legal-mission-box strong{font-size:15px}.legal-mission-box span{color:var(--muted);line-height:1.55}
.legal-faq-list{display:grid;gap:9px;margin-top:17px}
.legal-faq-item{overflow:hidden;border-radius:15px;background:rgba(247,249,251,.9);border:1px solid rgba(30,36,45,.09)}
.legal-faq-item summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;cursor:pointer;font-weight:900}
.legal-faq-item summary::-webkit-details-marker{display:none}
.legal-faq-item summary b{font-size:20px;color:#df1d3a;transition:transform .18s ease}
.legal-faq-item[open] summary b{transform:rotate(45deg)}
.legal-faq-item p{margin:0;padding:0 16px 16px;color:var(--muted);line-height:1.58}
.legal-inline-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}
.legal-inline-actions .primary-button,.legal-inline-actions .secondary-button{width:auto;min-height:45px;text-decoration:none}
html[data-theme="dark"] .legal-mission-box{background:linear-gradient(145deg,rgba(238,36,65,.14),rgba(27,32,39,.92));border-color:rgba(244,71,96,.22)}
html[data-theme="dark"] .legal-faq-item{background:linear-gradient(145deg,#20262e,#161a20);border-color:#343b45}

@media(max-width:520px){
  #homeView .compact-choice-card .choice-icon.home-photo-icon{width:76px!important;height:81px!important;border-radius:21px!important}
  #homeView .home-photo-icon .menu-file-page{left:12px!important;top:7px!important;width:44px!important;height:48px!important}
  #homeView .home-photo-icon .menu-file-badge{right:5px!important;bottom:20px!important}
  #homeView .home-photo-icon.menu-file-icon::after{right:10px!important;top:8px!important}
  #homeView .home-icon-brand{bottom:4px}
  #homeView .home-icon-brand b{font-size:11px}#homeView .home-icon-brand small{font-size:8px}
  #homeView .photo-focus-frame{inset:5px 6px 21px}
  #homeView .compact-choice-card .choice-icon.home-scan-icon{width:72px!important;height:72px!important;border-radius:21px!important}
  @keyframes ipdfScanSweep{0%,10%{transform:translateY(0);opacity:.2}45%{opacity:1}80%,100%{transform:translateY(45px);opacity:.25}}
  .legal-inline-actions{display:grid;grid-template-columns:1fr}.legal-inline-actions>*{width:100%!important}
}

@media(prefers-reduced-motion:reduce){
  #homeView .photo-focus-frame,#homeView .photo-flash,#homeView .home-photo-icon .menu-file-page,
  #homeView .scan-auto-frame,#homeView .scan-auto-line,#homeView .scan-auto-status{animation:none!important}
  #homeView .photo-focus-frame,#homeView .scan-auto-frame,#homeView .scan-auto-status{opacity:.75!important}
}


/* ================================================================
   iPDF.pro 1.4.24 — Night contrast, Home search and scan animations
   ================================================================ */

/* În Night, toate butoanele Înapoi sunt roșii și ușor de recunoscut. */
html[data-theme="dark"] .back-button{
  background:linear-gradient(145deg,#ff2d4b 0%,#d91634 50%,#8f071b 100%)!important;
  border-color:rgba(255,101,124,.34)!important;
  color:#fff!important;
  box-shadow:0 14px 30px rgba(185,9,38,.34),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
html[data-theme="dark"] .back-button svg{stroke:#fff!important}

/* QR clar și real în meniul Night și în instrumentul de citire. */
html[data-theme="dark"] .tools-menu-item>.menu-line-icon.icon-qr{
  --icon:#fff!important;
  background:linear-gradient(145deg,#e92341,#850918)!important;
  border-color:rgba(255,105,128,.42)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(164,8,33,.28)!important;
}
html[data-theme="dark"] .tools-menu-item>.menu-line-icon.icon-qr svg{stroke:#fff!important}
.qr-camera-icon{padding:0!important}
.qr-camera-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] #smartBarcodeSection .qr-camera-icon{
  background:linear-gradient(145deg,#f02a47,#8d081b)!important;
  color:#fff!important;
  border:1px solid rgba(255,104,127,.34)!important;
  box-shadow:0 12px 28px rgba(160,7,31,.32)!important;
}

/* Căutare rapidă chiar în cardul „Ce vrei să faci?”. */
.home-tool-search{
  width:min(100%,560px);min-height:52px;margin-top:17px;padding:0 12px 0 14px;
  display:flex;align-items:center;gap:10px;border-radius:17px;cursor:text;
  background:linear-gradient(145deg,#fff,#f0f3f6);border:1px solid rgba(28,35,45,.12);
  box-shadow:0 12px 28px rgba(20,28,39,.10),inset 0 1px 0 rgba(255,255,255,.95);
}
.home-tool-search-icon{flex:0 0 31px;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#ef2946,#9b0a20);color:#fff}
.home-tool-search-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round}
.home-tool-search input{min-width:0;flex:1;height:50px;border:0;outline:0;background:transparent;color:#171a20;font:850 14px/1.2 inherit}
.home-tool-search-open{flex:0 0 31px;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#171b21;color:#fff;font-weight:950}
.home-tool-search:focus-within{border-color:rgba(219,25,56,.44);box-shadow:0 14px 32px rgba(20,28,39,.12),0 0 0 3px rgba(225,27,57,.10)}
html[data-theme="dark"] .home-tool-search{background:linear-gradient(145deg,#242b34,#151a20);border-color:#3a434e;box-shadow:0 14px 30px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05)}
html[data-theme="dark"] .home-tool-search input{color:#fff}
html[data-theme="dark"] .home-tool-search input::placeholder{color:#aeb6c1}
html[data-theme="dark"] .home-tool-search-open{background:#f12643}

/* Document personal: aceeași citire automată ca la Scan PDF. */
#homeView .home-id-scan-icon{position:relative!important;overflow:hidden!important}
#homeView .home-id-scan-icon svg{position:relative;z-index:3}
#homeView .id-auto-frame{
  position:absolute;inset:6px;z-index:4;border-radius:14px;pointer-events:none;
  background:
    linear-gradient(#ef2441,#ef2441) left top/11px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) left top/2px 11px no-repeat,
    linear-gradient(#ef2441,#ef2441) right top/11px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) right top/2px 11px no-repeat,
    linear-gradient(#ef2441,#ef2441) left bottom/11px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) left bottom/2px 11px no-repeat,
    linear-gradient(#ef2441,#ef2441) right bottom/11px 2px no-repeat,
    linear-gradient(#ef2441,#ef2441) right bottom/2px 11px no-repeat;
  animation:ipdfIdAutoFrame 2.8s ease-in-out infinite;
}
#homeView .id-auto-line{
  position:absolute;left:8px;right:8px;top:11px;z-index:5;height:2px;border-radius:999px;
  background:linear-gradient(90deg,transparent,#ff3150 16%,#fff 50%,#df1633 84%,transparent);
  box-shadow:0 0 9px rgba(239,36,65,.68);animation:ipdfIdScanSweep 2.8s ease-in-out infinite;
}
#homeView .id-auto-status{
  position:absolute;right:5px;bottom:4px;z-index:6;padding:2px 4px;border-radius:999px;
  background:#ef2441;color:#fff;font-size:5px;font-weight:950;letter-spacing:.08em;
  box-shadow:0 3px 8px rgba(200,17,45,.28);animation:ipdfIdAutoStatus 2.8s ease-in-out infinite;
}
@keyframes ipdfIdScanSweep{0%,10%{transform:translateY(0);opacity:.2}45%{opacity:1}80%,100%{transform:translateY(43px);opacity:.25}}
@keyframes ipdfIdAutoFrame{0%,100%{opacity:.35;filter:saturate(.8)}45%,70%{opacity:1;filter:saturate(1.35)}}
@keyframes ipdfIdAutoStatus{0%,35%,100%{opacity:.42}50%,75%{opacity:1}}

/* JPG ↔ PDF: cele două badge-uri își schimbă efectiv locul. */
#homeView .home-photo-icon{--swap-x:38px;--swap-y:34px;--swap-badge-x:-31px;--swap-badge-y:-29px}
#homeView .home-photo-icon .menu-file-page{
  transform-origin:center center;animation:ipdfJpgPdfSwapPage 4.8s cubic-bezier(.65,0,.35,1) infinite!important;
}
#homeView .home-photo-icon .menu-file-badge{
  transform-origin:center center;animation:ipdfJpgPdfSwapBadge 4.8s cubic-bezier(.65,0,.35,1) infinite;
}
#homeView .home-photo-icon.menu-file-icon::after{animation:ipdfJpgPdfArrow 4.8s ease-in-out infinite}
@keyframes ipdfJpgPdfSwapPage{
  0%,28%,100%{transform:translate(0,0) scale(1);filter:none}
  42%,72%{transform:translate(var(--swap-x),var(--swap-y)) scale(.48);filter:drop-shadow(0 3px 5px rgba(20,25,34,.18))}
  86%{transform:translate(0,0) scale(1)}
}
@keyframes ipdfJpgPdfSwapBadge{
  0%,28%,100%{transform:translate(0,0) scale(1);border-radius:7px}
  42%,72%{transform:translate(var(--swap-badge-x),var(--swap-badge-y)) scale(2.05);border-radius:6px}
  86%{transform:translate(0,0) scale(1);border-radius:7px}
}
@keyframes ipdfJpgPdfArrow{0%,25%,100%{opacity:1;transform:rotate(0)}38%,74%{opacity:.1;transform:rotate(180deg)}86%{opacity:1;transform:rotate(360deg)}}

@media(max-width:520px){
  .home-tool-search{min-height:48px;margin-top:14px;border-radius:15px;padding-left:11px;padding-right:9px}
  .home-tool-search input{height:46px;font-size:13px}
  .home-tool-search-icon,.home-tool-search-open{width:29px;height:29px;flex-basis:29px}
  #homeView .home-photo-icon{--swap-x:31px;--swap-y:29px;--swap-badge-x:-26px;--swap-badge-y:-25px}
  @keyframes ipdfIdScanSweep{0%,10%{transform:translateY(0);opacity:.2}45%{opacity:1}80%,100%{transform:translateY(35px);opacity:.25}}
}

@media(prefers-reduced-motion:reduce){
  #homeView .id-auto-frame,#homeView .id-auto-line,#homeView .id-auto-status,
  #homeView .home-photo-icon .menu-file-page,#homeView .home-photo-icon .menu-file-badge,
  #homeView .home-photo-icon.menu-file-icon::after{animation:none!important}
  #homeView .id-auto-frame,#homeView .id-auto-status{opacity:.75!important}
}


/* ================================================================
   iPDF.pro 1.4.24 — lupă compactă și animație JPG ↔ PDF simetrică
   ================================================================ */

/* În hero rămâne numai lupa, centrată sub logo. */
.home-intro-brand{
  position:relative;z-index:3;display:grid;justify-items:center;align-content:center;gap:10px;min-width:0;
}
.home-intro-brand .home-intro-logo{width:100%;min-width:0}
.home-tool-search-trigger{
  position:relative;flex:0 0 auto;width:50px;height:50px;padding:0;border:1px solid rgba(255,255,255,.28);
  border-radius:17px;display:grid;place-items:center;cursor:pointer;color:#fff;
  background:linear-gradient(145deg,#ff3150 0%,#df1633 52%,#97091d 100%);
  box-shadow:0 13px 28px rgba(174,9,37,.32),inset 0 1px 0 rgba(255,255,255,.30);
  transition:transform .18s ease,box-shadow .18s ease;
}
.home-tool-search-trigger svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.home-tool-search-trigger:active{transform:scale(.94)}
.home-tool-search-trigger:focus-visible{outline:3px solid rgba(255,49,80,.25);outline-offset:3px}
.home-search-label{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
html[data-theme="light"] .home-tool-search-trigger,
html:not([data-theme="dark"]) .home-tool-search-trigger{
  border-color:rgba(185,15,44,.18);box-shadow:0 12px 27px rgba(183,12,42,.25),inset 0 1px 0 rgba(255,255,255,.34);
}
@media(hover:hover) and (pointer:fine){
  .home-tool-search-trigger:hover{transform:translateY(-2px);box-shadow:0 17px 34px rgba(174,9,37,.38),inset 0 1px 0 rgba(255,255,255,.34)}
}

/* Două fișiere complete și două badge-uri: la jumătatea animației PDF devine
   cartea mare, iar JPG devine badge-ul mic — exact invers față de început. */
#homeView .home-photo-icon .home-swap-page,
#homeView .home-photo-icon .home-swap-badge{will-change:transform,opacity}
#homeView .home-photo-icon .home-swap-page-pdf{
  border-left-color:#df2c43!important;background:linear-gradient(145deg,#fff,#ffecef)!important;
  opacity:0;transform:translate(var(--swap-x),var(--swap-y)) scale(.48);
  animation:ipdfPdfFullBook 5.2s cubic-bezier(.65,0,.35,1) infinite!important;
}
#homeView .home-photo-icon .home-swap-page-pdf i{color:#df2c43!important;font-size:14px!important}
#homeView .home-photo-icon .home-swap-page-jpg{
  opacity:1;animation:ipdfJpgFullBook 5.2s cubic-bezier(.65,0,.35,1) infinite!important;
}
#homeView .home-photo-icon .home-swap-badge-pdf{
  opacity:1;animation:ipdfPdfSmallBadge 5.2s cubic-bezier(.65,0,.35,1) infinite!important;
}
#homeView .home-photo-icon .home-swap-badge-jpg{
  background:#d8a80d!important;color:#fff!important;opacity:0;
  transform:translate(var(--swap-badge-x),var(--swap-badge-y)) scale(2.05);
  animation:ipdfJpgSmallBadge 5.2s cubic-bezier(.65,0,.35,1) infinite!important;
}
#homeView .home-photo-icon.menu-file-icon::after{animation:ipdfJpgPdfArrowExact 5.2s ease-in-out infinite!important}

@keyframes ipdfJpgFullBook{
  0%,27%,100%{opacity:1;transform:translate(0,0) scale(1)}
  42%,72%{opacity:0;transform:translate(var(--swap-x),var(--swap-y)) scale(.48)}
  87%{opacity:1;transform:translate(0,0) scale(1)}
}
@keyframes ipdfPdfFullBook{
  0%,27%,100%{opacity:0;transform:translate(var(--swap-x),var(--swap-y)) scale(.48)}
  42%,72%{opacity:1;transform:translate(0,0) scale(1)}
  87%{opacity:0;transform:translate(var(--swap-x),var(--swap-y)) scale(.48)}
}
@keyframes ipdfPdfSmallBadge{
  0%,27%,100%{opacity:1;transform:translate(0,0) scale(1)}
  42%,72%{opacity:0;transform:translate(var(--swap-badge-x),var(--swap-badge-y)) scale(2.05)}
  87%{opacity:1;transform:translate(0,0) scale(1)}
}
@keyframes ipdfJpgSmallBadge{
  0%,27%,100%{opacity:0;transform:translate(var(--swap-badge-x),var(--swap-badge-y)) scale(2.05)}
  42%,72%{opacity:1;transform:translate(0,0) scale(1)}
  87%{opacity:0;transform:translate(var(--swap-badge-x),var(--swap-badge-y)) scale(2.05)}
}
@keyframes ipdfJpgPdfArrowExact{
  0%,27%,100%{opacity:1;transform:rotate(0deg)}
  38%,76%{opacity:.18;transform:rotate(180deg)}
  88%{opacity:1;transform:rotate(360deg)}
}

@media(max-width:520px){
  .home-intro-brand{gap:7px}
  .home-tool-search-trigger{width:43px;height:43px;border-radius:14px}
  .home-tool-search-trigger svg{width:22px;height:22px}
}

@media(prefers-reduced-motion:reduce){
  #homeView .home-photo-icon .home-swap-page,
  #homeView .home-photo-icon .home-swap-badge,
  #homeView .home-photo-icon.menu-file-icon::after{animation:none!important}
  #homeView .home-photo-icon .home-swap-page-jpg,
  #homeView .home-photo-icon .home-swap-badge-pdf{opacity:1!important;transform:none!important}
  #homeView .home-photo-icon .home-swap-page-pdf,
  #homeView .home-photo-icon .home-swap-badge-jpg{opacity:0!important}
}


/* iPDF 1.4.25 — stronger PWA red, better export modal, day profile fixes, clearer file cards */

html.pwa-standalone .app-header{
  background:linear-gradient(105deg,#080a0f 0%,#191d24 52%,#8d081d 100%)!important;
}
.mobile-appbar{
  background:
    radial-gradient(circle at 50% 128%,rgba(230,24,52,.38),transparent 56%),
    linear-gradient(180deg,rgba(28,10,15,.98),rgba(9,5,7,.99))!important;
}
.mobile-nav-item.active,
.mobile-nav-item.account-active{
  background:linear-gradient(145deg,rgba(233,22,55,.38),rgba(152,10,31,.22))!important;
  border:1px solid rgba(255,82,108,.36)!important;
  box-shadow:0 10px 24px rgba(124,5,23,.22)!important;
}
.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item.account-active .mobile-nav-icon{
  background:rgba(255,255,255,.22)!important;
}

html[data-theme="light"] .profile-card,
html:not([data-theme="dark"]) .profile-card{
  background:linear-gradient(135deg,#ffffff,#eef2f6 70%,#ffe5ea)!important;
  border:1px solid #d8dee6!important;
  color:#171a20!important;
  box-shadow:0 18px 36px rgba(20,29,40,.08)!important;
}
html[data-theme="light"] .profile-copy h2,
html:not([data-theme="dark"]) .profile-copy h2,
html[data-theme="light"] .profile-email,
html:not([data-theme="dark"]) .profile-email,
html[data-theme="light"] .profile-copy p,
html:not([data-theme="dark"]) .profile-copy p{
  color:#171a20!important;
  -webkit-text-fill-color:#171a20!important;
}
html[data-theme="light"] .email-verification-status,
html:not([data-theme="dark"]) .email-verification-status{
  background:linear-gradient(145deg,#edf8ef,#dff4e5)!important;
  color:#16703b!important;
  border:1px solid #b9e0c5!important;
}
html[data-theme="light"] .profile-actions .secondary-button,
html:not([data-theme="dark"]) .profile-actions .secondary-button{
  background:#fff!important;
  color:#171a20!important;
  border:1px solid #d7dde5!important;
}
html[data-theme="light"] .profile-danger-actions .danger-button,
html:not([data-theme="dark"]) .profile-danger-actions .danger-button{
  background:linear-gradient(145deg,#fff3f5,#ffe8ed)!important;
  color:#9a1024!important;
  border:1px solid #f1c7d0!important;
}

.export-result-card{width:min(900px,calc(100vw - 22px))!important}
.export-result-preview{position:relative;min-height:280px!important;background:linear-gradient(180deg,#edf2f7,#e4e9f0)!important}
.export-result-card .section-label{letter-spacing:.22em}
.export-result-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.export-result-pdf-card{
  display:grid;place-items:center;gap:10px;text-align:center;padding:28px 22px;
}
.export-result-pdf-icon{
  display:grid;place-items:center;width:90px;height:110px;border-radius:20px;
  background:linear-gradient(145deg,#ef1f41,#870818);color:#fff;font-weight:1000;font-size:26px;
  box-shadow:0 18px 34px rgba(151,9,31,.28);
}
.export-result-pdf-card strong{font-size:1.08rem;color:#1a1f27;overflow-wrap:anywhere}
.export-result-pdf-card small{max-width:320px;color:#5d6673;line-height:1.45}
.export-result-unavailable{max-width:360px;line-height:1.5}
html[data-theme="dark"] .export-result-preview{background:linear-gradient(180deg,#111318,#1a1e25)!important}
html[data-theme="dark"] .export-result-pdf-card strong{color:#fff}
html[data-theme="dark"] .export-result-pdf-card small{color:#aeb6c1}
html[data-theme="dark"] .export-result-open-button,
html[data-theme="dark"] .export-result-meta{background:#22262d}

.user-file{grid-template-columns:120px minmax(0,1fr)!important;gap:14px!important}
.account-file-preview{
  width:120px!important;min-height:144px!important;border-radius:18px!important;
  background:linear-gradient(145deg,#f7f9fc,#e6ebf1)!important;
}
.account-file-preview img{object-fit:cover!important}
.account-file-preview small{font-size:11px!important}
.account-file-type{width:72px!important;height:88px!important;font-size:16px!important}
.account-file-content{gap:12px!important}
.account-file-details strong{font-size:16px!important;line-height:1.35!important}
.account-file-details small{font-size:13px!important;line-height:1.5!important}
.user-file-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.user-file-actions a,.user-file-actions button{min-height:44px!important;font-size:12.5px!important;border-radius:13px!important}
.user-file-actions .file-download,
.user-file-actions .file-preview-action{grid-column:span 1!important}
.user-file-actions .file-download{background:linear-gradient(145deg,#0e1319,#1d2530)!important;color:#fff!important}
.user-file-actions .file-preview-action{background:linear-gradient(145deg,#ee2442,#8f0a1c)!important;color:#fff!important}
.user-file-actions .file-favorite{font-size:22px!important}
html[data-theme="light"] .account-file-preview,
html:not([data-theme="dark"]) .account-file-preview{border-color:#d4dbe4!important}

@media(max-width:900px){
  .export-result-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .export-result-preview{min-height:250px!important}
  .user-file{grid-template-columns:100px minmax(0,1fr)!important}
  .account-file-preview{width:100px!important;min-height:128px!important}
  .account-file-type{width:64px!important;height:78px!important;font-size:14px!important}
  .user-file-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:420px){
  .export-result-actions{grid-template-columns:1fr!important}
  .user-file{grid-template-columns:1fr!important}
  .account-file-preview{width:100%!important;min-height:160px!important}
  .user-file-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* iPDF 1.4.26 — default night/en and smoky red day cards */

html[data-theme="light"] body,
html:not([data-theme="dark"]) body{
  background:
    radial-gradient(circle at 16% 10%, rgba(229,27,55,.08), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(118,10,27,.08), transparent 22%),
    linear-gradient(180deg,#f8f5f6 0%,#f0f2f5 52%,#eef1f4 100%)!important;
}
html[data-theme="light"] .card-panel,
html:not([data-theme="dark"]) .card-panel,
html[data-theme="light"] #homeView .compact-choice-card,
html:not([data-theme="dark"]) #homeView .compact-choice-card,
html[data-theme="light"] #homeView .premium-personal-card,
html:not([data-theme="dark"]) #homeView .premium-personal-card,
html[data-theme="light"] #homeView .premium-tools-accordion,
html:not([data-theme="dark"]) #homeView .premium-tools-accordion,
html[data-theme="light"] #homeView .pdf-tools-accordion,
html:not([data-theme="dark"]) #homeView .pdf-tools-accordion,
html[data-theme="light"] #homeView .free-suite,
html:not([data-theme="dark"]) #homeView .free-suite,
html[data-theme="light"] #homeView .compact-account-card,
html:not([data-theme="dark"]) #homeView .compact-account-card,
html[data-theme="light"] #homeView .home-intro,
html:not([data-theme="dark"]) #homeView .home-intro{
  position:relative!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 88% 14%, rgba(233,26,55,.12), transparent 26%),
    radial-gradient(circle at 12% 86%, rgba(142,11,30,.08), transparent 25%),
    linear-gradient(145deg,#ffffff 0%,#faf8f9 58%,#fff0f2 100%)!important;
}
html[data-theme="light"] .card-panel::after,
html:not([data-theme="dark"]) .card-panel::after,
html[data-theme="light"] #homeView .compact-choice-card::after,
html:not([data-theme="dark"]) #homeView .compact-choice-card::after,
html[data-theme="light"] #homeView .premium-personal-card::after,
html:not([data-theme="dark"]) #homeView .premium-personal-card::after,
html[data-theme="light"] #homeView .premium-tools-accordion::after,
html:not([data-theme="dark"]) #homeView .premium-tools-accordion::after,
html[data-theme="light"] #homeView .pdf-tools-accordion::after,
html:not([data-theme="dark"]) #homeView .pdf-tools-accordion::after,
html[data-theme="light"] #homeView .free-suite::after,
html:not([data-theme="dark"]) #homeView .free-suite::after,
html[data-theme="light"] #homeView .compact-account-card::after,
html:not([data-theme="dark"]) #homeView .compact-account-card::after,
html[data-theme="light"] #homeView .home-intro::after,
html:not([data-theme="dark"]) #homeView .home-intro::after{
  content:"";position:absolute;right:-38px;bottom:-36px;width:160px;height:160px;border-radius:50%;
  background:radial-gradient(circle, rgba(234,26,55,.16) 0%, rgba(234,26,55,.06) 42%, transparent 70%);
  filter:blur(10px);pointer-events:none;z-index:0;
}
html[data-theme="light"] .card-panel > *,
html:not([data-theme="dark"]) .card-panel > *,
html[data-theme="light"] #homeView .compact-choice-card > *,
html:not([data-theme="dark"]) #homeView .compact-choice-card > *,
html[data-theme="light"] #homeView .premium-personal-card > *,
html:not([data-theme="dark"]) #homeView .premium-personal-card > *,
html[data-theme="light"] #homeView .premium-tools-accordion > *,
html:not([data-theme="dark"]) #homeView .premium-tools-accordion > *,
html[data-theme="light"] #homeView .pdf-tools-accordion > *,
html:not([data-theme="dark"]) #homeView .pdf-tools-accordion > *,
html[data-theme="light"] #homeView .free-suite > *,
html:not([data-theme="dark"]) #homeView .free-suite > *,
html[data-theme="light"] #homeView .compact-account-card > *,
html:not([data-theme="dark"]) #homeView .compact-account-card > *,
html[data-theme="light"] #homeView .home-intro > *,
html:not([data-theme="dark"]) #homeView .home-intro > *{position:relative;z-index:1}


/* iPDF 1.4.27 — bigger icon, localized contact, automation contrast, wave accents */
html[data-theme="light"] .card-panel,
html:not([data-theme="dark"]) .card-panel,
html[data-theme="light"] #homeView .compact-choice-card,
html:not([data-theme="dark"]) #homeView .compact-choice-card,
html[data-theme="light"] #homeView .premium-personal-card,
html:not([data-theme="dark"]) #homeView .premium-personal-card,
html[data-theme="light"] #homeView .premium-tools-accordion,
html:not([data-theme="dark"]) #homeView .premium-tools-accordion,
html[data-theme="light"] #homeView .pdf-tools-accordion,
html:not([data-theme="dark"]) #homeView .pdf-tools-accordion,
html[data-theme="light"] #homeView .free-suite,
html:not([data-theme="dark"]) #homeView .free-suite,
html[data-theme="light"] #homeView .compact-account-card,
html:not([data-theme="dark"]) #homeView .compact-account-card,
html[data-theme="light"] #homeView .home-intro,
html:not([data-theme="dark"]) #homeView .home-intro{
  background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20800%20240%27%3E%0A%3Cpath%20d%3D%27M-20%20170%20C%2090%20140%2C%20160%20210%2C%20270%20180%20S%20470%20145%2C%20580%20178%20S%20720%20214%2C%20830%20186%27%20fill%3D%27none%27%20stroke%3D%27rgba%28219%2C30%2C57%2C0.18%29%27%20stroke-width%3D%2716%27%20stroke-linecap%3D%27round%27/%3E%0A%3Cpath%20d%3D%27M-10%20196%20C%20110%20162%2C%20190%20225%2C%20300%20198%20S%20510%20160%2C%20625%20194%20S%20730%20230%2C%20850%20203%27%20fill%3D%27none%27%20stroke%3D%27rgba%28163%2C12%2C34%2C0.12%29%27%20stroke-width%3D%2710%27%20stroke-linecap%3D%27round%27/%3E%0A%3Cpath%20d%3D%27M40%2040%20C%20140%2018%2C%20230%2078%2C%20338%2051%20S%20548%2019%2C%20661%2055%20S%20770%2087%2C%20860%2061%27%20fill%3D%27none%27%20stroke%3D%27rgba%28234%2C57%2C81%2C0.10%29%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27/%3E%0A%3C/svg%3E"),linear-gradient(145deg,#ffffff 0%,#faf8f9 58%,#fff4f6 100%)!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:right bottom,0 0!important;
  background-size:115% auto,auto!important;
}
html[data-theme="light"] .card-panel::after,
html:not([data-theme="dark"]) .card-panel::after,
html[data-theme="light"] #homeView .compact-choice-card::after,
html:not([data-theme="dark"]) #homeView .compact-choice-card::after,
html[data-theme="light"] #homeView .premium-personal-card::after,
html:not([data-theme="dark"]) #homeView .premium-personal-card::after,
html[data-theme="light"] #homeView .premium-tools-accordion::after,
html:not([data-theme="dark"]) #homeView .premium-tools-accordion::after,
html[data-theme="light"] #homeView .pdf-tools-accordion::after,
html:not([data-theme="dark"]) #homeView .pdf-tools-accordion::after,
html[data-theme="light"] #homeView .free-suite::after,
html:not([data-theme="dark"]) #homeView .free-suite::after,
html[data-theme="light"] #homeView .compact-account-card::after,
html:not([data-theme="dark"]) #homeView .compact-account-card::after,
html[data-theme="light"] #homeView .home-intro::after,
html:not([data-theme="dark"]) #homeView .home-intro::after{display:none!important;content:none!important}
html[data-theme="light"] .suite-tool-smart>.menu-real-icon,
html:not([data-theme="dark"]) .suite-tool-smart>.menu-real-icon{
  background:linear-gradient(145deg,#fff2f5,#ffdbe3)!important;
  border:1px solid rgba(204,24,49,.24)!important;
  color:#b10f28!important;
  box-shadow:0 10px 20px rgba(193,20,46,.14)!important;
}
html[data-theme="light"] .suite-tool-smart>.menu-real-icon svg,
html:not([data-theme="dark"]) .suite-tool-smart>.menu-real-icon svg{stroke:currentColor!important;fill:none!important}
html[data-theme="light"] .scan-smart-head .section-label,
html:not([data-theme="dark"]) .scan-smart-head .section-label{color:#bf1731!important}
html[data-theme="light"] .scan-smart-panel .smart-camera-button,
html:not([data-theme="dark"]) .scan-smart-panel .smart-camera-button{box-shadow:0 12px 22px rgba(212,24,50,.18)!important}


/* iPDF 1.4.28 — white PDF labels, professional footer, install helper */
.menu-file-icon.icon-pdf-jpg .menu-file-page i,
.menu-file-icon.icon-pdf-word .menu-file-page i,
.menu-file-icon.icon-pdf-ppt .menu-file-page i,
.menu-file-icon.icon-pdf-excel .menu-file-page i,
.menu-file-icon.icon-pdfa .menu-file-page i,
#homeView .home-photo-icon .home-swap-page-pdf i{
  color:#fff!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18);
}
.menu-file-icon.icon-pdf-jpg .menu-file-page,
.menu-file-icon.icon-pdf-word .menu-file-page,
.menu-file-icon.icon-pdf-ppt .menu-file-page,
.menu-file-icon.icon-pdf-excel .menu-file-page,
.menu-file-icon.icon-pdfa .menu-file-page,
#homeView .home-photo-icon .home-swap-page-pdf{
  background:linear-gradient(145deg,#ff4b63,#c10f2c)!important;
  border-left-color:#8f081d!important;
}
.menu-file-icon.icon-pdf-jpg .menu-file-page::before,
.menu-file-icon.icon-pdf-word .menu-file-page::before,
.menu-file-icon.icon-pdf-ppt .menu-file-page::before,
.menu-file-icon.icon-pdf-excel .menu-file-page::before,
.menu-file-icon.icon-pdfa .menu-file-page::before,
#homeView .home-photo-icon .home-swap-page-pdf::before{
  background:linear-gradient(225deg,#fff8fa 0 49%,rgba(255,255,255,.4) 50% 53%,rgba(255,226,232,.95) 54%)!important;
}

.home-legal-footer{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(170px,1.05fr) minmax(0,1.5fr) minmax(170px,.9fr)!important;
  align-items:start!important;
  gap:16px!important;
  margin-top:30px!important;
  margin-bottom:8px!important;
  padding:24px 22px calc(96px + env(safe-area-inset-bottom))!important;
  border-radius:28px!important;
  background:linear-gradient(135deg,#0d1117 0%,#16202c 42%,#4b0a16 78%,#8f0d22 100%)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 24px 60px rgba(18,24,34,.22)!important;
  overflow:hidden!important;
}
.home-legal-footer::before,
.home-legal-footer::after{
  content:"";position:absolute;border-radius:999px;pointer-events:none;opacity:.9;
}
.home-legal-footer::before{
  width:220px;height:220px;right:-70px;top:-90px;
  background:radial-gradient(circle at center,rgba(255,255,255,.15),rgba(255,255,255,0) 68%);
}
.home-legal-footer::after{
  width:240px;height:240px;left:-100px;bottom:-130px;
  background:radial-gradient(circle at center,rgba(232,39,70,.32),rgba(232,39,70,0) 70%);
}
.footer-brand-block,.footer-link-grid,.footer-meta{position:relative;z-index:1}
.footer-brand-block{align-items:flex-start!important;gap:12px!important}
.footer-brand-block img{
  width:52px!important;height:52px!important;padding:5px!important;border-radius:16px!important;
  box-shadow:0 10px 20px rgba(0,0,0,.25);
}
.footer-brand-block strong{display:block;color:#fff!important;font-size:18px!important;line-height:1.1}
.footer-brand-block small{display:block;color:rgba(255,255,255,.78)!important;font-size:12px!important;line-height:1.45;white-space:normal!important;max-width:220px}
.footer-link-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;align-self:stretch!important
}
.home-legal-footer .footer-link-grid a{
  display:flex!important;align-items:center;justify-content:center;text-align:center;
  min-height:44px;padding:11px 12px!important;border-radius:14px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  background:rgba(255,255,255,.07)!important;backdrop-filter:blur(8px);
  color:#fff!important;font-weight:850!important;letter-spacing:.01em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.home-legal-footer .footer-link-grid a:hover{transform:translateY(-1px)}
.home-legal-footer .footer-email-link{
  grid-column:1/-1;
  background:linear-gradient(145deg,#ef2845,#8a091b)!important;
  color:#fff!important;border-color:rgba(255,255,255,.16)!important;
}
.footer-meta{
  align-self:stretch;display:flex!important;flex-direction:column!important;justify-content:space-between!important;
  gap:10px!important;padding:10px 0 4px 10px
}
.footer-meta span{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
  color:rgba(255,255,255,.84)!important;font-size:12px!important;font-weight:750!important;white-space:normal!important;text-align:right
}
.footer-meta span::before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(145deg,#ff506a,#ffccda);box-shadow:0 0 0 4px rgba(255,255,255,.04)}
html[data-theme="light"] .home-legal-footer,
html:not([data-theme="dark"]) .home-legal-footer{
  background:linear-gradient(135deg,#fff 0%,#fff9fb 36%,#ffe7ed 72%,#ffd7e0 100%)!important;
  border-color:rgba(186,18,45,.14)!important;box-shadow:0 20px 42px rgba(154,18,41,.12)!important;
}
html[data-theme="light"] .footer-brand-block strong,
html[data-theme="light"] .footer-meta span,
html:not([data-theme="dark"]) .footer-brand-block strong,
html:not([data-theme="dark"]) .footer-meta span{color:#15202d!important}
html[data-theme="light"] .footer-brand-block small,
html:not([data-theme="dark"]) .footer-brand-block small{color:#5b6673!important}
html[data-theme="light"] .home-legal-footer .footer-link-grid a,
html:not([data-theme="dark"]) .home-legal-footer .footer-link-grid a{
  background:#fff!important;color:#17202c!important;border-color:rgba(186,18,45,.13)!important;
  box-shadow:0 10px 22px rgba(135,13,32,.08)
}
html[data-theme="light"] .home-legal-footer .footer-email-link,
html:not([data-theme="dark"]) .home-legal-footer .footer-email-link{color:#fff!important}
html[data-theme="light"] .footer-meta span::before,
html:not([data-theme="dark"]) .footer-meta span::before{box-shadow:0 0 0 4px rgba(186,18,45,.08)}

.install-edge-button{
  position:fixed;right:0;top:50%;transform:translateY(-50%);
  z-index:116;width:56px;height:116px;padding:14px 10px 14px 9px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  border:0;border-radius:20px 0 0 20px;
  background:linear-gradient(160deg,#f12644,#8d091b);color:#fff;
  box-shadow:0 18px 42px rgba(132,8,28,.33), inset 0 1px 0 rgba(255,255,255,.18);
}
.install-edge-button-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.15)}
.install-edge-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.install-edge-button-dots{width:5px;height:34px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.95) 0 1.5px,transparent 2px) center/5px 10px repeat-y;opacity:.95}
.install-edge-button:active{transform:translateY(-50%) scale(.98)}
html[data-theme="light"] .install-edge-button,
html:not([data-theme="dark"]) .install-edge-button{box-shadow:0 16px 38px rgba(167,18,44,.24)}

.install-help-modal-card{max-width:640px;text-align:center}
.install-help-top-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 12px;border-radius:22px;background:linear-gradient(145deg,#f22744,#8f091b);color:#fff;box-shadow:0 16px 34px rgba(143,9,27,.28)}
.install-help-top-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.install-help-modal-card h2{margin:6px 0 8px}
.install-help-modal-card>p{margin:0 auto;color:#6d7681;max-width:560px;line-height:1.55}
.install-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 16px}
.install-help-option{padding:16px;border-radius:20px;background:linear-gradient(145deg,#fff,#f1f4f8);border:1px solid rgba(24,31,39,.09);box-shadow:0 10px 24px rgba(18,24,34,.08);display:grid;justify-items:center;gap:10px;text-align:center}
.install-help-platform-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:linear-gradient(145deg,#20252d,#0c0e12);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.install-help-platform-icon img{width:30px;height:30px;object-fit:contain}
.install-help-option strong{font-size:18px;color:#161d27}
.install-help-option small{display:block;color:#67717e;line-height:1.5;min-height:44px}
.install-help-note{font-size:13px!important;color:#6c7480!important}
html[data-theme="dark"] .install-help-option{background:linear-gradient(145deg,#1a2028,#10141a);border-color:#343c47;box-shadow:none}
html[data-theme="dark"] .install-help-option strong{color:#fff}
html[data-theme="dark"] .install-help-option small,
html[data-theme="dark"] .install-help-modal-card>p,
html[data-theme="dark"] .install-help-note{color:#b2bbc6!important}
html[data-theme="dark"] .install-help-platform-icon{background:linear-gradient(145deg,#fff,#eef1f5)}

@media(max-width:860px){
  .home-legal-footer{grid-template-columns:1fr!important;padding:22px 16px calc(100px + env(safe-area-inset-bottom))!important}
  .footer-brand-block{justify-content:flex-start!important}
  .footer-link-grid{grid-template-columns:1fr 1fr!important}
  .footer-meta{padding:2px 0 0!important}
  .footer-meta span{justify-content:flex-start!important;text-align:left!important}
}
@media(max-width:760px){
  .install-edge-button{top:auto;bottom:calc(var(--appbar-height,84px) + 88px + env(safe-area-inset-bottom));width:54px;height:96px;border-radius:18px 0 0 18px}
  .install-help-grid{grid-template-columns:1fr}
}


/* iPDF 1.4.29 — compact footer and native install states */
.home-legal-footer{
  grid-template-columns:minmax(150px,.8fr) minmax(0,1.8fr) minmax(135px,.65fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:15px 16px 16px!important;
  border-radius:22px!important;
  margin-top:24px!important;
  margin-bottom:14px!important;
  min-height:0!important;
}
.home-legal-footer::before{width:150px!important;height:150px!important;right:-55px!important;top:-72px!important}
.home-legal-footer::after{width:150px!important;height:150px!important;left:-70px!important;bottom:-95px!important}
.footer-brand-block{gap:9px!important;align-items:center!important}
.footer-brand-block img{width:42px!important;height:42px!important;border-radius:13px!important;padding:4px!important}
.footer-brand-block strong{font-size:16px!important}
.footer-brand-block small{font-size:10px!important;line-height:1.3!important;max-width:155px!important}
.footer-link-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
.home-legal-footer .footer-link-grid a{
  min-height:35px!important;padding:7px 8px!important;border-radius:11px!important;
  font-size:11px!important;line-height:1.15!important;
}
.home-legal-footer .footer-email-link{grid-column:span 2!important}
.footer-meta{padding:0!important;gap:5px!important;justify-content:center!important}
.footer-meta span{font-size:9.5px!important;line-height:1.2!important;gap:5px!important}
.footer-meta span::before{width:5px!important;height:5px!important;box-shadow:none!important}

.install-help-platform-icon{width:62px!important;height:62px!important;border-radius:19px!important}
.install-help-platform-icon img{width:40px!important;height:40px!important}
.install-help-android .install-help-platform-icon{background:#101716!important}
.install-help-apple .install-help-platform-icon{background:#fff!important;border:1px solid #dde2e8!important}
.install-native-status{display:block;min-height:16px;font-size:10px;font-weight:800;color:#707986;line-height:1.3}
.install-help-android.native-ready{border-color:rgba(35,190,101,.38)!important;box-shadow:0 12px 28px rgba(25,157,84,.12)!important}
.install-help-android.native-ready .install-native-status{color:#13864b!important}
.install-help-android.native-ready #installHelpAndroidButton{box-shadow:0 12px 25px rgba(19,154,80,.22)!important}
.install-help-android.native-installed{opacity:.78}
.install-help-android.native-installed #installHelpAndroidButton{background:#dfe6e2!important;color:#426052!important;box-shadow:none!important}
html[data-theme="dark"] .install-help-apple .install-help-platform-icon{background:#fff!important;border-color:#e1e5eb!important}
html[data-theme="dark"] .install-native-status{color:#9ea8b4}
html[data-theme="dark"] .install-help-android.native-ready .install-native-status{color:#60dc98!important}

@media(max-width:860px){
  .home-legal-footer{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px!important;padding:13px 13px 15px!important;
  }
  .footer-brand-block{justify-content:flex-start!important}
  .footer-link-grid{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .home-legal-footer .footer-email-link{grid-column:span 2!important}
  .footer-meta{grid-column:2;grid-row:1;align-items:flex-end!important}
  .footer-meta span{justify-content:flex-end!important;text-align:right!important}
}
@media(max-width:520px){
  .home-legal-footer{grid-template-columns:1fr!important;padding:12px 11px 14px!important;border-radius:19px!important}
  .footer-brand-block{justify-content:center!important;text-align:left!important}
  .footer-link-grid{grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  .home-legal-footer .footer-email-link{grid-column:1/-1!important}
  .footer-meta{grid-column:1;grid-row:auto;display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important}
  .footer-meta span{justify-content:center!important;text-align:center!important}
}


/* ================================================================
   iPDF.pro 1.4.32 — minimal isolated fixes
   ================================================================ */

/* Textul PDF rămâne alb pe toate badge-urile roșii. */
.menu-file-badge {
  color: #ffffff !important;
}

/* Când PDF devine fișierul mare în animația JPG ↔ PDF. */
#homeView .home-photo-icon .home-swap-page-pdf {
  background: linear-gradient(145deg, #ff4a63 0%, #d21736 58%, #93081d 100%) !important;
  border-left-color: #8d071b !important;
}

#homeView .home-photo-icon .home-swap-page-pdf i {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
}

/* Fără cele trei puncte de sub iconul lateral de instalare. */
.install-edge-button-dots {
  display: none !important;
}

.install-edge-button {
  height: 62px !important;
  padding: 10px !important;
  gap: 0 !important;
}

/* Footer compact, cu linii SVG, fără să afecteze restul cardurilor. */
.home-legal-footer {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 160'%3E%3Cpath d='M-30 38 C110 12 190 72 330 42 S560 12 690 46 S820 77 940 45' fill='none' stroke='%23f58ca0' stroke-width='5' stroke-linecap='round' opacity='.30'/%3E%3Cpath d='M-30 82 C105 56 205 117 345 84 S580 55 710 88 S835 122 950 89' fill='none' stroke='%23e83b59' stroke-width='6' stroke-linecap='round' opacity='.24'/%3E%3Cpath d='M-30 126 C115 99 220 154 365 125 S610 99 744 128 S850 156 960 128' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' opacity='.16'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #0f141b 0%, #18212b 45%, #4c0b17 78%, #8c0b20 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: center, center !important;
  background-size: cover, cover !important;
}

html[data-theme="light"] .home-legal-footer,
html:not([data-theme="dark"]) .home-legal-footer {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 160'%3E%3Cpath d='M-30 38 C110 12 190 72 330 42 S560 12 690 46 S820 77 940 45' fill='none' stroke='%23f2a4b2' stroke-width='5' stroke-linecap='round' opacity='.48'/%3E%3Cpath d='M-30 82 C105 56 205 117 345 84 S580 55 710 88 S835 122 950 89' fill='none' stroke='%23df5870' stroke-width='6' stroke-linecap='round' opacity='.30'/%3E%3Cpath d='M-30 126 C115 99 220 154 365 125 S610 99 744 128 S850 156 960 128' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' opacity='.70'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #ffffff 0%, #fff8fa 45%, #ffe9ef 78%, #ffdfe7 100%) !important;
}

/* Trei coloane pentru butoane; mailul rămâne singur pe rândul din mijloc. */
.footer-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.home-legal-footer .footer-email-link {
  grid-column: 1 / -1 !important;
}

@media (max-width: 520px) {
  .footer-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home-legal-footer .footer-link-grid a {
    font-size: 9.5px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .home-legal-footer .footer-email-link {
    grid-column: 1 / -1 !important;
  }
}

/* Animație discretă pe butonul „Procesează pagina curentă”. */
#scanProcessButton {
  position: relative !important;
  overflow: hidden !important;
}

#scanProcessButton::after {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -45%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.16),
    rgba(255,255,255,.58),
    rgba(255,255,255,.14),
    rgba(255,255,255,0)
  );
  transform: skewX(-22deg);
  animation: ipdfCurrentPageSweep 2.8s ease-in-out infinite;
}

#scanProcessButton:disabled::after {
  display: none !important;
}

@keyframes ipdfCurrentPageSweep {
  0%, 18% { left: -45%; opacity: 0; }
  30% { opacity: 1; }
  62% { left: 108%; opacity: .95; }
  100% { left: 108%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #scanProcessButton::after {
    display: none !important;
    animation: none !important;
  }
}


/* iPDF 1.4.32 — footer theme cleanup only */
/* Night: neutral dark background, original circular accents, no red haze. */
html[data-theme="dark"] .home-legal-footer{
  background-image:linear-gradient(145deg,#0d1117 0%,#151b23 52%,#202833 100%)!important;
  background-color:#11161d!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:cover!important;
}
html[data-theme="dark"] .home-legal-footer::before,
html[data-theme="dark"] .home-legal-footer::after{
  display:block!important;
  content:""!important;
  position:absolute!important;
  border-radius:50%!important;
  pointer-events:none!important;
}
html[data-theme="dark"] .home-legal-footer::before{
  width:150px!important;height:150px!important;right:-52px!important;top:-72px!important;
  background:radial-gradient(circle,rgba(255,255,255,.14) 0%,rgba(255,255,255,.055) 42%,rgba(255,255,255,0) 72%)!important;
  opacity:1!important;
}
html[data-theme="dark"] .home-legal-footer::after{
  width:165px!important;height:165px!important;left:-72px!important;bottom:-96px!important;
  background:radial-gradient(circle,rgba(154,166,181,.13) 0%,rgba(154,166,181,.045) 45%,rgba(154,166,181,0) 74%)!important;
  opacity:1!important;
}

/* Day: exactly the same SVG waves used on the cards, on a neutral white surface. */
html[data-theme="light"] .home-legal-footer,
html:not([data-theme="dark"]) .home-legal-footer{
  background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20800%20240%27%3E%0A%3Cpath%20d%3D%27M-20%20170%20C%2090%20140%2C%20160%20210%2C%20270%20180%20S%20470%20145%2C%20580%20178%20S%20720%20214%2C%20830%20186%27%20fill%3D%27none%27%20stroke%3D%27rgba%28219%2C30%2C57%2C0.18%29%27%20stroke-width%3D%2716%27%20stroke-linecap%3D%27round%27/%3E%0A%3Cpath%20d%3D%27M-10%20196%20C%20110%20162%2C%20190%20225%2C%20300%20198%20S%20510%20160%2C%20625%20194%20S%20730%20230%2C%20850%20203%27%20fill%3D%27none%27%20stroke%3D%27rgba%28163%2C12%2C34%2C0.12%29%27%20stroke-width%3D%2710%27%20stroke-linecap%3D%27round%27/%3E%0A%3Cpath%20d%3D%27M40%2040%20C%20140%2018%2C%20230%2078%2C%20338%2051%20S%20548%2019%2C%20661%2055%20S%20770%2087%2C%20860%2061%27%20fill%3D%27none%27%20stroke%3D%27rgba%28234%2C57%2C81%2C0.10%29%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27/%3E%0A%3C/svg%3E"),linear-gradient(145deg,#ffffff 0%,#fafbfc 60%,#f4f6f8 100%)!important;
  background-color:#fff!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:right bottom,0 0!important;
  background-size:115% auto,auto!important;
  border-color:rgba(25,32,42,.10)!important;
  box-shadow:0 16px 34px rgba(22,30,41,.10)!important;
}
html[data-theme="light"] .home-legal-footer::before,
html[data-theme="light"] .home-legal-footer::after,
html:not([data-theme="dark"]) .home-legal-footer::before,
html:not([data-theme="dark"]) .home-legal-footer::after{
  display:none!important;
  content:none!important;
}


/* iPDF 1.4.32 — compact studio rows + aligned menu rows */
.premium-studio-card .studio-compact-row{gap:8px!important;padding-top:1px!important}
.premium-studio-card .studio-compact-row .suite-tool{
  min-height:68px!important;
  padding:10px 13px!important;
  grid-template-columns:46px minmax(0,1fr) 18px!important;
  column-gap:12px!important;
  row-gap:2px!important;
  align-items:center!important;
}
.premium-studio-card .studio-compact-row .suite-tool:after{
  font-size:24px!important;
  line-height:1!important;
  align-self:center!important;
}
.premium-studio-card .studio-compact-row .suite-icon,
.premium-studio-card .studio-compact-row .suite-tool>.menu-real-icon,
.premium-studio-card .studio-compact-row .suite-tool>.menu-line-icon{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  border-radius:14px!important;
  margin:0!important;
}
.premium-studio-card .studio-compact-row .suite-tool strong{
  align-self:end!important;
  margin:0!important;
  font-size:12.6px!important;
  line-height:1.18!important;
  letter-spacing:-.01em!important;
}
.premium-studio-card .studio-compact-row .suite-tool small{
  align-self:start!important;
  margin:1px 0 0!important;
  font-size:10.3px!important;
  line-height:1.28!important;
}

.tools-menu-grid{gap:7px!important}
.tools-menu-item{
  min-height:64px!important;
  padding:9px 11px!important;
  align-items:center!important;
  gap:11px!important;
}
.tools-menu-item>b{
  flex:0 0 42px!important;
  min-width:42px!important;
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
}
.tools-menu-item strong{
  font-size:12.8px!important;
  line-height:1.18!important;
  margin:0!important;
}
.tools-menu-item small{
  font-size:10.4px!important;
  line-height:1.25!important;
  margin-top:3px!important;
}
@media(max-width:760px){
  .premium-studio-card .studio-compact-row .suite-tool{min-height:66px!important;padding:9px 12px!important}
  .premium-studio-card .studio-compact-row .suite-icon,
  .premium-studio-card .studio-compact-row .suite-tool>.menu-real-icon,
  .premium-studio-card .studio-compact-row .suite-tool>.menu-line-icon{width:42px!important;height:42px!important;min-width:42px!important}
  .premium-studio-card .studio-compact-row .suite-tool strong{font-size:12.2px!important}
  .premium-studio-card .studio-compact-row .suite-tool small{font-size:10px!important}
  .tools-menu-item{min-height:62px!important;padding:8px 10px!important}
}


/* iPDF 1.4.33 — fixed Scan action above appbar + Day text contrast */
@media(max-width:900px){
  body[data-current-view="scanView"] #scanProcessButton{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    bottom:calc(var(--appbar-height,72px) + 10px + env(safe-area-inset-bottom))!important;
    z-index:96!important;
    width:min(680px,calc(100vw - 24px))!important;
    min-height:56px!important;
    margin:0!important;
    transform:translateX(-50%)!important;
    border-radius:18px!important;
    box-shadow:0 16px 36px rgba(151,8,31,.34),inset 0 1px 0 rgba(255,255,255,.24)!important;
  }
  body[data-current-view="scanView"] #scanView{
    padding-bottom:calc(var(--appbar-height,72px) + 92px + env(safe-area-inset-bottom))!important;
  }
  body[data-current-view="scanView"] #scanProcessButton:active{
    transform:translateX(-50%) scale(.985)!important;
  }
  body[data-current-view="scanView"] #scanProcessButton:disabled{
    opacity:.76!important;
    filter:saturate(.72)!important;
  }
}

html[data-theme="light"] #idCardView .id-card-intro,
html:not([data-theme="dark"]) #idCardView .id-card-intro{
  color:#171c24!important;
}
html[data-theme="light"] #idCardView .id-card-intro h2,
html:not([data-theme="dark"]) #idCardView .id-card-intro h2,
html[data-theme="light"] #idCardView .id-side-head h2,
html:not([data-theme="dark"]) #idCardView .id-side-head h2,
html[data-theme="light"] #idCardView .id-card-export h2,
html:not([data-theme="dark"]) #idCardView .id-card-export h2{
  color:#171c24!important;
  -webkit-text-fill-color:#171c24!important;
}
html[data-theme="light"] #idCardView .id-card-intro p,
html:not([data-theme="dark"]) #idCardView .id-card-intro p,
html[data-theme="light"] #idCardView .id-type-copy p,
html:not([data-theme="dark"]) #idCardView .id-type-copy p,
html[data-theme="light"] #idCardView .id-type-note,
html:not([data-theme="dark"]) #idCardView .id-type-note,
html[data-theme="light"] #idCardView .id-type-option small,
html:not([data-theme="dark"]) #idCardView .id-type-option small,
html[data-theme="light"] #idCardView .id-card-export p,
html:not([data-theme="dark"]) #idCardView .id-card-export p,
html[data-theme="light"] #idCardView .id-privacy-note,
html:not([data-theme="dark"]) #idCardView .id-privacy-note{
  color:#56616f!important;
  -webkit-text-fill-color:#56616f!important;
}
html[data-theme="light"] #idCardView .id-card-progress span:not(.active):not(.done),
html:not([data-theme="dark"]) #idCardView .id-card-progress span:not(.active):not(.done){
  background:rgba(255,255,255,.88)!important;
  color:#5b6572!important;
  border:1px solid rgba(34,42,52,.10)!important;
}
html[data-theme="light"] #idCardView .id-card-progress span.done,
html:not([data-theme="dark"]) #idCardView .id-card-progress span.done{
  background:#171c24!important;
  color:#fff!important;
}


/* iPDF 1.5.3 — sticky scan CTA + stronger day contrast */
@media(max-width:900px){
  body[data-current-view="scanView"] #scanView.active-view #scanProcessButton,
  body[data-current-view="scanView"] #scanProcessButton,
  #scanView.active-view #scanProcessButton{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
    bottom:calc(var(--appbar-height,72px) + 12px + env(safe-area-inset-bottom))!important;
    z-index:110!important;
    margin:0!important;
    min-height:58px!important;
    border-radius:18px!important;
    box-shadow:0 18px 42px rgba(151,8,31,.34), 0 4px 16px rgba(18,24,34,.16), inset 0 1px 0 rgba(255,255,255,.28)!important;
  }
  body[data-current-view="scanView"] #scanView.active-view,
  body[data-current-view="scanView"] #scanView,
  #scanView.active-view{
    padding-bottom:calc(var(--appbar-height,72px) + 108px + env(safe-area-inset-bottom))!important;
  }
  body[data-current-view="scanView"] #scanProcessButton:active,
  #scanView.active-view #scanProcessButton:active{
    transform:scale(.985)!important;
  }
  body[data-current-view="scanView"] #scanProcessButton:disabled,
  #scanView.active-view #scanProcessButton:disabled{
    opacity:.76!important;
    filter:saturate(.72)!important;
  }
}

html[data-theme="light"] #scanView .scan-card p,
html:not([data-theme="dark"]) #scanView .scan-card p,
html[data-theme="light"] #scanView .scan-card small,
html:not([data-theme="dark"]) #scanView .scan-card small,
html[data-theme="light"] #scanView .scan-card .scan-hint,
html:not([data-theme="dark"]) #scanView .scan-card .scan-hint,
html[data-theme="light"] #scanView .scan-card .inline-hint,
html:not([data-theme="dark"]) #scanView .scan-card .inline-hint,
html[data-theme="light"] #idCardView .id-card-intro p,
html:not([data-theme="dark"]) #idCardView .id-card-intro p,
html[data-theme="light"] #idCardView .id-type-copy p,
html:not([data-theme="dark"]) #idCardView .id-type-copy p,
html[data-theme="light"] #idCardView .id-type-note,
html:not([data-theme="dark"]) #idCardView .id-type-note,
html[data-theme="light"] #idCardView .id-type-option small,
html:not([data-theme="dark"]) #idCardView .id-type-option small,
html[data-theme="light"] #idCardView .id-card-export p,
html:not([data-theme="dark"]) #idCardView .id-card-export p,
html[data-theme="light"] #idCardView .id-privacy-note,
html:not([data-theme="dark"]) #idCardView .id-privacy-note,
html[data-theme="light"] #idCardView .id-card-step-copy,
html:not([data-theme="dark"]) #idCardView .id-card-step-copy,
html[data-theme="light"] #idCardView .id-side-slot .slot-note,
html:not([data-theme="dark"]) #idCardView .id-side-slot .slot-note{
  color:#576270!important;
  -webkit-text-fill-color:#576270!important;
}
html[data-theme="light"] #scanView .scan-card h2,
html:not([data-theme="dark"]) #scanView .scan-card h2,
html[data-theme="light"] #scanView .scan-card h3,
html:not([data-theme="dark"]) #scanView .scan-card h3,
html[data-theme="light"] #idCardView .id-card-intro h2,
html:not([data-theme="dark"]) #idCardView .id-card-intro h2,
html[data-theme="light"] #idCardView .id-side-head h2,
html:not([data-theme="dark"]) #idCardView .id-side-head h2,
html[data-theme="light"] #idCardView .id-card-export h2,
html:not([data-theme="dark"]) #idCardView .id-card-export h2{
  color:#171c24!important;
  -webkit-text-fill-color:#171c24!important;
}
html[data-theme="light"] #idCardView .id-card-progress span:not(.active):not(.done),
html:not([data-theme="dark"]) #idCardView .id-card-progress span:not(.active):not(.done){
  color:#697381!important;
  border-color:rgba(34,42,52,.10)!important;
}


/* ================================================================
   iPDF 1.5.3 — 10-language selector with flags
   ================================================================ */
.language-switcher{position:relative;display:flex;align-items:center;padding:0;background:transparent!important;border:0!important;box-shadow:none!important}
.language-picker-button{display:inline-flex;align-items:center;gap:7px;min-width:84px;height:42px;padding:0 12px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.10);color:#fff;font-size:12px;font-weight:950;letter-spacing:.04em;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.language-current-flag{font-size:18px;line-height:1}
.language-current-code{line-height:1}
.language-picker-chevron{font-size:12px;opacity:.9;margin-left:auto}
.language-picker-menu{position:absolute;top:calc(100% + 10px);right:0;width:min(292px,88vw);padding:8px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(15,19,26,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 24px 54px rgba(4,7,11,.35);display:grid;gap:6px;z-index:250;max-height:min(68vh,560px);overflow:auto}
.language-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.04);color:#edf2f7;text-align:left}
.language-option:hover{background:rgba(255,255,255,.08)}
.language-option.active{background:linear-gradient(145deg,rgba(245,42,69,.20),rgba(164,12,33,.18));border-color:rgba(245,42,69,.38);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.language-option-flag{font-size:22px;line-height:1;flex:0 0 22px}
.language-option-copy{display:flex;flex-direction:column;gap:1px;min-width:0}
.language-option-copy strong{font-size:14px;line-height:1.15;color:#fff;font-weight:900}
.language-option-copy small{font-size:11px;line-height:1.2;color:#b7bec8}
.language-option-code{margin-left:auto;font-size:11px;font-weight:900;color:#ff7d8d;letter-spacing:.08em}
html[data-theme="light"] .language-picker-menu{background:rgba(255,255,255,.98);border-color:rgba(23,27,36,.10);box-shadow:0 20px 45px rgba(17,20,26,.12)}
html[data-theme="light"] .language-option{background:#f8f9fb;border-color:#eceff4;color:#18202b}
html[data-theme="light"] .language-option:hover{background:#f1f4f8}
html[data-theme="light"] .language-option-copy strong{color:#141922}
html[data-theme="light"] .language-option-copy small{color:#6a7380}
@media(max-width:720px){.language-picker-button{min-width:78px;height:38px;padding:0 10px}.language-picker-menu{width:min(268px,88vw)}}
@media(max-width:440px){.language-picker-button{min-width:72px;padding:0 9px}.language-current-flag{font-size:17px}.language-current-code{font-size:11px}}


/* iPDF 1.5.3 — restore Scan button position + 12-language menu */
@media(max-width:900px){
  body[data-current-view="scanView"] #scanView.active-view #scanProcessButton,
  body[data-current-view="scanView"] #scanProcessButton,
  #scanView.active-view #scanProcessButton{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    top:auto!important;
    width:100%!important;
    margin-top:12px!important;
    margin-bottom:0!important;
    transform:none!important;
    z-index:6!important;
    border-radius:18px!important;
    box-shadow:0 14px 28px rgba(172,11,39,.28),inset 0 1px 0 rgba(255,255,255,.22)!important;
  }
  body[data-current-view="scanView"] #scanView.active-view,
  body[data-current-view="scanView"] #scanView,
  #scanView.active-view{
    padding-bottom:calc(var(--appbar-height,72px) + 28px + env(safe-area-inset-bottom))!important;
  }
  body[data-current-view="scanView"] #scanProcessButton:active,
  #scanView.active-view #scanProcessButton:active{
    transform:scale(.985)!important;
  }
}
.language-picker-menu{width:min(304px,90vw)!important}
@media(max-width:720px){.language-picker-menu{width:min(280px,90vw)!important}}


/* iPDF 1.5.3 — monitoring, batch compression and invoice extraction */
.admin-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.admin-resource-grid article{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:16px;background:linear-gradient(145deg,#f7f9fc,#edf1f5);border:1px solid rgba(20,28,38,.08)}
.admin-resource-grid small{color:#687381;font-weight:800}.admin-resource-grid strong{font-size:19px;color:#161d27;overflow-wrap:anywhere}.admin-resource-grid span{font-size:11px;color:#78828e}
.admin-monitor-note{margin-top:12px;padding:10px 12px;border-radius:12px;background:rgba(216,25,54,.08);color:#6a2935;font-size:12px;font-weight:750}
html[data-theme="dark"] .admin-resource-grid article{background:linear-gradient(145deg,#20262e,#12161c);border-color:#343d48}html[data-theme="dark"] .admin-resource-grid strong{color:#fff}html[data-theme="dark"] .admin-resource-grid small,html[data-theme="dark"] .admin-resource-grid span{color:#aeb8c4}html[data-theme="dark"] .admin-monitor-note{background:rgba(235,38,67,.12);color:#ffc3cd}
.batch-file-list{display:grid;gap:8px;margin-top:12px;max-height:420px;overflow:auto}
.batch-file-row{display:grid;grid-template-columns:48px minmax(0,1fr) 36px;align-items:center;gap:10px;padding:10px;border-radius:14px;background:#f1f4f7;border:1px solid rgba(22,29,38,.08)}
.batch-file-row div{min-width:0}.batch-file-row strong,.batch-file-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-file-row strong{font-size:13px;color:#161d27}.batch-file-row small{font-size:11px;color:#717b88;margin-top:2px}
.batch-file-row button{width:34px;height:34px;border:0;border-radius:11px;background:#fff;color:#a20d25;font-size:20px;font-weight:900}.batch-file-badge{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:linear-gradient(145deg,#ef2945,#8c091b);color:#fff;font-size:11px;font-weight:1000}
.studio-drop-zone.dragging{outline:3px solid rgba(226,28,56,.3);transform:scale(.995)}
.invoice-table-wrap{overflow:auto;max-height:510px;border:1px solid rgba(20,28,38,.09);border-radius:16px}.invoice-table{width:100%;border-collapse:collapse;min-width:760px}.invoice-table th,.invoice-table td{padding:10px 11px;border-bottom:1px solid rgba(20,28,38,.08);text-align:left;font-size:12px}.invoice-table th{position:sticky;top:0;background:#f1f4f7;color:#4f5966;z-index:2}.invoice-table td[contenteditable]{background:rgba(255,255,255,.55);outline:none}.invoice-table td[contenteditable]:focus{box-shadow:inset 0 0 0 2px rgba(222,28,56,.35)}
html[data-theme="dark"] .batch-file-row{background:#20262e;border-color:#343d48}html[data-theme="dark"] .batch-file-row strong{color:#fff}html[data-theme="dark"] .batch-file-row small{color:#aeb8c4}html[data-theme="dark"] .batch-file-row button{background:#11151a;color:#ff8092}html[data-theme="dark"] .invoice-table-wrap{border-color:#343d48}html[data-theme="dark"] .invoice-table th{background:#20262e;color:#d9e0e8}html[data-theme="dark"] .invoice-table td{border-color:#303842;color:#eef2f6}html[data-theme="dark"] .invoice-table td[contenteditable]{background:rgba(255,255,255,.03)}
@media(max-width:900px){.admin-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-compression-layout,.invoice-layout{grid-template-columns:1fr!important}.invoice-result-card{min-width:0}}
@media(max-width:520px){.admin-resource-grid{grid-template-columns:1fr}.batch-file-row{grid-template-columns:42px minmax(0,1fr) 34px;padding:8px}.batch-file-badge{width:40px;height:40px}.admin-monitor-card .admin-header-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}}


/* iPDF 1.5.4 — stronger auto camera CTA */
.scan-smart-head{flex-wrap:wrap}
.smart-camera-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:176px;min-height:50px;padding:13px 18px 13px 16px;border:1px solid rgba(255,255,255,.16)!important;border-radius:16px!important;background:linear-gradient(145deg,#ff2a4c 0%,#d81332 52%,#910a1d 100%)!important;color:#fff!important;font-size:15px!important;font-weight:950!important;letter-spacing:.01em!important;box-shadow:0 14px 28px rgba(217,22,52,.32),0 0 0 1px rgba(255,255,255,.06) inset;overflow:hidden;animation:smartCameraPulse154 2.7s ease-in-out infinite;-webkit-tap-highlight-color:transparent}
.smart-camera-button::before{content:"📷";display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:rgba(255,255,255,.16);font-size:14px;line-height:1;box-shadow:0 1px 0 rgba(255,255,255,.12) inset}
.smart-camera-button::after{content:"";position:absolute;inset:-35% auto -35% -22%;width:36%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);animation:smartCameraShine154 3.6s ease-in-out infinite;pointer-events:none}
.smart-camera-button:hover,.smart-camera-button:focus-visible{transform:translateY(-1px);box-shadow:0 18px 34px rgba(217,22,52,.38),0 0 0 2px rgba(255,255,255,.16) inset;outline:none}
@keyframes smartCameraPulse154{0%,100%{transform:translateY(0);box-shadow:0 14px 28px rgba(217,22,52,.32),0 0 0 1px rgba(255,255,255,.06) inset}50%{transform:translateY(-1px);box-shadow:0 18px 35px rgba(217,22,52,.42),0 0 0 1px rgba(255,255,255,.08) inset}}
@keyframes smartCameraShine154{0%{left:-26%}18%{left:108%}100%{left:108%}}
html[data-theme="light"] .smart-camera-button{border-color:rgba(210,18,47,.16)!important;box-shadow:0 14px 28px rgba(217,22,52,.22),0 0 0 1px rgba(255,255,255,.65) inset}
@media(max-width:760px){.scan-smart-head{align-items:stretch}.smart-camera-button{width:100%;min-width:0;font-size:14px!important;padding:13px 16px}.smart-camera-button::before{width:22px;height:22px;font-size:13px}}

/* iPDF 1.5.7 — modern image formats, advanced settings and multi-page scan */
.advanced-settings-grid{display:grid;grid-template-columns:1fr;gap:10px;margin:10px 0 12px}
.advanced-settings-grid label,.scan-advanced-settings>label{display:grid;gap:6px}
.advanced-settings-grid label>span,.scan-advanced-settings label>span{font-size:12px;font-weight:900;color:#d7dde5}
html[data-theme="light"] .advanced-settings-grid label>span,html[data-theme="light"] .scan-advanced-settings label>span{color:#3b4653}
.modern-format-box{position:relative;overflow:hidden;border-color:rgba(52,201,151,.24)!important;background:linear-gradient(145deg,rgba(22,54,47,.78),rgba(18,25,33,.92))!important}
.modern-format-box::after{content:"WEBP · AVIF";position:absolute;right:12px;top:10px;padding:5px 8px;border-radius:999px;background:rgba(63,224,168,.12);color:#70e4b7;font-size:9px;font-weight:950;letter-spacing:.08em}
html[data-theme="light"] .modern-format-box{background:linear-gradient(145deg,#f5fffb,#eef7f4)!important;border-color:#cae9dc!important}
.optimization-button,.auto-fix-button{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;border:0;border-radius:16px;background:linear-gradient(145deg,#21b88b,#11705c);color:#fff;font-weight:950;box-shadow:0 12px 26px rgba(15,129,98,.24)}
.optimization-button::after,.auto-fix-button::after{content:"";position:absolute;inset:-60% auto -60% -40%;width:34%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);animation:ipdfModernShine 3.4s ease-in-out infinite}
.auto-fix-button{background:linear-gradient(145deg,#ff3150,#b20c28);box-shadow:0 12px 28px rgba(190,14,43,.27)}
.optimization-result{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding:10px 12px;border-radius:13px;background:rgba(47,209,153,.10);border:1px solid rgba(47,209,153,.24)}
.optimization-result strong,.optimization-result span{display:block}.optimization-result span{color:#8fe2c5;font-size:12px}
.scan-multipage-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin:12px;padding:15px;border-radius:19px;border:1px solid rgba(226,28,52,.20);background:linear-gradient(145deg,rgba(31,36,44,.96),rgba(64,20,30,.90));box-shadow:0 14px 30px rgba(0,0,0,.14)}
.scan-multipage-panel strong,.scan-multipage-panel small{display:block}.scan-multipage-panel strong{font-size:16px}.scan-multipage-panel small{margin-top:4px;color:#bcc4cf;line-height:1.35}
.scan-multipage-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.scan-multipage-actions button{min-height:44px}
.scan-advanced-settings{display:grid;gap:10px;margin:0 0 12px;padding:13px;border-radius:17px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.advanced-toggle-grid{display:grid;gap:8px}.advanced-toggle-grid label{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.05);font-size:12px;font-weight:800}.advanced-toggle-grid input{width:18px;height:18px;accent-color:#e21c34}
.multipage-pdf-button{display:flex!important;align-items:center;justify-content:center;gap:9px}
@keyframes ipdfModernShine{0%{left:-42%}20%{left:110%}100%{left:110%}}
html[data-theme="light"] .scan-multipage-panel{background:linear-gradient(145deg,#fff,#fff4f6);border-color:#efc8d0;color:#171c24;box-shadow:0 12px 26px rgba(111,18,37,.08)}
html[data-theme="light"] .scan-multipage-panel small{color:#66717e}
html[data-theme="light"] .scan-advanced-settings{background:#f7f9fb;border-color:#dce2e9}
html[data-theme="light"] .advanced-toggle-grid label{background:#edf1f5;color:#2f3945}
html[data-theme="light"] .optimization-result{background:#effbf7;border-color:#c8e9dc}.optimization-result span{color:#376d5d}
@media(max-width:760px){.scan-multipage-panel{grid-template-columns:1fr;margin:10px;padding:13px}.scan-multipage-actions{display:grid;grid-template-columns:1fr;width:100%}.scan-multipage-actions button{width:100%}.modern-format-box::after{position:static;display:inline-flex;margin-top:8px}.optimization-result{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.optimization-button::after,.auto-fix-button::after{animation:none!important;display:none}}

/* iPDF 1.5.7 — simplified automatic Pro Scan */
.scan-pro-hero{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.9fr);gap:18px;
  margin:12px;padding:20px;border-radius:24px;overflow:hidden;
  background:linear-gradient(145deg,#121820 0%,#202833 55%,#6e0b1b 100%);
  border:1px solid rgba(255,255,255,.10);box-shadow:0 18px 38px rgba(0,0,0,.18);color:#fff
}
.scan-pro-hero::after{content:"";position:absolute;right:-80px;bottom:-100px;width:260px;height:260px;border-radius:50%;border:2px solid rgba(255,255,255,.08);box-shadow:0 0 0 26px rgba(255,255,255,.025),0 0 0 54px rgba(255,255,255,.018);pointer-events:none}
.scan-pro-copy,.scan-pro-actions,.scan-pro-pipeline{position:relative;z-index:1}.scan-pro-copy h2{margin:5px 0 8px;font-size:clamp(24px,3.3vw,38px);line-height:1.05}.scan-pro-copy p{margin:0;color:#cbd2dc;line-height:1.55;max-width:620px}
.scan-pro-actions{display:grid;grid-template-columns:1fr;gap:10px;align-self:center}.scan-pro-actions button{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;align-items:center;text-align:left;min-height:68px;padding:12px 14px;border-radius:18px;border:1px solid rgba(255,255,255,.12)}
.scan-pro-actions button>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.13);font-size:19px}.scan-pro-actions strong{font-size:14px;color:#fff}.scan-pro-actions small{font-size:11px;color:rgba(255,255,255,.74);margin-top:2px}
.scan-pro-start-button{background:linear-gradient(145deg,#f42b4a,#98091d);color:#fff;box-shadow:0 14px 30px rgba(190,11,42,.28)}.scan-pro-gallery-button{background:rgba(255,255,255,.08);color:#fff}
.scan-pro-pipeline{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:2px}.scan-pro-pipeline span{display:flex;align-items:center;gap:7px;min-height:38px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.065);font-size:11px;font-weight:850;color:#e8edf3}.scan-pro-pipeline i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#eb2341;color:#fff;font-style:normal;font-size:10px}
.scan-pro-empty-state{min-height:150px!important;margin:12px!important;border:1px dashed rgba(255,255,255,.14)!important;background:rgba(255,255,255,.025)!important}.scan-pro-empty-state .scan-empty-icon{width:52px;height:52px;font-size:25px}.scan-pro-empty-state h2{font-size:18px}.scan-pro-empty-state p{margin-bottom:0!important}
.scan-smart-panel-simple{margin-top:8px!important;padding:11px 13px!important;background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.075)!important;box-shadow:none!important}
.scan-pro-auto-summary{display:flex;align-items:center;gap:10px}.scan-pro-auto-summary strong,.scan-pro-auto-summary small{display:block}.scan-pro-auto-summary small{margin-top:2px;color:#aeb8c4;font-size:11px}.scan-pro-auto-badge{display:inline-flex;align-items:center;justify-content:center;min-width:68px;height:32px;padding:0 10px;border-radius:999px;background:linear-gradient(145deg,#21bd8c,#116b58);color:#fff;font-size:10px;font-weight:1000;letter-spacing:.06em}.scan-pro-privacy{margin-top:9px;border-top:1px solid rgba(255,255,255,.07);padding-top:8px}.scan-pro-privacy summary{cursor:pointer;color:#b7c0cb;font-size:11px;font-weight:850}.scan-pro-privacy .sensitive-row{margin-top:8px;padding-top:8px}
.scan-manual-tools{margin:10px 12px 0;padding:9px 11px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}.scan-manual-tools summary{cursor:pointer;font-size:12px;font-weight:900;color:#c4ccd6}.scan-manual-tools .scan-toolbar{margin-top:9px}
.scan-pro-side{display:flex;flex-direction:column;gap:10px}.scan-pro-ready-card{padding:15px;border-radius:18px;background:linear-gradient(145deg,rgba(24,29,36,.98),rgba(62,20,30,.92));border:1px solid rgba(255,255,255,.08)}.scan-pro-ready-card h2{margin:5px 0 6px;font-size:20px}.scan-pro-ready-card p{margin:0;color:#b7c0ca;font-size:12px;line-height:1.45}.scan-pro-ready-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.scan-pro-ready-list span{padding:8px 9px;border-radius:11px;background:rgba(255,255,255,.055);font-size:10.5px;font-weight:850;color:#e6ebf1}
.scan-pro-process-button{min-height:54px!important}.scan-pro-finish-button{min-height:58px!important;font-size:16px!important;background:linear-gradient(145deg,#23b987,#116b58)!important;box-shadow:0 15px 30px rgba(18,135,101,.25)!important}.scan-secondary-exports{padding:9px 10px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}.scan-secondary-exports summary{cursor:pointer;color:#aeb8c4;font-size:11px;font-weight:850}.scan-secondary-exports>button:first-of-type{margin-top:10px}.scan-secondary-exports button{margin-top:8px}
#scanFilterStrip{display:none!important}.scan-system-defaults{display:none!important}
.auto-camera-continuous-card{max-width:min(780px,calc(100vw - 18px))!important}.auto-camera-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.auto-camera-title-row h2{margin:0 0 4px}.auto-camera-title-row p{margin:0;color:#aeb7c2;font-size:12px;line-height:1.45}.auto-camera-page-count{display:inline-flex;align-items:center;justify-content:center;min-width:78px;height:36px;padding:0 11px;border-radius:999px;background:linear-gradient(145deg,#22b989,#126b59);color:#fff;font-size:11px;font-weight:1000;white-space:nowrap}.auto-camera-actions-pro{display:grid;grid-template-columns:1fr 1.25fr .8fr;gap:8px;margin-top:12px}.auto-camera-actions-pro button{min-height:46px}
html[data-theme="light"] .scan-pro-hero{background:linear-gradient(145deg,#fff 0%,#f8fafc 55%,#ffe8ed 100%);color:#151b24;border-color:#e0e5eb;box-shadow:0 16px 34px rgba(27,34,44,.09)}html[data-theme="light"] .scan-pro-hero::after{border-color:rgba(199,19,48,.10);box-shadow:0 0 0 26px rgba(199,19,48,.025),0 0 0 54px rgba(199,19,48,.018)}html[data-theme="light"] .scan-pro-copy p{color:#5d6875}html[data-theme="light"] .scan-pro-gallery-button{background:#fff;border-color:#dfe4ea;color:#18202a;box-shadow:0 9px 20px rgba(24,31,40,.06)}html[data-theme="light"] .scan-pro-gallery-button strong{color:#18202a}html[data-theme="light"] .scan-pro-gallery-button small{color:#6a7480}html[data-theme="light"] .scan-pro-pipeline span{background:#fff;color:#35404c;border:1px solid #e4e8ed}html[data-theme="light"] .scan-pro-empty-state{background:#fafbfd!important;border-color:#d9dfe6!important}html[data-theme="light"] .scan-smart-panel-simple{background:#f7f9fb!important;border-color:#dfe4ea!important}html[data-theme="light"] .scan-pro-auto-summary small,html[data-theme="light"] .scan-pro-privacy summary{color:#65707c}html[data-theme="light"] .scan-pro-ready-card{background:linear-gradient(145deg,#fff,#fff2f5);border-color:#ebd2d8}html[data-theme="light"] .scan-pro-ready-card p{color:#65707d}html[data-theme="light"] .scan-pro-ready-list span{background:#fff;color:#33404c;border:1px solid #eceff3}html[data-theme="light"] .scan-manual-tools,html[data-theme="light"] .scan-secondary-exports{background:#f6f8fa;border-color:#e0e5ea}html[data-theme="light"] .scan-manual-tools summary,html[data-theme="light"] .scan-secondary-exports summary{color:#5e6976}
@media(max-width:900px){.scan-pro-hero{grid-template-columns:1fr}.scan-pro-pipeline{grid-template-columns:1fr 1fr}.scan-pro-actions{grid-template-columns:1fr 1fr}.scan-pro-actions button{min-height:66px}.scan-pro-side{gap:9px}}
@media(max-width:620px){.scan-pro-hero{margin:9px;padding:14px;border-radius:20px;gap:13px}.scan-pro-copy h2{font-size:25px}.scan-pro-actions{grid-template-columns:1fr}.scan-pro-pipeline{grid-template-columns:1fr 1fr}.scan-pro-pipeline span{font-size:10px;padding:7px}.scan-pro-ready-list{grid-template-columns:1fr 1fr}.auto-camera-title-row{display:grid;grid-template-columns:1fr auto}.auto-camera-title-row p{grid-column:1/-1}.auto-camera-actions-pro{grid-template-columns:1fr}.auto-camera-actions-pro button{width:100%}}
@media(prefers-reduced-motion:reduce){.scan-pro-start-button,.scan-pro-finish-button{animation:none!important}}


/* ================================================================
   iPDF 1.5.7 — focused professional scan editor
   ================================================================ */
.scan-focus-topbar,.scan-focus-bottom,.scan-focus-save,.scan-side-guide,.scan-quick-filter{display:none}
body.scan-editor-focus{overflow:hidden!important;background:#202124!important;padding:0!important}
body.scan-editor-focus .app-header,body.scan-editor-focus .mobile-appbar,body.scan-editor-focus .back-to-top-button,body.scan-editor-focus .install-edge-button,body.scan-editor-focus #scanView>.view-head,body.scan-editor-focus #scanView .scan-pro-side,body.scan-editor-focus #scanView .scan-smart-panel,body.scan-editor-focus #scanView .scan-empty-state{display:none!important}
body.scan-editor-focus #scanView{position:fixed!important;inset:0!important;z-index:400!important;display:block!important;width:100%!important;height:100dvh!important;margin:0!important;padding:0!important;background:#202124!important;overflow:hidden!important}
body.scan-editor-focus #scanView .tool-grid,body.scan-editor-focus #scanView .scan-card{display:block!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#202124!important;box-shadow:none!important}
body.scan-editor-focus #scanEditor{display:flex!important;flex-direction:column!important;width:100%!important;height:100dvh!important;padding:88px 0 148px!important;background:#202124!important}
body.scan-editor-focus .scan-focus-topbar{display:flex!important;position:fixed;left:0;right:0;top:0;height:88px;padding:calc(12px + env(safe-area-inset-top)) 18px 10px;align-items:flex-end;background:#1b1b1c;z-index:430;border-bottom:1px solid rgba(255,255,255,.04)}
.scan-focus-back{display:grid;place-items:center;width:54px;height:54px;padding:0;border:0;background:transparent;color:#fff;border-radius:18px}.scan-focus-back svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
body.scan-editor-focus .scan-status-bar{display:block!important;position:fixed;top:calc(100px + env(safe-area-inset-top));left:18px;z-index:425;pointer-events:none}
body.scan-editor-focus .scan-status-bar .scan-badge{position:static!important;display:inline-flex!important;padding:9px 13px!important;border-left:5px solid #f11e3f!important;border-radius:8px!important;background:rgba(10,10,11,.92)!important;color:#fff!important;font-size:13px!important;box-shadow:0 8px 20px rgba(0,0,0,.25)!important}
body.scan-editor-focus .scan-status-bar .scan-hint{display:none!important}
body.scan-editor-focus .scan-stage{position:relative!important;display:grid!important;place-items:center!important;flex:1 1 auto!important;width:100%!important;min-height:0!important;height:auto!important;padding:18px 0 10px!important;background:#2a2b2e!important;overflow:hidden!important}
body.scan-editor-focus .scan-stage canvas{display:block!important;max-width:100%!important;max-height:calc(100dvh - 250px)!important;width:auto!important;height:auto!important;object-fit:contain!important;box-shadow:0 4px 18px rgba(0,0,0,.24)!important}
body.scan-editor-focus .scan-side-guide{display:block!important;position:absolute;top:38%;bottom:28%;width:4px;border-radius:99px;background:#2fb4ff;z-index:6;box-shadow:0 0 8px rgba(47,180,255,.28)}
body.scan-editor-focus .scan-side-guide-left{left:5%}body.scan-editor-focus .scan-side-guide-right{right:5%}
body.scan-editor-focus .scan-side-guide i{position:absolute;left:50%;top:18%;width:38px;height:38px;border-radius:50%;transform:translate(-50%,-50%);background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.25)}
body.scan-editor-focus .scan-quick-filter{display:grid!important;place-items:center;position:absolute;bottom:24px;width:52px;height:52px;border:0;border-radius:50%;background:rgba(38,39,42,.75);color:#fff;z-index:8;backdrop-filter:blur(8px)}
body.scan-editor-focus .scan-quick-filter span{font-size:35px;line-height:1;font-weight:300}body.scan-editor-focus .scan-quick-light{left:14px}body.scan-editor-focus .scan-quick-auto{right:14px;border:3px solid #fff}
body.scan-editor-focus .scan-manual-tools,body.scan-editor-focus .scan-nav,body.scan-editor-focus .scan-process-wrap{display:none!important}
body.scan-editor-focus .scan-focus-bottom{display:block!important;position:fixed;left:0;right:0;bottom:0;height:148px;padding:12px 94px calc(10px + env(safe-area-inset-bottom)) 14px;background:#101112;z-index:440;border-top:1px solid rgba(255,255,255,.06)}
body.scan-editor-focus #scanFilterStrip{display:flex!important;position:static!important;width:100%!important;height:116px!important;gap:10px!important;padding:0!important;background:transparent!important;border:0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity}
body.scan-editor-focus .scan-filter-card{position:relative!important;display:grid!important;grid-template-rows:82px 26px!important;flex:0 0 112px!important;width:112px!important;min-width:112px!important;height:112px!important;padding:0!important;border:2px solid transparent!important;border-radius:10px!important;overflow:hidden!important;background:#090a0b!important;color:#fff!important;box-shadow:none!important;scroll-snap-align:start}
body.scan-editor-focus .scan-filter-card.active{border-color:#18aef2!important;box-shadow:0 0 0 1px #18aef2 inset!important}
body.scan-editor-focus .scan-filter-preview{display:block!important;width:100%!important;height:82px!important;object-fit:cover!important;background:#ddd!important;border:0!important;border-radius:0!important}
body.scan-editor-focus .scan-filter-card>span{display:flex!important;align-items:center!important;justify-content:center!important;height:26px!important;padding:0 4px!important;background:#070809!important;color:#fff!important;font-size:11px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important}
body.scan-editor-focus .scan-filter-card>i{position:absolute;right:0;top:0;padding:4px 7px;border-radius:0 0 0 8px;background:#f2a718;color:#fff;font-style:normal;font-size:9px;font-weight:900}
body.scan-editor-focus .scan-focus-save{display:flex!important;position:fixed;right:10px;bottom:calc(14px + env(safe-area-inset-bottom));width:78px;height:120px;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:0;background:#101112;color:#21b9ff;z-index:445}
.scan-focus-save-check{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#25b7f0;color:#fff;font-size:34px;font-weight:700;box-shadow:0 10px 25px rgba(21,165,226,.28)}.scan-focus-save small{font-size:12px;font-weight:750;color:#23b8f4}
body.scan-editor-focus .loading-overlay{position:fixed!important;inset:88px 0 148px!important;z-index:450!important}
@media(max-width:520px){body.scan-editor-focus #scanEditor{padding-top:82px!important;padding-bottom:138px!important}body.scan-editor-focus .scan-focus-topbar{height:82px;padding-left:14px}body.scan-editor-focus .scan-focus-bottom{height:138px;padding-right:84px;padding-left:8px}body.scan-editor-focus #scanFilterStrip{height:106px!important;gap:8px!important}body.scan-editor-focus .scan-filter-card{flex-basis:104px!important;width:104px!important;min-width:104px!important;height:106px!important;grid-template-rows:78px 24px!important}body.scan-editor-focus .scan-filter-preview{height:78px!important}body.scan-editor-focus .scan-filter-card>span{height:24px!important;font-size:10.5px!important}body.scan-editor-focus .scan-focus-save{width:76px;height:110px;right:4px}.scan-focus-save-check{width:56px;height:56px}body.scan-editor-focus .scan-stage canvas{max-height:calc(100dvh - 226px)!important}body.scan-editor-focus .scan-status-bar{top:calc(92px + env(safe-area-inset-top));left:14px}}
