/* ==================== DARK MODE VARIABLES ==================== */
:root {
    /* Light mode (default) */
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --badge-card: rgba(255, 255, 255, 0.5);
    --badge-slider: rgba(255, 255, 255, 0.25);
    --text-primary: #1a1a2e;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --header-bg: #ffffff;
    --footer-bg: #111827;
    --footer-text: #9ca3af;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.06);
    --input-bg: #ffffff;
    --code-bg: #f3f4f6;
}

body.dark-mode {
    /* Dark mode */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --badge-card: rgba(0, 0, 0, 0.5);
    --badge-slider: rgba(0, 0, 0, 0.5);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --header-bg: #1e293b;
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --input-bg: #334155;
    --code-bg: #0f172a;
}

/* ==================== GLOBAL STYLES & RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== CONTAINER (RESPONSIVE WIDTH) ==================== */
.container {
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 821px) {
    .container { max-width: 821px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

/* ==================== SITE HEADER (STICKY) ==================== */
.site-header {
    background: var(--header-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0 auto;
    padding-left: .25rem;
    padding-right: .25rem;
    border-radius: 0 0rem 2rem 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
    .site-header { max-width: 640px; }
}
@media (min-width: 821px) {
    .site-header { max-width: 821px; }
}
@media (min-width: 1024px) {
    .site-header { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .site-header { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .site-header { max-width: 1536px; }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 28px;
}

.logo {
    display: flex;
    align-items: center;
}

.custom-logo-wrapper {
    line-height: 0;
}

.custom-logo-wrapper .custom-logo {
    max-height: 45px;
    width: auto;
    height: auto;
    max-width: 180px;
}

.logo a {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #1f2937;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

/* ==================== DARK MODE TOGGLE BUTTON ==================== */
.dark-mode-toggle {
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-image: linear-gradient(135deg, #FF2E00, #FFA985);
    box-shadow: 0 10px 15px -3px rgba(255, 169, 133, 0.5), 0 4px 6px -4px rgba(255, 46, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    transform: scale(0.9);
    box-shadow: 0 8px 20px -4px rgba(255, 169, 133, 0.6), 0 4px 8px -3px rgba(255, 46, 0, 0.4);
}

.dark-mode-toggle:active {
    transform: scale(0.85);
}

.dark-mode-toggle .dm-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode-toggle .dm-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Moon icon: visible in light mode */
.dark-mode-toggle .dm-moon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

/* Sun icon: hidden in light mode */
.dark-mode-toggle .dm-sun {
    transform: rotate(-90deg) scale(0);
    opacity: 0;
}

/* When dark mode is active */
.dark-mode-toggle.is-dark .dm-moon {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

.dark-mode-toggle.is-dark .dm-sun {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

/* Mobile: match search icon size */
@media (max-width: 768px) {
    .header-inner { padding: 13px 0px; }
}

/* ==================== MAIN NAVIGATION ==================== */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.main-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--secondary-color);
}

.menu-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s cubic-bezier(.25, .46, .45, .94);
}

.menu-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.menu-text {
    font-size: 15px;
}

.main-nav li a:hover .menu-icon {
    transform: scale(0.9);
}

/* ==================== SEARCH ICON ==================== */
.search-icon {
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-image: linear-gradient(135deg, #8497b6, #111827);
    box-shadow: 0 10px 15px -3px #8497b6, 0 4px 6px -4px #8497b6;
    transition: transform 0.3s ease;
}

.search-icon:hover {
    transform: scale(0.9);
}

.search-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* ==================== SEARCH OVERLAY ==================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-content {
    width: 100%;
    max-width: 620px;
    text-align: center;
}

.search-heading {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.search-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.search-page-bar {
    margin: 32px 0;
}

.search-form-custom {
    width: 100%;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: #10b981;
    border-radius: 60px;
    padding: 6px 6px 6px 24px;
    gap: 0;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
    transition: box-shadow 0.3s ease;
}

.search-input-wrap:focus-within {
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
}

.search-input-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.search-input-field {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 14px;
    outline: none;
    min-width: 0;
    font-family: inherit;
}

.search-input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-go-btn {
    flex-shrink: 0;
    background: #ffffff;
    color: #10b981;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.search-go-btn:hover {
    background: #f0fdf4;
    transform: scale(1.03);
}

.search-go-btn:active {
    transform: scale(0.98);
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.1);
    border: none;
    cursor: pointer;
    color: #22C55E;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-search:hover {
    background-color: #22C55E;
    color: #ffffff;
}

.close-search svg {
    width: 18px;
    height: 18px;
}

.search-no-results {
    grid-column: 1 / -1;
    text-align: center;
}

.search-no-results.no-results-section {
    padding: 40px 20px;
}

.search-no-results .no-results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #10b981;
}

.search-no-results h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.search-no-results p {
    font-size: 15px;
    color: #6b7280;
}

/* Mobile responsive for search overlay */
@media (max-width: 768px) {
    .search-heading {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .search-subtitle {
        font-size: 13.5px;
        margin-bottom: 28px;
    }

    .search-input-wrap {
        padding: 5px 5px 5px 18px;
        border-radius: 50px;
    }

    .search-input-icon {
        width: 18px;
        height: 18px;
    }

    .search-go-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .close-search {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .search-page-bar {
        margin: 20px 0;
    }

    .search-no-results .no-results-icon {
        width: 64px;
        height: 64px;
    }

    .search-no-results h3 {
        font-size: 18px;
    }
}

/* ==================== MENU OVERLAY (MOBILE) ==================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    backdrop-filter: blur(8px);
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.no-scroll {
    overflow: hidden;
}

/* ==================== FEATURED SLIDER ==================== */
.featured-slider-new {
    margin: 30px 0 40px;
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    border-radius: 24px;
    position: relative;
    /* Keep slide clipping, but render the slider's outer shadow on the
       viewport itself. An element's own box-shadow is not clipped by
       its overflow:hidden, unlike child card shadows. */
    box-shadow: var(--shadow-md);
}

.slider-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.featured-slide {
    flex-shrink: 0;
    width: 50%;
}

.featured-card-new {
    display: flex;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin: 0 6px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.card-visual {
    flex: 0 0 46%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 280px;
}

.card-visual-icon {
    width: 110px;
    height: 110px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.featured-card-new:hover .card-visual-icon {
    transform: scale(1.06);
}

.visual-dec {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.visual-dec-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    background: rgba(255, 255, 255, 0.15);
    animation: floatDec 7s ease-in-out infinite;
}

.visual-dec-2 {
    width: 140px;
    height: 140px;
    bottom: -35px;
    right: -35px;
    background: rgba(255, 255, 255, 0.12);
    animation: floatDec 9s ease-in-out infinite reverse;
}

.visual-dec-3 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 10%;
    background: rgba(255, 255, 255, 0.08);
    animation: floatDec 6s ease-in-out infinite 1.5s;
}

.visual-dec-4 {
    width: 45px;
    height: 45px;
    bottom: 20%;
    left: 18%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatDec 5s ease-in-out infinite 0.8s;
}

@keyframes floatDec {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.06); }
}

.card-visual-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--badge-slider);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
}

.card-details {
    padding: 28px 24px 28px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-details-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-details-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.card-details-type {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.card-details h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.25;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.card-details-meta {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

.card-details-meta .meta-sep {
    width: 3px;
    height: 3px;
    background: #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-details-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.get-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    align-self: flex-start;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    letter-spacing: 0.3px;
}

.get-btn-new:hover {
    background: #059669;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.get-btn-new .btn-arrow {
    display: inline-flex;
    transition: transform 0.3s ease;
    font-size: 16px;
    line-height: 1;
}

.get-btn-new:hover .btn-arrow {
    transform: translateX(4px);
}

.card-type-mobile {
    display: none;
}

.card-rating-mobile {
    display: none;
}

.card-rating-mobile .stars {
    display: flex;
    gap: 1px;
}

.card-rating-mobile .star {
    font-size: 12px;
    color: #334155;
    line-height: 1;
}

.card-rating-mobile .star.filled {
    color: #fbbf24;
}

.card-rating-mobile .rating-num {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-primary);
    font-size: 18px;
    padding: 0;
}

.slider-arrow:hover {
    background: #10b981;
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    border-color: transparent;
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.slider-dot:hover {
    background: #9ca3af;
}

.slider-dot.active {
    background: #10b981;
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.custom-header{
    display:block;
}
.svg-icon-container {
    width: 2rem;
    height: 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svg-icon-container svg {
    height: 1em;
    fill: white;
    font-size: 14px;
}

svg.svg-inline--fa.fa-shapes, svg.svg-inline--fa.icon {
    font-size: 20px;
}

.game-icon {
    background: linear-gradient(135deg, #ff2e00, #ff2e00);
    box-shadow: 0 20px 25px -5px #ffa985, 0 8px 10px -6px #ffa985;
}

.app-icon {
    background: linear-gradient(135deg, #22c55e, #22c55e);
    box-shadow: 0 20px 25px -5px #22c55e, 0 8px 10px -6px #22c55e;
}

.games-category {
    background: linear-gradient(135deg, #087cff, #5fbcff);
    box-shadow: 0 20px 25px -5px #85c4ff, 0 8px 10px -6px #85c4ff;
}

.apps-category {
    background: linear-gradient(135deg, #ad00ff, #df85ff);
    box-shadow: 0 20px 25px -5px #df85ff, 0 8px 10px -6px #df85ff;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #22c55e;
    color: #fff;
    font-weight: 500;
    font-size: .875rem;
    line-height: 1.25rem;
    border-radius: .5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all:hover {
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

/* ==================== APP / GAME CARDS (GRID) ==================== */
.games-grid,
.apps-grid {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

@media (min-width: 1536px) {
    .games-grid, .apps-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1535px) {
    .games-grid, .apps-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1280px) {
    .games-grid, .apps-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .games-grid, .apps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .games-grid, .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .container { padding: 0 10px; }
    .breadcrumbs {
        margin: 16px 0 20px;
        padding: 6px 16px;
    }
    .recommended-section {
    padding: 1rem!important;
}
.search-icon {
    height: 2.5rem;
    width: 2.5rem;
    color: #22c55e;
    background: #22c55e1a;
    border-radius: .75rem;
    box-shadow: none;
}
}

.app-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card-top {
    position: relative;
    padding: 16px 16px 8px 16px;
}

.updated-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    color: #10b981;
    background-color: var(--badge-card);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px 4px 26px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    gap: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.updated-badge .dot {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.icon-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.app-card-icon {
    width: 125px;
    height: 125px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.40s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-card:hover .app-card-icon {
    transform: scale(1.05);
}
.mod-badge {
    position: absolute;
    bottom: -12.25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 3;
    letter-spacing: 0.5px;
}

.app-card-info {
    padding: 4px 18px 20px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    margin-top: 1.25rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.app-category {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: auto;
    position: relative;
    transition: color 0.3s ease;
}

.app-meta::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: var(--border-color);
}

.meta-item {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

.meta-icon {
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    color: #22c55e;
}

/* ==================== CATEGORIES SECTION ==================== */
.catergory-section {
    background: var(--bg-card);
    padding: 15px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    border-radius: 15px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.categories-pills {
    margin: 30px 0;
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.category-pill {
    background: var(--primary-color);
    padding: .5rem 1rem;
    border-radius: .25rem;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    color: var(--header-bg);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.category-pill:hover,
.category-pill.active {
    background: var(--bg-card);
    border: 1px solid #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 60px;
    padding: 50px 0 30px;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--footer-text);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1f2937;
}

/* ==================== RESPONSIVE DESIGN ==================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.menu-close-btn {
    display: none;
}

@media (min-width: 769px) {
    .menu-overlay { display: none !important; }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        font-size: 20px;
        color: #22c55e;
        background-color: #22c55e1a;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: .75rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        max-width: 380px;
        border-radius: 0 25px 25px 0;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 80px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 1500;
        display: block;
    }

    body.dark-mode .main-nav {
        background: #1e293b;
    }

    .main-nav.active { transform: translateX(0); }

    .main-nav ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-nav li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: .75rem;
        border-radius: 17px;
        text-decoration: none;
        color: #1e293b;
        font-weight: 600;
        font-size: 15px;
        line-height: 1;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        background: var(--menu-bg-color, transparent);
    }

    body.dark-mode .main-nav li a {
        color: #f1f5f9;
    }

    .main-nav li a:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.12);
    }

    .menu-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #22c55e1a;
        color: #22c55e;
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-close-btn:hover { background: #e5e7eb; }
    .main-nav.active { display: block; }
    .section-header h2 { font-size: 24px; }

    /* Keep the desktop Featured Slider design on mobile, only scaling it down. */
    .featured-slider-new { margin: 20px 0 28px; }
    .slider-viewport {
        border-radius: 22px;
        overflow: hidden;
        box-shadow: var(--shadow-md);
    }
    .featured-slide { width: 100%; }

    .featured-card-new {
        margin: 0;
        flex-direction: row;
        min-height: 190px;
        border-radius: 20px;
        overflow: hidden;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        padding: 0;
        gap: 0;
        align-items: stretch;
        box-shadow: var(--shadow-md);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .featured-card-new::before { display: none; }

    .featured-card-new:active {
        transform: scale(0.99);
        box-shadow: var(--shadow-md);
    }

    .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        position: relative;
    }

    .card-visual {
        flex: 0 0 42%;
        width: auto;
        height: auto;
        min-height: 190px;
        border-radius: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .card-visual-icon {
        width: 78px;
        height: 78px;
        border-radius: 19px;
        border: none;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease;
    }

    .featured-card-new:hover .card-visual-icon { transform: scale(1.04); }
    .featured-card-new:active .card-visual-icon { transform: scale(1.02); }
    .visual-dec { display: block; }

    .card-visual-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        right: auto;
        background: var(--badge-slider);
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.8px;
        z-index: 5;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: none;
    }

    .card-details {
        flex: 1;
        min-width: 0;
        padding: 14px 14px 14px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }

    .card-details-top {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .card-details-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .card-details-type {
        font-size: 9px;
        padding: 3px 8px;
    }

    .card-details-desc {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .card-type-mobile { display: none; }

    .card-rating-mobile { display: flex; align-items: center; gap: 5px; }
    .card-rating-mobile .stars { display: flex; gap: 0.5px; }
    .card-rating-mobile .star { font-size: 11px; line-height: 1; }
    .card-rating-mobile .star.filled { color: #fbbf24; }
    .card-rating-mobile .star:not(.filled) { color: #1e293b; }
    body.dark-mode .card-rating-mobile .star:not(.filled) { color: #475569; }
    .card-rating-mobile .rating-num { font-size: 11.5px; font-weight: 600; color: #94a3b8; }

    .card-details h3 {
        font-size: 17px;
        font-weight: 800;
        color: var(--text-primary);
        margin-bottom: 5px;
        line-height: 1.25;
        letter-spacing: -0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-details-meta {
        font-size: 11px;
        color: var(--text-secondary);
        margin-bottom: 8px;
        gap: 5px;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
    }

    .card-details-meta .meta-sep { background: #d1d5db !important; }

    .get-btn-new {
        position: static;
        transform: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        padding: 8px 16px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 0.3px;
        background: #10b981;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
        min-width: 0;
        z-index: 2;
    }

    .get-btn-new:hover {
        background: #059669;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(16, 185, 129, 0.28);
    }

    .get-btn-new .btn-arrow { display: inline-flex; }
    .slider-arrow { display: none; }

    .slider-dots { margin-top: 14px; gap: 5px; }
    .slider-dot { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
    body.dark-mode .slider-dot { background: #334155; }
    .slider-dot:hover { background: #94a3b8; }
    .slider-dot.active { background: #10b981; width: 22px; border-radius: 3px; box-shadow: 0 1px 5px rgba(16, 185, 129, 0.2); }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .card-visual-icon { width: 90px; height: 90px; border-radius: 22px; }
    .card-details h3 { font-size: 17px; }
    .card-details-desc { -webkit-line-clamp: 1; margin-bottom: 12px; }
    .get-btn-new { padding: 8px 18px; font-size: 13px; }
}

/* ==================== BLOG SINGLE ==================== */
.blog-single {
    max-width: 944px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== SINGLE POST ==================== */
.container.single-post {
    max-width: 944px;
}

/* ==================== MODERN BREADCRUMBS ==================== */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 20px 0 24px 0;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 60px;
    width: fit-content;
    border: 1px solid rgba(16,185,129,0.2);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
}

.breadcrumbs a {
    text-decoration: none;
    color: #10b981;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs a:hover {
    color: #059669;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #cbd5e1;
    font-size: 12px;
    margin: 0 2px;
}

.current-crumb {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.breadcrumb-home-icon {
    height: 20px;
}

.breadcrumb-home-icon svg {
    width: 18px;
}

/* ==================== POST HEADER ==================== */
.mod-post-header {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mod-post-header h1 {
    margin-bottom: 10px;
    font-size: 25px;
}

.mod-header-content {
    display: flex;
    gap: 32px;
    position: relative;
}

.mod-app-icon {
    width: 180px;
    height: 180px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.mod-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.detail-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon svg {
    width: 22px;
    height: 22px;
    color: #10b981;
    display: block;
}

.detail-item .label {
    font-weight: 600;
    color: #1f2937;
    width: 155px;
}

body.dark-mode .detail-item .label {
    color: #f1f5f9;
}

.detail-item .value {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-link {
    color: #10b981;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.category-link:hover {
    color: #059669;
    text-decoration: underline;
}

.rating-section {
    position: absolute;
    top: 8px;
    right: 12px;
    text-align: right;
}

.rating-section .stars {
    font-size: 29px;
    color: #fbbf24;
    letter-spacing: 3px;
}

.rating-text {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 4px;
    text-align: center;
}

/* Big green download button */
.big-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #10b981;
    color: #fff;
    text-align: center;
    padding: .75rem 0;
    font-size: 19px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    margin: 28px 0 16px;
    transition: all 0.3s ease;
}

.big-download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.55);
    color: #fff;
}

.big-download-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* MOD Info bar */
.mod-info-bar {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #a7f3d0;
    color: #166534;
    padding: 16px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15.5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mod-info-bar:hover {
    background: #d1fae5;
}

.mod-info-bar .warning-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.mod-info-bar .warning-icon svg {
    width: 22px;
    height: 22px;
    color: #ef4444;
    display: block;
}

.mod-info-bar .chevron-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.mod-info-bar .chevron-icon svg {
    width: 18px;
    height: 18px;
    color: #166534;
    display: block;
}

.mod-info-bar.open .chevron-icon {
    transform: rotate(180deg);
}

.mod-content-hidden {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0 0 12px 12px;
    padding: 18px;
    border: 1px solid #a7f3d0;
    border-top: none;
}

/* Download button in post content */
.btn-wrapper {
    text-align: center;
    margin-top: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #10b981;
    color: #fff;
    text-align: center;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.55);
    color: #fff;
}

.download-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Recommended grid */

.recommended-section {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-md);
}

.section-header.recommended {
    margin: 0 0 24px;
}

.recommended-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 1536px) {
    .recommended-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1535px) {
    .recommended-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1280px) {
    .recommended-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .recommended-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .recommended-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Post content */
.post-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.post-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0a467d;
    margin-bottom: 10px;
}

body.dark-mode .post-content h2 {
    color: #60a5fa;
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

/* Screenshots gallery */
.screenshots-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-gallery::-webkit-scrollbar {
    height: 4px;
}

.screenshots-gallery::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}

.screenshots-gallery img {
    flex-shrink: 0;
    width: 200px;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshots-gallery img:hover {
    transform: scale(1.03);
}

/* Mobile responsive for post header */
@media (max-width: 768px) {
    .mod-post-header {
        padding: 16px;
        border-radius: 20px;
    }

    .mod-post-header h1 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .mod-header-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .mod-app-icon {
        width: 120px;
        height: 120px;
        border-radius: 18px;
    }

    .mod-details {
        width: 100%;
        gap: 8px;
        padding: 20px;
        border-radius: 24px;
        margin: 16px 0 0 0;
        border: 1px solid #eef2ff;
        background: #f8fafc;
    }

    body.dark-mode .mod-details {
        background: #1e293b;
        border-color: #334155;
    }

    .detail-item {
        font-size: 15px;
        gap: 10px;
    }

    .detail-icon svg {
        width: 18px;
        height: 18px;
    }

    .detail-item .label {
        width: 120px;
    }

    .rating-section {
        position: static;
        text-align: center;
        width: 100%;
    }

    .rating-section .stars {
        font-size: 24px;
    }

    .big-download-btn {
        font-size: 16px;
        padding: 15px 0;
        margin: 20px 0 16px;
    }

    .post-content {
        padding: 18px;
        border-radius: 16px;
    }

    .post-content h2 {
        font-size: 18px;
    }

    .table-of-contents {
        padding: 16px;
        border-radius: 14px;
    }

    .screenshots-gallery img {
        width: 160px;
        height: 285px;
        border-radius: 12px;
    }

    .download-btn {
        font-size: 15px;
        padding: 14px 28px;
    }
}

/* ==================== DOWNLOAD PAGE STYLES ==================== */
.container.single-post {
    max-width: 944px;
    margin: 0 auto;
}

/* Main Card */
.dl-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 36px 28px 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Icon */
.dl-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.dl-icon {
    width: 130px;
    height: 130px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 16px 45px rgba(0,0,0,0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: block;
}
.dl-mod-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(239,68,68,0.45);
    letter-spacing: 0.8px;
    white-space: nowrap;
}
/* Title */
.dl-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.dl-type-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
}
.ld-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}
.ld-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.ld-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}
.ld-chip.game { background: rgba(244,63,94,0.1); color: #fb7185; }
.ld-chip.app  { background: #ecfdf5; color: #10b981; }
.ld-stars { font-size: 15px; line-height: 1; display: inline-flex; align-items: center; }
.ld-stars .on { color: #fbbf24 !important; -webkit-text-fill-color: #fbbf24 !important; }
.ld-stars .off { color: #d1d5db !important; -webkit-text-fill-color: #d1d5db !important; }
.ld-stars .half {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.ld-rval { font-size: 12px; color: #fbbf24 !important; font-weight: 600; margin-left: 3px; }

/* Download page rating must always use the intended yellow/gray star colors. */
.dl-card .ld-meta-row .ld-stars span.on { color: #fbbf24 !important; -webkit-text-fill-color: #fbbf24 !important; }
.dl-card .ld-meta-row .ld-stars span.off { color: #d1d5db !important; -webkit-text-fill-color: #d1d5db !important; }
.dl-card .ld-meta-row .ld-stars span.half { color: transparent !important; -webkit-text-fill-color: transparent !important; background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%) !important; -webkit-background-clip: text !important; background-clip: text !important; }

/* Security Badge */
.dl-security {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 28px;
}
.dl-security svg { width: 18px; height: 18px; color: #22c55e; flex-shrink: 0; }
/* Download Button */
.dl-btn-wrap { margin-bottom: 8px; }
.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #10b981;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: .75rem 0;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    cursor: pointer;
}
.dl-btn:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(16,185,129,0.5);
    color: #fff;
}
.dl-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.dl-btn-size {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 8px;
    color: #64748b;
}
/* No download link message */
.dl-no-link {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}
/* Divider */
.dl-divider {
    height: 1px;
    background: var(--border-color);
    margin: 28px 0;
    transition: background-color 0.3s ease;
}
/* How to Install */
.dl-install-title {
    font-size: 17px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 16px;
    text-align: left;
}
.dl-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 24px;
    text-align: left;
}
.dl-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}
.dl-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

/* Back Link */
.dl-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 10px 22px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dl-back:hover {
    background: #e5e7eb;
    color: #1f2937;
}
.dl-back svg { width: 16px; height: 16px; }

/* ==================== NEW DOWNLOAD MODAL STYLES ==================== */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.modal-content {
    background: var(--bg-card);
    max-width: 380px;
    width: 90%;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}
.modal-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.countdown {
    width: 110px;
    height: 110px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(16,185,129,0.4);
}
.progress-bar-container {
    height: 8px;
    background: var(--border-color);
    border-radius: 9999px;
    margin: 25px 0;
    overflow: hidden;
    transition: background-color 0.3s ease;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 9999px;
    transition: width 0.3s ease;
}
.modal-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
    transition: color 0.3s ease;
}
.cancel-btn {
    background: var(--border-color);
    color: var(--text-secondary);
    border: none;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ==================== Advertisement ==================== */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}
/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .dl-card { padding: 28px 18px 24px; border-radius: 20px; }
    .dl-icon { width: 100px; height: 100px; border-radius: 22px; }
    .dl-title { font-size: 20px; }
    .dl-info-item { padding: 12px 12px; }
    .dl-info-item .info-label { font-size: 10px; }
    .dl-info-item .info-value { font-size: 13px; }
    .dl-btn { font-size: 16px; padding: 16px 24px; }
    .dl-breadcrumb { margin: 12px 0 20px; padding: 6px 14px; font-size: 12px; }
}

/* ==================== DARK MODE SCROLLBAR ==================== */
body.dark-mode ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ==================== STARS RATING DARK MODE ==================== */
body.dark-mode .stars .star {
    color: #64748b;
}

body.dark-mode .stars .star.filled {
    color: #fbbf24;
}

/* ==================== AD CONTAINER DARK MODE ==================== */
body.dark-mode .ad-container {
    background: transparent;
}

/* ==================== CARD VISUAL DARK MODE ==================== */
body.dark-mode .card-visual {
    opacity: 0.95;
}

body.dark-mode .visual-dec-1,
body.dark-mode .visual-dec-2,
body.dark-mode .visual-dec-3,
body.dark-mode .visual-dec-4 {
    background: rgba(255, 255, 255, 0.08);
}








/* ==================== BLOG POST CSS ==================== */
/* ── Post Grid ── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

/* ── Post Card ── */
.post-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

/* Card Thumbnail */
.post-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.post-card:hover .post-card-thumb img {
    transform: scale(1.08);
}
/* Post badge on thumbnail */
.post-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: all 0.2s;
    z-index: 2;
}
/* Reading time badge on thumbnail */
.post-card-read-time {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}
.post-card-read-time svg {
    width: 11px;
    height: 11px;
}

/* Post Content */
.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}
.post-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.post-card-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.post-card-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.post-card-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.post-card-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background-color 0.3s ease;
}

/* Card Title */
.post-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-title a:hover {
    color: var(--primary-color);
}

/* Card Excerpt */
.post-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 13.5px;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* ── No Posts ── */
.post-no-posts {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: 24px;
    color: var(--text-muted);
    margin: 40px 0;
}
.post-no-posts-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.post-no-posts-icon svg {
    width: 36px;
    height: 36px;
    color: var(--border-color);
}
.post-no-posts p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.post-no-posts span {
    font-size: 14px;
}

/* ── Pagination ── */
.post-pagination {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.post-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.post-pagination .page-numbers:hover {
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,185,129,0.15);
}
.post-pagination .page-numbers.current {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.post-pagination .page-numbers.dots {
    border: none;
    background: none;
    box-shadow: none;
    color: var(--text-muted);
    min-width: 30px;
}
.post-pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}
.post-pagination .page-numbers.prev,
.post-pagination .page-numbers.next {
    gap: 6px;
    font-weight: 600;
}

/* ── Mobile ── */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 24px 0;
    }
    .post-card {
        border-radius: 16px;
    }
    .post-card-thumb {
        aspect-ratio: 16/9;
    }
    .post-card-content {
        padding: 16px;
    }
    .post-card-title {
        font-size: 15px;
    }
    .post-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    .post-pagination {
        margin: 24px 0;
        gap: 4px;
    }
    .post-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        border-radius: 10px;
        padding: 0 10px;
    }
    .post-no-posts {
        padding: 60px 16px;
        border-radius: 18px;
    }
}
/* ==================== REAL USER POST RATING ==================== */
.user-rating-section {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 190px;
    text-align: center;
    z-index: 3;
}

.user-rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
}

.user-rating-star {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: transform .15s ease;
}

.user-rating-star:hover:not(:disabled),
.user-rating-star:focus-visible:not(:disabled) {
    transform: translateY(-1px) scale(1.05);
    outline: none;
}

.user-rating-star:focus-visible:not(:disabled) {
    box-shadow: 0 0 0 2px rgba(16,185,129,.25);
}

.user-rating-star:disabled {
    cursor: default;
}

.rating-star-visual {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
}

.rating-star-empty,
.rating-star-fill {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.rating-star-fill {
    width: 0;
}

.rating-star-svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.rating-star-svg path {
    fill: currentColor;
}

.rating-star-empty .rating-star-svg {
    color: #dce1e5;
}

.rating-star-fill .rating-star-svg {
    color: var(--primary-color);
}

.rating-summary {
    margin-top: 4px;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.35;
    white-space: nowrap;
}

.rating-average {
    color: #475569;
}

.rating-notice {
    margin-top: 8px;
    padding: 8px 10px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 3px;
    font-size: 11.5px;
    line-height: 1.35;
    box-shadow: 0 4px 12px rgba(16,185,129,.08);
}

.rating-notice.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Keep unfilled rating stars light on mobile/light mode. Some theme/browser
   button/SVG rules can otherwise make the empty stars inherit a dark color. */
.rating-star-empty .rating-star-svg,
.rating-star-empty .rating-star-svg path,
.user-rating-star .rating-star-empty svg {
    color: #dce1e5 !important;
    fill: #dce1e5 !important;
}

.rating-star-fill .rating-star-svg,
.rating-star-fill .rating-star-svg path,
.user-rating-star .rating-star-fill svg {
    color: var(--primary-color) !important;
    fill: var(--primary-color) !important;
}

body.dark-mode .rating-star-empty .rating-star-svg {
    color: #475569 !important;
    fill: #475569 !important;
}

body.dark-mode .rating-star-empty .rating-star-svg path {
    color: #475569 !important;
    fill: #475569 !important;
}

body.dark-mode .rating-summary {
    color: #94a3b8;
}

body.dark-mode .rating-average {
    color: #cbd5e1;
}

body.dark-mode .rating-notice {
    background: rgba(20,83,45,.45);
    color: #86efac;
    border-color: rgba(74,222,128,.25);
}

body.dark-mode .rating-notice.is-error {
    background: rgba(127,29,29,.35);
    color: #fca5a5;
    border-color: rgba(248,113,113,.25);
}

@media (max-width: 768px) {
    .user-rating-section {
        position: static;
        width: 100%;
        margin-top: 18px;
        text-align: left;
    }

    .user-rating-stars {
        justify-content: flex-start;
    }

    .rating-summary {
        text-align: left;
    }
}

/* Theme Settings: Site Identity */
.theme-logo-link{display:flex;align-items:center;text-decoration:none;line-height:0}
.theme-logo{display:block;max-height:45px;width:auto;height:auto;max-width:180px;object-fit:contain}


/* ==================== AUTHOR ARCHIVE ==================== */
.author-page {
    max-width: 944px;
}

.author-profile-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin: 28px 0 40px;
    box-shadow: var(--shadow-md);
}

.author-avatar {
    flex: 0 0 auto;
}

.author-avatar .author-gravatar {
    width: 96px;
    height: 96px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.author-profile-info {
    min-width: 0;
}

.author-profile-label {
    display: inline-block;
    margin-bottom: 3px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

.author-profile-info h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: var(--text-primary);
}

.author-profile-info p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.author-content-section {
    margin: 0 0 46px;
}

.author-section-header {
    margin-bottom: 20px;
}

.author-section-header h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
    color: var(--text-primary);
}

.author-apps-grid {
    margin-top: 0;
}

.author-post-grid {
    margin-top: 0;
}

.author-pagination {
    margin-top: 28px;
}

.author-empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.author-empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-empty-state p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .author-profile-card {
        gap: 16px;
        padding: 18px;
        margin: 20px 0 30px;
    }

    .author-avatar .author-gravatar {
        width: 72px;
        height: 72px;
    }

    .author-profile-info h1 {
        font-size: 22px;
    }

    .author-section-header h2 {
        font-size: 20px;
    }
}


/* Author Apps & Games: 4-column grid */
.author-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 900px) {
    .author-apps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .author-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .author-apps-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer branding */
.footer-logo {
    display: block;
    width: auto;
    max-width: 170px;
    height: auto;
    object-fit: contain;
    margin: 0 0 16px;
}
.footer-brand-name {
    display: inline-block;
    color: var(--primary-color, #10b981);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ==================== HOMEPAGE ARTICLES / BLOG SECTION ==================== */
.homepage-articles-section {
    margin-top: 34px;
    margin-bottom: 8px;
}

.homepage-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.homepage-articles-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.homepage-articles-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
}

.articles-icon {
    width: 36px;
    color: #fff;
    height: 36px;
    flex: 0 0 36px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.homepage-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.homepage-article-card {
    min-width: 0;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.homepage-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.homepage-article-image {
    display: block;
    position: relative;
    margin: 16px 16px 0;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-secondary);
}

.homepage-article-image img,
.homepage-article-image-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.homepage-article-image img {
    object-fit: cover;
    transition: transform .45s ease;
}

.homepage-article-card:hover .homepage-article-image img {
    transform: scale(1.035);
}

.homepage-article-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.homepage-article-image-placeholder svg {
    width: 52px;
    height: 52px;
}

.homepage-article-body {
    padding: 18px 16px 19px;
}

.homepage-article-title {
    margin: 0 0 17px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.homepage-article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color .2s ease;
}

.homepage-article-title a:hover {
    color: var(--primary-color);
}

.homepage-article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 12px;
}

.homepage-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.homepage-article-meta-item svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.homepage-article-excerpt {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .homepage-articles-grid {
        gap: 20px;
    }
    .homepage-article-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .homepage-articles-section {
        margin-top: 28px;
    }
    .homepage-articles-header {
        margin-bottom: 18px;
    }
    .homepage-articles-header h2 {
        font-size: 22px;
    }
    .articles-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .homepage-articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .homepage-article-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ==================== COMMENTS SECTION ==================== */
.comments-section {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.comment-form-card,
.comments-list-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.comments-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
}

.comments-section-heading h2 {
    margin: 0;
    color: #20344d;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.35px;
}

body.dark-mode .comments-section-heading h2 {
    color: #f8fafc;
}

.comments-heading-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.25);
}

.comments-heading-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.comments-pencil-icon {
    background: linear-gradient(135deg, #d946ef 0%, #9333ea 100%);
}

.comments-chat-icon {
    background: linear-gradient(135deg, #ffc15b 0%, #ff9d1c 100%);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.22);
}

.comments-list-heading {
    margin-bottom: 28px;
}

.comment-form-card .comment-form {
    margin: 0;
}

.comment-form-card .comment-form p {
    margin-top: 0;
}

.comment-form-card .comment-form-comment {
    margin-bottom: 16px;
}

.comment-form-card .comment-form-author,
.comment-form-card .comment-form-email {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    vertical-align: top;
    margin-bottom: 5px;
    box-sizing: border-box;
}

/* Keep Full Name and Email Address on the same row on desktop. */
.comment-form-card .comment-form-author {
    float: left;
    margin-right: 0;
}

.comment-form-card .comment-form-email {
    float: right;
}

.comment-form-card .comment-form-cookies-consent,
.comment-form-card .form-submit {
    clear: both;
}

.comment-form-card label {
    display: block;
    margin: 0 0 7px;
    color: #3d6289;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

body.dark-mode .comment-form-card label {
    color: #a9c7e5;
}

.comment-form-card textarea,
.comment-form-card input[type="text"],
.comment-form-card input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-form-card textarea {
    display: block;
    min-height: 138px;
    height: 138px;
    resize: vertical;
    padding: 12px 14px;
}

.comment-form-card input[type="text"],
.comment-form-card input[type="email"] {
    height: 42px;
    padding: 8px 12px;
}

.comment-form-card textarea:focus,
.comment-form-card input[type="text"]:focus,
.comment-form-card input[type="email"]:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.10);
}

body.dark-mode .comment-form-card textarea,
body.dark-mode .comment-form-card input[type="text"],
body.dark-mode .comment-form-card input[type="email"] {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

body.dark-mode .comment-form-card textarea:focus,
body.dark-mode .comment-form-card input[type="text"]:focus,
body.dark-mode .comment-form-card input[type="email"]:focus {
    border-color: #a78bfa;
}

.comment-form-card .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.comment-form-card .comment-form-cookies-consent input[type="checkbox"] {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    margin: 0;
    accent-color: #10b981;
}

.comment-form-card .comment-form-cookies-consent label {
    display: inline;
    margin: 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

body.dark-mode .comment-form-card .comment-form-cookies-consent,
body.dark-mode .comment-form-card .comment-form-cookies-consent label {
    color: #e2e8f0;
}

.comment-form-card .form-submit {
    margin: 0;
}

.comment-form-card .comment-submit {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    background: #00c765;
    color: #fff;
    padding: 13px 16px;
    min-width: 144px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form-card .comment-submit:hover {
    background: #00b95d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 199, 101, 0.22);
}

.comments-list-card {
    min-height: 145px;
}

.comments-list-card .comments-section-heading h2 {
    font-size: 26px;
}

.no-comments {
    margin: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
}

body.dark-mode .no-comments {
    color: #e2e8f0;
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .comment {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.comment-list .comment:last-child {
    margin-bottom: 0;
}

body.dark-mode .comment-list .comment {
    border-color: #334155;
}

.comment-list .comment-meta {
    margin-bottom: 10px;
}

.comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-list .comment-author img {
    border-radius: 50%;
}

.comment-list .comment-content p {
    margin: 0 0 8px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.comment-list .comment-metadata {
    font-size: 12px;
}

.comment-list .reply {
    font-size: 13px;
}

.comments-list-card .navigation {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .comments-section {
        margin-top: 24px;
        gap: 20px;
    }

    .comment-form-card,
    .comments-list-card {
        padding: 20px;
        border-radius: 14px;
    }

    .comments-section-heading {
        margin-bottom: 20px;
    }

    .comments-section-heading h2,
    .comments-list-card .comments-section-heading h2 {
        font-size: 22px;
    }

    .comment-form-card .comment-form-author,
    .comment-form-card .comment-form-email {
        width: 100%;
        margin-right: 0;
        margin-bottom: 14px;
    }

    .comment-form-card .comment-form-cookies-consent {
        align-items: flex-start;
        font-size: 13px;
    }

    .comment-form-card .comment-form-cookies-consent label {
        font-size: 13px;
    }

    .comment-form-card .comment-submit {
        min-width: 144px;
    }
}


/* Comment form visibility/appearance overrides */
.comment-form-card .comment-form {
    display: block !important;
}
.comment-form-card .comment-form-comment {
    display: block !important;
}
.comment-form-card .comment-form-author,
.comment-form-card .comment-form-email {
    box-sizing: border-box;
}
.comment-form-card .comment-form-cookies-consent {
    display: flex !important;
}
.comment-form-card .comment-form-cookies-consent input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.comment-form-card .comment-form-cookies-consent label {
    display: inline !important;
    visibility: visible !important;
}

/* =========================================================
   MODERN COMMENTS UI
   Applied after the original comment styles so the design
   remains stable even if older comment rules are present.
   ========================================================= */
.comments-section {
    margin-top: 34px;
    gap: 34px;
}

.comment-form-card,
.comments-list-card {
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.075);
}

.comments-section-heading {
    gap: 13px;
    margin-bottom: 28px;
}

.comments-section-heading h2 {
    color: #172b45;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.55px;
}

.comments-heading-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.comments-heading-icon svg {
    width: 15px;
    height: 15px;
}

.comments-pencil-icon {
    background: linear-gradient(135deg, #c83cff 0%, #8d2be7 100%);
    box-shadow: 0 9px 20px rgba(147, 51, 234, 0.24);
}

.comments-chat-icon {
    background: linear-gradient(135deg, #ffc35a 0%, #ff9d19 100%);
    box-shadow: 0 9px 20px rgba(245, 158, 11, 0.22);
}

.comment-form-card .comment-form-comment {
    margin-bottom: 22px;
}

.comment-form-card label {
    color: #365f8d;
    font-size: 14px;
    font-weight: 450;
    margin-bottom: 8px;
}

.comment-form-card textarea,
.comment-form-card input[type="text"],
.comment-form-card input[type="email"] {
    border: 1px solid #d6dee8;
    border-radius: 9px;
    background: #fff;
    color: #172b45;
    box-shadow: none;
}

.comment-form-card textarea {
    min-height: 160px;
    height: 160px;
    padding: 13px 15px;
    font-size: 15px;
}

.comment-form-card textarea::placeholder,
.comment-form-card input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.comment-form-card input[type="text"],
.comment-form-card input[type="email"] {
    height: 44px;
    padding: 9px 13px;
    font-size: 15px;
}

.comment-form-card textarea:focus,
.comment-form-card input[type="text"]:focus,
.comment-form-card input[type="email"]:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.10);
}

.comment-form-card .comment-form-author,
.comment-form-card .comment-form-email {
    width: calc(50% - 16px);
    margin-bottom: 16px;
}

.comment-form-card .comment-form-author {
    float: left;
}

.comment-form-card .comment-form-email {
    float: right;
}

.comment-form-card .comment-form-cookies-consent {
    gap: 5px;
    margin: 2px 0 20px;
    color: #172b45;
    font-size: 15px;
}

.comment-form-card .comment-form-cookies-consent label {
    color: #172b45;
    font-size: 15px;
    margin: 0;
}

.comment-form-card .comment-form-cookies-consent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    accent-color: #10b981;
}

.comment-form-card .comment-submit {
    min-width: 0;
    padding: 13px 28px;
    border-radius: 8px;
    background: #08c76b;
    font-size: 16px;
    font-weight: 750;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.16);
}

.comment-form-card .comment-submit:hover {
    background: #06b961;
    box-shadow: 0 9px 18px rgba(16, 185, 129, 0.22);
}

.comments-list-card {
    min-height: 0;
}

.comments-list-card .comments-section-heading {
    margin-bottom: 26px;
}

.comments-list-card .comments-section-heading h2 {
    font-size: 27px;
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .comment,
.comment-list .apknova-modern-comment {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    list-style: none;
}

.comment-list .comment:last-child,
.comment-list .apknova-modern-comment:last-child {
    margin-bottom: 0;
}

.apknova-modern-comment {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 22px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #e1e7ef !important;
    border-radius: 13px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.025);
}

.apknova-comment-avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
}

.apknova-comment-avatar img,
.apknova-comment-avatar-img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.apknova-comment-main {
    min-width: 0;
    flex: 1;
}

.apknova-comment-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.apknova-comment-author-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.apknova-comment-author {
    color: #172b45;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
}

.apknova-comment-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #12c875;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.apknova-comment-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 26px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
    flex: 0 0 26px;
}

.apknova-comment-menu span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #64748b;
}

.apknova-comment-date {
    margin-top: 3px;
}

.apknova-comment-date a {
    color: #718096;
    font-size: 13px;
    text-decoration: none;
}

.apknova-comment-date a:hover {
    color: #0f9f65;
}

.apknova-comment-content {
    margin-top: 12px;
}

.apknova-comment-content p {
    margin: 0 0 7px !important;
    color: #243b53 !important;
    font-size: 16px;
    line-height: 1.6 !important;
}

.apknova-comment-content p:last-child {
    margin-bottom: 0 !important;
}

.apknova-comment-actions {
    margin-top: 10px;
}

.apknova-comment-actions a,
.apknova-modern-comment .reply a {
    color: #08b96a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.apknova-comment-actions a:hover,
.apknova-modern-comment .reply a:hover {
    color: #078e54;
    text-decoration: none;
}

.apknova-reply-arrow {
    display: inline-block;
    margin-right: 3px;
    font-size: 16px;
    line-height: 1;
}

/* Nested replies */
.comment-list .children {
    margin: 12px 0 0 74px;
    padding: 0;
    list-style: none;
}

.comment-list .children .apknova-modern-comment {
    padding: 18px !important;
}

.comment-list .children .apknova-comment-avatar,
.comment-list .children .apknova-comment-avatar img,
.comment-list .children .apknova-comment-avatar-img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

body.dark-mode .comment-form-card,
body.dark-mode .comments-list-card {
    border-color: #26364b;
}

body.dark-mode .comment-form-card textarea,
body.dark-mode .comment-form-card input[type="text"],
body.dark-mode .comment-form-card input[type="email"] {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

body.dark-mode .comment-form-card .comment-form-cookies-consent,
body.dark-mode .comment-form-card .comment-form-cookies-consent label,
body.dark-mode .apknova-comment-author {
    color: #f1f5f9;
}

body.dark-mode .apknova-modern-comment {
    background: linear-gradient(180deg, #111c2d 0%, #0f1726 100%);
    border-color: #2b3b52 !important;
}

body.dark-mode .apknova-comment-date a {
    color: #94a3b8;
}

body.dark-mode .apknova-comment-content p {
    color: #d7e0ea !important;
}

@media (max-width: 768px) {
    .comment-form-card,
    .comments-list-card {
        padding: 22px;
        border-radius: 15px;
    }

    .comments-section-heading h2,
    .comments-list-card .comments-section-heading h2 {
        font-size: 23px;
    }

    .comment-form-card textarea {
        min-height: 145px;
        height: 145px;
    }

    .comment-form-card .comment-form-author,
    .comment-form-card .comment-form-email {
        width: 100%;
        float: none;
        margin-bottom: 16px;
    }

    .comment-form-card .comment-form-cookies-consent {
        align-items: flex-start;
    }

    .apknova-modern-comment {
        gap: 13px;
        padding: 18px !important;
    }

    .apknova-comment-avatar,
    .apknova-comment-avatar img,
    .apknova-comment-avatar-img {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .comment-list .children {
        margin-left: 28px;
    }
}

/* ==================== MOBILE MENU THEME TOGGLE ==================== */
.mobile-theme-menu-item {
    display: none;
}

@media (max-width: 768px) {
    .mobile-theme-menu-item {
        min-height: 90px;
        border-radius: 17px;
        background: #fff0eb;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        list-style: none;
        color: #1e293b;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-theme-menu-item:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.12);
    }

    .mobile-theme-menu-item .mobile-theme-label {
        display: block;
        font-size: 15px;
        line-height: 1;
        font-weight: 600;
        color: #1e293b;
    }

    body.dark-mode .mobile-theme-menu-item {
        background: #334155;
        color: #f1f5f9;
    }

    body.dark-mode .mobile-theme-menu-item .mobile-theme-label {
        color: #f1f5f9;
    }
}


/* =========================================================
   APKNova dynamic theme colors
   Values are supplied as CSS custom properties on <html>.
   Keep these rules in the stylesheet so all visual design
   remains controlled by assets/css.
   ========================================================= */
.site-header{background:var(--header-bg)}
.site-footer{background:var(--footer-bg)}
body:not(.dark-mode){background-color:var(--body-bg)}

.big-download-btn,.download-btn,.dl-btn,.view-all,.dl-step-num,.get-btn-new,.slider-dot.active{
    background:var(--primary-color);
    border-radius:var(--button-radius);
    box-shadow:0 4px 15px rgba(var(--primary-rgb),0.25);
    transition:all 0.3s ease
}
.updated-badge .dot{background:var(--primary-color)}
.big-download-btn:hover,.download-btn:hover,.dl-btn:hover,.view-all:hover,.get-btn-new:hover{
    background:var(--secondary-color);
    box-shadow:0 6px 20px rgba(var(--secondary-rgb),0.35);
    transform:translateY(-2px)
}
.section-header h2,.post-content h2,.breadcrumbs a,.meta-icon svg,.app-category,.updated-badge,.card-details-type,.category-link,.mod-info-bar,.dl-security,.dl-install-title,.detail-icon svg,.dl-security svg{
    color:var(--primary-color)
}
.category-link:hover,.breadcrumbs a:hover{color:var(--secondary-color)}
.app-card:hover{box-shadow:0 8px 25px rgba(var(--primary-rgb),0.15);transform:translateY(-4px)}
.slider-arrow:hover{background:var(--secondary-color)}
.big-download-btn:active,.download-btn:active,.dl-btn:active{
    transform:translateY(0);
    box-shadow:0 2px 8px rgba(var(--primary-rgb),0.2)
}
.dl-steps{background:rgba(var(--primary-rgb),0.08);border:1px solid rgba(var(--primary-rgb),0.15)}
.dl-security{background:rgba(var(--primary-rgb),0.05);border:1px solid rgba(var(--primary-rgb),0.12)}
.card-details-type{background:rgba(var(--primary-rgb),0.08)}
.breadcrumbs{border:1px solid rgba(var(--primary-rgb),0.15)}
.mod-info-bar,.mod-content-hidden{background:rgba(var(--primary-rgb),0.08);border:1px solid rgba(var(--primary-rgb),0.15)}
.mod-info-bar:hover{background:rgba(var(--primary-rgb),0.15)}
.mod-content-hidden{background:rgba(var(--primary-rgb),0.04)}
.current-crumb{background:rgba(var(--primary-rgb),0.08)}
.dl-divider{background:rgba(var(--primary-rgb),0.15)}
.countdown{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));box-shadow:0 10px 30px rgba(var(--secondary-rgb),0.35)}
.progress-bar{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color))}

/* ==================== MOBILE CARD RATING STAR COLOR OVERRIDE ==================== */
/* Keep card rating stars independent from inherited/theme .stars rules. */
.card-rating-mobile .stars .star {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
.card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}
body.dark-mode .card-rating-mobile .stars .star {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
body.dark-mode .card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}


/* ==================== FINAL MOBILE CARD RATING FIX ==================== */
/* Featured App/Game cards use the same rating source as the detail page. */
.card-rating-mobile .stars .star,
.card-rating-mobile .stars .star:not(.filled),
.card-rating-mobile .stars .star.empty {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
.card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}
.card-rating-mobile .stars .star.half {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(90deg, #fbbf24 50%, #cbd5e1 50%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}
body.dark-mode .card-rating-mobile .stars .star.half {
    background: linear-gradient(90deg, #fbbf24 50%, #64748b 50%) !important;
}

body.dark-mode .card-rating-mobile .stars .star,
body.dark-mode .card-rating-mobile .stars .star:not(.filled),
body.dark-mode .card-rating-mobile .stars .star.empty {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
body.dark-mode .card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}

/* ==================== MOBILE CARD RATING STAR COLOR OVERRIDE ==================== */
/* Keep card rating stars independent from inherited/theme .stars rules. */
.card-rating-mobile .stars .star {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
.card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}
body.dark-mode .card-rating-mobile .stars .star {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
body.dark-mode .card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}


/* ==================== FINAL MOBILE CARD RATING FIX ==================== */
/* Featured App/Game cards use the same rating source as the detail page. */
.card-rating-mobile .stars .star,
.card-rating-mobile .stars .star:not(.filled),
.card-rating-mobile .stars .star.empty {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
.card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}
body.dark-mode .card-rating-mobile .stars .star,
body.dark-mode .card-rating-mobile .stars .star:not(.filled),
body.dark-mode .card-rating-mobile .stars .star.empty {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
body.dark-mode .card-rating-mobile .stars .star.filled {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}
