body .ag-dl-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4caf50;
    border-radius: 12px;
    padding: 10px 25px;
    margin: 15px 0;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    gap: 15px;
    transition: transform 0.2s ease;
    min-height: 65px;
    contain: paint;
}
body .ag-dl-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
body .ag-dl-container.ag-has-badge { padding-right: 50px; }
body .ag-dl-container.ag-has-arch { padding-left: 50px; } 
body .ag-dl-badge-desktop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background-color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}
body .ag-dl-badge-desktop span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}
body .ag-dl-badge-arch-desktop {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 24px;
    background-color: #2980b9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
body .ag-dl-badge-arch-desktop span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}
body .ag-dl-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}
body .ag-dl-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding-right: 5px;
}
body .ag-dl-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.6;
    text-align: right;
}
body .ag-dl-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-shrink: 0;
    margin-left: 0;
    padding-left: 0;
}
body .ag-dl-btn {
    background-color: #fff;
    color: #4caf50;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    display: inline-block;
    height: auto;
}
body .ag-dl-badge-mobile, body .ag-dl-arch-ribbon-mobile { display: none; }

@media (max-width: 1023px) {
    body .ag-dl-badge-desktop, body .ag-dl-badge-arch-desktop { display: none; }
    body .ag-dl-container {
        padding: 10px 8px;
        min-height: 55px;
        gap: 8px;
    }
    body .ag-dl-container.ag-has-badge { padding-right: 8px; }
    body .ag-dl-container.ag-has-arch { padding-left: 8px; }
    body .ag-dl-content {
        padding-right: 0;
        padding-left: 0;
        width: 100%;
    }
    body .ag-has-arch .ag-dl-content {
        padding-right: 30px;
    }
    body .ag-dl-content p {
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }
    body .ag-is-ad .ag-dl-content p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body .ag-btn-wrapper {
        position: relative;
        display: flex;
        border: 2px solid rgba(255,255,255,0.8);
        border-radius: 10px;
        overflow: hidden;
        height: 34px;
    }
    body .ag-dl-btn {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
        font-size: 12px;
    }
    body .ag-has-badge .ag-dl-btn {
        padding-left: 26px;
        padding-right: 14px;
        justify-content: flex-start;
    }
    body .ag-dl-badge-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 20px;
        background-color: #e74c3c;
        color: #fff;
        z-index: 5;
    }
    body .ag-dl-badge-mobile span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 9px;
        font-weight: 800;
        white-space: nowrap;
        text-transform: uppercase;
    }
    body .ag-dl-arch-ribbon-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 6px;
        right: -25px;
        width: 80px;
        height: 18px;
        background-color: #2980b9;
        color: #fff;
        transform: rotate(45deg);
        z-index: 20;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        pointer-events: none;
    }
    body .ag-dl-arch-ribbon-mobile span {
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        white-space: nowrap;
        line-height: 1;
    }
}

body .ag-qr-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 5px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
body .ag-qr-trigger:hover { opacity: 1; }
body .ag-qr-trigger svg { width: 24px; height: 24px; fill: currentColor; }
body .ag-no-download-links {text-align:center;padding:20px;background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:5px;font-size:16px}
body .ag-qr-code-trigger {display:none;cursor:pointer;margin:0 10px;color:#fff;background:rgba(255,255,255,0.15);border-radius:8px;padding:5px;transition:background-color 0.3s ease}
body .ag-qr-code-trigger:hover {background:rgba(255,255,255,0.3)} 
body .ag-qr-code-trigger svg {width:24px;height:24px;fill:currentColor;filter:drop-shadow(0 1px 2px rgba(0,0,0,0.3))}

@media (min-width:1024px){body .ag-qr-code-trigger{display:flex;align-items:center}}

body .ag-qr-modal-overlay {display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);z-index:99999;justify-content:center;align-items:center}
body .ag-qr-modal-box {background:#fff;padding:20px;border-radius:15px;text-align:center;position:relative;max-width:300px;width:90%;box-shadow:0 10px 25px rgba(0,0,0,0.5)}
body .ag-qr-image-wrapper {position:relative;min-height:200px;display:flex;justify-content:center;align-items:center}
body .ag-qr-modal-close {position:absolute;top:10px;right:15px;font-size:24px;cursor:pointer;color:#333;font-weight:700;transition:color 0.3s ease,transform 0.3s ease;z-index:10;}
body .ag-qr-modal-close:hover {color:red; transform:scale(1.1);}
body .ag-qr-modal-title {color:#333;margin-bottom:15px;font-size:16px;font-weight:600}

@keyframes ag-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body .ag-qr-loading {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: #4caf50;
    border-radius: 50%;
    animation: ag-spin 1s linear infinite;
    z-index: 1;
}

body.dark-mode .ag-qr-modal-box {
    background: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
body.dark-mode .ag-qr-modal-title {
    color: #f3f4f6;
}
body.dark-mode .ag-qr-modal-close {
    color: #9ca3af;
}
body.dark-mode .ag-qr-modal-close:hover {
    color: #ef4444;
}
body.dark-mode .ag-no-download-links {
    background-color: rgba(127, 29, 29, 0.2);
    color: #fca5a5;
    border-color: rgba(127, 29, 29, 0.4);
}