/* Final targeted polish: preserves homepage/design, fixes payment logo balance and mobile navigation overflow. */

/* SSLCommerz card: give the original logo a visual size comparable to the bKash/Nagad artwork. */
.payment-card#online-payment img,
.payment-card img[alt="Online Bill Payment"] {
  width: min(280px, 72%);
  max-width: 280px;
  height: 86px;
  max-height: 86px;
  object-fit: contain;
  margin: 10px auto 20px;
}

/* Keep bKash/Nagad artwork untouched. */
.payment-card#bkash-nagad img {
  max-width: 230px;
  max-height: 90px;
  object-fit: contain;
}

/* A cleaner, calmer desktop topbar without changing its available actions. */
.top-inner { gap: 12px; }
.top-left { gap: 18px; white-space: nowrap; }
.top-right { gap: 8px; flex-wrap: nowrap; }
.top-right > a,
.top-right > .language-switch {
  white-space: nowrap;
}
.top-right > a:not(.pay-now):not(.pay-bn) {
  padding: 7px 8px;
  border-radius: 7px;
}
.top-right > a:not(.pay-now):not(.pay-bn):hover {
  background: rgba(255,255,255,.12);
}
.pay-bn, .pay-now { padding: 8px 12px; }
.app-top, .client-top, .new-connection-top { padding: 7px 9px; }
.language-switch { padding-left: 3px; }

/* Mobile menu: one clean vertical panel instead of quick actions spilling to the right. */
@media (max-width:1000px) {
  .nav-wrap {
    position: relative;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand { margin-right: auto; }
  .menu-btn { margin-left: auto; }

  nav {
    position: static;
    width: 100%;
    flex: 0 0 100%;
    order: 3;
    box-shadow: none;
    border-top: 1px solid #e5edf5;
  }
  body.nav-open nav { display: flex; }

  .mobile-quick-links {
    position: static;
    width: 100%;
    flex: 0 0 100%;
    order: 4;
    box-sizing: border-box;
    padding: 14px 5% 18px;
    border-top: 1px solid #e5edf5;
    border-bottom: 1px solid #e5edf5;
    box-shadow: 0 14px 28px rgba(15,39,71,.08);
  }

  .nav-open .mobile-quick-links { display: grid; }
  .mobile-quick-links a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    line-height: 1.25;
  }
  .mobile-language a { min-height: 42px; }
}

@media (max-width:700px) {
  .top-inner { padding: 7px 0; }
  .nav-wrap { min-height: 76px; }
  .mobile-quick-links { grid-template-columns: 1fr 1fr; }
  .mobile-quick-links a { padding: 10px 8px; }

  /* The SSLCommerz card logo remains prominent but never becomes oversized on phones. */
  .payment-card#online-payment img,
  .payment-card img[alt="Online Bill Payment"] {
    width: min(220px, 68vw);
    height: 70px;
    max-height: 70px;
    margin: 8px auto 18px;
  }
}

@media (max-width:380px) {
  .mobile-quick-links { grid-template-columns: 1fr; }
  .mobile-language { grid-column: auto; }
  .mobile-language a { min-height: 40px; }
}

/* Payment guide + bKash QR: additive only, existing layout preserved. */
.payment-guide h2{margin:4px 0 10px}.payment-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.payment-steps>div{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--border);border-radius:10px;background:#f8fbfe}.payment-steps strong{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#eaf5ff;color:var(--blue);font-weight:900}.payment-number{font-size:17px;margin:2px 0 16px}.mobile-payment-guide{text-align:left;max-width:650px;margin:0 auto 20px}.mobile-payment-guide h3{font-size:18px;margin:18px 0 7px;color:var(--navy)}.mobile-payment-guide p{margin:7px 0}.success-note{padding:11px 13px;border-left:3px solid #20a464;background:#eefaf4;border-radius:6px;color:#166b46}.qr-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin:18px auto 10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff;width:max-content}.bkash-qr{width:180px!important;height:auto!important;max-width:180px!important;max-height:none!important;margin:0!important;object-fit:contain!important}.qr-wrap span{font-size:12px;color:var(--muted);font-weight:800}.client-code-help{margin-top:24px;background:linear-gradient(135deg,#f7fbff,#fff)}
@media(max-width:700px){.payment-steps{grid-template-columns:1fr}.bkash-qr{width:160px!important;max-width:160px!important}.qr-wrap{padding:10px}.mobile-payment-guide{font-size:14px}}

/* Customer Help Center — additive only. */
.help-intro{margin-bottom:24px;text-align:center;background:linear-gradient(135deg,#f7fbff,#fff)}
.help-intro h2{font-size:clamp(28px,4vw,40px);margin:0 0 10px;color:var(--navy)}
.help-intro p{max-width:850px;margin:0 auto;color:var(--muted)}
.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.help-card{display:flex;flex-direction:column;align-items:flex-start;min-height:320px;transition:.2s}
.help-card:hover{transform:translateY(-3px);box-shadow:var(--shadow2)}
.help-card h2{margin:0 0 8px;font-size:23px}
.help-card p{color:var(--muted);margin:0 0 18px}
.help-card .btn{margin-top:auto}
.help-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#eaf5ff;color:var(--blue);font-size:21px;margin-bottom:16px}
.help-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.help-actions .btn{margin-top:0}
.help-section{margin-top:24px}
.help-section h2{margin:3px 0 12px;font-size:30px}
.help-section>p{color:var(--muted)}
.help-alert{display:flex;gap:10px;align-items:center;background:#f5f8fc;border-left:3px solid var(--blue);padding:12px 14px;border-radius:7px;margin-top:16px}
.help-alert i{color:var(--blue)}
.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}
.guide-steps>div{border:1px solid var(--border);border-radius:12px;padding:20px;background:#f8fbfe}
.guide-steps b{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eaf5ff;color:var(--blue);font-weight:900;margin-bottom:10px}
.guide-steps h3{font-size:18px;margin:0 0 5px}.guide-steps p{margin:0;color:var(--muted)}
.whatsapp-warning{padding:13px 16px;background:#fff7e0;border-left:4px solid var(--yellow);border-radius:8px;font-weight:900;margin:12px 0}
.whatsapp-help ul{margin:8px 0 18px;padding-left:22px;color:var(--muted)}
.hotline-box{margin-top:24px;padding:18px 20px;border-radius:12px;background:#f5f8fc}.hotline-box h3{margin:0 0 4px}.hotline-box strong{display:inline-block;margin-right:18px;font-size:19px}.hotline-box strong a{color:var(--blue)}
.help-table{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.help-table>div{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--border);border-radius:9px;background:#fff}.help-table span{color:var(--blue);font-weight:900;text-align:right}
.help-top{font-weight:800;font-size:13px;padding:7px 9px;border-radius:7px;background:rgba(255,255,255,.12)}
@media(max-width:1600px){.top-inner{flex-wrap:wrap;row-gap:7px}.top-left{flex:0 0 auto}.top-right{flex:1 1 500px;justify-content:flex-end;flex-wrap:wrap;gap:5px}.top-right>a{font-size:12px}.help-top{padding:6px 7px}.new-connection-top,.app-top,.client-top{padding:6px 7px}}
@media(max-width:1000px){.help-grid{grid-template-columns:1fr 1fr}.guide-steps{grid-template-columns:1fr}.help-table{grid-template-columns:1fr}.help-top{display:none}.nav-wrap{max-height:calc(100vh - 48px);overflow-y:auto;align-items:flex-start}.nav-wrap nav,.nav-wrap .mobile-quick-links{max-height:none}.mobile-quick-links{padding-bottom:24px}}
@media(max-width:700px){.help-grid{grid-template-columns:1fr}.help-card{min-height:0}.help-section h2{font-size:25px}.help-table>div{display:grid;gap:4px}.help-table span{text-align:left}.hotline-box strong{display:block;margin:5px 0}.help-intro{text-align:left}}

/* Customer Help Center — additive only. */
.help-intro{margin-bottom:24px;text-align:center;background:linear-gradient(135deg,#f7fbff,#fff)}
.help-intro h2{font-size:clamp(28px,4vw,40px);margin:0 0 10px;color:var(--navy)}
.help-intro p{max-width:850px;margin:0 auto;color:var(--muted)}
.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.help-card{display:flex;flex-direction:column;align-items:flex-start;min-height:320px;transition:.2s}
.help-card:hover{transform:translateY(-3px);box-shadow:var(--shadow2)}
.help-card h2{margin:0 0 8px;font-size:23px}.help-card p{color:var(--muted);margin:0 0 18px}.help-card .btn{margin-top:auto}
.help-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#eaf5ff;color:var(--blue);font-size:21px;margin-bottom:16px}
.help-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.help-actions .btn{margin-top:0}
.help-section{margin-top:24px}.help-section h2{margin:3px 0 12px;font-size:30px}.help-section>p{color:var(--muted)}
.help-alert{display:flex;gap:10px;align-items:center;background:#f5f8fc;border-left:3px solid var(--blue);padding:12px 14px;border-radius:7px;margin-top:16px}.help-alert i{color:var(--blue)}
.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.guide-steps>div{border:1px solid var(--border);border-radius:12px;padding:20px;background:#f8fbfe}.guide-steps b{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eaf5ff;color:var(--blue);font-weight:900;margin-bottom:10px}.guide-steps h3{font-size:18px;margin:0 0 5px}.guide-steps p{margin:0;color:var(--muted)}
.whatsapp-warning{padding:13px 16px;background:#fff7e0;border-left:4px solid var(--yellow);border-radius:8px;font-weight:900;margin:12px 0}.whatsapp-help ul{margin:8px 0 18px;padding-left:22px;color:var(--muted)}
.hotline-box{margin-top:24px;padding:18px 20px;border-radius:12px;background:#f5f8fc}.hotline-box h3{margin:0 0 4px}.hotline-box strong{display:inline-block;margin-right:18px;font-size:19px}.hotline-box strong a{color:var(--blue)}
.help-table{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.help-table>div{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--border);border-radius:9px;background:#fff}.help-table span{color:var(--blue);font-weight:900;text-align:right}
.help-top{font-weight:800;font-size:13px;padding:7px 9px;border-radius:7px;background:rgba(255,255,255,.12)}
@media(max-width:1600px){.top-inner{flex-wrap:wrap;row-gap:7px}.top-left{flex:0 0 auto}.top-right{flex:1 1 500px;justify-content:flex-end;flex-wrap:wrap;gap:5px}.top-right>a{font-size:12px}.help-top{padding:6px 7px}.new-connection-top,.app-top,.client-top{padding:6px 7px}}
@media(max-width:1000px){.help-grid{grid-template-columns:1fr 1fr}.guide-steps{grid-template-columns:1fr}.help-table{grid-template-columns:1fr}.nav-wrap{max-height:calc(100vh - 48px);overflow-y:auto;align-items:flex-start}.help-top{display:none}.mobile-quick-links{padding-bottom:24px}}
@media(max-width:700px){.help-grid{grid-template-columns:1fr}.help-card{min-height:0}.help-section h2{font-size:25px}.help-table>div{display:grid;gap:4px}.help-table span{text-align:left}.hotline-box strong{display:block;margin:5px 0}.help-intro{text-align:left}}

/* Final responsive refinement */
.topbar .top-inner{min-width:0}
.topbar .top-right{flex-wrap:wrap;justify-content:flex-end;min-width:0}
.topbar .top-right>a{white-space:nowrap}
.customer-services-nav .dropdown{min-width:245px}
.customer-services-nav .dropdown a i{width:18px;margin-right:5px;color:var(--blue)}
.nav-wrap nav{min-width:0;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:1500px) and (min-width:1001px){
 .nav-wrap{gap:18px}.brand img{width:200px}.brand span{font-size:12px;padding-left:10px}
 .nav-item>a{padding:12px 8px;font-size:12px}
}
@media (max-width:1200px) and (min-width:1001px){
 .nav-wrap{gap:10px}.brand img{width:180px}.brand span{display:none}
 .nav-item>a{padding:11px 6px;font-size:11px}
}
@media (max-width:1000px){
 .topbar .top-inner{flex-wrap:nowrap;overflow:hidden}
 .topbar .top-right{display:none}
 .nav-wrap{max-height:calc(100vh - 48px);overflow-y:auto;overflow-x:hidden}
 .mobile-quick-links{max-height:calc(100vh - 130px);overflow-y:auto;overflow-x:hidden}
 .nav-wrap nav{display:none;flex-wrap:nowrap}
 body.nav-open nav{display:flex}.customer-services-nav{display:none}
}
@media (max-width:900px){.payment-grid{grid-template-columns:1fr!important}}
@media (max-width:700px){
 .payment-card{width:100%;overflow:hidden}.payment-card img{max-width:200px}
 .payment-guide{padding:24px}.payment-guide h2{font-size:27px}
}
.online-payment-extra{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}
.online-payment-extra h3{font-size:20px;margin:0 0 12px}
.online-payment-points{display:grid;gap:9px;text-align:left;margin-bottom:16px}
.online-payment-points>div{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:#f8fbfe}
.online-payment-points strong{color:var(--blue);font-weight:900}
