/* =========================================================
   ChainVerifier — Download Page Styles
   ========================================================= */

.dl-page { background: var(--bg); }

/* ─── Hero ─── */
.dl-hero-section {
    position: relative;
    overflow: hidden;
    padding: var(--space-9) 0 var(--space-12);
    background: linear-gradient(135deg, #0a1628 0%, #0d2038 50%, #0f2d4d 100%);
    color: #fff;
}
.dl-hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
            mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none;
}
.dl-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.dl-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 7px 16px;
    background: rgba(76, 175, 80, 0.14);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #6ee07a;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}
.dl-hero-tag-dot {
    width: 7px;
    height: 7px;
    background: #6ee07a;
    border-radius: 50%;
    box-shadow: 0 0 8px #6ee07a;
    animation: pulseDot 2s ease-in-out infinite;
}
.dl-hero-title {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: var(--fw-black);
    letter-spacing: -1.6px;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}
.dl-hero-desc {
    color: #b8c6d8;
    font-size: var(--text-md);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto var(--space-5);
}
.dl-hero-meta { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.dl-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: #d8e8f8;
    transition: all var(--t-fast);
}
.dl-meta-chip:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.dl-meta-chip b { color: #fff; }
.dl-meta-chip-green { background: rgba(76, 175, 80, 0.15); border-color: rgba(76, 175, 80, 0.4); color: #6ee07a; }

/* ─── Latest Card ─── */
.dl-primary-section { padding: 0 0 var(--space-7); margin-top: -50px; position: relative; z-index: 3; }
.dl-latest-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-7);
    padding: var(--space-9);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.dl-latest-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
}
.dl-latest-left { min-width: 0; }
.dl-latest-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px 15px;
    background: linear-gradient(135deg, #fff3c4 0%, #ffe98a 100%);
    color: #7a5a00;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: var(--fw-black);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
    border: 1px solid #f0d97a;
}
.dl-latest-version {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: var(--fw-black);
    letter-spacing: -1.4px;
    color: var(--black);
    line-height: 1;
    margin-bottom: var(--space-4);
}
.dl-latest-info-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-5);
}
.dl-info-item { display: inline-flex; align-items: center; gap: 5px; }
.dl-info-dot { color: #cbd5e1; }
.dl-latest-file {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}
.dl-latest-file code {
    font-family: 'JetBrains Mono', Consolas, monospace;
    color: var(--primary);
    font-weight: var(--fw-bold);
    background: transparent;
    padding: 0;
    cursor: pointer;
    word-break: break-all;
}
.dl-checksum { padding: var(--space-4) var(--space-5); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.dl-checksum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); gap: var(--space-3); flex-wrap: wrap; }
.dl-checksum-label { font-size: var(--text-xs); font-weight: var(--fw-black); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.dl-checksum-copy {
    padding: 4px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: var(--fw-black);
    cursor: pointer;
    transition: all var(--t-fast);
}
.dl-checksum-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.dl-checksum-value { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 11.5px; color: var(--text); word-break: break-all; line-height: 1.55; }
.dl-latest-right { display: flex; flex-direction: column; gap: var(--space-3); justify-content: center; }

/* ─── Download Buttons ─── */
.dl-btn-primary {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--t-base);
    box-shadow: var(--shadow-glow-green);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    width: 100%;
}
.dl-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(76, 175, 80, 0.55); }
.dl-btn-icon { font-size: 28px; font-weight: var(--fw-black); display: inline-flex; align-items: center; }
.dl-btn-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn-text { display: flex; flex-direction: column; text-align: left; gap: 2px; }
.dl-btn-main { font-size: var(--text-lg); font-weight: var(--fw-black); letter-spacing: 0.2px; }
.dl-btn-sub { font-size: var(--text-sm); opacity: 0.9; font-weight: var(--fw-bold); }

.dl-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: var(--fw-black);
    text-decoration: none;
    transition: all var(--t-fast);
}
.dl-btn-secondary:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.dl-btn-secondary-static { cursor: default; background: var(--green-light); border-color: #b8e8c5; color: #1abc4a; }
.dl-latest-trust {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--muted);
}
.dl-latest-trust span::before { content: "\2713"; color: var(--green); margin-right: 4px; font-weight: var(--fw-black); }

/* ─── Content Section ─── */
.dl-content-section { padding: 0 0 var(--space-12); }
.dl-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-6); align-items: start; }
.dl-main { display: flex; flex-direction: column; gap: var(--space-5); }
.dl-sidebar { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: 96px; }

.dl-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-7); box-shadow: var(--shadow-sm); }
.dl-panel-compact { padding: var(--space-5); }
.dl-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}
.dl-panel-title { color: var(--black); font-size: var(--text-lg); font-weight: var(--fw-black); letter-spacing: -0.4px; margin-bottom: var(--space-1); }
.dl-panel-title-sm {
    color: var(--black);
    font-size: var(--text-base);
    font-weight: var(--fw-black);
    letter-spacing: -0.2px;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}
.dl-panel-sub { color: var(--muted); font-size: var(--text-sm); font-weight: var(--fw-semibold); }
.dl-panel-badge { padding: 4px 13px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--fw-black); white-space: nowrap; }

/* ─── Version List ─── */
.versions-list { display: flex; flex-direction: column; gap: var(--space-4); }
.dl-version-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
    position: relative;
}
.dl-version-item:hover { background: var(--white); border-color: var(--primary); box-shadow: var(--shadow-glow-blue); transform: translateY(-2px); }
.dl-version-main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.dl-version-left { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.dl-version-tag { padding: 7px 15px; background: var(--primary); color: #fff; border-radius: var(--radius-md); font-size: var(--text-base); font-weight: var(--fw-black); letter-spacing: 0.2px; }
.dl-version-latest { padding: 4px 11px; background: var(--yellow); color: var(--black); border-radius: var(--radius-full); font-size: 10px; font-weight: var(--fw-black); letter-spacing: 0.5px; }
.dl-version-meta { display: flex; gap: var(--space-5); flex-wrap: wrap; color: var(--muted); font-size: var(--text-sm); font-weight: var(--fw-bold); }
.dl-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.dl-version-file { font-family: 'JetBrains Mono', Consolas, monospace; font-size: var(--text-xs); color: var(--muted); word-break: break-all; }
.dl-version-file code { background: transparent; padding: 0; color: var(--primary); cursor: pointer; }
.dl-version-actions { display: flex; flex-direction: column; gap: var(--space-2); justify-content: center; align-items: flex-end; }
.dl-version-btn {
    padding: var(--space-3) var(--space-6);
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    transition: all var(--t-fast);
    white-space: nowrap;
    text-align: center;
    min-width: 130px;
    border: none;
    cursor: pointer;
}
.dl-version-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow-blue); }
.dl-version-vt {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-light);
    color: #1abc4a;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    transition: all var(--t-fast);
}
.dl-version-vt:hover { background: #1abc4a; color: #fff; transform: scale(1.08); }
.dl-version-checksum {
    grid-column: 1 / -1;
    padding: var(--space-3) var(--space-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}
.dl-version-checksum code { font-family: 'JetBrains Mono', Consolas, monospace; color: var(--text); word-break: break-all; background: transparent; padding: 0; cursor: pointer; font-size: var(--text-xs); }

/* ─── Install Steps ─── */
.install-steps { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-5); }
.install-step { display: flex; gap: var(--space-4); align-items: flex-start; }
.install-step-num {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--fw-black);
    box-shadow: 0 6px 15px var(--primary-glow);
}
.install-step-body { flex: 1; min-width: 0; }
.install-step-body h4 { color: var(--black); font-size: var(--text-base); font-weight: var(--fw-black); margin-bottom: var(--space-1); }
.install-step-body p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.install-step-body code { padding: 2px 8px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-xs); font-family: 'JetBrains Mono', Consolas, monospace; font-size: var(--text-sm); cursor: pointer; }
.install-warning {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: #fff8e1;
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius-md);
    color: #7a5a00;
    font-size: 13px;
    line-height: 1.65;
}
.install-warning-icon { font-size: var(--text-xl); flex-shrink: 0; line-height: 1; }
.install-warning code { background: rgba(255, 210, 31, 0.25); padding: 1px 7px; border-radius: var(--radius-xs); font-family: 'JetBrains Mono', Consolas, monospace; font-size: var(--text-sm); cursor: pointer; }

/* ─── Requirements ─── */
.dl-req-block { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
.dl-req-block:last-child { border-bottom: none; padding-bottom: 0; }
.dl-req-block:first-child { padding-top: 0; }
.dl-req-title { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--fw-black); color: var(--black); letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: var(--space-3); }
.dl-req-dot { width: 8px; height: 8px; border-radius: 50%; }
.dl-req-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.dl-req-list li { padding-left: 18px; position: relative; color: var(--muted); font-size: var(--text-sm); font-weight: var(--fw-semibold); line-height: 1.55; }
.dl-req-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: var(--fw-black); }

/* ─── Share Grid ─── */
.dl-share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.dl-share-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-soft);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    padding: 0;
    position: relative;
}
.dl-share-btn svg { width: 20px; height: 20px; transition: transform var(--t-fast); display: block; }
.dl-share-btn:hover { transform: translateY(-3px); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.dl-share-btn:hover svg { transform: scale(1.1); }
.dl-share-twitter:hover  { background: #000000; }
.dl-share-telegram:hover { background: #229ED9; }
.dl-share-reddit:hover   { background: #FF4500; }
.dl-share-whatsapp:hover { background: #25D366; }
.dl-share-copy:hover     { background: var(--green); }

/* ─── Help Panel ─── */
.dl-panel-help { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border: none; color: #fff; }
.dl-help-title { color: #fff; font-size: var(--text-md); font-weight: var(--fw-black); margin-bottom: var(--space-2); }
.dl-help-desc { color: rgba(255, 255, 255, 0.85); font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-4); }
.dl-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--yellow);
    color: var(--black);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    transition: all var(--t-fast);
    margin-bottom: var(--space-2);
    text-decoration: none;
}
.dl-help-btn:hover { background: #ffe05a; transform: translateY(-2px); }
.dl-help-btn-secondary { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); margin-bottom: 0; }
.dl-help-btn-secondary:hover { background: rgba(255, 255, 255, 0.22); }

/* ═══════════════════════════════════════════
   DOWNLOAD AGREEMENT MODAL
   ═══════════════════════════════════════════ */

.dl-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 10, 18, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.dl-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.dl-modal {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dl-modal-overlay.open .dl-modal {
    transform: translateY(0) scale(1);
}
.dl-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
}

/* Header */
.dl-modal-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-7) var(--space-4);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.dl-modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--primary-glow);
}
.dl-modal-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dl-modal-title-wrap { flex: 1; min-width: 0; }
.dl-modal-title {
    color: var(--black);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.4px;
    margin-bottom: 2px;
}
.dl-modal-subtitle {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}
.dl-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-fast);
    flex-shrink: 0;
}
.dl-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dl-modal-close:hover {
    background: var(--red-light);
    color: var(--red);
    border-color: rgba(255, 85, 85, 0.3);
}

/* Body */
.dl-modal-body {
    padding: var(--space-5) var(--space-7) var(--space-6);
    overflow-y: auto;
    flex: 1;
}

/* File info */
.dl-modal-file {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}
.dl-modal-file-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #d0e5f7 100%);
    color: var(--primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.dl-modal-file-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dl-modal-file-info { flex: 1; min-width: 0; }
.dl-modal-file-name {
    color: var(--primary);
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12.5px;
    font-weight: 700;
    word-break: break-all;
    margin-bottom: 3px;
}
.dl-modal-file-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.dl-modal-file-dot { color: #cbd5e1; }

/* Text */
.dl-modal-text {
    margin-bottom: var(--space-5);
}
.dl-modal-text p {
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: var(--space-3);
    font-weight: 600;
}
.dl-modal-text ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dl-modal-text li {
    position: relative;
    padding-left: 22px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}
.dl-modal-text li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
.dl-modal-text a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(31, 106, 165, 0.3);
    text-underline-offset: 3px;
    transition: all var(--t-fast);
}
.dl-modal-text a:hover {
    text-decoration-color: var(--primary);
}

/* Warning */
.dl-modal-warning {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: #fff8e1;
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}
.dl-modal-warning-icon {
    color: #b8860b;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}
.dl-modal-warning-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dl-modal-warning-text {
    color: #7a5a00;
    font-size: 12.5px;
    line-height: 1.6;
}
.dl-modal-warning-text strong {
    color: #7a5a00;
    font-weight: 900;
}

/* Checkbox */
.dl-modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--t-fast);
    user-select: none;
}
.dl-modal-checkbox:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.dl-modal-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.dl-modal-checkbox-box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.15s ease;
    margin-top: 1px;
}
.dl-modal-checkbox-box svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dl-modal-checkbox input:checked ~ .dl-modal-checkbox-box {
    background: var(--green);
    border-color: var(--green);
}
.dl-modal-checkbox input:checked ~ .dl-modal-checkbox-box svg {
    opacity: 1;
    transform: scale(1);
}
.dl-modal-checkbox-label {
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
}
.dl-modal-checkbox-label a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(31, 106, 165, 0.3);
    text-underline-offset: 3px;
    transition: all var(--t-fast);
}
.dl-modal-checkbox-label a:hover {
    text-decoration-color: var(--primary);
}

/* Footer */
.dl-modal-footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-7) var(--space-6);
    border-top: 1px solid var(--border);
    background: var(--bg);
    justify-content: flex-end;
}
.dl-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 46px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 900;
    cursor: pointer;
    transition: all var(--t-fast);
    border: none;
    font-family: inherit;
}
.dl-modal-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dl-modal-btn-cancel {
    background: #fff;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.dl-modal-btn-cancel:hover {
    background: var(--bg);
    border-color: var(--muted);
}
.dl-modal-btn-proceed {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.35);
    min-width: 180px;
}
.dl-modal-btn-proceed:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(76, 175, 80, 0.5);
}
.dl-modal-btn-proceed:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.4);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .dl-latest-card { grid-template-columns: 1fr; gap: var(--space-6); }
    .dl-layout { grid-template-columns: 1fr; }
    .dl-sidebar { position: static; }
}
@media (max-width: 780px) {
    .dl-latest-card { padding: var(--space-6); }
    .dl-version-item { grid-template-columns: 1fr; }
    .dl-version-actions { flex-direction: row; align-items: center; justify-content: flex-start; }
    .dl-version-btn { min-width: 100%; }
}
@media (max-width: 600px) {
    .dl-modal-header { padding: var(--space-5) var(--space-5) var(--space-3); }
    .dl-modal-body { padding: var(--space-4) var(--space-5) var(--space-5); }
    .dl-modal-footer { padding: var(--space-4) var(--space-5) var(--space-5); flex-direction: column-reverse; }
    .dl-modal-btn { width: 100%; }
    .dl-modal-btn-proceed { min-width: 0; }
    .dl-modal-title { font-size: 17px; }
    .dl-modal-icon { width: 42px; height: 42px; }
    .dl-modal-icon svg { width: 20px; height: 20px; }
}
@media (max-width: 520px) {
    .dl-hero-section { padding: var(--space-8) 0 var(--space-10); }
    .dl-hero-title { font-size: 30px; }
    .dl-primary-section { margin-top: -30px; }
    .dl-latest-card { padding: var(--space-5); }
    .dl-panel { padding: var(--space-5); }
    .dl-share-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
}