/* ============================================
   SINGLE POST LAYOUT + STICKY SIDEBAR
============================================ */

.single-post-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 12px;
}

.single-post-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.single-post-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgb(0 0 0 / 11%);
    padding: 1rem;
    box-sizing: border-box;
}

.single-post-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
    overflow: hidden;
}

.single-post-full-width {
    width: 100%;
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgb(0 0 0 / 11%);
    padding: 3rem 2rem;
}

@media (max-width: 992px) {
    .single-post-container {
        flex-direction: column;
        align-items: stretch;
    }

    .single-post-sidebar {
        position: static;
        flex: 1 0 auto;
        max-width: none;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 576px) {
    .single-post-wrapper { 
        padding: 5px; 
        gap: 1rem; 
    }
    
    .single-post-container { 
        gap: 1rem; 
    }
    
    .single-post-content,
    .single-post-sidebar,
    .single-post-full-width {
        border-radius: var(--radius-md);
        padding: 1.5rem;
    }
}
/* ============================================
   TABLE OF CONTENTS - VERTICALLY CENTERED
============================================ */

.toc-button,
#toc-button {
    position: fixed !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #059669 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 99998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toc-button svg,
#toc-button svg {
    width: 24px !important;
    height: 24px !important;
    pointer-events: none !important;
}

.toc-button:hover,
#toc-button:hover {
    transform: translateY(-50%) scale(1.1) !important;
    background: #065f46 !important;
}

.toc-button:active,
#toc-button:active {
    transform: translateY(-50%) scale(0.95) !important;
}

body.toc-open .toc-button,
body.toc-open #toc-button {
    opacity: 0 !important;
    pointer-events: none !important;
}

.toc-panel,
#toc-panel {
    position: fixed !important;
    top: 0 !important;
    right: -350px !important;
    width: 320px !important;
    max-width: 90vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 100001 !important;
    padding: 25px 20px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: right 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.toc-panel.open,
#toc-panel.open {
    right: 0 !important;
}

.toc-panel-backdrop,
#toc-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    cursor: pointer !important;
}

.toc-panel-backdrop.show,
#toc-backdrop.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.toc-panel h2,
#toc-panel h2 {
    margin: 0 0 20px 0 !important;
    padding: 0 0 12px 0 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.toc-panel ul,
#toc-panel ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toc-panel li,
#toc-panel li {
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.toc-panel a,
#toc-panel a {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    background: transparent !important;
}

.toc-panel a:hover,
#toc-panel a:hover {
    background: rgba(109, 74, 255, 0.1) !important;
    color: #6d4aff !important;
    transform: translateX(4px) !important;
}

.toc-level-2 a { padding-left: 12px !important; }
.toc-level-3 a { padding-left: 24px !important; font-size: 0.9rem !important; }
.toc-level-4 a { padding-left: 36px !important; font-size: 0.85rem !important; }
.toc-level-5 a, .toc-level-6 a { padding-left: 48px !important; font-size: 0.85rem !important; }

.toc-panel::-webkit-scrollbar,
#toc-panel::-webkit-scrollbar { width: 6px !important; }

.toc-panel::-webkit-scrollbar-track,
#toc-panel::-webkit-scrollbar-track { background: #f1f1f1 !important; }

.toc-panel::-webkit-scrollbar-thumb,
#toc-panel::-webkit-scrollbar-thumb { background: #888 !important; border-radius: 3px !important; }

.toc-panel::-webkit-scrollbar-thumb:hover,
#toc-panel::-webkit-scrollbar-thumb:hover { background: #555 !important; }

body.toc-open { overflow: hidden !important; }

@media (max-width: 768px) {
    .toc-button, #toc-button { right: 15px !important; width: 45px !important; height: 45px !important; }
    .toc-button svg, #toc-button svg { width: 20px !important; height: 20px !important; }
    .toc-panel, #toc-panel { width: 280px !important; padding: 20px 15px !important; }
    .toc-panel h2, #toc-panel h2 { font-size: 1.1rem !important; }
}

@media (max-width: 480px) {
    .toc-panel, #toc-panel { width: 100vw !important; right: -100vw !important; }
    .toc-panel.open, #toc-panel.open { right: 0 !important; }
}

/* ============================================
   APP GRID SECTIONS - Related & Last Updated
============================================ */

.related-posts-section,
.last-updated-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 10px 0;
    padding: 0;
}

.app-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.3px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.app-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 0;
    min-height: 95px;
    overflow: hidden;
    box-sizing: border-box;
}

.app-card-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
    min-width: 0;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #6d4aff;
}

.app-card:hover .app-title { color: #6d4aff; }

.app-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 12px;
    margin-top: 2px;
    background: #f8fafc;
}

.app-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
}

.app-icon-placeholder svg {
    width: 24px;
    height: 24px;
    stroke: #94a3b8;
}

.app-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.app-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(14px * 1.4 * 3);
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.app-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.app-type.free { color: #065f46; background-color: #d1fae5; }
.app-type.paid { color: #991b1b; background-color: #fee2e2; }
.app-type.package { color: #4c1d95; background-color: #ede9fe; }

/* ============================================
   COMMENTS SECTION
============================================ */

.comments-section { margin-top: 5rem; }

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list > li { margin-bottom: 2.5rem; }

.comment-body {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
}

.comment-body::after {
    content: "USER";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #757575;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
}

.post-author-comment .comment-body {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.post-author-comment .comment-body::after {
    content: "ADMIN";
    background: #4caf50;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 7rem;
}

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-author .fn {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.comment-metadata {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-metadata a {
    color: #666;
    text-decoration: none;
}

.comment-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.children {
    list-style: none;
    padding-left: 4rem;
    margin-top: 1.5rem;
    border-left: 3px solid #2196f3;
}

.must-log-in {
    background: #e5e3e0;
    border: 2px solid #23891b;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    font-size: 1.7rem;
    margin: 2rem 0;
}

.must-log-in a {
    color: #6c0700;
    font-weight: 700;
    text-decoration: underline;
}

.must-log-in a:hover {
    background: #f44336;
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.comment-respond {
    max-width: 120rem;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.comment-respond h3 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 1rem;
}

.logged-in-as {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.logged-in-as a {
    color: #6c1a06;
    font-weight: 700;
}

.comment-form p { margin-bottom: 2rem; }

.comment-form label {
    display: block;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #d9d9d9;
    border-radius: var(--radius-lg);
    font-size: 1.6rem;
    color: #333;
}

.comment-form .form-submit input {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: opacity 0.3s;
}

.comment-form .form-submit input:hover { opacity: 0.9; }
.comment-form .comment-notes { font-size: 1.4rem; color: #666; }
.comments-title { color: #1a1a1a; }


.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin: 0;
    font-weight: 700;
}

/* ============================================
   TAGS
============================================ */

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0 0 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 12px;
    margin-bottom: 0;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
}

.post-tags .tags-icon {
    flex-shrink: 0;
    color: #666;
    width: 16px;
    height: 16px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
    margin: 0;
}

.post-tag:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

#comments-section,
#related-section { margin-top: 10px; min-height: 150px; }

/* ============================================
   REDESIGNED APP HEADER - SOFTWARE STYLE
============================================ */

.app-header-section {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.app-header-main {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 5px;
}

.app-icon-wrapper {
    flex-shrink: 0;
    position: relative;
    width: 112px;
    height: 112px;
}

.app-icon-large {
    width: 112px;
    height: 112px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.app-icon-placeholder-large {
    width: 112px;
    height: 112px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.app-info-main {
    flex: 1;
    min-width: 280px;
}

.app-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.app-title-main {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

/* UPDATED: Badges moved to top right corner of header */
.app-badges {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-free {
    background: #dcfce7;
    color: #166534;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-paid {
    background: #fee2e2;
    color: #991b1b;
    padding: 1px 10px 0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.badge-package {
    background: #ede9fe;
    color: #5b21b6;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-opensource {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.app-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.app-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-meta-item svg {
    width: 16px;
    height: 16px;
    color: #0d9e00;
}

.app-meta-item a {
    color: #065f46;
    text-decoration: none;
    font-weight: 600;
}

.app-meta-item a:hover { text-decoration: underline; }

.author-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0d9e00;
}

.app-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.rating-number {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.rating-count {
    font-size: 14px;
    color: #64748b;
}

.stats-divider {
    width: 1px;
    height: 20px;
    background: #d1d5db;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.stat-item svg {
    width: 16px;
    height: 16px;
}

.stat-item .stat-value {
    font-weight: 700;
    color: #0f172a;
}

.app-description-short {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.publisher-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    margin-top: 10px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.publisher-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.publisher-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.publisher-details {
    display: flex;
    flex-direction: column;
}

.publisher-label {
    font-size: 12px;
    color: #64748b;
}

.publisher-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.publisher-name:hover { color: #0d9e00; }

/* FIXED: Verified Publisher tag - improved contrast */
.verified-publisher-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #047857;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* UPDATED: Action buttons row - responsive and single line */
.action-buttons-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.btn-download-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #0d9e00 0%, #0b8a00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(13, 158, 0, 0.3);
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 200px;
}

.btn-download-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 158, 0, 0.4);
    color: white;
}

.btn-download-main svg {
    width: 22px;
    height: 22px;
}

.btn-text-group { text-align: left; }
.btn-text-main { display: block; font-size: 16px; }
.btn-text-sub { display: block; font-size: 12px; opacity: 0.85; font-weight: 400; }

.btn-telegram {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    color: white;
}

.action-icon-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    flex-shrink: 0;
}

.action-icon-btn:hover {
    border-color: #0d9e00;
    color: #0d9e00;
    background: #f0fdf4;
}

.action-icon-btn.favorited {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}
.action-icon-btn.is-favorite svg,
.action-icon-btn.active svg,
.action-icon-btn.favorited svg {
    fill: #ef4444;
}
.action-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* UPDATED: Quick links - single line on PC, responsive on mobile */
.quick-links-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-links-row::-webkit-scrollbar {
    display: none;
}

.quick-link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.quick-link-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.quick-link-item.video-guide { color: #dc2626; }
.quick-link-item.video-guide:hover { color: #b91c1c; }

/* FIXED: Report Broken Link - improved contrast */
.quick-link-item.report-link { color: #c2410c; }
.quick-link-item.report-link:hover { color: #9a3412; }

/* FIXED: How to link - improved contrast */
.quick-link-item.how-to { color: #1d4ed8; }
.quick-link-item.how-to:hover { color: #1e40af; }

/* FIXED: Verified Safe - improved contrast */
.quick-link-item.verified { color: #047857; cursor: default; }

.quick-links-divider { 
    color: #d1d5db; 
    flex-shrink: 0;
}

/* ============================================
   SCREENSHOTS GALLERY
============================================ */

.screenshots-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 14px;
    overflow: hidden;
}

.screenshots-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.screenshots-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshots-header h2 svg {
    width: 20px;
    height: 20px;
    color: #8b5cf6;
}

.screenshots-gallery {
    display: flex;
    gap: 16px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-gallery::-webkit-scrollbar { height: 6px; }
.screenshots-gallery::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.screenshot-item {
    flex-shrink: 0;
    width: 320px;
    height: 192px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    background: #1e293b;
    transition: all 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshots-hint {
    padding: 0 20px 16px;
    font-size: 12px;
    color: #64748b;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active { display: flex; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 70px; }

.lightbox-content { max-width: 1200px; width: 100%; }
.lightbox-content img { width: 100%; height: auto; border-radius: 12px; }

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 16px;
    font-size: 16px;
}
/* ============================================
   RESPONSIVE IMAGE GALLERY GRID
============================================ */

.screenshots-gallery-grid {
    display: grid;
    gap: 16px;
    padding: 20px;
    justify-content: center;
}

/* Default: 4 columns for 5+ images */
.screenshots-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 1 IMAGE: Center, Medium size (max 500px) */
.screenshots-gallery-grid:has(.screenshot-grid-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

/* 2 IMAGES: 2 columns, Medium size */
.screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

/* 3 IMAGES: 3 columns, auto-scaled smaller */
.screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 IMAGES: 4 columns, auto-scaled smaller */
.screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
}

/* 5+ IMAGES: 4 columns (default) */

.screenshot-grid-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #1e293b;
    transition: all 0.3s ease;
}

.screenshot-grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.screenshot-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-grid-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay svg {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Tablet: 3 columns for all */
@media (max-width: 991px) {
    .screenshots-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 18px;
        max-width: 100%;
    }
    
    /* Override desktop sizing on tablet */
    .screenshots-gallery-grid:has(.screenshot-grid-item:only-child),
    .screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    
    .screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(3):last-child),
    .screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(4):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns (FIXED, NO auto-scaling) */
@media (max-width: 768px) {
    .screenshots-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
        max-width: 100%;
        margin: 0;
    }
    
    /* Force 2 columns on mobile regardless of image count */
    .screenshots-gallery-grid:has(.screenshot-grid-item:only-child),
    .screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(2):last-child),
    .screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(3):last-child),
    .screenshots-gallery-grid:has(.screenshot-grid-item:nth-child(4):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshot-grid-item {
        aspect-ratio: 4 / 3;
    }
    .author-name-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .screenshots-gallery-grid {
        gap: 10px;
        padding: 14px;
    }
}

/* ============================================
   TAB NAVIGATION - FIXED CONTRAST
============================================ */

.content-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: visible;
}

/* FIXED: Tab button contrast improved */
.content-tab-btn {
    padding: 14px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.content-tab-btn:hover { color: #0f172a; background: #f8fafc; }
.content-tab-btn.active { color: #047857; border-bottom-color: #047857; font-weight: 600; }
.content-tab-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hide tab icons on smaller screens to save space */
@media (max-width: 768px) {
    .content-tab-btn svg {
        display: none;
    }
    .content-tab-btn {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .content-tabs-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-tab-btn {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    /* Move Reviews to span full width on last row */
    .content-tab-btn:last-child {
        grid-column: span 2;
    }
}

.content-tab-panel {
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 14px;
}

.content-tab-panel.active { display: block; }

/* ============================================
   DOWNLOAD SECTION
============================================ */

.download-mirrors-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 15px;
    margin: 18px 0;
}

.download-mirrors-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d1fae5;
}

.download-mirrors-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-mirrors-header h2 svg {
    width: 24px;
    height: 24px;
    color: #10b981;
}

.mirror-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.mirror-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.mirror-option-btn:hover { border-color: #10b981; }
.mirror-option-btn.selected { border-color: #10b981; background: #f0fdf4; }

.mirror-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.mirror-details {
    flex: 1;
    min-width: 0;
}

.mirror-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mirror-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

.mirror-recommended {
    background: #047857;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.mirror-meta {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.mirror-check-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mirror-option-btn.selected .mirror-check-icon { display: flex; }

.mirror-uncheck-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
}

.mirror-option-btn.selected .mirror-uncheck-icon { display: none; }

.download-actions-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* CENTER HORIZONTALLY */
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #d1fae5;
}

.btn-download-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-download-selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-copy-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-link:hover { border-color: #10b981; color: #10b981; }
.btn-copy-link.copied { background: #10b981; border-color: #10b981; color: white; }

.download-info-note {
    font-size: 14px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    padding: 1px;
}
.download-info-note {
    font-size: 14px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    padding-bottom: 5px;
    width: 100%;
    justify-content: center;
}

/* ============================================
   SECURITY STATUS CARD - FIXED HEADING LEVEL
============================================ */

.security-status-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 14px;
}

.security-icon-box {
    width: 52px;
    height: 52px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.security-icon-box svg {
    width: 28px;
    height: 28px;
}

.security-info-text {
    flex: 1;
    min-width: 200px;
}

/* FIXED: Changed from h4 styling to use proper class - heading level fixed in PHP */
.security-info-text .security-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
}

.security-info-text p {
    font-size: 14px;
    color: #047857;
    margin: 0;
}

.security-report-btn {
    font-size: 14px;
    color: #059669;
    text-decoration: none;
    font-weight: 500;
}

.security-report-btn:hover { text-decoration: underline; }
/* ============================================
   BLOCK EDITOR CONTENT STYLING
============================================ */

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.block-editor-content {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.block-editor-content h2,
.block-editor-content h3,
.block-editor-content h4 {
    color: #0f172a;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.block-editor-content h2 { font-size: 20px; }
.block-editor-content h3 { font-size: 18px; }
.block-editor-content h4 { font-size: 16px; }

.block-editor-content p {
    margin-bottom: 16px;
}

.block-editor-content ul,
.block-editor-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.block-editor-content ul li,
.block-editor-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.block-editor-content a {
    color: #0d9e00;
    text-decoration: underline;
}

.block-editor-content a:hover {
    color: #0b8a00;
}

/* ============================================
   FEATURES BLOCK CONTENT - CARD STYLE
============================================ */

.features-block-content .feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 16px;
}

.features-block-content .feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features-block-content .feature-icon-box svg {
    width: 22px;
    height: 22px;
}

.features-block-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.features-block-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Style any custom content in features */
.features-block-content > h3,


/* ============================================
   REQUIREMENTS STYLING ENHANCEMENTS
============================================ */

.requirements-list {
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px;
}

.requirements-list ul,
.requirements-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li strong {
    color: #64748b;
    font-weight: 500;
}

.requirements-list li span {
    color: #0f172a;
    font-weight: 600;
}


.text-only-post .post-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
/* When using custom HTML structure */
.requirements-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.requirements-item:last-child {
    border-bottom: none;
}

.requirements-item span:first-child {
    color: #64748b;
    font-size: 14px;
}

.requirements-item span:last-child {
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   REVIEWS SECTION - FIXED NO DUPLICATE RATING
============================================ */

.reviews-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.reviews-score-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    min-width: 160px;
}

.reviews-score-number {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.reviews-score-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: #fbbf24;
    margin: 8px 0;
}

.reviews-score-count {
    font-size: 14px;
    color: #64748b;
}

.reviews-bars {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-bar-label {
    font-size: 14px;
    color: #64748b;
    width: 32px;
}

.reviews-bar-track {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.reviews-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.reviews-bar-fill.star-5 { background: #22c55e; }
.reviews-bar-fill.star-4 { background: #84cc16; }
.reviews-bar-fill.star-3 { background: #eab308; }
.reviews-bar-fill.star-2 { background: #f97316; }
.reviews-bar-fill.star-1 { background: #ef4444; }

.reviews-bar-percent {
    font-size: 14px;
    color: #64748b;
    width: 44px;
    text-align: right;
}

.review-form-wrapper {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.review-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Review Form Rating using Plugin Style */
.review-rating-container {
    margin-bottom: 20px;
}

.review-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.review-form-group { margin-bottom: 16px; }

.review-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.review-form-group input,
.review-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.review-form-group input:focus,
.review-form-group textarea:focus { outline: none; border-color: #10b981; }

.review-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.review-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.review-form-note {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 12px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.review-info { flex: 1; }

.review-author {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.review-meta .stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 12px;
}

.review-meta .verified {
    font-size: 12px;
    color: #64748b;
}

.review-date {
    font-size: 13px;
    color: #64748b;
}

.review-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 12px 0 8px 0;
}

.review-content {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.review-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.review-action-btn:hover { background: #f1f5f9; color: #0d9e00; }

.load-more-reviews-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.load-more-reviews-btn:hover { background: #f8fafc; }

/* ============================================
   AUTHOR SECTION - FIXED CONTRAST
============================================ */

.author-section-enhanced {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #a5b4fc;
    border-radius: 16px;
    padding: 15px;
    margin: 15px 0;
}

.author-section-enhanced .section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #3730a3;
    margin-bottom: 20px;
}

.author-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* FIXED: Author avatar with proper verified badge positioning */
.author-avatar-large {
    position: relative;
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #6366f1;
    display: block;
}

.author-details {
    flex: 1;
    min-width: 200px;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.author-name-row h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.author-role {
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6b7280;
}

.author-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-bio {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 15px;
}
.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* FIXED: View All Post button - improved contrast */
.author-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    background: white;
}

.author-btn:hover { border-color: #6366f1; color: #4f46e5; }
.author-btn.primary { background: #4f46e5; border-color: #4f46e5; color: white; }
.author-btn.primary:hover { background: #4338ca; }

/* ============================================
   MODALS
============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover { background: #ef4444; color: white; }

.modal-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.modal-form-group { margin-bottom: 16px; }

.modal-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    box-sizing: border-box;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus { outline: none; border-color: #0d9e00; }

.modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
}

.share-buttons-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.share-btn-social {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn-social:hover { transform: scale(1.1); }
.share-btn-social.facebook { background: #1877f2; }
.share-btn-social.twitter { background: #1da1f2; }
.share-btn-social.whatsapp { background: #25d366; }
.share-btn-social.telegram { background: #0088cc; }
.share-btn-social svg { width: 24px; height: 24px; }

.share-link-row {
    display: flex;
    gap: 10px;
}

.share-link-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    background: #f9fafb;
}

.share-copy-btn {
    padding: 12px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-copy-btn:hover { background: #059669; }

/* Toast */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 20001;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* Dark mode support */
body.dark-mode .screenshot-grid-item {
    background: #0f172a;
}

body.dark-mode .screenshot-overlay {
    background: rgba(0, 0, 0, 0.7);
}
/* ============================================
   PENDING REVIEW NOTICE
============================================ */

.pending-review-notice {
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinning animation for loading */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Character counter for review textarea */
.review-char-counter {
    text-align: right;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.review-char-counter.warning {
    color: #f59e0b;
}

.review-char-counter.error {
    color: #ef4444;
}

/* ============================================
   HEADER INTERACTIVE STAR RATING
============================================ */

.header-stars-wrapper {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.header-stars {
    color: #e5e7eb;
    display: block;
    letter-spacing: 2px;
}

.header-stars-active {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #fbbf24;
    display: block;
    transition: width 0.2s ease;
    white-space: nowrap;
    letter-spacing: 2px;
}

.header-stars-wrapper.rated {
    cursor: default;
}

.header-stars-wrapper:not(.rated):hover .header-stars-active {
    color: #f59e0b;
}

/* ============================================
   REVIEW FORM STAR RATING (USING PLUGIN STYLE)
============================================ */

/* Use plugin styling for review form rating */
.review-rating-container .fsrs-rating-container {
    margin: 0 0 20px 0 !important;
}

/* Error state for rating */
.review-rating-container.rating-error .fsrs-rating-container {
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 10px;
    background: #fef2f2;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   PUBLISHER HELPFUL BUTTON
============================================ */

.publisher-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.publisher-helpful-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.publisher-helpful-btn:hover {
    border-color: #10b981;
    color: #10b981;
    background: #f0fdf4;
}

.publisher-helpful-btn.voted {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.publisher-helpful-btn.voted svg {
    fill: #fff;
    stroke: #fff;
}

.publisher-helpful-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.publisher-helpful-btn .helpful-count {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.publisher-helpful-btn.voted .helpful-count {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   REVIEW HELPFUL BUTTON
============================================ */

.review-helpful-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.review-helpful-btn:hover {
    background: #f1f5f9;
    border-color: #10b981;
    color: #10b981;
}

.review-helpful-btn.voted {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.review-helpful-btn.voted svg {
    fill: #fff;
    stroke: #fff;
}

.review-helpful-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.review-helpful-btn .helpful-count {
    font-weight: 600;
}
/* ============================================
   FIRMWARE BADGE STYLING
============================================ */

.badge-firmware {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 2px 10px 0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Firmware mode specific styles */
.changelog-item.latest {
    border-left-color: #10b981;
}

.changelog-badge.important {
    background: #fee2e2;
    color: #991b1b;
}

.changelog-badge.new {
    background: #dcfce7;
    color: #166534;
}

/* Dark mode firmware badge */
body.dark-mode .badge-firmware {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}
.entry-content ul li,
.entry-content ol li {
    position: relative;
    padding-left: 1px;
    margin-bottom: 7px;
    left: -5px;
    line-height: 1.2;
    font-size: 14px;
    counter-increment: entry-counter;
}

.entry-content ol li::before {
    content: counter(entry-counter);
    position: absolute;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.entry-content ul,
.entry-content ol {
    list-style: none;
}

.entry-content ul li::before {
    content: '•';
    position: absolute;
    left: -25px;
    top: -06px;
    bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 25px;
    color: #00a607;
    font-size: 22px;
    border-radius: 50%;
}

.entry-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.8rem 0 1rem 0;
    line-height: 1.3;
    border-left: 4px solid #4B5EAA;
    padding-left: 12px;
}
.entry-content h3 {
    margin: 1.8rem 0 1rem 0;
    font-size: 1.75rem;
}
.entry-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.6rem;
}

.entry-content ul, 
.entry-content ol {
    padding-left: 2.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* ===================================
   Two-Column Installation & Extraction Guide
   (Inside Download Mirrors Section)
   =================================== */
.installation-extraction-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.guide-column {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.guide-column:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.guide-column h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 0;
    border-bottom: none;
}
.guide-column:first-child h3 {
    color: #1d4ed8; /* Darker blue for better contrast */
}
.guide-column:last-child h3 {
    color: #047857; /* Darker green for better contrast (was #059669) */
}
.guide-column h3 svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}
.guide-steps {
    margin: 0;
    padding-left: 20px;
    list-style: none;
    counter-reset: step-counter;
}
.guide-steps li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    counter-increment: step-counter;
    transition: color 0.3s ease;
}
.guide-steps li:last-child {
    margin-bottom: 0;
}
.guide-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: -20px;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}
.guide-steps li strong {
    color: #0f172a;
    font-weight: 600;
    transition: color 0.3s ease;
}
/* Different colors for each column */
.guide-column:first-child .guide-steps li::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.guide-column:last-child .guide-steps li::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}
/* DARK MODE */
body.dark-mode .installation-extraction-guide {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .guide-column {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .guide-column:hover {
    background: #273549;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .guide-column h4 {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

body.dark-mode .guide-steps li {
    color: #cbd5e1;
}

body.dark-mode .guide-steps li strong {
    color: #f1f5f9;
}

body.dark-mode .guide-column:first-child h4 {
    color: #60a5fa;
}

body.dark-mode .guide-column:first-child .guide-steps li::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.5);
}

body.dark-mode .guide-column:last-child h4 {
    color: #34d399;
}

body.dark-mode .guide-column:last-child .guide-steps li::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .installation-extraction-guide {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px;
        margin-top: 24px;
    }
    
    .guide-column {
        padding: 16px;
    }
    
    .guide-column h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .guide-steps li {
        font-size: 13px;
        margin-bottom: 12px;
        padding-left: 14px;
    }
    
    .guide-steps li::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        left: -18px;
    }
    
    .guide-column:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .installation-extraction-guide {
        padding: 16px 12px;
        gap: 16px;
    }
    
    .guide-column {
        padding: 14px;
    }
    
    .guide-column h4 {
        font-size: 14px;
        gap: 8px;
    }
    
    .guide-column h4 svg {
        width: 16px;
        height: 16px;
    }
    
    .guide-steps {
        padding-left: 16px;
    }
}
/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 991px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .app-card { min-height: 90px; }
    .app-icon { width: 46px; height: 46px; min-width: 46px; }
    .app-title { font-size: 13px; line-height: 1.4; -webkit-line-clamp: 3; max-height: calc(13px * 1.4 * 3); }
    .section-heading { font-size: 1.8rem; }
    .monthly-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .app-header-section {
        padding-top: 50px; /* Make room for badges */
    }
    
    .app-badges {
        top: 12px;
        right: 12px;
    }
    
    .app-header-main { flex-direction: column; text-align: center; }
    .app-icon-wrapper { margin: 0 auto; }
    .app-title-row { flex-direction: column; align-items: center; }
    .app-meta-row { justify-content: center; }
    .app-stats-row { justify-content: center; flex-wrap: wrap; }
    .publisher-badge-row { flex-direction: column; text-align: center; }
    .publisher-info { justify-content: center; }
    
    /* FIXED: Action buttons layout for mobile */
    .action-buttons-row { 
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .btn-download-main, .btn-telegram { 
        width: 100%;
        flex: 1 1 100%;
        justify-content: center; 
    }
    
    .action-icon-btn { 
        width: 44px; 
        height: 44px; 
        flex: 0 0 44px;
    }
    
    .quick-links-row { 
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .quick-links-divider { 
        display: none; 
    }
    
    .screenshot-item { width: 280px; height: 168px; }
    .mirror-options-grid { grid-template-columns: 1fr; }
    .download-actions-bottom { flex-direction: column; }
    .btn-download-selected, .btn-copy-link { width: 100%; justify-content: center; }
    .reviews-overview { flex-direction: column; }
    .reviews-score-box { width: 100%; }
    .review-form-grid { grid-template-columns: 1fr; }
    .share-buttons-grid { flex-wrap: wrap; }
    .author-card { flex-direction: column; text-align: center; }
    .author-avatar-large { margin: 0 auto; }
    .author-stats { justify-content: center; }
    .author-links { justify-content: center; }
    
    .comment-body::after { font-size: 1rem; padding: 0.3rem 0.8rem; }
    .comment-author { padding-right: 6rem; }
    .children { padding-left: 2rem; }
    
    .publisher-badge-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .publisher-actions {
        width: 100%;
        justify-content: center;
    }
    
    .header-stars-wrapper {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .app-card { padding: 10px; border-radius: 6px; min-height: 85px; }
    .app-icon { width: 42px; height: 42px; min-width: 42px; margin-right: 10px; border-radius: 8px; }
    .app-title { font-size: 12px; line-height: 1.35; -webkit-line-clamp: 3; max-height: calc(12px * 1.35 * 3); }
    .app-type { font-size: 9px; padding: 1px 6px; }
    .section-heading { font-size: 1.6rem; margin-bottom: 15px; padding-bottom: 10px; }
    .related-posts-section, .last-updated-section { margin: 20px 0; }
    .youtube-lazy-container, .youtube-thumbnail { max-width: 100%; }
    .youtube-play-button, .play-button { width: 40px; height: 40px; }
    .post-tags { padding: 10px 0; gap: 6px; }
    .post-tag { font-size: 12px; padding: 3px 10px; }
    
    .quick-link-item {
        font-size: 12px;
    }
    
    .quick-link-item svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .app-card { padding: 8px; min-height: 80px; }
    .app-icon { width: 38px; height: 38px; min-width: 38px; margin-right: 8px; }
    .app-title { font-size: 11px; line-height: 1.35; -webkit-line-clamp: 3; max-height: calc(11px * 1.35 * 3); }
    .app-type { font-size: 8px; padding: 1px 5px; }
    .app-header-section { padding: 18px; padding-top: 50px; }
    .app-icon-large, .app-icon-placeholder-large { width: 90px; height: 90px; }
    .app-title-main { font-size: 2.2rem; }
    .app-stats-row { flex-direction: column; gap: 12px; }
    .stats-divider { display: none; }
    .screenshot-item { width: 240px; height: 144px; }
    .action-icon-btn { width: 40px; height: 40px; }
    
    .publisher-helpful-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================
   DARK MODE SUPPORT
============================================ */
body.dark-mode .toc-panel, body.dark-mode #toc-panel { background: #1e212b !important; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4) !important; }
body.dark-mode .toc-panel h2, body.dark-mode #toc-panel h2 { color: #fff !important; border-bottom-color: #363a47 !important; }
body.dark-mode .toc-panel a, body.dark-mode #toc-panel a { color: #e0e2e8 !important; }
body.dark-mode .toc-panel a:hover, body.dark-mode #toc-panel a:hover { color: #80d8ff !important; background-color: #2a3b4c !important; }
body.dark-mode .toc-panel-backdrop, body.dark-mode #toc-backdrop { background: rgba(0, 0, 0, 0.7) !important; }

body.dark-mode .app-card { background: #1e293b; border-color: #334155; }
body.dark-mode .app-card:hover { border-color: #8b7cff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); }
body.dark-mode .app-title { color: #f1f5f9; }
body.dark-mode .app-card:hover .app-title { color: #a78bfa; }
body.dark-mode .app-icon { background: #334155; }
body.dark-mode .app-icon-placeholder { background: linear-gradient(135deg, #334155 0%, #475569 100%); color: #64748b; }
body.dark-mode .app-icon-placeholder svg { stroke: #64748b; }

body.dark-mode .app-type.free { color: #6ee7b7; background-color: #064e3b; }
body.dark-mode .app-type.paid { color: #fca5a5; background-color: #7f1d1d; }
body.dark-mode .app-type.package { color: #c4b5fd; background-color: #4c1d95; }

body.dark-mode .section-heading { color: #f1f5f9; border-bottom-color: #475569; }

body.dark-mode .single-post-content,
body.dark-mode .single-post-sidebar,
body.dark-mode .single-post-full-width { background-color: var(--dark-gray); }

body.dark-mode .entry-content p,
body.dark-mode .entry-content h1,
body.dark-mode .entry-content h2,
body.dark-mode .entry-content h3,
body.dark-mode .entry-content h4,
body.dark-mode .entry-content h5,
body.dark-mode .entry-content h6,
body.dark-mode .entry-content ul,
body.dark-mode .entry-content ol { color: #e0e0e0; }

body.dark-mode .entry-content a[target="_blank"],
body.dark-mode .entry-content a[rel*="noopener"] { background-color: #101f385c; }

body.dark-mode .comment-body { background: #2a2a2a; border-color: #444; }
body.dark-mode .post-author-comment .comment-body { background: #1b3a1f; border-color: #4caf50; }
body.dark-mode .comment-author .fn { color: #e0e0e0; }
body.dark-mode .comment-metadata, body.dark-mode .comment-metadata a { color: #b0b0b0; }
body.dark-mode .comment-content p { color: #e0e0e0; }
body.dark-mode .must-log-in { background: #3a3020; border-color: #ff9800; color: #e0e0e0; }
body.dark-mode .comment-respond { background-color: var(--dark-gray); }
body.dark-mode .comment-respond h3 { color: #e0e0e0; }
body.dark-mode .logged-in-as { background: #1a3a52; color: #e0e0e0; }
body.dark-mode .comment-form input, body.dark-mode .comment-form textarea { background-color: var(--dark-gray); border-color: var(--medium-gray); color: #e0e0e0; }
body.dark-mode .comment-form label { color: #e0e0e0; }
body.dark-mode .comment-form .comment-notes { color: #b0b0b0; }
body.dark-mode .comments-title { color: #ffffff; }

body.dark-mode .post-tags { border-top-color: var(--medium-gray); }
body.dark-mode .post-tags .tags-icon { color: #b0b0b0; }
body.dark-mode .post-tag { background: #2a2a2a; color: #ffffff; }
body.dark-mode .post-tag:hover { background: #0088cc; color: #fff; }

body.dark-mode .section-header h2 { color: #fff; }
body.dark-mode .featured-post-title, body.dark-mode .featured-post-title a,
body.dark-mode .small-post-title, body.dark-mode .small-post-title a { color: #e0e0e0; }
body.dark-mode .featured-post-title a:hover, body.dark-mode .small-post-title a:hover { color: #80d8ff; background-color: #2a3b4c; }


@media (max-width: 768px) {
    body.dark-mode .entry-content .wp-block-table tbody tr { background: #2a2a2a; border-color: #444; }
    body.dark-mode .entry-content .wp-block-table td { border-bottom-color: #444; color: #e0e0e0; }
    body.dark-mode .entry-content .wp-block-table td::before { color: #fff; }
}

body.dark-mode .app-header-section { background: #1e293b; border-color: #334155; }
body.dark-mode .app-title-main { color: #f1f5f9; }
body.dark-mode .app-meta-item, body.dark-mode .stat-item { color: #94a3b8; }
body.dark-mode .stat-item .stat-value { color: #f1f5f9; }
body.dark-mode .rating-number { color: #f1f5f9; }
body.dark-mode .app-description-short { color: #94a3b8; }
body.dark-mode .publisher-badge-row { border-color: #334155; }
body.dark-mode .publisher-name { color: #f1f5f9; }
body.dark-mode .action-buttons-row { border-color: #334155; }
body.dark-mode .action-icon-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.dark-mode .action-icon-btn:hover { border-color: #10b981; color: #10b981; background: #064e3b; }

body.dark-mode .screenshots-section { background: #1e293b; border-color: #334155; }
body.dark-mode .screenshots-header { background: #0f172a; border-color: #334155; }
body.dark-mode .screenshots-header h2 { color: #f1f5f9; }

body.dark-mode .content-tabs-nav { background: #1e293b; border-color: #334155; }
body.dark-mode .content-tab-btn { color: #94a3b8; }
body.dark-mode .content-tab-btn:hover { color: #f1f5f9; background: #0f172a; }
body.dark-mode .content-tab-btn.active { color: #10b981; }
body.dark-mode .content-tab-panel { background: #1e293b; border-color: #334155; }
body.dark-mode .block-editor-content {
    color: #94a3b8;
}

body.dark-mode .block-editor-content h2,
body.dark-mode .block-editor-content h3,
body.dark-mode .block-editor-content h4 {
    color: #f1f5f9;
}

body.dark-mode .features-block-content .feature-card {
    background: #0f172a;
}

body.dark-mode .features-block-content h4 {
    color: #f1f5f9;
}

body.dark-mode .changelog-block-content > div,
body.dark-mode .changelog-block-content > section {
    border-left-color: #10b981;
}

body.dark-mode .requirements-list {
    background: #0f172a;
}

body.dark-mode .requirements-list li,
body.dark-mode .requirements-item {
    border-color: #334155;
}

body.dark-mode .requirements-list li strong,
body.dark-mode .requirements-item span:first-child {
    color: #94a3b8;
}

body.dark-mode .requirements-list li span,
body.dark-mode .requirements-item span:last-child {
    color: #f1f5f9;
}
body.dark-mode .reviews-score-box { background: #0f172a; }
body.dark-mode .reviews-score-number { color: #f1f5f9; }
body.dark-mode .reviews-bar-track { background: #334155; }
body.dark-mode .review-card { border-color: #334155; }
body.dark-mode .review-author, body.dark-mode .review-title { color: #f1f5f9; }
body.dark-mode .review-content { color: #94a3b8; }
body.dark-mode .review-form-wrapper { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }
body.dark-mode .review-form-group input, body.dark-mode .review-form-group textarea { background: #1e293b; border-color: #334155; color: #f1f5f9; }

body.dark-mode .modal-content { background: #1e293b; }
body.dark-mode .modal-header h3 { color: #f1f5f9; }
body.dark-mode .modal-header { border-color: #334155; }
body.dark-mode .modal-form-group input, body.dark-mode .modal-form-group select, body.dark-mode .modal-form-group textarea { background: #0f172a; border-color: #334155; color: #f1f5f9; }

body.dark-mode .mirror-option-btn { background: #1e293b; border-color: #334155; }
body.dark-mode .mirror-name { color: #f1f5f9; }
body.dark-mode .download-mirrors-header h2 {
    color: #d1fae5;
}
/* ============================================
   DARK MODE - OVERRIDE INLINE STYLES
============================================ */

/* Tab Panel Headings */
body.dark-mode .content-tab-panel h3,
body.dark-mode .content-tab-panel h4 {
    color: #f1f5f9 !important;
}

/* Specific overrides for inline styled elements */
body.dark-mode h3[style*="color:#0f172a"],
body.dark-mode h4[style*="color:#0f172a"] {
    color: #f1f5f9 !important;
}

/* Alternative: Target by content */
body.dark-mode .content-tab-panel > h3:first-child {
    color: #f1f5f9 !important;
}
body.dark-mode .download-mirrors-section {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}
body.dark-mode .download-mirrors-section > p {
    color: #a7f3d0 !important;
}
body.dark-mode  .quick-link-item.how-to {
    color: #34d399;
}
body.dark-mode  .guide-column:last-child h4 {
    color: #34d399;
}
body.dark-mode .mirror-option-btn.selected {
    border-color: #10b981;
    background: #064e3b;
}

body.dark-mode .mirror-meta {
    color: #94a3b8;
}

body.dark-mode .download-info-note {
    color: #34d399;
}

body.dark-mode .download-info-note svg {
    color: #34d399;
}

body.dark-mode .security-status-card { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }

body.dark-mode .lightbox-overlay { background: rgba(0, 0, 0, 0.98); }
body.dark-mode .load-more-reviews-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.dark-mode .load-more-reviews-btn:hover { background: #334155; }

body.dark-mode .author-section-enhanced { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); border-color: #6366f1; }
body.dark-mode .author-section-enhanced .section-heading { color: #c7d2fe; }
body.dark-mode .author-card { background: #1f2937; }
body.dark-mode .author-name-row h4 { color: #f9fafb; }
body.dark-mode .author-role { background: #3730a3; color: #c7d2fe; }
body.dark-mode .author-bio { color: #d1d5db; }
body.dark-mode .author-btn { background: #374151; border-color: #4b5563; color: #e5e7eb; }
body.dark-mode .author-btn:hover { border-color: #818cf8; color: #a5b4fc; }

body.dark-mode .product-info-table { background: #1e293b; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
body.dark-mode .product-info-table th { background: #0f172a; color: #e5e7eb; }
body.dark-mode .product-info-table td { color: #f1f5f9; border-color: #334155; }
body.dark-mode .product-info-table th { border-color: #334155; }

body.dark-mode .header-stars { color: #4b5563; }
body.dark-mode .header-stars-active { color: #fbbf24; }

body.dark-mode .review-rating-container.rating-error .fsrs-rating-container {
    background: #450a0a;
    border-color: #ef4444;
}

body.dark-mode .publisher-helpful-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .publisher-helpful-btn:hover {
    background: #064e3b;
    border-color: #10b981;
    color: #10b981;
}

body.dark-mode .publisher-helpful-btn .helpful-count {
    background: #334155;
}

body.dark-mode .review-helpful-btn {
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .review-helpful-btn:hover {
    background: #064e3b;
    border-color: #10b981;
    color: #10b981;
}
/* ============================================
   FILE SIZE DISPLAY IN META ROW
============================================ */

.app-meta-item.file-size-item svg {
    color: #16a34a;
    width: 14px;
    height: 14px;
}

.app-meta-item .file-size-value {
    font-weight: 700;
    color: #166534;
    font-size: 13px;
}

/* Dark mode support */
body.dark-mode .quick-link-item.verified,
body.dark-mode .app-meta-item a,
body.dark-mode .app-meta-item .file-size-value {
    color: #6ee7b7;
}

/* Responsive */
@media (max-width: 576px) {
    .app-meta-item.file-size-item {
        padding: 3px 10px;
    }
    
    .app-meta-item .file-size-value {
        font-size: 12px;
    }
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
    .entry-content .wp-block-table table { width: 100% !important; page-break-inside: auto; }
    .entry-content .wp-block-table tr { page-break-inside: avoid; page-break-after: auto; }
    .entry-content .wp-block-table thead { display: table-header-group; }
    .entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: 0.5rem; font-size: 10pt; }
    .toc-button, #toc-button, .toc-panel, #toc-panel, .toc-panel-backdrop, #toc-backdrop { display: none !important; }
}
/* ============================================
   BREADCRUMBS NAVIGATION - FIXED CONTRAST
============================================ */

.breadcrumbs-nav {
    padding: 3px 0;
}

.breadcrumbs-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.crumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #374151;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all 0.2s;
    font-weight: 500;
}

.crumb:hover {
    background: #f1f5f9;
    color: #047857;
}

/* FIXED: Home link with accessible text */
.crumb-home {
    color: #047857;
}

.crumb-home svg {
    width: 14px;
    height: 14px;
}

/* Screen reader text for home icon */
.crumb-home .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FIXED: Category links - improved contrast */
.crumb-cat {
    color: #1d4ed8;
}

.crumb-cat:hover {
    background: #dbeafe;
    color: #1e40af;
}

.crumb-current {
    color: #1e293b;
    font-weight: 600;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crumb-sep {
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
}

.crumb-sep svg {
    width: 10px;
    height: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .breadcrumbs-wrapper {
        font-size: 12px;
        gap: 4px;
    }
    
    .crumb {
        padding: 3px 6px;
    }
    
    .crumb-current {
        max-width: 180px;
    }
}

body.dark-mode .crumb {
    color: #d1d5db;
}

body.dark-mode .crumb:hover {
    background: #334155;
    color: #10b981;
}

body.dark-mode .crumb-home {
    color: #10b981;
}

body.dark-mode .crumb-cat {
    color: #60a5fa;
}

body.dark-mode .crumb-cat:hover {
    background: #1e3a5f;
}

body.dark-mode .crumb-current {
    color: #f1f5f9;
}

body.dark-mode .crumb-sep {
    color: #6b7280;
}
body.dark-mode .review-form-title svg {
    color: #34d399;
}

body.dark-mode .review-form-group label,
body.dark-mode .review-form-note {
    color: #cbd5e1;
}

/* Empty Reviews State */
body.dark-mode .review-card[style*="text-align: center"] {
    background: #0f172a;
}
body.dark-mode .security-info-text p  {
    color: #d1fae5;
}
body.dark-mode .security-info-text .security-title  {
    color: #d1fae5;
}