/* ==========================================================================
   Download page — floating glass panels over the layout video background
   ========================================================================== */

.dl-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 34px 18px 70px;
    box-sizing: border-box;
}

.dl-hero { text-align: center; margin-bottom: 42px; }
.dl-hero h1 {
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--op-accent-2, #dfb76c);
    text-shadow: 0 0 22px rgba(223,183,108,.4), 0 4px 12px rgba(0,0,0,.85);
    margin: 0 0 8px;
}
.dl-hero p { font-family: 'Cairo', sans-serif; font-size: 15px; color: #b3a286; font-weight: 700; margin: 0; }

.dl-hero .dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 7px 18px;
    border-radius: 30px;
    background: rgba(15,11,11,.72);
    border: 1px solid rgba(243,229,171,.3);
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--op-accent, #f3e5ab);
    letter-spacing: 1px;
}
.dl-hero .dl-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--op-success, #26de81);
    box-shadow: 0 0 10px var(--op-success, #26de81);
    animation: dlPing 1.6s infinite;
}
@keyframes dlPing { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ───────────────────────────────────────────── mirror cards */
.dl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 46px;
}

.dl-card {
    position: relative;
    padding: 30px 26px 26px;
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(22,13,15,.86) 0%, rgba(8,7,9,.93) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(223,183,108,.26);
    box-shadow: 0 18px 40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.dl-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--op-accent-2, #dfb76c), transparent);
    background-size: 200% 100%;
    animation: dlSweep 3.4s linear infinite;
}
@keyframes dlSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.dl-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243,229,171,.5);
    box-shadow: 0 24px 52px rgba(0,0,0,.8), 0 0 28px rgba(223,183,108,.14);
}

.dl-card.patcher {
    border-color: rgba(255,71,87,.3);
}
.dl-card.patcher::before {
    background: linear-gradient(90deg, transparent, var(--op-danger, #ff3344), transparent);
    animation-duration: 2.4s;
}
.dl-card.patcher:hover { border-color: rgba(255,71,87,.6); }

.dl-card-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--op-accent-2, #dfb76c);
    letter-spacing: 1.4px;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px dashed rgba(223,183,108,.22);
}
.dl-card.patcher .dl-card-head { color: var(--op-danger, #ff3344); border-bottom-color: rgba(255,71,87,.22); }

.dl-card-head i { font-size: 17px; }

.dl-links { display: flex; flex-direction: column; gap: 12px; }

.dl-link {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 13px;
    height: 54px;
    padding: 0 20px;
    border-radius: 10px;
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #0d0809 !important;
    background: linear-gradient(135deg, #f7d98b 0%, #dfb76c 100%);
    box-shadow: 0 6px 18px rgba(223,183,108,.22);
    transition: transform .25s ease, box-shadow .25s ease;
}
.dl-link > i { font-size: 16px; flex: 0 0 auto; }
.dl-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dl-link::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-22deg);
    transition: left .65s ease;
}
.dl-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(223,183,108,.45); }
.dl-link:hover::after { left: 130%; }

.dl-link.red {
    color: #fff !important;
    background: linear-gradient(135deg, #ff4757 0%, #b3121f 100%);
    box-shadow: 0 6px 18px rgba(255,51,68,.22);
}
.dl-link.red:hover { box-shadow: 0 12px 30px rgba(255,71,87,.45); }

.dl-link .dl-size {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    opacity: .7;
    text-transform: none;
}

/* ───────────────────────────────────────────── tools grid */
.dl-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--op-accent-2, #dfb76c);
    letter-spacing: 1.4px;
    margin: 40px 0 20px;
    padding: 12px 18px;
    background: rgba(223,183,108,.06);
    border-inline-start: 4px solid var(--op-accent-2, #dfb76c);
    border-radius: 8px;
}
.dl-section:first-of-type { margin-top: 0; }

.dl-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 44px;
}

.dl-tool {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    text-align: center;
    padding: 22px 16px 18px;
    border-radius: 14px;
    background: rgba(15,12,14,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.dl-tool:hover {
    transform: translateY(-4px);
    border-color: rgba(243,229,171,.4);
    background: rgba(25,20,22,.75);
}
.dl-tool .ic {
    font-size: 26px;
    color: var(--op-danger, #ff3344);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255,71,87,.4));
}
.dl-tool h4 {
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    margin: 0 0 7px;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}
.dl-tool p {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,.44);
    line-height: 1.55;
}
.dl-tool .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(223,183,108,.12);
    border: 1px solid var(--op-accent-2, #dfb76c);
    color: var(--op-accent-2, #dfb76c);
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .22s ease;
}
.dl-tool .btn:hover {
    background: var(--op-accent-2, #dfb76c);
    color: #0d0809;
    box-shadow: 0 0 18px rgba(223,183,108,.45);
}

/* ───────────────────────────────────────────── patches table */
.dl-archive {
    width: 100%;
    border-radius: 16px;
    background: rgba(12,10,11,.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(223,183,108,.22);
    box-shadow: 0 14px 36px rgba(0,0,0,.6);
    padding: 22px;
    box-sizing: border-box;
}

.dl-table { width: 100%; border-collapse: separate; border-spacing: 0 7px; margin-top: 8px; }

.dl-table thead th {
    text-align: start;
    padding: 11px 16px;
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--op-accent-2, #dfb76c);
    background: rgba(223,183,108,.07);
}

.dl-table tbody tr {
    background: rgba(20,16,18,.7);
    transition: background .2s ease;
}
.dl-table tbody tr:hover { background: rgba(223,183,108,.09); }

.dl-table tbody td {
    padding: 13px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    color: #eee;
}
.dl-table tbody td:first-child { border-start-start-radius: 9px; border-end-start-radius: 9px; }
.dl-table tbody td:last-child  { border-start-end-radius: 9px;  border-end-end-radius: 9px; }

.dl-table a.file {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: var(--op-success, #26de81);
    text-decoration: none !important;
    transition: text-shadow .2s, color .2s;
}
.dl-table a.file:hover { color: #fff; text-shadow: 0 0 12px var(--op-success, #26de81); }

.dl-table .muted { color: rgba(255,255,255,.45); font-size: 12px; }
.dl-table .ok { color: var(--op-success, #26de81); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.dl-none {
    text-align: center;
    padding: 30px 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

.dl-note {
    margin-top: 34px;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,.36);
    line-height: 1.7;
}
.dl-note a { color: var(--op-accent, #f3e5ab); text-decoration: none; border-bottom: 1px dashed rgba(243,229,171,.4); }
.dl-note a:hover { color: #fff; }

@media (max-width: 900px) {
    .dl-wrap { padding: 22px 12px 46px; }
    .dl-hero h1 { font-size: 22px; letter-spacing: 1px; }
    .dl-cards { grid-template-columns: 1fr; gap: 18px; }
    .dl-card { padding: 24px 18px 20px; }
    .dl-link { height: 48px; font-size: 12px; padding: 0 14px; }
    .dl-archive { padding: 14px; }
    .dl-table thead { display: none; }
    .dl-table tbody tr { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; }
    .dl-table tbody td { padding: 3px 0; }
    .dl-table a.file { justify-content: flex-start; }
}
