/* Zen Online — Electus downloads (birebir) */
.zs-download-main { padding-top: 96px; padding-bottom: 48px; }
.zs-dl-page { max-width: 1100px; margin: 0 auto; padding: 18px 16px 32px; }
body.zs-download-page .legacy-paper-content,
body.zs-download-page .jg-home__grid { display: none !important; }
.dl-card-btn.is-locked,
.dl-card-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.25);
}
.dl-card-btn--locked {
    background: linear-gradient(135deg, #5a4a2a 0%, #7a6535 50%, #5a4a2a 100%) !important;
    color: #1a0e06 !important;
}
.dl-lock-box {
    margin: 12px 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    background: rgba(15, 8, 4, 0.45);
    text-align: center;
    color: #d4c4a8;
}
.dl-lock-box strong { color: #f0d273; }
.dl-cd-grid {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.dl-cd-cell {
    min-width: 64px; padding: 10px 8px; border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(20, 11, 6, 0.7);
}
.dl-cd-cell span {
    display: block; font-family: 'Cinzel', serif; font-size: 1.35rem; font-weight: 700; color: #f0d273;
}
.dl-cd-cell small {
    display: block; margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.12em; color: #8b6b3d; text-transform: uppercase;
}
.dl-card-logo--fallback {
    font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: #f0d273;
}
@media (max-width: 991.98px) {
  .zs-download-main { padding-top: 84px; }
}


    /* ============================================================
       DOWNLOADS — medieval-gold luxury redesign
       (matches buy-options reseller/payment panel language)
       ============================================================ */

    /* ── Top announcement banner ── */
    .dl-announce {
        position: relative;
        background:
            linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(184, 134, 11, 0.10) 100%),
            linear-gradient(160deg, rgba(38, 22, 14, 0.88) 0%, rgba(18, 10, 6, 0.94) 100%);
        border: 1px solid rgba(212, 175, 55, 0.45);
        border-radius: 14px;
        padding: 14px 22px;
        text-align: center;
        margin-bottom: 0.5rem;
        box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
    }
    .dl-announce-fleur {
        color: #d4af37;
        margin: 0 6px;
        font-size: 0.95rem;
        text-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
    }
    .dl-announce strong {
        color: #f0d273;
        font-family: 'Cinzel', serif;
        letter-spacing: 0.05em;
    }
    .dl-announce .dl-announce-soft { color: #d4c4a8; }
    .dl-announce a {
        color: #f0d273;
        text-decoration: underline;
        font-weight: 700;
    }
    .dl-announce a:hover { color: #ffe6a5; }

    /* ── Section panel (replaces .widget on this page) ── */
    .dl-panel {
        position: relative;
        padding: 30px 28px 26px;
        background:
            radial-gradient(ellipse at top, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
            linear-gradient(160deg, rgba(46, 28, 14, 0.85) 0%, rgba(18, 10, 6, 0.92) 100%);
        border: 1px solid rgba(212, 175, 55, 0.28);
        border-radius: 22px;
        box-shadow:
            inset 0 0 36px rgba(212, 175, 55, 0.05),
            0 8px 30px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        margin-bottom: 1.5rem;
    }
    .dl-panel-corner {
        position: absolute;
        width: 26px;
        height: 26px;
        border-color: rgba(212, 175, 55, 0.5);
        border-style: solid;
        border-width: 0;
        pointer-events: none;
    }
    .dl-panel-corner--tl { top: 12px; left: 12px;  border-top-width: 2px;    border-left-width: 2px;  border-top-left-radius: 8px; }
    .dl-panel-corner--tr { top: 12px; right: 12px; border-top-width: 2px;    border-right-width: 2px; border-top-right-radius: 8px; }
    .dl-panel-corner--bl { bottom: 12px; left: 12px;  border-bottom-width: 2px; border-left-width: 2px;  border-bottom-left-radius: 8px; }
    .dl-panel-corner--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; }

    .dl-panel-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-bottom: 4px;
    }
    .dl-panel-title {
        font-family: 'Cinzel', serif;
        color: #f0d273;
        font-weight: 700;
        font-size: 1.55rem;
        margin: 0;
        letter-spacing: 0.14em;
        text-shadow: 0 0 12px rgba(240, 210, 115, 0.3), 0 0 28px rgba(212, 175, 55, 0.15);
    }
    .dl-panel-fleur {
        font-size: 1.05rem;
        color: #d4af37;
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
        animation: dlFleurFlicker 3.5s ease-in-out infinite;
    }
    @keyframes  dlFleurFlicker {
        0%, 100% { opacity: 0.85; text-shadow: 0 0 8px rgba(212, 175, 55, 0.45); }
        50%      { opacity: 1;    text-shadow: 0 0 18px rgba(212, 175, 55, 0.75); }
    }

    .dl-panel-meta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 4px 0 22px;
    }
    .dl-panel-subtitle {
        color: #c9a47e;
        font-style: italic;
        font-size: 0.92rem;
        letter-spacing: 0.05em;
    }
    .dl-count-badge {
        display: inline-flex;
        align-items: center;
        padding: 3px 11px;
        background: rgba(212, 175, 55, 0.16);
        border: 1px solid rgba(212, 175, 55, 0.45);
        color: #f0d273;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.10em;
        border-radius: 100px;
    }

    /* ── Grid ── */
    .dl-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 1rem;
        position: relative;
        z-index: 1;
    }
    .dl-grid-centered {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        position: relative;
        z-index: 1;
    }
    .dl-grid-centered .dl-card {
        width: 250px;
    }

    /* ── Cards (replaces black #151515) ── */
    .dl-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 18px 18px;
        background: linear-gradient(160deg, rgba(38, 22, 14, 0.88) 0%, rgba(18, 10, 6, 0.94) 100%);
        border: 1px solid rgba(212, 175, 55, 0.30);
        border-radius: 14px;
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        gap: 0.55rem;
        overflow: hidden;
    }
    .dl-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.55), transparent);
    }
    .dl-card:hover {
        border-color: rgba(212, 175, 55, 0.62);
        transform: translateY(-5px);
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.42),
            0 0 28px rgba(212, 175, 55, 0.15);
    }

    /* ── Logo ── */
    .dl-card-logo {
        position: relative;
        width: 64px;
        height: 64px;
        border-radius: 14px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.10) 0%, transparent 70%);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
    }
    .dl-card-logo::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 14px;
        border: 1px solid rgba(212, 175, 55, 0.22);
    }
    .dl-card-logo img {
        max-width: 46px;
        max-height: 46px;
        object-fit: contain;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    }

    /* ── Text ── */
    .dl-card-provider {
        font-family: 'Cinzel', serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: #f0d273;
        letter-spacing: 0.06em;
        text-shadow: 0 0 10px rgba(240, 210, 115, 0.2);
        margin-top: 3px;
    }
    .dl-card-name {
        font-size: 0.8rem;
        color: #d4c4a8;
        line-height: 1.3;
    }
    .dl-card-date {
        font-size: 0.7rem;
        color: #8b6b3d;
        letter-spacing: 0.06em;
    }

    /* ── Download Button (gold gradient, matches buy-options) ── */
    .dl-card-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 9px 22px;
        background: linear-gradient(135deg, #b8860b 0%, #d4af37 45%, #f0d273 60%, #d4af37 80%, #b8860b 100%);
        background-size: 220% 220%;
        background-position: 0% 50%;
        color: #1a0e06;
        border: 1px solid rgba(244, 220, 130, 0.6);
        border-radius: 8px;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-decoration: none;
        transition: background-position 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease;
        box-shadow:
            0 4px 12px rgba(212, 175, 55, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.32);
        margin-top: auto;
    }
    .dl-card-btn:hover,
    .dl-card-btn:focus {
        color: #1a0e06;
        text-decoration: none;
        background-position: 100% 50%;
        transform: translateY(-2px);
        box-shadow:
            0 8px 22px rgba(212, 175, 55, 0.50),
            inset 0 1px 0 rgba(255, 255, 255, 0.45);
        outline: none;
    }

    /* ── Legacy Ribbon (replaces small grey badge) ── */
    .dl-legacy-ribbon {
        position: absolute;
        top: 14px;
        right: -42px;
        transform: rotate(36deg);
        padding: 4px 44px;
        background: linear-gradient(90deg, #6b5b3e 0%, #b39754 50%, #6b5b3e 100%);
        color: #1a0e06;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    /* ── Disclaimer (legacy-bot warning, themed) ── */
    .dl-disclaimer {
        position: relative;
        background:
            linear-gradient(135deg, rgba(196, 96, 32, 0.10) 0%, rgba(184, 86, 22, 0.06) 100%);
        border: 1px solid rgba(200, 130, 40, 0.40);
        border-left: 3px solid rgba(255, 154, 61, 0.75);
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 18px;
        font-size: 0.85rem;
        color: #d4c4a8;
        line-height: 1.55;
        z-index: 1;
    }
    .dl-disclaimer-title {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #ff9a3d;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-size: 0.78rem;
        margin-right: 6px;
        text-shadow: 0 0 6px rgba(255, 154, 61, 0.3);
    }
    .dl-disclaimer strong {
        color: #f0d273;
    }

    /* ── Empty State ── */
    .dl-empty {
        text-align: center;
        padding: 3rem 1rem;
        color: #8b6b3d;
        font-style: italic;
    }

    /* ── Responsive ── */
    @media (max-width: 991.98px) {
        .dl-panel { padding: 24px 16px 20px; }
        .dl-panel-title { font-size: 1.25rem; letter-spacing: 0.10em; }
        .dl-panel-corner { width: 20px; height: 20px; }
    }
    @media (max-width: 576px) {
        .dl-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }
        .dl-card { padding: 16px 12px 14px; }
        .dl-card-logo { width: 52px; height: 52px; }
        .dl-card-logo img { max-width: 38px; max-height: 38px; }
        .dl-card-provider { font-size: 0.92rem; }
        .dl-grid-centered .dl-card { width: 100%; max-width: 240px; }
    }
