/* =========================================================
 * Download page - builds on auth.css + member.css (km-*)
 * ======================================================= */

.dl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--auth-field);
  border: 1px solid var(--auth-line);
  transition: border-color .15s ease, box-shadow .2s ease;
}

.dl-item:hover {
  border-color: #6b2a0e;
  box-shadow: 0 0 16px rgba(255, 122, 26, .12);
}

.dl-item.is-primary {
  border-color: rgba(217, 136, 61, .55);
  background:
    radial-gradient(420px 120px at 0% 50%, rgba(255, 122, 26, .14), transparent 70%),
    var(--auth-field);
}

.dl-item__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 22px;
  color: var(--auth-gold);
  background: rgba(217, 136, 61, .12);
  border: 1px solid rgba(217, 136, 61, .25);
}

.dl-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-item__name {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--auth-ink);
}

.dl-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--auth-muted);
}

.dl-item__meta i {
  color: #a8662d;
}

.dl-tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffe9c2;
  background: rgba(217, 136, 61, .14);
  border: 1px solid rgba(217, 136, 61, .3);
}

/* btn-auth is full width on the auth pages; here it sits beside the info */
.btn-auth.dl-item__btn {
  flex: none;
  width: auto;
  min-width: 150px;
  height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .dl-item {
    flex-wrap: wrap;
  }

  .btn-auth.dl-item__btn {
    width: 100%;
  }
}

/* ---------- install steps ---------- */

.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.dl-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: #d8c4b2;
}

.dl-steps a {
  color: var(--auth-gold);
}

.dl-steps__n {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #2a0a02;
  background: linear-gradient(180deg, #ffe08a 0%, #f5a547 55%, #e07325 100%);
}

/* ---------- requirements ---------- */

.dl-req {
  margin-top: 0;
}

.dl-req__k {
  white-space: nowrap;
  color: var(--auth-ink) !important;
  font-weight: 500;
}

.dl-req__k i {
  width: 18px;
  margin-right: 4px;
  text-align: center;
  color: var(--auth-line-hot);
}

.dl-req__rec {
  color: #ffe9c2 !important;
}

/* ---------- mobile ---------- */

.dl-mobile-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #d8c4b2;
}

.dl-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(217, 136, 61, .45);
  background:
    radial-gradient(420px 160px at 0% 50%, rgba(255, 122, 26, .16), transparent 70%),
    var(--auth-field);
}

.dl-qr__code {
  flex: none;
  width: 134px;
  height: 134px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 211, 107, .25), 0 0 20px rgba(255, 122, 26, .3);
}

/* qrcodejs adds both a canvas and an img; show one, sized to the box */
.dl-qr__code canvas {
  display: none !important;
}

.dl-qr__code img {
  display: block;
  width: 118px;
  height: 118px;
}

.dl-qr__title {
  font-size: 19px;
  font-weight: 600;
  background: linear-gradient(180deg, #fff3cf 0%, var(--auth-gold) 45%, var(--auth-line-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dl-qr__sub {
  margin-top: 2px;
  font-size: 14px;
  color: var(--auth-muted);
}

.dl-stores {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.dl-store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--auth-field);
  border: 1px solid var(--auth-line);
  transition: border-color .15s ease, box-shadow .2s ease, transform .12s ease;
}

.dl-store:hover {
  border-color: var(--auth-line-hot);
  box-shadow: 0 0 16px rgba(255, 122, 26, .2);
  transform: translateY(-1px);
}

.dl-store i {
  flex: none;
  width: 32px;
  text-align: center;
  font-size: 30px;
}

.dl-store .fa-apple {
  color: #f3e6d8;
}

.dl-store .fa-android {
  color: #8bc34a;
}

.dl-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dl-store small {
  font-size: 11.5px;
  color: var(--auth-muted);
}

.dl-store strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--auth-ink);
}

@media (max-width: 575.98px) {
  .dl-qr {
    flex-direction: column;
    text-align: center;
  }

  .dl-stores {
    grid-template-columns: minmax(0, 1fr);
  }
}
