/* EazyPay mobile-app shell: visual layer only; existing options/flows remain unchanged. */
html{background:#eef1f8}
body{margin:0!important;background:linear-gradient(180deg,#eef2ff 0%,#f8f9ff 45%,#eef7ff 100%)!important;padding-bottom:0!important}
.eazy-app-shell{width:100%;max-width:430px;min-height:100vh;margin:0 auto;background:#f8f9ff;box-shadow:0 0 45px rgba(20,25,55,.22);position:relative;overflow:hidden;border-left:1px solid rgba(20,25,55,.06);border-right:1px solid rgba(20,25,55,.06)}
.eazy-mobile-top{position:sticky;top:0;z-index:9998;height:64px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(108,116,160,.13)}
.eazy-mobile-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#18204a;font-weight:900;font-size:18px;letter-spacing:-.3px}
.eazy-mobile-brand-badge{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:14px;background:linear-gradient(135deg,#4b32dd,#d92d98);box-shadow:0 8px 18px rgba(85,50,220,.25)}
.eazy-mobile-page{font-size:12px;font-weight:800;color:#7a8099;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.eazy-mobile-bottom{position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:9999;width:min(430px,100%);height:72px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:rgba(255,255,255,.96);backdrop-filter:blur(20px);border-top:1px solid rgba(90,100,150,.14);box-shadow:0 -10px 30px rgba(30,40,90,.10)}
.eazy-mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:#727991;font-size:10px;font-weight:800;border-radius:14px;transition:.2s}
.eazy-mobile-bottom a span:first-child{font-size:19px;line-height:20px}
.eazy-mobile-bottom a.active{color:#5a32d8;background:#f0edff}
.eazy-mobile-bottom a:hover{color:#5a32d8}
.eazy-mobile-content{padding-bottom:92px!important}
/* Keep existing desktop layout intact while making the experience feel app-like on small screens. */
@media (min-width:701px){
  html{background:#dfe4ee!important}
  body{padding:28px 0!important;background:radial-gradient(circle at 50% 0%,#ffffff 0,#dfe4ee 62%,#cfd6e3 100%)!important}
  .eazy-app-shell{width:430px!important;max-width:430px!important;min-height:calc(100vh - 56px)!important;border-radius:32px!important;box-shadow:0 20px 70px rgba(20,25,55,.28)!important}
  .eazy-mobile-top{border-radius:32px 32px 0 0}
  .eazy-mobile-bottom,.mobile-app-nav{bottom:28px!important;width:414px!important;max-width:calc(430px - 16px)!important;border-radius:20px!important}
}
@media (min-width:521px) and (max-width:700px){
  body{padding:16px 0!important}
  .eazy-app-shell{width:430px!important;max-width:430px!important;border-radius:28px!important;min-height:calc(100vh - 32px)!important}
  .eazy-mobile-bottom,.mobile-app-nav{width:414px!important;max-width:calc(100% - 16px)!important;bottom:16px!important;border-radius:20px!important}
}
@media (max-width:520px){
  .eazy-app-shell{box-shadow:none}
  .eazy-mobile-bottom{height:70px}
  .container{padding-left:14px!important;padding-right:14px!important}
  .welcome{border-radius:22px!important;padding:24px!important}
}
/* Convert common controls into app-like touch targets without removing any existing controls. */
button,input[type=submit],input[type=button],a.btn,.button{min-height:44px;border-radius:13px!important}
input,select,textarea{min-height:44px;border-radius:12px!important}
.card,.panel,.box,.section,.form-card,.dashboard-card{border-radius:20px!important}
/* Existing dashboard/wallet navigation receives the same app treatment. */
.mobile-app-nav{position:fixed!important;left:50%!important;right:auto!important;bottom:0!important;transform:translateX(-50%)!important;width:min(430px,100%)!important;height:72px!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(20px)!important;border-top:1px solid rgba(90,100,150,.14)!important;box-shadow:0 -10px 30px rgba(30,40,90,.10)!important}
.mobile-app-nav a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;border-radius:14px!important;color:#727991!important;font-size:10px!important;font-weight:800!important;padding:5px!important}
.mobile-app-nav b{font-size:19px!important;line-height:20px!important;margin:0!important}
.mobile-app-nav .active{color:#5a32d8!important;background:#f0edff!important}
.main{padding-bottom:92px!important}

/* Application page mobile overflow fix: keep every form control inside the app viewport. */
html,body{max-width:100%;overflow-x:hidden!important}
.eazy-app-shell,.container,.dashboard,.content,.form-card,.form-grid,.side{max-width:100%;box-sizing:border-box}
.form-card{width:100%;min-width:0;overflow:hidden}
.form-grid{width:100%;min-width:0}
.form-grid>label{min-width:0}
.form-grid input,.form-grid select,.form-grid textarea{box-sizing:border-box;max-width:100%;min-width:0}
@media(max-width:520px){
  .container{width:100%!important;overflow:hidden!important}
  .dashboard{width:100%!important;display:block!important}
  .side{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important}
  .side a{display:inline-block!important}
  .content{width:100%!important;max-width:100%!important;min-width:0!important}
  .dash-head{width:100%!important;min-width:0!important}
  .form-card{padding:18px!important}
  .form-grid{grid-template-columns:minmax(0,1fr)!important}
  .wide{grid-column:auto!important}
}

/* True mobile-app viewport: on desktop the site remains a phone-sized surface, while real phones use full width. */
.eazy-app-shell > *{max-width:100%!important;box-sizing:border-box!important}
.eazy-app-shell img, .eazy-app-shell video, .eazy-app-shell iframe{max-width:100%!important;height:auto}
.eazy-app-shell input,.eazy-app-shell select,.eazy-app-shell textarea,.eazy-app-shell button{max-width:100%!important}
@media(max-width:520px){.eazy-app-shell{width:100%!important;max-width:100%!important;border-left:0;border-right:0}.eazy-mobile-bottom,.mobile-app-nav{width:100%!important;max-width:100%!important;left:0!important;right:0!important;transform:none!important;border-radius:18px 18px 0 0!important}}
/* Final desktop phone-frame override (must come after generic max-width rules). */
@media (min-width:701px){
  body{padding:28px 0!important;background:radial-gradient(circle at 50% 0%,#fff 0,#dfe4ee 62%,#cfd6e3 100%)!important}
  .eazy-app-shell{width:430px!important;max-width:430px!important;min-width:430px!important;min-height:calc(100vh - 56px)!important;margin:0 auto!important;border-radius:32px!important;overflow:hidden!important;box-shadow:0 20px 70px rgba(20,25,55,.28)!important}
  .eazy-app-shell .container,.eazy-app-shell .header,.eazy-app-shell main,.eazy-app-shell form,.eazy-app-shell .dashboard{max-width:100%!important;width:100%!important}
  .eazy-mobile-bottom,.mobile-app-nav{width:414px!important;max-width:414px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:28px!important;border-radius:20px!important}
}
@media (min-width:521px) and (max-width:700px){
  .eazy-app-shell{width:430px!important;max-width:430px!important;min-width:430px!important;margin:0 auto!important;border-radius:28px!important}
}

/* FINAL PHONE-APP FIX: application/KYC content must never use a desktop two-column grid inside the 430px app shell. */
.eazy-app-shell .dashboard{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
.eazy-app-shell .dashboard > .side,
.eazy-app-shell .dashboard > .content{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.eazy-app-shell .dashboard > .side{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;
  padding:8px!important;
  margin-bottom:14px!important;
  overflow:visible!important;
  white-space:normal!important;
  border-radius:18px!important;
}
.eazy-app-shell .dashboard > .side .side-brand{display:none!important}
.eazy-app-shell .dashboard > .side a{
  min-width:0!important;
  margin:0!important;
  padding:10px 4px!important;
  text-align:center!important;
  font-size:10px!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.eazy-app-shell .content,
.eazy-app-shell .form-card,
.eazy-app-shell .form-grid,
.eazy-app-shell .dash-head{
  min-width:0!important;
  max-width:100%!important;
}
.eazy-app-shell .form-card{overflow:hidden!important}
.eazy-app-shell .form-grid{
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
}
.eazy-app-shell .form-grid > label,
.eazy-app-shell .form-grid > .wide{grid-column:auto!important;min-width:0!important;width:100%!important}
.eazy-app-shell .form-grid input,
.eazy-app-shell .form-grid select,
.eazy-app-shell .form-grid textarea{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.eazy-app-shell h1,
.eazy-app-shell h2,
.eazy-app-shell h3,
.eazy-app-shell p{max-width:100%;overflow-wrap:anywhere}
@media(max-width:360px){
  .eazy-app-shell .dashboard > .side{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
