/* ===========================================
   MODNIX — MOD DETAIL PAGE (Complete & Final)
   =========================================== */

.mod-detail-shell {
    background: #0f0f10;
    min-height: 100vh;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- 1. Pro Banner with Overlay --- */
.mod-banner-pro {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.mod-banner-pro__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 16, 0.3) 0%, rgba(15, 15, 16, 0.95) 100%);
    z-index: 1;
}

/* --- 2. Main 3-Column Layout --- */
.mod-main-layout {
    max-width: 1600px;
    margin: -80px auto 0;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* --- 3. Header Card --- */
.mod-header-card {
    background: #1a1a1c;
    border: 1px solid #2a2a2e;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mod-header-card__icon {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f0f10;
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: #10b981;
    background-size: cover;
    background-position: center;
}

.mod-header-card__info { flex: 1; min-width: 0; }
.mod-header-card__title { font-size: 32px; font-weight: 800; color: #fff; margin: 0 0 8px 0; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.mod-header-card__author { font-size: 15px; color: #94a3b8; margin-bottom: 16px; }
.mod-header-card__author span { color: #10b981; font-weight: 600; }

.mod-header-card__meta { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.mod-header-card__stat { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #94a3b8; }
.mod-header-card__stat i { color: #10b981; }
.mod-header-card__stat strong { color: #fff; font-weight: 700; }

.mod-header-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag { background: #2a2a2e; color: #cbd5e1; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid #3a3a3e; }

.mod-header-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- 4. Buttons --- */
.btn-primary { background: #10b981; color: white; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: #059669; transform: translateY(-2px); }
.btn-primary:disabled { background: #059669; opacity: 0.7; cursor: wait; }

.action-btn { background: #2a2a2e; color: #e0e0e0; padding: 12px 16px; border-radius: 8px; font-weight: 600; border: 1px solid #3a3a3e; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.action-btn:hover { background: #3a3a3e; border-color: #10b981; color: #10b981; }
.action-btn.saved { background: rgba(239, 68, 68, 0.15); border-color: #ef4444; color: #ef4444; }
.action-btn.saved i { color: #ef4444; }
.action-btn--danger:hover { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* --- 5. Tabs --- */
.mod-tabs { 
    display: flex; 
    gap: 4px; 
    border-bottom: 2px solid #2a2a2e; 
    margin-bottom: 24px; 
    overflow-x: visible;
    flex-wrap: wrap;
}

.mod-tab { 
    padding: 12px 20px; 
    background: none; 
    border: none; 
    color: #94a3b8; 
    font-weight: 600; 
    cursor: pointer; 
    border-bottom: 3px solid transparent; 
    margin-bottom: -2px; 
    white-space: nowrap; 
    font-size: 14px; 
    transition: all 0.2s; 
    text-decoration: none; 
}

.mod-tab:hover { color: #fff; }
.mod-tab.active { color: #10b981; border-bottom-color: #10b981; }

/* --- 6. Content Sections --- */
.mod-section { background: #1a1a1c; border: 1px solid #2a2a2e; border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.section-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 20px 0; padding-bottom: 12px; border-bottom: 1px solid #2a2a2e; }
.mod-description-html { font-size: 15px; line-height: 1.8; color: #d0d0d0; }
.mod-description-html p { margin-bottom: 16px; }
.mod-description-html img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* --- 7. Versions List --- */
.version-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #0f0f10; border: 1px solid #2a2a2e; border-radius: 8px; margin-bottom: 12px; transition: all 0.2s; }
.version-item:hover { border-color: #10b981; }
.version-item__info { display: flex; flex-direction: column; gap: 4px; }
.version-item__name { font-size: 15px; font-weight: 700; color: #fff; }
.version-item__meta { font-size: 13px; color: #94a3b8; }
.badge--latest { background: rgba(16, 185, 129, 0.15); color: #10b981; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-left: 8px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- 8. Sidebars --- */
.mod-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: #1a1a1c; border: 1px solid #2a2a2e; border-radius: 12px; padding: 20px; }
.sidebar-card__title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 16px 0; padding-bottom: 12px; border-bottom: 1px solid #2a2a2e; }

.mod-info { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; font-size: 14px; margin-bottom: 16px; }
.mod-info dt { color: #94a3b8; font-weight: 500; }
.mod-info dd { color: #fff; font-weight: 600; margin: 0; }

.btn-block { width: 100%; justify-content: center; text-align: center; }
.btn-secondary { background: #2a2a2e; color: #e0e0e0; border: 1px solid #3a3a3e; padding: 10px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s; }
.btn-secondary:hover { background: #3a3a3e; border-color: #10b981; }

/* --- 9. Promo & Ad Cards --- */
.promo-card, .ad-card {
    position: relative; border-radius: 12px; overflow: hidden;
    background-color: #0f1420; background-size: cover; background-position: center;
    min-height: 200px; display: flex; flex-direction: column; justify-content: space-between;
    text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #2a2a2e;
}
.promo-card:hover, .ad-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); border-color: #10b981; }
.promo-card__overlay, .ad-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 20, 0.95) 0%, rgba(10, 12, 20, 0.4) 100%); z-index: 1; }
.promo-card__content, .ad-card__content { position: relative; z-index: 2; padding: 20px; }
.promo-card__logo { font-size: 24px; font-weight: 900; margin: 0 0 8px; }
.text-accent { color: #10b981; }
.promo-card__tagline { font-size: 14px; color: #cbd5e1; margin: 0; }
.ad-card__title { font-size: 18px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.ad-card__subtitle { font-size: 13px; color: #cbd5e1; margin-bottom: 16px; }

/* --- 9b. Telegram / Community Ad Card variant ---
   These 3 classes (.btn-discord, .ad-card--community, .ad-card__icon-wrapper)
   are used in the markup but previously had NO CSS rules anywhere, which is why
   the card rendered as flat, full-width, unstyled color bars instead of a proper card. */
.ad-card--community {
    padding: 24px;
    align-items: flex-start;
    gap: 12px;
}

.ad-card__icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s;
    margin-top: 4px;
}

.btn-discord:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* --- 10. Trending Widget --- */
.trending-widget { background: #1a1a1c; border: 1px solid #2a2a2e; border-radius: 12px; padding: 20px; }
.trending-widget__title { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 16px 0; }
.trending-widget__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.trending-widget__list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.trending-widget__icon { width: 40px; height: 40px; border-radius: 8px; background: #2a2a2e; background-size: cover; background-position: center; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #10b981; font-size: 16px; }
.trending-widget__info { flex: 1; min-width: 0; }
.trending-widget__name { font-size: 13px; font-weight: 600; color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trending-widget__downloads { font-size: 12px; color: #94a3b8; }

/* ==========================================
   GALLERY / SCREENSHOTS SECTION
   ========================================== */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #0f0f10;
    border: 1px solid #2a2a2e;
    transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: #10b981;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay i {
    color: #fff;
    font-size: 28px;
    background: rgba(16, 185, 129, 0.9);
    padding: 12px;
    border-radius: 50%;
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100000;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
    transform: scale(1.1);
}

.lightbox-close i {
    font-size: 20px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 6px;
    text-align: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================
   DOWNLOAD MODAL & CUSTOM DROPDOWNS
   ========================================== */
.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(6px); 
    z-index: 9999; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.3s; 
}

.modal-overlay.show { display: flex; opacity: 1; }

.modal-box { 
    background: #1a1a1c; 
    border: 1px solid #2a2a2e; 
    border-radius: 16px; 
    width: 100%; 
    max-width: 600px; 
    max-height: 90vh; 
    overflow-y: auto; 
    box-shadow: 0 25px 60px rgba(0,0,0,0.6); 
}

.modal-box__header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 24px; 
    border-bottom: 1px solid #2a2a2e; 
}

.modal-box__title-group { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.modal-box__icon { 
    width: 56px; 
    height: 56px; 
    border-radius: 12px; 
    background-color: #2a2a2e; 
    background-size: cover; 
    background-position: center; 
    flex-shrink: 0;
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #10b981;
    overflow: hidden;
}

.modal-box__icon--danger { 
    background: rgba(239, 68, 68, 0.15); 
    color: #ef4444; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    border: none;
}

.modal-box__close { 
    background: #2a2a2e; 
    border: none; 
    color: #94a3b8; 
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s; 
}

.modal-box__close:hover { 
    background: #ef4444; 
    color: #fff;
    transform: rotate(90deg);
}

.modal-box__body { padding: 24px; }

/* Download Header */
.download-header {
    text-align: center;
    margin-bottom: 24px;
}

.download-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.download-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Install Button */
.btn-install-app {
    background: #10b981;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-install-app:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-install-app i {
    font-size: 20px;
}

/* Divider */
.download-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.download-divider::before,
.download-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a2e;
}

/* ✅ CUSTOM DROPDOWNS */
.download-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.selector-group {
    position: relative;
}

.selector-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #0f0f10;
    border: 2px solid #2a2a2e;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.custom-dropdown__trigger:hover {
    border-color: #3a3a3e;
}

.custom-dropdown.open .custom-dropdown__trigger {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.custom-dropdown__value {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.custom-dropdown__arrow {
    color: #10b981;
    font-size: 12px;
    transition: transform 0.2s;
}

.custom-dropdown.open .custom-dropdown__arrow {
    transform: rotate(180deg);
}

.custom-dropdown__menu {
    position: fixed; /* escapes .modal-box's overflow:auto so it never inflates the card or adds scrollbars */
    top: -9999px;
    left: -9999px;
    background: #1a1a1c;
    border: 1px solid #2a2a2e;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10050; /* above .modal-overlay (9999) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.custom-dropdown.open .custom-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-dropdown__option {
    padding: 12px 16px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #2a2a2e;
}

.custom-dropdown__option:last-child {
    border-bottom: none;
}

.custom-dropdown__option:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.custom-dropdown__option.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-weight: 600;
}

/* Scrollbar برای dropdown */
.custom-dropdown__menu::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown__menu::-webkit-scrollbar-track {
    background: #0f0f10;
    border-radius: 3px;
}

.custom-dropdown__menu::-webkit-scrollbar-thumb {
    background: #2a2a2e;
    border-radius: 3px;
}

.custom-dropdown__menu::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Version List */
.version-list {
    background: #0f0f10;
    border: 1px solid #2a2a2e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.version-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #2a2a2e;
    cursor: pointer;
    transition: all 0.2s;
}

.version-option:last-child {
    border-bottom: none;
}

.version-option:hover {
    background: #1a1a1c;
}

.version-option.active {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
}

.version-option__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version-option__number {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.version-option__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.version-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Download Button */
.btn-download-large {
    background: #10b981;
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-download-large:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-download-large i {
    font-size: 20px;
}

/* Form Input */
.form-input { 
    width: 100%; 
    padding: 10px 14px; 
    background: #0f0f10; 
    border: 1px solid #2a2a2e; 
    border-radius: 8px; 
    color: #fff; 
    font-size: 14px; 
    margin-bottom: 12px; 
    box-sizing: border-box;
}

.form-input:focus { outline: none; border-color: #10b981; }

/* ==========================================
   TOAST NOTIFICATION ("Coming Soon" — replaces alert())
   ========================================== */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #1a1a1c;
    border: 1px solid #2a2a2e;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 100050; /* above modal-overlay and dropdown menus */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-notification__progress {
    height: 4px;
    background: #0f0f10;
}

.toast-notification__progress-bar {
    height: 100%;
    width: 100%;
    background: #10b981;
}

.toast-notification__body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
}

.toast-notification__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.toast-notification__content {
    flex: 1;
    min-width: 0;
}

.toast-notification__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.toast-notification__message {
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 12px 0;
}

.toast-notification__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.toast-notification__cta:hover {
    background: #059669;
    transform: translateY(-1px);
}

.toast-notification__close {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.toast-notification__close:hover {
    background: #2a2a2e;
    color: #fff;
}

@media (max-width: 480px) {
    .toast-notification {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* --- 12. Responsive Design --- */
@media (max-width: 1200px) {
    .mod-main-layout { grid-template-columns: 1fr 320px; }
    .mod-sidebar.left-rail { display: none; }
}

@media (max-width: 900px) {
    .mod-main-layout { grid-template-columns: 1fr; padding: 0 16px 40px; margin-top: -40px; }
    .mod-sidebar.right-rail { order: 2; }
    .mod-banner-pro { height: 240px; }
    .mod-header-card { flex-direction: column; align-items: center; text-align: center; }
    .mod-header-card__actions { justify-content: center; }
    .mod-header-card__meta { justify-content: center; }
    .mod-header-card__tags { justify-content: center; }
    .screenshot-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    
    .download-selectors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lightbox-img {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
    
    .lightbox-caption {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .modal-box {
        max-width: 95%;
        margin: 0 10px;
    }
}

@media (max-width: 600px) {
    .screenshot-grid { grid-template-columns: 1fr; }
    .lightbox-close {
        width: 40px;
        height: 40px;
    }
    
    .modal-box__header {
        padding: 16px;
    }
    
    .modal-box__body {
        padding: 16px;
    }
}
/* NOTE: custom-dropdown rules consolidated above (section 11) — duplicate block removed. */