/* ============================================
   Completely New Modern Design - 2026
   ============================================ */

/* شريط الأكثر مشاهدة (نفس Play_apk-cat-topviews من category.css) */
.dl-page-new .dl-container-new > .Play_apk-cat-topviews {
    margin-bottom: 1.25rem;
}

:root {
    /* ألوان هادئة ومتناسقة — أحمر ناعم */
    --modern-bg: #fefafa;
    --modern-surface: rgba(185, 28, 28, 0.04);
    --modern-card: rgba(185, 28, 28, 0.06);
    --modern-primary: #b91c1c;
    --modern-primary-dark: #991b1b;
    --modern-secondary: #dc2626;
    --modern-accent: #b91c1c;
    --modern-success: #b91c1c;
    --modern-text: #374151;
    --modern-text-light: #6b7280;
    --modern-border: rgba(185, 28, 28, 0.12);
    --modern-glow: 0 0 24px rgba(185, 28, 28, 0.08);
    --modern-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

/* ============================================
   RTL/LTR Support for Download Gateway
   ============================================ */

/* LTR (English) - Left to Right */
html[dir="ltr"] .dl-page-new,
html[dir="ltr"] .dl-container-new,
html[dir="ltr"] .dl-panel-new,
html[dir="ltr"] .dl-tips-new,
html[dir="ltr"] .dl-quick-comments-new,
html[dir="ltr"] .dl-quick-comment-form-wrapper,
html[dir="ltr"] .dl-faq-new,
html[dir="ltr"] .dl-telegram-new,
html[dir="ltr"] .modern-download-page,
html[dir="ltr"] .modern-download-wrapper {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .dl-panel-header,
html[dir="ltr"] .dl-quick-comments-header,
html[dir="ltr"] .dl-quick-comments-buttons,
html[dir="ltr"] .dl-comment-type-tabs,
html[dir="ltr"] .dl-quick-comment-form {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .dl-quick-comment-btn,
html[dir="ltr"] .dl-btn-new,
html[dir="ltr"] .dl-telegram-btn,
html[dir="ltr"] .dl-faq-item {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select,
html[dir="ltr"] button {
    direction: ltr;
    text-align: left;
}

/* RTL (Arabic) - Right to Left */
html[dir="rtl"] .dl-page-new,
html[dir="rtl"] .dl-container-new,
html[dir="rtl"] .dl-panel-new,
html[dir="rtl"] .dl-tips-new,
html[dir="rtl"] .dl-quick-comments-new,
html[dir="rtl"] .dl-quick-comment-form-wrapper,
html[dir="rtl"] .dl-faq-new,
html[dir="rtl"] .dl-telegram-new,
html[dir="rtl"] .modern-download-page,
html[dir="rtl"] .modern-download-wrapper {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .dl-panel-header,
html[dir="rtl"] .dl-quick-comments-header,
html[dir="rtl"] .dl-quick-comments-buttons,
html[dir="rtl"] .dl-comment-type-tabs,
html[dir="rtl"] .dl-quick-comment-form {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .dl-quick-comment-btn,
html[dir="rtl"] .dl-btn-new,
html[dir="rtl"] .dl-telegram-btn,
html[dir="rtl"] .dl-faq-item {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] button {
    direction: rtl;
    text-align: right;
}

/* Mobile specific - Force LTR on mobile regardless of language */
@media (max-width: 768px) {
    /* Force LTR for all download gateway content on mobile */
    .dl-page-new,
    .dl-container-new,
    .dl-panel-new,
    .dl-tips-new,
    .dl-quick-comments-new,
    .dl-quick-comment-form-wrapper,
    .dl-faq-new,
    .dl-faq-title,
    .dl-faq-list-new,
    .dl-faq-item-new,
    .dl-faq-btn-new,
    .dl-faq-answer-new,
    .dl-telegram-new,
    .modern-download-page,
    .modern-download-wrapper {
        direction: ltr !important;
        text-align: left !important;
    }
    
    .dl-panel-header,
    .dl-quick-comments-header,
    .dl-quick-comments-buttons,
    .dl-comment-type-tabs,
    .dl-quick-comment-form,
    .dl-faq-list-new,
    .dl-faq-item,
    .dl-faq-item-new {
        direction: ltr !important;
        text-align: left !important;
    }
    
    .dl-faq-title {
        direction: ltr !important;
        text-align: left !important;
    }
    
    .dl-faq-btn-new,
    .dl-faq-btn-new span,
    .dl-faq-btn-new span:first-child {
        direction: ltr !important;
        text-align: left !important;
    }
    
    .dl-faq-answer-new,
    .dl-faq-answer-new p {
        direction: ltr !important;
        text-align: left !important;
    }
    
    .dl-faq-toggle-new {
        direction: ltr !important;
    }
    
    .dl-quick-comment-btn,
    .dl-btn-new,
    .dl-telegram-btn,
    .dl-faq-question,
    .dl-faq-answer {
        direction: ltr !important;
        text-align: left !important;
    }
    
    input,
    textarea,
    select,
    button {
        direction: ltr !important;
        text-align: left !important;
    }
    
    /* Override any RTL styles on mobile */
    html[dir="rtl"] .dl-page-new,
    html[dir="rtl"] .dl-container-new,
    html[dir="rtl"] .dl-panel-new,
    html[dir="rtl"] .dl-quick-comments-new,
    html[dir="rtl"] .dl-quick-comment-form-wrapper,
    html[dir="rtl"] .dl-faq-new,
    html[dir="rtl"] .dl-faq-title,
    html[dir="rtl"] .dl-faq-list-new,
    html[dir="rtl"] .dl-faq-item-new,
    html[dir="rtl"] .dl-faq-btn-new,
    html[dir="rtl"] .dl-faq-answer-new,
    html[dir="rtl"] .dl-telegram-new,
    html[dir="rtl"] .modern-download-page,
    html[dir="rtl"] .modern-download-wrapper {
        direction: ltr !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] .dl-panel-header,
    html[dir="rtl"] .dl-quick-comments-header,
    html[dir="rtl"] .dl-quick-comments-buttons,
    html[dir="rtl"] .dl-comment-type-tabs,
    html[dir="rtl"] .dl-quick-comment-form,
    html[dir="rtl"] .dl-faq-list-new,
    html[dir="rtl"] .dl-faq-item,
    html[dir="rtl"] .dl-faq-item-new {
        direction: ltr !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] .dl-faq-title {
        direction: ltr !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] .dl-faq-btn-new,
    html[dir="rtl"] .dl-faq-btn-new span,
    html[dir="rtl"] .dl-faq-btn-new span:first-child {
        direction: ltr !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] .dl-faq-answer-new,
    html[dir="rtl"] .dl-faq-answer-new p {
        direction: ltr !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] .dl-faq-toggle-new {
        direction: ltr !important;
    }
    
    html[dir="rtl"] .dl-quick-comment-btn,
    html[dir="rtl"] .dl-btn-new,
    html[dir="rtl"] .dl-telegram-btn,
    html[dir="rtl"] .dl-faq-question,
    html[dir="rtl"] .dl-faq-answer {
        direction: ltr !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] input,
    html[dir="rtl"] textarea,
    html[dir="rtl"] select,
    html[dir="rtl"] button {
        direction: ltr !important;
        text-align: left !important;
    }
}

* {
    box-sizing: border-box;
}

/* Apply CSS to all pages containing modern-download-page */
body:has(.modern-download-page),
body.page-template-download-gateway,
body.single,
body.page {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--modern-bg) !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow-x: hidden !important;
    color: var(--modern-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

body:has(.modern-download-page)::before,
body:has(.modern-download-page)::after,
body.page-template-download-gateway::before,
body.page-template-download-gateway::after {
    display: none !important;
}

/* Main Container */
.modern-download-page {
    min-height: 100vh !important;
    padding: 0 !important;
    position: relative !important;
    background: 
        radial-gradient(ellipse at top, rgba(185, 28, 28, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(185, 28, 28, 0.03) 0%, transparent 50%),
        var(--modern-bg) !important;
    display: block !important;
    width: 100% !important;
    color: var(--modern-text) !important;
}

.modern-download-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    width: 100% !important;
    display: block !important;
}

/* Banner */
.modern-banner {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.04) 0%, rgba(248, 113, 113, 0.03) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 24px !important;
    padding: 48px !important;
    margin-bottom: 24px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 40px !important;
    align-items: center !important;
    border: 1px solid var(--modern-border) !important;
    box-shadow: var(--modern-shadow) !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modern-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.modern-banner__content {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
}

.modern-banner__badge {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: rgba(127, 29, 29, 0.15) !important;
    border: 1px solid rgba(127, 29, 29, 0.3) !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--modern-primary) !important;
    margin-bottom: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.modern-banner__title {
    margin: 0 0 12px 0 !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 900 !important;
    color: var(--modern-text) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    display: block !important;
}

.modern-banner__desc {
    margin: 0 !important;
    font-size: 1.1rem !important;
    color: var(--modern-text-light) !important;
    line-height: 1.6 !important;
    display: block !important;
}

.modern-banner__thumb {
    width: 180px !important;
    height: 180px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 2px solid var(--modern-border) !important;
    box-shadow: var(--modern-glow) !important;
    position: relative !important;
    z-index: 1 !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.modern-banner__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Telegram */
.modern-telegram {
    display: none !important;
}
.modern-telegram {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.1) 0%, rgba(185, 28, 28, 0.08) 100%) !important;
    border: 1px solid var(--modern-border) !important;
    border-radius: 20px !important;
    padding: 20px 24px !important;
    margin-bottom: 24px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modern-telegram__inner {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
}

.modern-telegram__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.modern-telegram__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-telegram__info strong {
    font-size: 1.1rem;
    color: var(--modern-text);
    font-weight: 700;
}

.modern-telegram__info span {
    font-size: 0.9rem;
    color: var(--modern-text-light);
}

.modern-telegram__btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--modern-primary) 0%, var(--modern-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.3);
}

.modern-telegram__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 29, 29, 0.35);
}

/* Download Card */
.modern-download-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modern-download-card__header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    gap: 16px !important;
    width: 100% !important;
}

.modern-download-card__title {
    margin: 0 !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--modern-text) !important;
    display: block !important;
}

.modern-download-card__timer {
    flex-shrink: 0 !important;
    display: block !important;
}

/* Timer */
.modern-timer {
    width: 80px !important;
    height: 80px !important;
    position: relative !important;
    display: block !important;
}

.modern-timer__ring {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: block !important;
}

.modern-timer__svg {
    width: 100% !important;
    height: 100% !important;
    transform: rotate(-90deg) !important;
    display: block !important;
}

.modern-timer__bg {
    stroke: rgba(127, 29, 29, 0.2) !important;
}

.modern-timer__progress {
    stroke: var(--modern-primary) !important;
    stroke-linecap: round !important;
    transition: stroke-dashoffset 0.5s ease !important;
    filter: drop-shadow(0 0 8px rgba(127, 29, 29, 0.4)) !important;
}

.modern-timer__content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 1.5rem !important;
    display: block !important;
}

/* Download Button */
.modern-download-card__body {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.modern-download-btn {
    width: 100% !important;
    max-width: 500px !important;
    padding: 24px 48px !important;
    background: linear-gradient(135deg, var(--modern-primary) 0%, var(--modern-primary-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    cursor: not-allowed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.3) !important;
    opacity: 0.7 !important;
    margin: 0 auto 16px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.modern-download-btn__loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.modern-download-btn.is-ready {
    cursor: pointer;
    opacity: 1;
    transform: scale(1.02);
}

.modern-download-btn.is-ready:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 32px rgba(127, 29, 29, 0.4);
}

.modern-download-btn.is-ready .modern-download-btn__loader {
    display: none;
}

.modern-download-btn__arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.modern-download-btn.is-ready:hover .modern-download-btn__arrow {
    transform: translateX(4px);
}

.modern-download-notice {
    margin: 0;
    font-size: 0.95rem;
    color: var(--modern-text-light);
}

/* Download Links */
.modern-download-links {
    margin-top: 40px !important;
    padding-top: 40px !important;
    border-top: 1px solid var(--modern-border) !important;
    animation: slideUp 0.5s ease-out !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modern-download-links__title {
    margin: 0 0 24px 0 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--modern-text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    visibility: visible !important;
}

.modern-download-links__icon {
    font-size: 1.5rem !important;
    display: inline-block !important;
}

.modern-download-links__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    visibility: visible !important;
}

.modern-download-links__empty {
    margin: 0;
    padding: 12px 14px;
    background: rgba(127, 29, 29, 0.06);
    border: 1px dashed rgba(127, 29, 29, 0.25);
    border-radius: 10px;
    color: var(--modern-text-light);
    font-weight: 600;
    text-align: center;
}

.modern-link-card {
    background: rgba(127, 29, 29, 0.06);
    border: 1px solid var(--modern-border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modern-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.08) 0%, rgba(185, 28, 28, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-link-card:hover {
    border-color: var(--modern-primary);
    transform: translateY(-2px);
    box-shadow: var(--modern-glow);
}

.modern-link-card:hover::before {
    opacity: 1;
}

.modern-link-card.is-featured {
    border-color: var(--modern-primary);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.12) 0%, rgba(185, 28, 28, 0.1) 100%);
}

.modern-link-card__badge {
    position: relative;
    z-index: 1;
}

.modern-link-card__badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(127, 29, 29, 0.15);
    border: 1px solid rgba(127, 29, 29, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--modern-primary);
}

.modern-link-card__main {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.modern-link-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.modern-link-card__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-link-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--modern-text);
}

.modern-link-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modern-link-card__tag {
    padding: 4px 10px;
    background: rgba(127, 29, 29, 0.12);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--modern-text-light);
    font-weight: 600;
}

.modern-link-card__tip {
    padding: 12px 16px;
    background: rgba(127, 29, 29, 0.1);
    border: 1px solid rgba(127, 29, 29, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--modern-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* Apps Section */
.modern-apps-section {
    margin-bottom: 32px;
}

.modern-apps-section__header {
    margin-bottom: 24px;
}

.modern-apps-section__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    color: var(--modern-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-apps-section__emoji {
    font-size: 2rem;
}

.modern-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* FAQ */
.modern-faq-section {
    background: rgba(127, 29, 29, 0.06);
    border: 1px solid var(--modern-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--modern-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-faq-section__title {
    margin: 0 0 32px 0;
    font-size: 2rem;
    font-weight: 900;
    color: var(--modern-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-faq-list {
    display: grid;
    gap: 16px;
}

.modern-faq-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--modern-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-faq-item:has(.modern-faq-question[aria-expanded="true"]) {
    border-color: var(--modern-primary);
    box-shadow: var(--modern-glow);
}

.modern-faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--modern-text);
    transition: background 0.3s ease;
}

.modern-faq-question:hover {
    background: rgba(127, 29, 29, 0.06);
}

.modern-faq-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 29, 29, 0.12);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--modern-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modern-faq-question[aria-expanded="true"] .modern-faq-toggle {
    transform: rotate(45deg);
    background: var(--modern-primary);
    color: #fff;
}

.modern-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.modern-faq-answer p {
    margin: 0;
    padding: 0 24px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--modern-text-light);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .modern-download-wrapper {
        padding: 24px 16px;
    }

    .modern-banner {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        text-align: center;
    }

    .modern-banner__thumb {
        margin: 0 auto;
    }

    .modern-telegram__inner {
        flex-direction: column;
        text-align: center;
    }

    .modern-download-card {
        padding: 32px 24px;
    }

    .modern-download-card__header {
        flex-direction: column;
        align-items: center;
    }

    .modern-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .modern-faq-section {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .modern-banner__title {
        font-size: 1.75rem;
    }

    .modern-download-btn {
        padding: 20px 32px;
        font-size: 1.1rem;
    }

    .modern-apps-grid {
        grid-template-columns: 1fr;
    }

    .modern-apps-section__title,
    .modern-faq-section__title {
        font-size: 1.5rem;
    }
}

/* Apply same homepage design - improved version */
.modern-apps-section {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 32px !important;
}

.modern-apps-section__header {
    margin-bottom: 24px !important;
}

.modern-apps-section__title {
    margin: 0 !important;
    font-size: 1.48rem !important;
    font-weight: 800 !important;
    color: var(--modern-text) !important;
    position: relative !important;
    padding-inline-start: 20px !important;
    padding-bottom: 10px !important;
}

.modern-apps-section__title::before {
    content: "" !important;
    position: absolute !important;
    inset-block: 6px !important;
    inset-inline-start: 0 !important;
    width: 7px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, var(--modern-primary), rgba(185, 28, 28, 0.7)) !important;
}

.modern-apps-section__title::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 50px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--modern-primary), rgba(185, 28, 28, 0.8)) !important;
}

.modern-apps-grid {
    --home-cards-desktop: 4 !important;
    --home-cards-mobile: 2 !important;
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(var(--home-cards-desktop), minmax(0, 1fr)) !important;
    contain: layout style paint !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cards - تصميم هادئ متناسق */
.modern-apps-grid .Play_apk-archive-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(127, 29, 29, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    isolation: isolate !important;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modern-apps-grid .Play_apk-archive-card:hover,
.modern-apps-grid .Play_apk-archive-card:focus-within {
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.12), 0 0 0 1px rgba(127, 29, 29, 0.15) !important;
    border-color: rgba(127, 29, 29, 0.4) !important;
    transform: translateY(-4px) !important;
}

.modern-apps-grid .Play_apk-archive-card::before {
    content: "" !important;
    position: absolute !important;
    inset: -1px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.12), rgba(185, 28, 28, 0.1)) !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease !important;
    z-index: 0 !important;
}

.modern-apps-grid .Play_apk-archive-card:hover::before,
.modern-apps-grid .Play_apk-archive-card:focus-within::before {
    opacity: 1 !important;
}

/* Cover - simple 2026 design */
.modern-apps-grid .Play_apk-archive-card__cover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    border-radius: 16px 16px 0 0 !important;
    background: radial-gradient(circle at 30% 30%, rgba(185, 28, 28, 0.05), transparent 60%), #fef2f2 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    padding: 24px !important;
    contain: layout style paint !important;
}

/* Images - simple without effects */
.modern-apps-grid .Play_apk-archive-card__image,
.modern-apps-grid .Play_apk-card-image-lazy {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.12) !important;
    padding: 0 !important;
    opacity: 0 !important;
    contain-intrinsic-size: 120px 120px !important;
    display: block !important;
}

.modern-apps-grid .Play_apk-archive-card__image.is-loaded,
.modern-apps-grid .Play_apk-archive-card__image.loaded,
.modern-apps-grid .Play_apk-archive-card__image[data-loaded],
.modern-apps-grid .Play_apk-card-image-lazy.is-loaded,
.modern-apps-grid .Play_apk-card-image-lazy.loaded,
.modern-apps-grid .Play_apk-card-image-lazy[data-loaded] {
    opacity: 1 !important;
    background: transparent !important;
}

.modern-apps-grid .Play_apk-archive-card__placeholder {
    align-items: center !important;
    background: rgba(127, 29, 29, 0.12) !important;
    color: #7F1D1D !important;
    display: flex !important;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
    font-weight: 800 !important;
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    justify-content: center !important;
    border-radius: 12px !important;
}

/* Body */
.modern-apps-grid .Play_apk-archive-card__body {
    padding: 14px 16px 16px !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(127, 29, 29, 0.12) !important;
}

/* Title */
.modern-apps-grid .Play_apk-archive-card__title {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    min-height: 2.8em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.modern-apps-grid .Play_apk-archive-card__title a {
    color: #7f1d1d !important;
    text-decoration: none !important;
    display: block !important;
    font-weight: 600 !important;
}

.modern-apps-grid .Play_apk-archive-card__title a:hover {
    color: #7F1D1D !important;
}

/* Make entire card clickable */
.modern-apps-grid .Play_apk-archive-card {
    position: relative !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.modern-apps-grid .Play_apk-archive-card__link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 12 !important;
    display: block !important;
    pointer-events: auto !important;
}

.modern-apps-grid .Play_apk-archive-card:hover {
    cursor: pointer !important;
}

/* Improve flags: شارة في صف العنوان أقصى الشمال */
.modern-apps-grid .Play_apk-archive-card__title-row .Play_apk-archive-card__flag {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.25) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.modern-apps-grid .Play_apk-archive-card__title-row .Play_apk-archive-card__flag--new {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
}

.modern-apps-grid .Play_apk-archive-card__title-row .Play_apk-archive-card__flag--updated {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25) !important;
}

/* Meta - simplified and elegant design */
.modern-apps-grid .Play_apk-archive-card__meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    width: 100% !important;
}

.modern-apps-grid .Play_apk-archive-card__meta-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    border: 1px solid rgba(127, 29, 29, 0.15) !important;
    background: rgba(127, 29, 29, 0.06) !important;
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #7F1D1D !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

.modern-apps-grid .Play_apk-archive-card__meta-item--size {
    background: rgba(127, 29, 29, 0.1) !important;
    border-color: rgba(127, 29, 29, 0.2) !important;
    color: #B91C1C !important;
}

.modern-apps-grid .Play_apk-archive-card__meta-item--version {
    background: rgba(185, 28, 28, 0.1) !important;
    border-color: rgba(185, 28, 28, 0.2) !important;
    color: #7F1D1D !important;
}

.modern-apps-grid .Play_apk-archive-card__meta-icon {
    font-size: 0.65rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 3px !important;
    background: rgba(127, 29, 29, 0.1) !important;
    flex-shrink: 0 !important;
    color: inherit !important;
}

.modern-apps-grid .Play_apk-archive-card__meta-item--size .Play_apk-archive-card__meta-icon {
    background: rgba(127, 29, 29, 0.15) !important;
    color: #B91C1C !important;
}

.modern-apps-grid .Play_apk-archive-card__meta-item--version .Play_apk-archive-card__meta-icon {
    background: rgba(185, 28, 28, 0.15) !important;
    color: #7F1D1D !important;
}

/* Hide size and version boxes directly under image on download page */
.modern-apps-grid .Play_apk-archive-card__hover {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide size and version boxes at bottom of card as well */
.modern-apps-grid .Play_apk-archive-card__meta,
.modern-apps-grid .Play_apk-archive-card__meta-item {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

/* Simple Download Button */
.modern-simple-download {
    text-align: center !important;
    margin: 32px 0 !important;
    padding: 0 !important;
}

.modern-simple-download-btn {
    width: 100% !important;
    max-width: 400px !important;
    padding: 16px 32px !important;
    background: rgba(185, 28, 28, 0.12) !important;
    color: #7f1d1d !important;
    border: 1px solid rgba(185, 28, 28, 0.2) !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: not-allowed !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px !important;
    opacity: 0.6 !important;
}

.modern-simple-download-btn.is-ready {
    cursor: pointer !important;
    opacity: 1 !important;
    background: var(--modern-primary) !important;
    color: #fff !important;
    border-color: var(--modern-primary-dark) !important;
}

.modern-simple-download-btn.is-ready:hover {
    background: var(--modern-primary-dark) !important;
    box-shadow: 0 6px 20px rgba(127, 29, 29, 0.35);
}

.modern-simple-download-notice {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: var(--modern-text-light) !important;
}

/* Hide deleted sections */
.modern-telegram {
    display: none !important;
}

.modern-download-card {
    display: none !important;
}

/* Simple download button */
.modern-simple-download {
    text-align: center !important;
    margin: 32px 0 !important;
    padding: 0 !important;
}

.modern-simple-download-btn {
    width: 100% !important;
    max-width: 400px !important;
    padding: 16px 32px !important;
    background: rgba(185, 28, 28, 0.12) !important;
    color: #7f1d1d !important;
    border: 1px solid rgba(185, 28, 28, 0.2) !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: not-allowed !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px !important;
    opacity: 0.6 !important;
}

.modern-simple-download-btn.is-ready {
    cursor: pointer !important;
    opacity: 1 !important;
    background: var(--modern-primary) !important;
    color: #fff !important;
    border-color: var(--modern-primary-dark) !important;
}

.modern-simple-download-btn.is-ready:hover {
    background: var(--modern-primary-dark) !important;
    box-shadow: 0 6px 20px rgba(127, 29, 29, 0.35);
}

.modern-simple-download-notice {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: var(--modern-text-light) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .modern-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .modern-apps-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Quick Comments Header - Mobile - Simple and in one line */
    .dl-quick-comments-header {
        padding: 0 15px !important;
        margin-bottom: 16px !important;
    }
    
    .dl-quick-comments-header > div:first-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 16px !important;
        border-radius: 10px !important;
        justify-content: center !important;
    }
    
    .dl-quick-comments-title {
        font-size: 1.1rem !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    .dl-quick-comments-subtitle {
        font-size: 0.85rem !important;
        padding: 0 10px !important;
    }
    
    .dl-quick-comments-subtitle > span {
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center !important;
    }
    
    .dl-quick-comments-subtitle > span > span:not(:first-child):not(:last-child) {
        white-space: normal !important;
    }
    
    .dl-quick-comments-header > div:last-child {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center !important;
    }
    
    /* Quick Comments Buttons - Full width on mobile */
    .dl-quick-comments-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .dl-quick-comment-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding: 16px 18px !important;
        font-size: 0.9rem !important;
        min-height: 70px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    .dl-quick-comments-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 769px) {
    /* Desktop - Keep original design but allow flexibility */
    .dl-quick-comments-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .dl-quick-comment-btn {
        width: auto !important;
        max-width: 280px !important;
        min-width: 200px !important;
    }
}

/* ============================================
   نصائح تحت رابط التحميل — 3 مربعات احترافية
   ============================================ */
.dl-tips-new {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(127, 29, 29, 0.2);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.dl-tips-new__box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(127, 29, 29, 0.06);
    border: 1px solid rgba(127, 29, 29, 0.2);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dl-tips-new__box:hover {
    border-color: rgba(127, 29, 29, 0.35);
    box-shadow: 0 4px 16px rgba(127, 29, 29, 0.12);
}

.dl-tips-new__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 29, 29, 0.15);
    color: #7F1D1D;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(127, 29, 29, 0.25);
}

.dl-tips-new__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fff;
    font-weight: 500;
}

@media (min-width: 600px) {
    .dl-tips-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* شارك التطبيق / اللعبة — بطاقات داكنة + إطار فيروزي (صفحة التحميل) */
.dl-share-block--premium {
    margin-top: 32px;
    padding: 0;
    text-align: center;
}

.dl-share-block__shell {
    position: relative;
    padding: 3px;
    border-radius: 20px 28px 22px 24px;
    background: linear-gradient(
        135deg,
        rgba(45, 212, 191, 0.55) 0%,
        rgba(139, 92, 246, 0.35) 45%,
        rgba(14, 116, 144, 0.5) 100%
    );
    box-shadow:
        0 0 0 1px rgba(94, 234, 212, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.22);
}

.dl-share-block__shell::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 17px 25px 19px 21px;
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 55%, #0c1929 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 0;
}

.dl-share-block__head {
    position: relative;
    z-index: 1;
    padding: 20px 18px 8px;
}

.dl-share-block__badge {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5eead4;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-radius: 999px;
}

.dl-share-block__title {
    margin: 0 0 8px 0;
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.dl-share-block__sub {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.92);
    font-weight: 500;
}

.dl-share-block__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 14px 18px;
}

@media (min-width: 520px) {
    .dl-share-block__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        padding-inline: 16px;
    }
}

.dl-share-block__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 104px;
    padding: 14px 10px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.65);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.dl-share-block__card-shine {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.2) 0%, transparent 55%);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.dl-share-block__card:hover .dl-share-block__card-shine,
.dl-share-block__card:focus-visible .dl-share-block__card-shine {
    opacity: 1;
}

.dl-share-block__card:hover,
.dl-share-block__card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    outline: none;
}

.dl-share-block__card-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 6px 16px rgba(0, 0, 0, 0.25);
}

.dl-share-block__card-name {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: rgba(248, 250, 252, 0.96);
}

.dl-share-block__card--facebook {
    border-color: rgba(24, 119, 242, 0.45);
    box-shadow: 0 0 24px rgba(24, 119, 242, 0.12);
}

.dl-share-block__card--facebook .dl-share-block__card-icon {
    background: linear-gradient(145deg, #3b82f6 0%, #1877f2 50%, #1d4ed8 100%);
}

.dl-share-block__card--facebook:hover,
.dl-share-block__card--facebook:focus-visible {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 12px 32px rgba(24, 119, 242, 0.35);
}

.dl-share-block__card--whatsapp {
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.1);
}

.dl-share-block__card--whatsapp .dl-share-block__card-icon {
    background: linear-gradient(145deg, #4ade80 0%, #25d366 45%, #15803d 100%);
}

.dl-share-block__card--whatsapp:hover,
.dl-share-block__card--whatsapp:focus-visible {
    border-color: rgba(74, 222, 128, 0.6);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.32);
}

.dl-share-block__card--twitter {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.12);
}

.dl-share-block__card--twitter .dl-share-block__card-icon {
    background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 45%, #0369a1 100%);
}

.dl-share-block__card--twitter:hover,
.dl-share-block__card--twitter:focus-visible {
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.3);
}

.dl-share-block__card--telegram {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 24px rgba(8, 145, 178, 0.15);
}

.dl-share-block__card--telegram .dl-share-block__card-icon {
    background: linear-gradient(145deg, #22d3ee 0%, #0891b2 50%, #0e7490 100%);
}

.dl-share-block__card--telegram:hover,
.dl-share-block__card--telegram:focus-visible {
    border-color: rgba(94, 234, 212, 0.55);
    box-shadow: 0 12px 32px rgba(8, 145, 178, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .dl-share-block__card {
        transition: none;
    }
    .dl-share-block__card:hover,
    .dl-share-block__card:focus-visible {
        transform: none;
    }
}

/* الأقسام الرئيسية — أسفل زر التحميل: إطارات متداخلة + شرائح (نفس لغة التصميم) */
.dl-cats-nest {
    margin-top: 22px;
    width: 100%;
    max-width: 100%;
}

.dl-cats-nest__shell {
    padding: 4px;
    border-radius: 22px 28px 24px 26px;
    background: linear-gradient(
        140deg,
        rgba(45, 212, 191, 0.5) 0%,
        rgba(139, 92, 246, 0.38) 42%,
        rgba(14, 116, 144, 0.55) 100%
    );
    box-shadow:
        0 0 0 1px rgba(94, 234, 212, 0.15),
        0 14px 40px rgba(0, 0, 0, 0.2);
}

.dl-cats-nest__layer--b {
    padding: 3px;
    border-radius: 19px 25px 21px 23px;
    background: linear-gradient(
        165deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(15, 23, 42, 0.98) 100%
    );
    transform: rotate(-0.35deg);
    transform-origin: center;
}

.dl-cats-nest__layer--a {
    padding: 3px;
    border-radius: 17px 23px 19px 21px;
    background: linear-gradient(
        125deg,
        rgba(45, 212, 191, 0.22) 0%,
        rgba(99, 102, 241, 0.12) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
    transform: rotate(0.45deg);
    transform-origin: center;
}

.dl-cats-nest__inner {
    border-radius: 15px 21px 17px 19px;
    background: linear-gradient(168deg, #1e293b 0%, #0f172a 52%, #0c1929 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.dl-cats-nest__head {
    text-align: center;
    padding: 16px 16px 6px;
}

.dl-cats-nest__badge {
    display: inline-block;
    padding: 4px 11px;
    margin-bottom: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
}

.dl-cats-nest__title {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.dl-cats-nest__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 8px 6px;
    padding: 10px 12px 18px;
}

.dl-cats-nest__chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid rgba(94, 234, 212, 0.28);
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow:
        0 2px 0 rgba(45, 212, 191, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.28);
    z-index: calc(5 + min(var(--nest-i, 1), 40));
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* تداخل بصري خفيف بين الشرائح المجاورة */
@media (min-width: 400px) {
    .dl-cats-nest__chip {
        margin-inline-start: -4px;
    }
    .dl-cats-nest__chip:first-child {
        margin-inline-start: 0;
    }
}

.dl-cats-nest__chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(28ch, 100%);
}

.dl-cats-nest__chip:hover,
.dl-cats-nest__chip:focus-visible {
    transform: translateY(-3px) scale(1.02);
    z-index: 50 !important;
    border-color: rgba(94, 234, 212, 0.55);
    box-shadow:
        0 0 0 1px rgba(45, 212, 191, 0.2),
        0 10px 26px rgba(0, 0, 0, 0.35);
    outline: none;
}

@media (max-width: 520px) {
    .dl-cats-nest__chip-text {
        max-width: 20ch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-cats-nest__layer--b,
    .dl-cats-nest__layer--a {
        transform: none;
    }
    .dl-cats-nest__chip:hover,
    .dl-cats-nest__chip:focus-visible {
        transform: none;
    }
}
