/* ── App Download Section ─────────────────────────────── */
.app-download-section {
  background: #f7faff;
}

/* Phone mockup */
.app-phone-mockup {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 240px;
  height: 480px;
  border: 3px solid #1a1a1a;
  border-radius: 40px;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px #1a1a1a, 0 24px 60px rgba(30,90,189,.18);
  padding: 20px 12px 16px;
}
.phone-notch {
  width: 80px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.phone-screen {
  flex: 1;
  width: 100%;
  background: linear-gradient(145deg, #e8f0fd 0%, #f0f6ff 100%);
  border-radius: 28px;
  margin-top: 24px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-screen-logo {
  width: 100px;
  opacity: .8;
}
.phone-home-bar {
  width: 80px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 3px;
}

/* Content */
.app-download-content {
  padding-left: 20px;
}
.app-download-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: #0b1f3a;
  margin-bottom: 18px;
}
.app-download-title span {
  color: #1E5ABD;
}
.app-download-desc {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

/* Download action row */
.app-download-actions {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* Store buttons */
.app-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  background: #111;
  border-radius: 10px;
  padding: 0;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 180px;
  height: 56px;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.store-btn img {
  height: 56px;
  width: 180px;
  object-fit: contain;
  display: block;
}
.store-btn-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  width: 180px;
  height: 56px;
}
.store-btn-icon {
  color: #fff;
  font-size: 26px;
}
.store-btn-text {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.store-btn-text small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: .85;
}

/* QR codes */
.app-qr-codes {
  display: flex;
  gap: 18px;
}
.app-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.app-qr-item img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 2px solid #e2eaf7;
  background: #fff;
  object-fit: cover;
}
.app-qr-item span {
  font-size: 11px;
  color: #1E5ABD;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsive */
@media (max-width: 991px) {
  .app-download-content {
    padding-left: 0;
    padding-top: 36px;
    text-align: center;
  }
  .app-download-title {
    font-size: 38px;
  }
  .app-download-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .app-download-actions {
    justify-content: center;
  }
  .app-store-buttons {
    align-items: center;
  }
}
@media (max-width: 575px) {
  .phone-frame {
    width: 180px;
    height: 360px;
  }
  .app-download-title {
    font-size: 30px;
  }
  .app-qr-codes {
    gap: 12px;
  }
  .app-qr-item img {
    width: 75px;
    height: 75px;
  }
}

/* ── Fixed Download QR Widget ────────────────────────── */
.dl-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(calc(100% - 40px));
  z-index: 9999;
  display: flex;
  align-items: stretch;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(-4px 4px 20px rgba(11,31,58,.25));
}
.dl-widget:hover,
.dl-widget.open {
  transform: translateY(-50%) translateX(0);
}

/* Vertical tab (always visible) */
.dl-tab {
  width: 40px;
  background: linear-gradient(180deg, #1E5ABD 0%, #0b1f3a 100%);
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 18px 0;
}
.dl-tab span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

/* Panel */
.dl-panel {
  background: linear-gradient(160deg, #0f2a4e 0%, #0b1f3a 100%);
  border-radius: 0 0 0 14px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 190px;
}

.dl-panel-title {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .7;
  margin: 0;
  align-self: flex-start;
}

/* QR blocks */
.dl-qr-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dl-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dl-qr-block img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #fff;
  display: block;
  object-fit: cover;
}
.dl-qr-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.dl-qr-label i {
  color: rgba(255,255,255,.8);
  font-size: 14px;
}
.dl-qr-label span {
  color: rgba(255,255,255,.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Divider between QR codes */
.dl-qr-divider {
  width: 1px;
  background: rgba(255,255,255,.1);
  align-self: stretch;
  margin-top: 4px;
}

/* Mobile — show as bottom bar instead */
@media (max-width: 991px) {
  .dl-widget {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: translateY(calc(100% - 44px));
    flex-direction: column-reverse;
    filter: drop-shadow(0 -4px 20px rgba(11,31,58,.25));
  }
  .dl-widget:hover,
  .dl-widget.open {
    transform: translateY(0);
  }
  .dl-tab {
    width: 100%;
    height: 44px;
    border-radius: 14px 14px 0 0;
    flex-direction: row;
    gap: 8px;
    padding: 0 20px;
  }
  .dl-tab span {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 12px;
  }
  .dl-tab::before {
    content: '';
    width: 36px;
    height: 3px;
    background: rgba(255,255,255,.35);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }
  .dl-panel {
    border-radius: 0;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 16px 20px;
  }
  .dl-panel-title {
    display: none;
  }
  .dl-qr-block img {
    width: 70px;
    height: 70px;
  }
}
