/* PayUrBills Public Home Redesign */

:root {
  --home-navy: #0b1f3a;
  --home-navy-dark: #071528;
  --home-accent: #e63950;
  --home-accent-hover: #cf2f45;
  --home-bg: #f4f6f9;
  --home-white: #ffffff;
  --home-text: #1a2b42;
  --home-text-muted: #6b7a90;
  --home-border: #e4e9f0;
  --home-radius: 14px;
  --home-radius-sm: 10px;
  --home-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --home-top-header-height: 72px;
  --home-edge-padding: clamp(24px, 3vw, 56px);
}

body {
  font-family: var(--home-font);
}

body.home-page {
  margin: 0;
  padding: 0;
  background: var(--home-white);
}

.home-page .home-header,
.home-page .home-hero,
.home-page .home-download,
.home-page .home-features,
.home-page .home-stats,
.home-page .home-contact-cta,
.home-page .home-footer {
  box-sizing: border-box;
}

/* Header */
.home-header {
  background: var(--home-white);
  border-bottom: 4px solid var(--home-navy);
  position: relative;
  z-index: 1060;
}

.home-header__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px var(--home-edge-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.home-header__row--main,
.home-header__row--sub {
  display: contents;
}

.home-header__row--main .home-header__divider--desktop {
  order: 30;
}

.home-header__row--main .home-header__profile {
  order: 40;
}

.home-header__row--sub .home-header__support {
  order: 20;
  margin-left: auto;
}

.home-header__row--sub .home-header__btn,
.home-header__row--sub .home-header__guest-actions {
  order: 25;
}

.home-header__guest-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  order: 10;
}

.home-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--home-bg);
  border-radius: 10px;
  color: var(--home-navy);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.home-header__logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
}

.home-header__guest-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-header__support {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--home-text);
  white-space: nowrap;
}

.home-header__support strong {
  font-weight: 700;
  color: var(--home-navy);
}

.home-header__support i {
  color: var(--home-accent);
}

.home-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.home-header__btn--outline {
  background: var(--home-white);
  color: var(--home-accent) !important;
  border-color: var(--home-accent);
}

.home-header__btn--outline:hover {
  background: #fef2f2;
  color: var(--home-accent-hover) !important;
}

.home-header__btn--primary {
  background: var(--home-accent);
  color: #fff !important;
  border-color: var(--home-accent);
}

.home-header__btn--primary:hover {
  background: var(--home-accent-hover);
  color: #fff !important;
}

.home-header__user-menu {
  position: relative;
}

.home-header__divider {
  display: inline-block;
  width: 1px;
  height: 36px;
  background: var(--home-border);
  flex-shrink: 0;
}

.home-header__profile {
  position: relative;
}

@media (min-width: 769px) {
  .home-header__profile {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

.home-header__profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  text-decoration: none !important;
  color: var(--home-navy) !important;
  background: transparent;
  border: none;
  cursor: pointer;
}

.home-header__profile-toggle:hover,
.home-header__profile-toggle:focus {
  background: #f8fafc;
  text-decoration: none !important;
  color: var(--home-navy) !important;
}

.home-header__profile-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--home-border);
}

.home-header__profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-align: left;
}

.home-header__profile-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-navy);
}

.home-header__profile-text small {
  font-size: 12px;
  font-weight: 500;
  color: var(--home-text-muted);
}

.home-header__profile-caret {
  font-size: 11px;
  color: var(--home-text-muted);
  margin-left: 2px;
}

.home-header__download-menu {
  position: relative;
}

.home-header__download-menu .dropdown-toggle .caret {
  margin-left: 4px;
}

.home-header__download-dropdown {
  min-width: 250px;
  padding: 8px 0;
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.home-header__download-dropdown > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--home-navy);
  white-space: nowrap;
}

.home-header__download-dropdown > li > a i {
  color: var(--home-accent);
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.home-header__download-dropdown > li > a:hover,
.home-header__download-dropdown > li > a:focus {
  background: #fef2f2;
  color: var(--home-accent);
}

.home-header__user-toggle {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hero / Login */
.home-hero {
  background: var(--home-navy);
  padding: 56px var(--home-edge-padding) 64px;
  width: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.home-hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 56px);
}

.home-hero__visual {
  flex: 1 1 auto;
  min-width: 0;
}

.home-hero__image {
  display: block;
  max-width: 100%;
  height: auto;
}

.home-login-card {
  background: var(--home-white);
  border-radius: var(--home-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  flex: 0 0 420px;
  margin-left: 0;
  margin-right: 0;
}

.home-login-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fce8ec;
  color: var(--home-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.home-login-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 6px;
  text-align: center;
}

.home-login-card__sub {
  font-size: 14px;
  color: var(--home-text-muted);
  margin: 0 0 24px;
  text-align: center;
}

.home-login-field {
  margin-bottom: 16px;
}

.home-login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--home-navy);
  margin-bottom: 6px;
}

.home-login-input {
  position: relative;
}

.home-login-input i.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--home-text-muted);
  pointer-events: none;
}

.home-login-input input.form-control {
  height: 48px;
  padding: 12px 44px 12px 42px;
  border: 1px solid var(--home-border) !important;
  border-radius: var(--home-radius-sm) !important;
  box-shadow: none !important;
  font-size: 14px;
  color: var(--home-navy);
  background: #f8fafc;
}

.home-login-input input.form-control:focus {
  border-color: var(--home-navy) !important;
  background: var(--home-white);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08) !important;
}

.home-login-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--home-text-muted);
  cursor: pointer;
  border-radius: 8px;
}

.home-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: var(--home-radius-sm);
  background: var(--home-accent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.home-login-submit:hover {
  background: var(--home-accent-hover);
  color: #fff !important;
}

.home-login-forgot {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--home-text-muted);
}

.home-login-forgot a {
  color: var(--home-accent) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.home-login-error {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 18px;
  margin-bottom: 12px;
  color: #c0392b;
}

.home-login-error.text-success {
  color: #27ae60;
}

.home-login-loading {
  text-align: center;
  padding: 12px;
  color: var(--home-accent);
  font-weight: 600;
}

/* Download App — standalone section */
.home-download {
  background: var(--home-bg);
  padding: 56px var(--home-edge-padding);
  margin: 48px 0;
  width: 100%;
}

.home-download__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.home-download .home-section-head {
  margin-bottom: 10px;
}

.home-download__sub {
  font-size: 15px;
  color: var(--home-text-muted);
  margin: 0 0 36px;
}

.home-download__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}

.home-download__grid--center {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

.home-download-platform-card {
  background: var(--home-white);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.08);
  border: 1px solid var(--home-border);
  text-align: left;
  min-height: 220px;
}

.home-download-platform-card__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-download-platform-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 0 16px;
}

.home-download-platform-card__icon--android {
  background: #ecfdf3;
  color: #22c55e;
}

.home-download-platform-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 10px;
}

.home-download-platform-card p {
  font-size: 14px;
  color: var(--home-text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.home-download-platform-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--home-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.home-download-platform-card__btn--navy {
  background: var(--home-navy);
  color: #fff !important;
}

.home-download-platform-card__qr {
  flex: 0 0 112px;
  width: 112px;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--home-text-muted);
  text-align: center;
  padding: 10px;
  text-decoration: none;
  background: var(--home-white);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-download-platform-card__qr:hover {
  border-color: var(--home-navy);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.08);
}

.home-download-platform-card__qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.home-download-platform-card__qr span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Features */
.home-features {
  background: var(--home-bg);
  padding: 56px var(--home-edge-padding);
}

.home-features--white {
  background: var(--home-white);
  padding: 56px var(--home-edge-padding);
}

.home-features__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.home-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.home-section-head h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 8px;
}

.home-section-head h2 span {
  color: var(--home-accent);
}

.home-section-head__line {
  width: 48px;
  height: 3px;
  background: var(--home-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.home-feature-card {
  background: var(--home-white);
  border: none;
  border-radius: 20px;
  padding: 40px 28px;
  min-height: 260px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.07);
}

.home-feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.home-feature-card__icon--blue { background: #eff6ff; color: #3b82f6; }
.home-feature-card__icon--pink { background: #fce8ec; color: var(--home-accent); }
.home-feature-card__icon--green { background: #ecfdf3; color: #22c55e; }

.home-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 12px;
  text-transform: capitalize;
}

.home-feature-card p {
  font-size: 15px;
  color: var(--home-text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats */
.home-stats {
  background: var(--home-bg);
  padding: 56px var(--home-edge-padding);
  margin: 48px 0;
}

.home-stats__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.home-stat-card {
  background: var(--home-white);
  border: none;
  border-radius: 20px;
  padding: 40px 20px;
  min-height: 200px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.home-stat-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.home-stat-card__icon--blue { background: #eff6ff; color: #3b82f6; }
.home-stat-card__icon--pink { background: #fce8ec; color: var(--home-accent); }
.home-stat-card__icon--green { background: #ecfdf3; color: #22c55e; }
.home-stat-card__icon--gold { background: #fffbeb; color: #f59e0b; }

.home-stat-card__value {
  font-size: 36px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 10px;
  line-height: 1.2;
}

.home-stat-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--home-text-muted);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* Contact CTA */
.home-contact-cta {
  background: var(--home-navy);
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-contact-cta h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.home-contact-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin: 16px 0 0;
  max-width: 560px;
  line-height: 1.65;
}

.home-contact-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-contact-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--home-radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.home-contact-cta__btn--call {
  background: var(--home-accent);
  color: #fff !important;
}

.home-contact-cta__btn--whatsapp {
  background: #25d366;
  color: #fff !important;
}

.home-contact-cta__call-msg {
  max-width: 520px;
  margin: 20px auto 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--home-radius-sm);
  text-align: center;
}

.home-contact-cta__call-msg[hidden] {
  display: none !important;
}

.home-contact-cta__call-msg-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.home-contact-cta__call-msg-text strong {
  color: #fff;
  white-space: nowrap;
}

/* Footer */
.home-footer {
  background: var(--home-navy-dark);
  color: rgba(255, 255, 255, 0.75);
}

.home-footer__main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
}

.home-footer__brand img {
  max-width: 140px;
  margin-bottom: 16px;
}

.home-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.home-footer__heading {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
}

.home-footer__contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.home-footer__contact-item i {
  color: var(--home-accent);
  margin-top: 3px;
  width: 16px;
}

.home-footer__social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.home-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s;
}

.home-footer__social a:hover {
  background: var(--home-accent);
}

.home-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 13px;
}

.home-footer__bottom a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
}

.home-footer__links {
  display: flex;
  gap: 16px;
}

/* Hide legacy public chrome if any remains */
.home-page .header-menus,
.home-page .first-slider,
.home-page .feature-box,
.home-page .bbnl-network-section,
.home-page #footer-area-section,
.home-page .copy-right {
  display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
  :root {
    --home-edge-padding: 24px;
  }

  .home-hero__inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .home-hero__visual {
    width: 100%;
    max-width: 100%;
  }

  .home-download-platform-card {
    flex-direction: column;
  }

  .home-download-platform-card__qr {
    width: 100%;
    flex-basis: auto;
    min-height: 112px;
  }

  .home-download__grid,
  .home-download__grid--center {
    grid-template-columns: 1fr;
  }

  .home-login-card {
    flex: 1 1 auto;
    max-width: 100%;
    margin: 0 auto;
  }

  .home-features__grid,
  .home-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footer__main {
    grid-template-columns: 1fr;
  }

  .home-footer__social {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .home-header {
    border-bottom: none;
  }

  .home-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .home-header__row--main,
  .home-header__row--sub {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .home-header__row--main {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 4px solid var(--home-navy);
    background: var(--home-white);
  }

  .home-header__row--sub {
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #fff5f6;
    border-bottom: 1px solid #fce8ec;
  }

  .home-header__row--main .home-header__left,
  .home-header__row--main .home-header__profile,
  .home-header__row--sub .home-header__support,
  .home-header__row--sub .home-header__btn,
  .home-header__row--sub .home-header__guest-actions {
    order: unset;
    margin-left: 0;
  }

  .home-header__left {
    flex: 1;
    min-width: 0;
  }

  .home-header__logo img {
    height: 34px;
    max-width: 160px;
  }

  .home-header__menu-toggle {
    display: flex;
  }

  .home-header__divider--desktop {
    display: none !important;
  }

  .home-header__profile {
    border-left: 1px solid var(--home-border);
    padding-left: 12px;
    margin-left: 4px;
  }

  .home-header__profile-toggle {
    gap: 8px;
    padding-right: 0;
  }

  .home-header__profile-text {
    display: flex;
  }

  .home-header__profile-text strong {
    font-size: 13px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-header__profile-text small {
    font-size: 11px;
  }

  .home-header__profile-photo {
    width: 36px;
    height: 36px;
  }

  .home-header__profile-caret {
    font-size: 10px;
  }

  .home-header__support {
    min-width: 0;
    flex: 1;
    font-size: 12px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .home-header__support strong {
    font-size: 12px;
  }

  .home-header__support span {
    font-size: 12px;
  }

  .home-header__btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .home-header__guest-actions {
    gap: 8px;
  }

  .home-header__guest-actions .home-header__btn--outline {
    min-height: 36px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .home-header__support strong {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --home-edge-padding: 16px;
  }

  .home-features__grid,
  .home-stats__grid {
    grid-template-columns: 1fr;
  }

  .home-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Download App Landing Page (member area) */
body.has-site-header.app-body--download-page .app-main {
  margin-left: 0;
  width: 100%;
  overflow-x: hidden;
}

body.app-body--download-page .home-header__menu-toggle {
  display: none !important;
}

body.app-body--download-page .app-content {
  padding-bottom: 0;
}

body.app-body--download-page .app-member-footer,
body.app-body--download-page .home-footer.app-member-footer {
  width: 100%;
}

body.app-body--download-page .app-member-footer .home-footer__main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

body.app-body--download-page .app-member-footer .home-footer__bottom {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100% - 1200px) / 2));
  padding-right: max(24px, calc((100% - 1200px) / 2));
  box-sizing: border-box;
}

.app-content .app-download-page {
  margin: -28px -32px 0;
  width: calc(100% + 64px);
}

.app-download-hero {
  background: var(--home-navy);
  padding: 48px var(--home-edge-padding) 56px;
}

.app-download-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 48px);
}

.app-download-hero__visual {
  flex: 1 1 auto;
  min-width: 0;
}

.app-download-hero__content {
  flex: 1 1 44%;
  min-width: 280px;
  color: #fff;
}

.app-download-hero__badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(230, 57, 80, 0.22);
  border: 1px solid rgba(230, 57, 80, 0.45);
  color: #ffb3c0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 18px;
}

.app-download-hero__content h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.app-download-hero__content h1 span {
  color: var(--home-accent);
}

.app-download-hero__content p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 520px;
}

.app-download-platform {
  background: var(--home-white);
  padding: 56px var(--home-edge-padding);
  scroll-margin-top: 120px;
}

.app-download-platform__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.app-download-platform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-download-platform__grid--center {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  margin: 0 auto;
}

.app-download-platform-card {
  background: var(--home-white);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.06);
  border: 1px solid var(--home-border);
}

.app-download-platform-card__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-download-platform-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 0 16px;
}

.app-download-platform-card__icon--android {
  background: #ecfdf3;
  color: #22c55e;
}

.app-download-platform-card__icon--ios {
  background: #f1f5f9;
  color: var(--home-navy);
}

.app-download-platform-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 10px;
}

.app-download-platform-card p {
  font-size: 14px;
  color: var(--home-text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.app-download-platform-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--home-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.app-download-platform-card__btn--navy {
  background: var(--home-navy);
  color: #fff !important;
}

.app-download-platform-card__btn--accent {
  background: var(--home-accent);
  color: #fff !important;
}

.app-download-platform-card__qr {
  flex: 0 0 112px;
  width: 112px;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--home-text-muted);
  text-align: center;
  padding: 10px;
  text-decoration: none;
  background: var(--home-white);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-download-platform-card__qr:hover {
  border-color: var(--home-navy);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.08);
}

.app-download-platform-card__qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.app-download-platform-card__qr span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.3;
}

.app-download-features {
  background: var(--home-bg);
  padding: 56px var(--home-edge-padding);
}

.app-download-features__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.app-download-features__head {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-download-features__head h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0;
  line-height: 1.25;
}

.app-download-features__head p {
  font-size: 15px;
  color: var(--home-text-muted);
  margin: 0;
  max-width: 640px;
  line-height: 1.65;
}

.app-download-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.app-download-feature-card {
  background: var(--home-white);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.05);
  min-height: 240px;
}

.app-download-feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
}

.app-download-feature-card__icon--pink { background: #fce8ec; color: var(--home-accent); }
.app-download-feature-card__icon--blue { background: #eff6ff; color: #3b82f6; }
.app-download-feature-card__icon--gold { background: #fffbeb; color: #f59e0b; }
.app-download-feature-card__icon--green { background: #ecfdf3; color: #22c55e; }

.app-download-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 10px;
}

.app-download-feature-card p {
  font-size: 14px;
  color: var(--home-text-muted);
  line-height: 1.6;
  margin: 0;
}

.app-download-page .home-contact-cta {
  margin: 0;
}

@media (max-width: 992px) {
  .app-download-hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .app-download-hero__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .app-download-platform__grid,
  .app-download-platform__grid--center {
    grid-template-columns: 1fr;
  }

  .app-download-features__grid {
    grid-template-columns: 1fr;
  }

  .app-download-platform-card {
    flex-direction: column;
  }

  .app-download-platform-card__qr {
    width: 100%;
    flex-basis: auto;
    min-height: 112px;
  }
}

@media (max-width: 768px) {
  .app-content .app-download-page {
    margin: -20px -16px 0;
    width: calc(100% + 32px);
  }

  .app-download-hero {
    padding: 36px 16px 44px;
  }

  .app-download-platform,
  .app-download-features {
    padding: 40px 16px;
  }
}
