/* SwiftCharge Update 66.2 — focused mobile finishing fixes. */

@media (max-width:760px){
  /* Remove the legacy sticky scan veil that blurred and covered page headings. */
  body[data-page="driver"] .swift-mobile-scan{
    display:none!important;
    position:static!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    background:none!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body[data-page="driver"] .swift-mobile-brand{
    position:relative!important;
    top:auto!important;
    z-index:10!important;
    margin:0 -14px 2px!important;
    padding:calc(10px + env(safe-area-inset-top)) 16px 8px!important;
    background:#f4f5f7!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body[data-page="driver"] #driverSectionContent{padding-top:4px!important;}

  /* Five primary destinations: Home, Map, Session, Add credit and More. */
  body[data-page="driver"] .swift-mobile-bottom-nav{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:2px!important;
  }
  body[data-page="driver"] .swift-mobile-bottom-nav button{min-width:0!important;padding-inline:1px!important;}
  body[data-page="driver"] .swift-mobile-bottom-nav button small{font-size:.61rem!important;letter-spacing:-.015em!important;}

  /* Socket type cards only describe the connector; power stays in the power block. */
  .swift-station-socket{grid-template-columns:auto minmax(0,1fr)!important;}
  .swift-station-socket>b{display:none!important;}

  /* Add Credit is intentionally compact enough for an ordinary phone viewport. */
  body[data-driver-view="topup"] .driver-workspace{min-height:100dvh!important;}
  body[data-driver-view="topup"] #driverSectionContent{padding-top:0!important;}
  .swift662-topup{display:grid;gap:10px;max-width:560px;margin:0 auto;padding-bottom:4px;}
  .swift662-credit-balance{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;padding:12px 15px;border-radius:19px;background:linear-gradient(135deg,#a20d18,#c61625);color:#fff;box-shadow:0 10px 24px rgba(162,13,24,.16);}
  .swift662-credit-balance span{font-size:.78rem;opacity:.88;}
  .swift662-credit-balance strong{grid-row:1/3;grid-column:2;font-size:1.4rem;}
  .swift662-credit-balance small{font-size:.72rem;color:#fff;opacity:.8;}
  .swift662-topup-form{display:grid;gap:10px;padding:13px;border:1px solid #eadfce;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(53,43,36,.08);}
  .swift662-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .swift662-amounts label{position:relative;margin:0;}
  .swift662-amounts input{position:absolute;opacity:0;pointer-events:none;}
  .swift662-amounts span{display:grid;place-items:center;min-height:62px;padding:7px;border:1.5px solid #e3d7c7;border-radius:16px;background:#fbfaf8;text-align:center;}
  .swift662-amounts strong{font-size:1.05rem;color:#211e24;}
  .swift662-amounts small{font-size:.72rem;color:#796f68;}
  .swift662-amounts input:checked+span{border-color:#a20d18;background:#fff3f3;box-shadow:inset 0 0 0 1px #a20d18;}
  .swift662-custom{display:grid;gap:4px;margin:0;font-size:.76rem;font-weight:750;}
  .swift662-custom input{min-height:42px;border-radius:12px;}
  .swift662-payment-note{display:grid;gap:2px;padding:9px 11px;border-radius:13px;background:#f7f3ec;color:#4e4843;}
  .swift662-payment-note b{font-size:.78rem;}
  .swift662-payment-note span{font-size:.7rem;line-height:1.35;}
  .swift662-topup .swift-account-pay{min-height:48px!important;margin:0!important;}
  .swift662-topup .error-box,.swift662-topup .success-box{margin:0;padding:8px 10px;font-size:.74rem;}
  .state.pending{background:#fff0c8;color:#775100;}
}

@media (max-width:370px), (max-height:700px){
  .swift662-topup{gap:7px;}
  .swift662-topup-form{gap:7px;padding:10px;}
  .swift662-amounts{gap:6px;}
  .swift662-amounts span{min-height:53px;padding:5px;}
  .swift662-payment-note{padding:7px 9px;}
}
