/* ══ DOWNLOAD MODAL ══════════════════════════════════════════════════════════ */

.dl-modal-overlay { z-index: 1100; }

.dl-modal-box {
  background:    var(--surface);
  border-radius: var(--r);
  overflow:      hidden;
  max-width:     400px;
  position:      relative;
  animation:     dlModalIn .2s var(--ease);
}
@keyframes dlModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dl-modal-close {
  position:    absolute;
  top:         13px;
  right:       13px;
  width:       28px;
  height:      28px;
  border-radius: var(--r);
  border:      none;
  background:  var(--bg3);
  color:       var(--text3);
  cursor:      pointer;
  display:     flex;
  align-items: center;
  justify-content: center;
  font-size:   11px;
  transition:  background var(--t), color var(--t);
}
.dl-modal-close:hover { background: var(--bg2); color: var(--text); }

.dl-modal-app {
  display:     flex;
  align-items: center;
  gap:         14px;
  padding:     18px 18px 16px;
  border-bottom: 1px solid var(--bg3);
}

.dl-modal-icon {
  width:         52px;
  height:        52px;
  border-radius: var(--r);
  flex-shrink:   0;
}

.dl-modal-app-name {
  font-family:    var(--font-head);
  font-size:      16px;
  font-weight:    800;
  letter-spacing: -.3px;
  margin-bottom:  3px;
}
.dl-modal-app-meta { font-size: 12px; color: var(--text3); }

.dl-modal-ad {
  background:     var(--bg2);
  border-bottom:  1px solid var(--bg3);
  min-height:     90px;
  display:        flex;
  align-items:    center;
  justify-content: center;
}
.dl-modal-ad-inner {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            5px;
  color:          var(--text3);
  font-size:      12px;
}
.dl-modal-ad-inner i { font-size: 22px; opacity: .18; }

.dl-modal-footer {
  padding:        18px 18px 20px;
  display:        flex;
  flex-direction: column;
  gap:            14px;
}

.dl-modal-pre-text {
  font-size:   13.5px;
  font-weight: 600;
  color:       var(--text2);
  text-align:  center;
  margin-bottom: 2px;
}

.dl-modal-countdown {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  font-size:       13px;
  color:           var(--text3);
  padding:         10px 0 4px;
  text-align:      center;
}
.dl-modal-countdown strong {
  font-family:        var(--font-head);
  font-size:          22px;
  font-weight:        900;
  color:              var(--accent);
  font-variant-numeric: tabular-nums;
  min-width:          28px;
  display:            inline-block;
  text-align:         center;
}

.dl-modal-post-hint {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             7px;
  font-size:       12px;
  color:           var(--text3);
}
.dl-modal-post-hint i { color: var(--accent); font-size: 11px; }

.dl-start-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             9px;
  width:           100%;
  padding:         14px 20px;
  border-radius:   var(--r);
  font-family:     var(--font-head);
  font-size:       15px;
  font-weight:     800;
  border:          none;
  cursor:          pointer;
  transition:      opacity var(--t);
}

.dl-start-btn--ready {
  background: var(--accent);
  color:      #fff;
  cursor:     pointer;
}
.dl-start-btn--ready:hover { opacity: .88; }
.dl-start-btn--ready i { font-size: 16px; }

.dl-start-btn--locked {
  background:     var(--bg3);
  color:          var(--text3);
  cursor:         not-allowed;
  pointer-events: none;
}
.dl-start-btn--locked i {
  animation: hourglass 1.4s ease-in-out infinite;
}

@keyframes hourglass {
  0%, 100% { transform: rotate(0deg);   }
  50%       { transform: rotate(180deg); }
}

.dl-progress-bar-wrap {
  height:        3px;
  background:    var(--bg3);
  border-radius: 2px;
  overflow:      hidden;
}
.dl-progress-bar {
  height:        100%;
  background:    var(--accent);
  border-radius: 2px;
  transition:    width 1s linear;
}