:root{
  --blue:#0f4c81;--blue2:#1565c0;--green:#2e7d32;--orange:#ef6c00;--red:#c62828;
  --ink:#17212b;--muted:#697582;--bg:#f4f7fa;--card:#fff;--line:#e4e9ef;--shadow:0 10px 30px rgba(16,44,72,.08);
  --radius:18px;--safe-bottom:max(14px,env(safe-area-inset-bottom));
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}
.landing{min-height:100vh;display:grid;place-items:center;padding:24px 18px;background:linear-gradient(180deg,#eef6ff 0,#f8fafc 50%,#f4f7fa 100%)}
.hero-card,.auth-card{width:min(100%,540px);background:var(--card);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);padding:26px}
.brand-row,.brand-mini,.topbar-brand{display:flex;align-items:center;gap:10px}.brand-mark{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--blue);color:white;font-weight:900;font-size:27px}.brand-mark.small{width:34px;height:34px;border-radius:11px;font-size:20px}.brand-mark.tiny{width:30px;height:30px;border-radius:10px;font-size:18px}.brand-name{font-weight:900;font-size:22px;color:var(--blue)}.brand-sub{font-size:13px;color:var(--muted)}
h1{font-size:clamp(29px,8vw,42px);line-height:1.08;margin:26px 0 14px;letter-spacing:-.8px}.lead{font-size:17px;line-height:1.55;color:#53606d}.hero-features{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.hero-features>div{padding:14px 8px;border:1px solid var(--line);border-radius:15px;text-align:center;background:#fbfdff}.hero-features span{display:block;font-size:24px}.hero-features b{display:block;font-size:13px;margin-top:5px}.hero-features small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.btn{border:0;border-radius:13px;padding:12px 16px;font-weight:800}.btn-lg{width:100%;padding:15px 18px;margin-top:10px}.btn-primary{background:var(--blue2);color:white}.btn-outline{background:white;color:var(--blue);border:1px solid #b8c9d9}.btn-link{background:transparent;color:var(--blue2);width:100%;padding:12px}.btn-small{padding:9px 11px;font-size:12px;background:white;color:var(--blue);border:1px solid #cad9e6}.btn-danger{background:#fff3f3;color:var(--red);border:1px solid #f0c5c5}.privacy-note{text-align:center;color:var(--muted);font-size:12px;margin:14px 0 0}
.auth-view{min-height:100vh;display:grid;place-items:center;padding:20px;background:var(--bg)}.auth-card{position:relative}.back-btn{border:0;background:#edf3f8;width:40px;height:40px;border-radius:12px;font-size:20px;margin-bottom:20px}.auth-panel h2{font-size:28px;margin:22px 0 8px}.auth-panel>p{color:var(--muted);line-height:1.5}.auth-panel label,.form-card label{display:block;font-size:13px;font-weight:800;margin:13px 0}.auth-panel input,.form-card input,.form-card select,.form-card textarea{width:100%;border:1px solid #ccd6df;background:white;border-radius:12px;padding:13px;margin-top:7px;outline:none}.auth-panel input:focus,.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:var(--blue2);box-shadow:0 0 0 3px rgba(21,101,192,.1)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.success-icon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#e8f5e9;color:var(--green);font-size:34px;font-weight:900;margin:20px auto}.recovery-code{padding:16px;border:1px dashed var(--blue2);background:#f2f8ff;border-radius:14px;text-align:center;font-weight:900;font-size:19px;letter-spacing:.5px;margin:18px 0}
.app-shell{min-height:100vh;padding-bottom:86px}.topbar{position:sticky;top:0;z-index:20;height:60px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}.topbar-brand b{color:var(--blue);font-size:18px}.mode-chip{font-size:12px;padding:7px 10px;border-radius:999px;background:#eef4fa;color:var(--blue);font-weight:800}.demo-banner{margin:12px auto 0;width:min(calc(100% - 24px),760px);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;background:#fff8e8;border:1px solid #f1d59d;border-radius:14px}.demo-banner div{display:flex;flex-direction:column;gap:2px}.demo-banner span{font-size:11px;color:#7d6540}.page{width:min(100%,780px);margin:0 auto;padding:18px 14px 30px}.page-title{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:4px 0 16px}.page-title h2{margin:0;font-size:27px}.page-title p{margin:4px 0 0;color:var(--muted);font-size:13px}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--green);margin-right:5px}
.summary-card{background:linear-gradient(135deg,#0f4c81,#1565c0);color:white;border-radius:20px;padding:20px;box-shadow:var(--shadow)}.summary-card .big{font-size:30px;font-weight:900;margin-top:7px}.summary-card .sub{font-size:12px;opacity:.8}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0}.stat{background:white;border:1px solid var(--line);border-radius:16px;padding:14px}.stat small{display:block;color:var(--muted);font-size:12px}.stat b{display:block;font-size:21px;margin-top:6px}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:15px;margin:12px 0}.card h3{margin:0 0 12px;font-size:16px}.list{display:flex;flex-direction:column}.tx-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:13px 0;border-bottom:1px solid var(--line)}.tx-row:last-child{border-bottom:0}.tx-main{display:flex;gap:10px;align-items:flex-start}.op-badge{min-width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eef4fa;color:var(--blue);font-weight:900;font-size:11px}.tx-row b{display:block}.tx-row small{color:var(--muted);display:block;margin-top:3px}.amount{font-weight:900;text-align:right}.source-tag{display:inline-block;margin-top:4px;font-size:10px;padding:3px 7px;border-radius:999px;background:#eef3f7;color:#5a6773}.empty{text-align:center;padding:30px 12px;color:var(--muted)}.empty .emoji{font-size:38px;display:block;margin-bottom:8px}.section-label{font-size:12px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.5px;margin:18px 2px 8px}
.form-card{background:white;border:1px solid var(--line);border-radius:18px;padding:16px}.form-card textarea{min-height:74px;resize:vertical}.balance-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.balance-grid label:last-child{grid-column:1/-1}.operator-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.operator-row:last-child{border-bottom:0}.operator-row .diff.good{color:var(--green)}.operator-row .diff.bad{color:var(--red)}.notice{padding:13px;border-radius:13px;background:#eef6ff;border:1px solid #c9def2;color:#2f5878;font-size:13px;line-height:1.45}.notice.warn{background:#fff8e8;border-color:#efd8a9;color:#795f33}.notice.danger{background:#fff0f0;border-color:#efc3c3;color:#8d3434}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions .btn{flex:1}.menu-list{background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden}.menu-item{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px;border:0;background:white;border-bottom:1px solid var(--line);text-align:left}.menu-item:last-child{border-bottom:0}.menu-item span:first-child{display:flex;gap:10px;align-items:center}.menu-item small{color:var(--muted)}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;height:74px;padding-bottom:var(--safe-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:white;border-top:1px solid var(--line);box-shadow:0 -5px 20px rgba(20,45,70,.06)}.bottom-nav button{border:0;background:white;color:#6c7884;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}.bottom-nav button span{font-size:22px;line-height:1}.bottom-nav button small{font-size:10px;font-weight:800}.bottom-nav button.active{color:var(--blue2)}.bottom-nav .add-nav span{width:40px;height:40px;display:grid;place-items:center;border-radius:14px;background:var(--blue2);color:white;margin-top:-18px;box-shadow:0 7px 18px rgba(21,101,192,.25)}
.toast{position:fixed;z-index:100;left:50%;bottom:94px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#1d2a35;color:white;padding:11px 15px;border-radius:12px;max-width:min(90vw,460px);font-size:13px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){.stats-grid{grid-template-columns:repeat(4,1fr)}.bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:560px;border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0}.page{padding-top:24px}.balance-grid{grid-template-columns:repeat(5,1fr)}.balance-grid label:last-child{grid-column:auto}}
@media(max-width:380px){.hero-features{grid-template-columns:1fr}.two-cols{grid-template-columns:1fr}.hero-card,.auth-card{padding:20px}}


/* QR client / demandes - v1.2 */
.request-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef6ff;border:1px solid #c9def2;border-radius:15px;padding:13px;margin-bottom:12px}.request-banner span{display:block;color:#386588;font-size:12px;font-weight:800}.request-banner b{display:block;margin-top:3px}.copy-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.copy-grid>div{background:white;border:1px solid var(--line);border-radius:16px;padding:13px}.copy-grid small{display:block;color:var(--muted);font-weight:800}.copy-grid strong{display:block;font-size:20px;margin:5px 0 9px;word-break:break-all}.request-prefilled input[readonly],.request-prefilled select:disabled{background:#f4f7fa;color:#17212b;opacity:1}.request-list{display:flex;flex-direction:column;gap:8px}.customer-request-card{width:100%;border:1px solid #cfe0ef;background:#f9fcff;border-radius:14px;padding:12px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:var(--ink)}.customer-request-card div{display:flex;flex-direction:column;gap:3px}.customer-request-card b{font-size:20px}.customer-request-card small{color:var(--muted)}.request-chip{font-size:10px;color:var(--blue);font-weight:900;text-transform:uppercase;letter-spacing:.4px}.count-pill{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--blue2);color:white;font-size:12px;margin-left:4px}.empty.compact{padding:14px}.pending-home{width:100%;display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;margin:12px 0;padding:14px;border:1px solid #bcd8ee;background:#eef7ff;border-radius:16px;color:var(--blue);text-align:left}.pending-home span{font-weight:900}.pending-home b{grid-row:1/3;grid-column:2;font-size:24px}.pending-home small{color:#5f7e96}.success-card{text-align:center;background:white;border:1px solid var(--line);border-radius:20px;padding:24px 18px}.success-round{width:66px;height:66px;border-radius:50%;background:#e8f5e9;color:var(--green);display:grid;place-items:center;font-size:34px;font-weight:900;margin:0 auto 12px}.qr-point{display:flex;flex-direction:column;gap:9px;align-items:stretch;padding:12px 0;border-top:1px solid var(--line)}.qr-point:first-of-type{border-top:0}.qr-point img{width:190px;max-width:70vw;aspect-ratio:1;object-fit:contain;align-self:center;background:white;border:1px solid var(--line);border-radius:12px;padding:6px}.qr-point .btn{text-decoration:none;text-align:center}
@media(max-width:430px){.copy-grid{grid-template-columns:1fr}}

/* Paycheck 1.3.0 */
.usage-choice{display:grid;gap:10px;margin:16px 0}.usage-card{display:flex!important;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:15px;padding:13px!important;margin:0!important;background:#fbfdff}.usage-card input{width:auto!important;margin:3px 0 0!important}.usage-card span{display:flex;flex-direction:column;gap:4px}.usage-card small{color:var(--muted);font-weight:500;line-height:1.35}
.small-value{font-size:14px!important;line-height:1.15}.compact-link{width:auto!important;padding-left:0;margin:0 0 8px}.list-head{padding:0 0 10px;color:var(--muted);font-size:12px}.tx-card{border-bottom:1px solid var(--line)}.tx-card:last-child{border-bottom:0}.tx-card .tx-row{border-bottom:0}.more-link{border:0;background:transparent;color:var(--blue2);font-size:11px;font-weight:800;padding:5px 0 0}.tx-details{padding:0 0 13px 48px}.detail-row{display:flex;justify-content:space-between;gap:18px;padding:8px 0;border-bottom:1px dashed #e7ebef;font-size:12px}.detail-row:last-child{border-bottom:0}.detail-row span{color:var(--muted)}.detail-row b{text-align:right;word-break:break-word}
.filter-card{background:white;border:1px solid var(--line);border-radius:17px;padding:12px;margin-bottom:12px}.filter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.filter-grid label{font-size:11px;font-weight:800;margin:0}.filter-grid input,.filter-grid select{width:100%;padding:10px;border:1px solid #ccd6df;border-radius:10px;margin-top:5px;background:#fff}.filter-card details{margin-top:10px}.filter-card summary{cursor:pointer;color:var(--blue);font-weight:800;font-size:12px;margin-bottom:10px}.primary-filters .btn{align-self:end;height:39px}
.reconcile-block{border:1px solid var(--line);border-radius:14px;padding:12px;margin:10px 0}.reconcile-block>b{display:block;font-size:16px;margin-bottom:7px}.reconcile-block>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:13px}.reconcile-block span{color:var(--muted)}.good{color:var(--green)!important}.bad{color:var(--red)!important}
.agency-card{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.agency-card:last-child{border-bottom:0}.agency-card div{display:flex;flex-direction:column;gap:4px}.agency-card small{color:var(--muted)}.checkbox-list{display:flex;flex-direction:column;gap:7px;margin:15px 0}.checkbox-list label{display:flex;gap:8px;align-items:center;margin:0;font-weight:600}.checkbox-list input{width:auto;margin:0}
.qr-pro-card{text-align:center}.qr-card-title{display:flex;flex-direction:column;gap:4px;color:var(--blue);margin-bottom:10px}.qr-card-title b{font-size:20px}.qr-card-title strong{font-size:16px;color:var(--ink)}.qr-pro-card img{width:220px;max-width:72vw;aspect-ratio:1;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px}.qr-pro-card p{font-weight:800}.qr-pro-card a{text-decoration:none;display:inline-block}
.session-row{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);align-items:center}.session-row:last-child{border-bottom:0}.session-row>div{display:flex;flex-direction:column;gap:4px}.session-row small{color:var(--muted)}.session-button{width:100%;background:white;border:0;text-align:left}.status-pill{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}.status-pill.good{background:#e9f6eb}.status-pill.bad{background:#fff0f0}
.balance-grid.single{grid-template-columns:1fr}.balance-grid.single label:last-child{grid-column:auto}
@media(max-width:430px){.filter-grid{grid-template-columns:1fr 1fr}.primary-filters{grid-template-columns:1fr 1fr}.tx-details{padding-left:0}.detail-row{font-size:11px}}


/* ===== PIN VISIBILITY ===== */
.pin-input-wrap{
 position:relative;
 display:block;
 width:100%;
}
.pin-input-wrap input{
 width:100%;
 padding-right:52px !important;
}
.pin-eye{
 position:absolute;
 right:8px;
 top:50%;
 transform:translateY(-50%);
 width:40px;
 height:40px;
 display:flex;
 align-items:center;
 justify-content:center;
 border:0;
 background:transparent;
 border-radius:50%;
 font-size:22px;
 line-height:1;
 cursor:pointer;
 color:#667085;
 padding:0;
}
.pin-eye:active{
 background:rgba(0,0,0,.06);
}
.pin-eye.visible{
 color:#111827;
}


/* ===== PAYCHECK COMPACT COPY BUTTONS ===== */

.copy-grid [data-copy-value],
.request-prefilled [data-copy-value]{
 width:auto !important;
 min-width:0 !important;
 padding:6px 9px !important;
 border-radius:9px !important;
 font-size:12px !important;
 font-weight:700 !important;
 line-height:1.1 !important;
 min-height:30px !important;
 margin-left:6px !important;
}

.request-prefilled .detail-row > div{
 display:flex;
 align-items:center;
 justify-content:flex-end;
 gap:5px;
 flex-wrap:wrap;
}



/* PAYCHECK OPERATOR LOGOS V1 */

.operator-logo{
    display:block;
    width:30px;
    height:30px;
    object-fit:contain;
    flex:0 0 auto;
}

.operator-logo-box{
    background:#fff!important;
    border:1px solid var(--line);
    overflow:hidden;
    padding:4px!important;
}

.operator-logo-box .operator-logo{
    width:100%;
    height:100%;
    object-fit:contain;
}

.operator-with-logo{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.operator-with-logo .operator-logo{
    width:26px;
    height:26px;
}

.operator-logo-fallback{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:9px;
    background:#eef4fa;
    color:var(--blue);
    font-size:10px;
    font-weight:900;
}

[data-qr-operator]{
    min-height:78px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
}

.qr-operator-logo{
    width:42px;
    height:42px;
    object-fit:contain;
}

.mini-operator-logo{
    display:inline-block;
    vertical-align:middle;
    width:19px;
    height:19px;
    margin-right:3px;
}

.request-network-line{
    display:flex!important;
    align-items:center;
    flex-wrap:wrap;
    gap:3px;
}

.balance-operator-title{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:3px;
}

.balance-operator-logo{
    width:25px;
    height:25px;
}

.reconcile-block > b .operator-logo{
    width:27px;
    height:27px;
}


/* PAYCHECK TRANSACTION LOGO SIZE FIX */
.tx-card .op-badge.operator-logo-box{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    flex:0 0 44px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:5px !important;
    border-radius:12px !important;
}

.tx-card .op-badge.operator-logo-box .operator-logo,
.tx-card .op-badge.operator-logo-box .tx-operator-logo{
    width:32px !important;
    height:32px !important;
    max-width:32px !important;
    max-height:32px !important;
    object-fit:contain !important;
}



/* LOGO PAYCHECK OFFICIEL */
.brand-logo{
  width:46px;
  height:46px;
  object-fit:contain;
  display:block;
  border-radius:14px;
}
.brand-logo.small{
  width:34px;
  height:34px;
  border-radius:11px;
}
.brand-logo.tiny{
  width:30px;
  height:30px;
  border-radius:10px;
}

/* ===== BRANDING PAYCHECK R2 ===== */

.branding-card{
 margin-top:18px;
}

.branding-card h3{
 margin:0 0 5px;
}

.branding-title{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:12px;
 margin-bottom:14px;
}

.branding-title p{
 margin:0;
}

.branding-agency{
 display:block;
 font-size:13px;
 font-weight:800;
 margin:0 0 15px;
}

.branding-agency select{
 width:100%;
 margin-top:7px;
 padding:13px;
 border:1px solid #ccd6df;
 border-radius:12px;
 background:#fff;
 outline:none;
}

.branding-grid{
 display:grid;
 grid-template-columns:1fr;
 gap:14px;
}

.branding-upload-box{
 border:1px solid var(--line);
 border-radius:16px;
 padding:14px;
 background:#fbfdff;
}

.branding-upload-head{
 display:flex;
 flex-direction:column;
 gap:4px;
 margin-bottom:11px;
}

.branding-upload-head b{
 font-size:15px;
}

.branding-upload-head small{
 color:var(--muted);
 font-size:11px;
 line-height:1.4;
}

.branding-preview{
 width:100%;
 min-height:150px;
 border:1px dashed #c9d5df;
 border-radius:14px;
 background:#fff;
 display:flex;
 align-items:center;
 justify-content:center;
 overflow:hidden;
 padding:12px;
 margin-bottom:12px;
}

.branding-preview.signature{
 min-height:120px;
}

.branding-preview img{
 display:block;
 max-width:100%;
 max-height:170px;
 width:auto;
 height:auto;
 object-fit:contain;
}

.branding-preview.signature img{
 max-height:110px;
}

.branding-preview span{
 color:var(--muted);
 font-size:12px;
 text-align:center;
}

.branding-file-label{
 display:block;
 padding:12px;
 border-radius:12px;
 background:#eef6ff;
 color:var(--blue);
 font-size:13px;
 font-weight:800;
 text-align:center;
 cursor:pointer;
}

.branding-file-label input{
 display:block;
 width:100%;
 margin-top:9px;
 font-size:12px;
 color:var(--ink);
}

.branding-note{
 margin-top:14px;
}

@media(min-width:700px){
 .branding-grid{
  grid-template-columns:1fr 1fr;
 }
}

/* ===== END BRANDING PAYCHECK R2 ===== */

/* ===== BRANDING UI PAYCHECK 1.3.60 ===== */

.branding-file-label{
 display:flex;
 flex-direction:column;
 gap:7px;
 margin:0;
 cursor:pointer;
}

.branding-file-label input[type="file"]{
 position:absolute;
 width:1px;
 height:1px;
 opacity:0;
 overflow:hidden;
 pointer-events:none;
}

.branding-file-button{
 display:flex;
 align-items:center;
 justify-content:center;
 min-height:46px;
 padding:11px 14px;
 border:1px solid #b9d3ea;
 border-radius:12px;
 background:#eef6ff;
 color:var(--blue);
 font-size:13px;
 font-weight:900;
 text-align:center;
}

.branding-file-label:hover
.branding-file-button{
 background:#e5f1fc;
}

.branding-file-name{
 display:block;
 color:var(--muted);
 font-size:11px;
 font-weight:600;
 text-align:center;
 word-break:break-word;
}

.branding-preview{
 min-height:145px;
 background:
  linear-gradient(
   45deg,
   #f8fafc 25%,
   #fff 25%,
   #fff 75%,
   #f8fafc 75%
  );
 background-size:18px 18px;
}

.branding-preview img{
 background:#fff;
 border-radius:10px;
}

.branding-preview.signature{
 min-height:115px;
}

.branding-upload-box{
 box-shadow:
  0 3px 12px rgba(15,76,129,.04);
}

.branding-upload-head b{
 color:var(--blue);
}

@media(max-width:430px){
 .branding-card{
  padding:14px;
 }

 .branding-upload-box{
  padding:12px;
 }

 .branding-preview{
  min-height:125px;
 }
}

/* ===== END BRANDING UI 1.3.60 ===== */

/* ===== CONTACT AGENCE PAYCHECK ===== */

.agency-contact-card{
 margin:0 0 16px;
 padding:14px;
 border:1px solid var(--line);
 border-radius:15px;
 background:#fbfdff;
}

.agency-contact-card label{
 display:block;
 margin:0;
 font-size:13px;
 font-weight:800;
}

.agency-contact-card input{
 width:100%;
 margin-top:7px;
 padding:13px;
 border:1px solid #ccd6df;
 border-radius:12px;
 background:#fff;
 outline:none;
}

.agency-contact-card small{
 display:block;
 margin:8px 0 12px;
 color:var(--muted);
 font-size:11px;
 line-height:1.45;
}

.agency-contact-card .btn{
 width:100%;
}

/* ===== END CONTACT AGENCE ===== */

/* ===== GAIN CONSTATE PAYCHECK ===== */

.gain-home-card{
 margin:0 0 16px;
 padding:17px;
 border:1px solid var(--line);
 border-radius:18px;
 background:#fff;
 box-shadow:0 5px 18px rgba(15,76,129,.06);
}

.gain-home-card>small{
 display:block;
 color:var(--muted);
 font-size:12px;
 font-weight:800;
 margin-bottom:5px;
}

.gain-home-main{
 display:block;
 font-size:25px;
 line-height:1.2;
 margin-bottom:12px;
}

.gain-positive{
 color:#16834b;
}

.gain-negative{
 color:#c0392b;
}

.gain-zero{
 color:var(--blue);
}

.gain-home-card>span{
 display:block;
 color:var(--muted);
 font-size:12px;
 line-height:1.45;
}

.gain-home-grid{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:8px;
}

.gain-home-grid span{
 padding:9px;
 border-radius:11px;
 background:#f7f9fb;
 color:var(--muted);
 font-size:11px;
}

.gain-home-grid b{
 display:block;
 margin-top:3px;
 color:#17212b;
 font-size:13px;
}

.gain-home-warning{
 margin-top:10px;
 padding:9px 10px;
 border-radius:10px;
 background:#fff7e6;
 font-size:11px;
 font-weight:700;
}

.capital-move-row{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:12px;
 padding:13px 0;
 border-bottom:1px solid var(--line);
}

.capital-move-row:last-child{
 border-bottom:0;
}

.capital-move-row small{
 display:block;
 margin-top:4px;
 color:var(--muted);
 font-size:11px;
}

.capital-move-right{
 text-align:right;
 white-space:nowrap;
}

.capital-move-right>b{
 display:block;
 margin-bottom:5px;
}

/* ===== END GAIN CONSTATE ===== */


/* PAYCHECK COMMERCIAL LANDING V1 */

.commercial-landing{
  max-width:760px;
  margin:0 auto;
  padding:18px 16px 110px;
}

.commercial-hero{
  padding:22px 4px 34px;
  text-align:left;
}

.commercial-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:28px;
}

.trial-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:#eef8ff;
  border:1px solid #cfe7f7;
  color:#0f4c81;
  font-size:14px;
  font-weight:800;
  margin-bottom:16px;
}

.commercial-hero h1{
  margin:0;
  max-width:700px;
  font-size:clamp(34px,9vw,54px);
  line-height:1.04;
  letter-spacing:-1.4px;
  color:#17202a;
}

.commercial-lead{
  margin:20px 0 24px;
  max-width:650px;
  font-size:18px;
  line-height:1.58;
  color:#596575;
}

.commercial-main-cta{
  margin-bottom:10px;
}

.commercial-trust{
  margin-top:15px;
  color:#667085;
  font-size:13px;
  line-height:1.5;
}

.commercial-section{
  padding:40px 0;
}

.commercial-section-title{
  margin-bottom:22px;
}

.commercial-section-title > span{
  display:block;
  color:#0f659f;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.7px;
  margin-bottom:8px;
}

.commercial-section-title h2{
  margin:0;
  color:#17202a;
  font-size:28px;
  line-height:1.2;
  letter-spacing:-.5px;
}

.commercial-section-title p{
  color:#667085;
  line-height:1.55;
}

.benefit-grid,
.steps-grid,
.pricing-grid{
  display:grid;
  gap:14px;
}

.benefit-card,
.step-card,
.price-card{
  padding:20px;
  border:1px solid #e3e8ef;
  border-radius:20px;
  background:#fff;
  box-shadow:0 6px 20px rgba(31,52,73,.05);
}

.benefit-icon{
  font-size:27px;
  margin-bottom:11px;
}

.benefit-card h3,
.step-card h3,
.price-card h3{
  margin:0 0 8px;
  color:#17202a;
}

.benefit-card p,
.step-card p,
.price-card p{
  margin:0;
  color:#667085;
  line-height:1.55;
}

.how-section{
  border-top:1px solid #edf0f4;
}

.step-number{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0f4c81;
  color:#fff;
  font-weight:900;
  margin-bottom:14px;
}

.pricing-section{
  border-top:1px solid #edf0f4;
}

.price-card{
  position:relative;
}

.price-card.featured{
  border:2px solid #1874ad;
}

.price-badge{
  display:inline-block;
  margin-bottom:14px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef8ff;
  color:#0f4c81;
  font-size:12px;
  font-weight:900;
}

.price{
  margin:14px 0 12px;
  color:#17202a;
  font-size:34px;
  font-weight:900;
}

.price small{
  color:#667085;
  font-size:14px;
  font-weight:600;
}

.price-card ul{
  list-style:none;
  padding:0;
  margin:20px 0;
}

.price-card li{
  padding:7px 0;
  color:#475467;
  line-height:1.4;
}

.security-section{
  padding-top:20px;
}

.security-commercial-card{
  display:flex;
  gap:16px;
  padding:22px;
  border-radius:20px;
  background:#f7fafc;
  border:1px solid #dce6ef;
}

.security-big-icon{
  font-size:30px;
}

.security-commercial-card h2{
  margin:0 0 8px;
  font-size:21px;
  color:#17598b;
}

.security-commercial-card p{
  margin:0;
  color:#475467;
  line-height:1.55;
}

.commercial-final-cta{
  margin-top:20px;
  padding:30px 20px;
  border-radius:24px;
  background:#f3f8fc;
  text-align:center;
}

.commercial-final-cta h2{
  margin:0;
  color:#17202a;
  font-size:27px;
  line-height:1.2;
}

.commercial-final-cta p{
  color:#667085;
  line-height:1.55;
}

@media(min-width:640px){
  .benefit-grid{
    grid-template-columns:1fr 1fr;
  }

  .steps-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .pricing-grid{
    grid-template-columns:1fr 1fr;
  }
}


/* PAYCHECK LANDING MOBILE FINITION V1
   Uniquement visuel — scanner connecté inchangé
*/

body.paycheck-public-landing #paycheckScannerBtn{
  top:18px !important;
  right:12px !important;
  padding:9px 11px !important;
  border-radius:13px !important;
  font-size:13px !important;
  font-weight:700 !important;
  background:rgba(255,255,255,.96) !important;
  border:1px solid #d9e3ec !important;
  box-shadow:0 4px 13px rgba(15,76,129,.12) !important;
  color:#344054 !important;
}


/* Titre un peu moins massif sur petit écran */
@media(max-width:480px){

  .commercial-hero h1{
    font-size:clamp(32px,9.2vw,40px);
    line-height:1.08;
    letter-spacing:-1px;
  }

  .commercial-lead{
    font-size:17px;
    line-height:1.55;
  }

  .commercial-trust{
    color:#475467;
    font-size:14px;
    line-height:1.55;
  }

}


/* Très petits téléphones */
@media(max-width:360px){

  .commercial-hero h1{
    font-size:31px;
  }

  body.paycheck-public-landing #paycheckScannerBtn{
    font-size:12px !important;
    padding:8px 10px !important;
  }

}
