/* Windows Application download modal — redesigned (scoped to .tpl-dl-modal) */
.tpl-dl-modal .modal-dialog { max-width: 480px; }
.tpl-dl-modal .modal-content { position: relative; border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(7,30,87,0.30); }

/* Close button */
.tpl-dl-modal .tpl-dl-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.18); color: #fff; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.tpl-dl-modal .tpl-dl-close:hover { background: rgba(255,255,255,0.32); transform: rotate(90deg); }

.tpl-dl-modal .modal-body { padding: 0; }

/* Header with brand gradient */
.tpl-dl-modal .tpl-dl-head { background: linear-gradient(135deg, #071e57 0%, #1356b8 60%, #20a8ff 100%); padding: 34px 30px 30px; text-align: center; color: #fff; position: relative; }
.tpl-dl-modal .tpl-dl-head::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 24px; background: #fff; border-radius: 22px 22px 0 0; }
.tpl-dl-modal .tpl-dl-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); font-size: 30px; color: #fff; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.tpl-dl-modal .tpl-dl-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; color: #fff; letter-spacing: -0.2px; }
.tpl-dl-modal .tpl-dl-sub { font-size: 13.5px; line-height: 1.5; margin: 0; color: rgba(255,255,255,0.82); max-width: 330px; margin-inline: auto; }

/* Options */
.tpl-dl-modal .tpl-dl-options { padding: 8px 26px 4px; display: grid; gap: 12px; position: relative; z-index: 2; }
.tpl-dl-modal .tpl-dl-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid #e6ecf5; border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.tpl-dl-modal .tpl-dl-card:hover { border-color: #20a8ff; box-shadow: 0 10px 24px rgba(32,168,255,0.16); transform: translateY(-2px); text-decoration: none; }
.tpl-dl-modal .tpl-dl-card--reco { border-color: #cfe6fb; background: linear-gradient(135deg, #f5faff 0%, #eef6ff 100%); }

.tpl-dl-modal .tpl-dl-card-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: #eaf3ff; color: #1469c7; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.tpl-dl-modal .tpl-dl-card--reco .tpl-dl-card-ico { background: #20a8ff; color: #fff; }
.tpl-dl-modal .tpl-dl-card-info { display: flex; flex-direction: column; flex: 1 1 auto; text-align: left; }
.tpl-dl-modal .tpl-dl-card-name { font-size: 16px; font-weight: 700; color: #071e57; line-height: 1.2; }
.tpl-dl-modal .tpl-dl-card-meta { font-size: 12.5px; color: #7a89a3; margin-top: 2px; }
.tpl-dl-modal .tpl-dl-card-dl { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #ffb307; color: #071e57; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background .2s ease, color .2s ease; }
.tpl-dl-modal .tpl-dl-card:hover .tpl-dl-card-dl { background: #071e57; color: #fff; }

.tpl-dl-modal .tpl-dl-reco-badge { position: absolute; top: -10px; right: 14px; background: #ffb307; color: #071e57; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 3px 10px; border-radius: 30px; box-shadow: 0 4px 10px rgba(255,179,7,0.4); }

/* Footer note */
.tpl-dl-modal .tpl-dl-foot { text-align: center; font-size: 12.5px; color: #8a97ad; margin: 16px 0 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tpl-dl-modal .tpl-dl-foot i { color: #2bb673; font-size: 15px; }

/* Mobile */
@media (max-width: 480px) {
    .tpl-dl-modal .modal-dialog { margin: 0.6rem; }
    .tpl-dl-modal .tpl-dl-head { padding: 28px 22px 26px; }
    .tpl-dl-modal .tpl-dl-icon { width: 56px; height: 56px; font-size: 26px; }
    .tpl-dl-modal .tpl-dl-title { font-size: 19px; }
    .tpl-dl-modal .tpl-dl-options { padding: 8px 18px 4px; }
    .tpl-dl-modal .tpl-dl-card { padding: 14px; gap: 12px; }
    .tpl-dl-modal .tpl-dl-card-ico { width: 42px; height: 42px; font-size: 20px; }
    .tpl-dl-modal .tpl-dl-card-name { font-size: 15px; }
}
