/* ConfiaSite Apps — estilo APKLUTO + marca ConfiaSite */
:root {
    --cs-primary: #007bff;
    --cs-primary-dark: #0056b3;
    --cs-success: #28a745;
    --cs-lime: #b8f028;
    --cs-gold: #f0c040;
    --cs-bg: #0f1118;
    --cs-card: #1a1f2e;
    --cs-card-2: #232a3d;
    --cs-text: #eef2f7;
    --cs-muted: #9aa4b8;
    --cs-border: rgba(255, 255, 255, 0.08);
    --cs-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --cs-shadow-hover: 0 14px 32px rgba(40, 167, 69, 0.2);
    /* APKLUTO light (list + detail) */
    --apk-teal: #1bbc9b;
    --apk-teal-dark: #17a589;
    --apk-bg: #e6e9ef;
    --apk-text: #4c4c4c;
    --apk-heading: #111827;
    --apk-muted: #6b7280;
    --apk-card: #fff;
    --apk-shadow: 2px 2px 2px 0 #e3e3e3;
    --apk-border: #e5e7eb;
}

body.bv-apkluto {
    font-family: 'Open Sans', 'Segoe UI', Arial, Helvetica, sans-serif;
    background: var(--apk-bg);
    color: var(--apk-text);
    min-height: 100vh;
    font-size: 13px;
}

body.bv-apkluto .breadcrumb-item a,
body.bv-apkluto .breadcrumb-item.active {
    color: var(--apk-muted);
    font-size: 0.9rem;
}

body.bv-apkluto .breadcrumb-item a:hover {
    color: var(--apk-teal);
}

/* —— List hero (APKLUTO light) —— */
.apk-list-hero-inner {
    padding: 1.25rem 1.35rem;
    background: var(--apk-card);
    box-shadow: var(--apk-shadow);
    border-radius: 2px;
}

.apk-list-hero-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.apk-list-hero-domain {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--apk-teal);
    background: rgba(27, 188, 155, 0.12);
    padding: 4px 10px;
    border-radius: 3px;
}

.apk-list-hero-tag {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #fff;
    background: var(--apk-teal);
    padding: 4px 10px;
    border-radius: 3px;
}

.apk-list-hero-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 0.45rem;
    line-height: 1.25;
    color: var(--apk-heading);
}

.apk-list-hero-subtitle {
    color: var(--apk-muted);
    font-size: 0.95rem;
    max-width: 720px;
}

.apk-list-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--apk-muted);
}

.apk-list-hero-stats strong {
    color: var(--apk-teal);
}

.apk-list-search .input-group-text {
    background: #f2f2f2;
    border-color: var(--apk-border);
    color: var(--apk-muted);
}

.apk-list-search .form-control {
    background: #f2f2f2;
    border-color: var(--apk-border);
    color: var(--apk-heading);
}

.apk-list-search .form-control:focus {
    border-color: var(--apk-teal);
    box-shadow: 0 0 0 0.15rem rgba(27, 188, 155, 0.2);
    background: #fff;
    color: var(--apk-heading);
}

body.bv-apkluto .apk-list-search .btn-success {
    background: var(--apk-teal);
    border-color: var(--apk-teal);
    font-weight: 800;
}

body.bv-apkluto .apk-list-search .btn-success:hover {
    background: var(--apk-teal-dark);
    border-color: var(--apk-teal-dark);
}

.apk-list-trust {
    margin-bottom: 1rem;
}

.highlight {
    font-weight: 800;
    color: var(--apk-teal);
}

/* —— Category nav (APKLUTO tabs) —— */
.apk-cat-nav {
    background: var(--apk-card);
    border: none;
    border-radius: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--apk-shadow);
}

.apk-cat-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px;
    min-width: min-content;
}

@media (min-width: 768px) {
    .apk-cat-nav-inner {
        flex-wrap: wrap;
    }
}

.apk-cat-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 2px;
    color: var(--apk-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.apk-cat-nav-item i {
    font-size: 1rem;
    opacity: 0.85;
}

.apk-cat-nav-item em {
    font-style: normal;
    font-size: 0.72rem;
    background: #f2f2f2;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--apk-muted);
}

.apk-cat-nav-item:hover {
    background: #f9fafb;
    color: var(--apk-heading);
}

.apk-cat-nav-item.active {
    background: #f0fdf9;
    color: var(--apk-teal);
    box-shadow: inset 0 -3px 0 var(--apk-teal);
}

.apk-cat-nav-item.active em {
    background: rgba(27, 188, 155, 0.15);
    color: var(--apk-teal);
}

/* —— App list (APKLUTO Latest Apps) —— */
.apk-list-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--apk-muted);
}

.apk-list-result-bar strong {
    color: var(--apk-heading);
}

.apk-list-heading {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--apk-teal);
    color: var(--apk-heading);
}

.apk-list-heading-sm {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.apk-list-panel {
    padding: 1.25rem 1rem;
}

@media (min-width: 576px) {
    .apk-list-panel {
        padding: 1.5rem;
    }
}

.apk-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .apk-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.apk-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--apk-card);
    border: none;
    border-radius: 2px;
    text-decoration: none;
    color: var(--apk-heading);
    box-shadow: var(--apk-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.apk-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 3px 3px 6px 0 #d5d5d5;
    color: var(--apk-heading);
}

.apk-list-icon {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--apk-border);
    box-shadow: none;
}

@media (min-width: 576px) {
    .apk-list-icon {
        width: 100px;
        height: 100px;
    }
}

.apk-list-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.apk-list-updated {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #19b934;
}

.apk-list-name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    display: block;
    color: var(--apk-heading);
}

.apk-list-meta {
    font-size: 0.78rem;
    color: var(--apk-muted);
}

.apk-list-cat {
    font-size: 0.72rem;
    color: var(--apk-teal);
    font-weight: 600;
}

.apk-list-action {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: var(--apk-teal);
    color: #fff;
    flex-shrink: 0;
    font-size: 1rem;
}

.apk-list-item:hover .apk-list-action {
    background: var(--apk-teal-dark);
    color: #fff;
}

/* —— Recent apps scroll —— */
.apk-recent-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.apk-recent-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    background: var(--apk-card);
    border: none;
    border-radius: 2px;
    text-decoration: none;
    color: var(--apk-heading);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--apk-shadow);
    transition: background 0.2s;
}

.apk-recent-item:hover {
    background: #f0fdf9;
    color: var(--apk-teal);
}

.apk-recent-item img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--apk-border);
}

/* —— Empty state —— */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--apk-card);
    border-radius: 2px;
    border: 1px dashed var(--apk-border);
    box-shadow: var(--apk-shadow);
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--apk-muted);
}

/* —— Detail / shared —— */
.card {
    box-shadow: var(--cs-shadow);
    border-radius: 12px;
    border: 1px solid var(--cs-border);
    margin-bottom: 20px;
}

.card-header {
    background: var(--cs-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 12px 12px 0 0 !important;
}

.btn-primary {
    background-color: var(--cs-primary);
    border-color: var(--cs-primary);
}

.btn-primary:hover {
    background-color: var(--cs-primary-dark);
    border-color: var(--cs-primary-dark);
}

.btn-success {
    background-color: var(--cs-success);
    border-color: var(--cs-success);
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--cs-border);
}

.app-icon-lg {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--cs-border);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--cs-muted);
}

.app-content {
    font-size: 1.06rem;
    line-height: 1.85;
}

.app-content h2,
.app-content h3 {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.app-content p {
    margin-bottom: 1rem;
}

.screenshot-swiper {
    border-radius: 12px;
    overflow: hidden;
}

.screenshot-swiper .swiper-slide img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

/* —— Pagination —— */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--cs-primary);
    border-color: var(--cs-border);
}

.pagination .page-item.active .page-link {
    background: var(--cs-primary);
    border-color: var(--cs-primary);
}

/* —— Recent apps —— */
.recent-domains {
    background: var(--cs-card);
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--cs-shadow);
    border: 1px solid var(--cs-border);
}

.recent-domains h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.domain-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.domain-item {
    background: var(--cs-card-2);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--cs-border);
    transition: all 0.2s;
}

.domain-item:hover {
    background: rgba(40, 167, 69, 0.12);
    border-color: rgba(40, 167, 69, 0.3);
}

.domain-item a {
    color: var(--cs-lime);
    text-decoration: none;
}

.domain-item a:hover {
    text-decoration: underline;
}

.site-footer-dark {
    background-color: #1a1a2e;
    color: #fff;
    padding: 24px 0;
    text-align: center;
}

.site-footer-dark a {
    color: #93c5fd;
}

.breadcrumb {
    background: transparent;
}

.category-intro-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--cs-shadow);
}

.category-intro-card p:last-child {
    margin-bottom: 0;
}


/* —— APK detail (APKLUTO layout) —— */
.apk-panel {
    background: var(--apk-card);
    border: none;
    border-radius: 2px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--apk-shadow);
}

.apk-hero-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 575px) {
    .apk-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .apk-hero-logo {
        display: flex;
        justify-content: center;
    }
}

.apk-logo-img {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.25);
    border: 2px solid rgba(240, 192, 64, 0.35);
}

.apk-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.apk-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.apk-badge-updated {
    background: rgba(40, 167, 69, 0.2);
    color: var(--cs-lime);
}

.apk-badge-cat {
    background: rgba(0, 123, 255, 0.15);
    color: #7ec8ff;
}

.apk-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}

.apk-inline-label {
    color: var(--cs-muted);
    font-weight: 600;
    margin-right: 4px;
}

.apk-version {
    color: var(--cs-text);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.apk-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.apk-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.apk-star {
    color: var(--cs-gold);
    font-size: 1rem;
}

.apk-rating-score {
    color: var(--cs-text);
    font-weight: 600;
}

.apk-votes {
    color: var(--cs-muted);
    font-size: 0.88rem;
}

.apk-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #34d058 0%, var(--cs-success) 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.apk-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(40, 167, 69, 0.45);
    color: #fff;
}

.apk-download-btn-sm {
    font-size: 1rem;
    padding: 12px 24px;
}

.apk-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--cs-muted);
}

.apk-share a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cs-card-2);
    color: var(--cs-text);
    text-decoration: none;
    border: 1px solid var(--cs-border);
    transition: background 0.2s, color 0.2s;
}

.apk-share a:hover {
    background: var(--cs-success);
    color: #fff;
}

dl.apk-meta-table.apk-panel {
    padding: 0;
}

.apk-meta-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    padding: 1px;
    overflow: hidden;
    background: var(--cs-border);
}

@media (min-width: 576px) {
    .apk-meta-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .apk-meta-table {
        grid-template-columns: repeat(4, 1fr);
    }
}

.apk-meta-row {
    display: grid;
    grid-template-columns: 7.75rem 1fr;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    background: var(--cs-card-2);
    min-height: 54px;
}

.apk-meta-row dt {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cs-muted);
    white-space: nowrap;
}

.apk-meta-row dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cs-text);
    word-break: break-word;
}

.cs-trust-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--apk-card);
    border: none;
    border-radius: 2px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: var(--apk-shadow);
}

.cs-trust-banner i {
    font-size: 1.5rem;
    color: var(--apk-teal);
    flex-shrink: 0;
}

.cs-trust-banner strong {
    display: block;
    margin-bottom: 4px;
    color: var(--apk-heading);
}

.cs-trust-banner p {
    margin: 0;
    color: var(--apk-muted);
    font-size: 0.88rem;
}

.cs-trust-banner a {
    color: var(--apk-teal);
}

.apk-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(40, 167, 69, 0.35);
}

.apk-content {
    color: #d5dbe8;
}

.apk-faq .accordion-item {
    background: var(--cs-card-2);
    border-color: var(--cs-border);
    color: var(--cs-text);
}

.apk-faq .accordion-button {
    background: var(--cs-card-2);
    color: var(--cs-text);
    font-weight: 600;
}

.apk-faq .accordion-button:not(.collapsed) {
    background: rgba(40, 167, 69, 0.12);
    color: var(--cs-lime);
    box-shadow: none;
}

.apk-faq .accordion-body {
    background: var(--cs-card);
    color: var(--cs-muted);
}

.apk-tips li {
    margin-bottom: 8px;
    color: var(--cs-muted);
}

.apk-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.apk-related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--cs-text);
    transition: border-color 0.2s, transform 0.2s;
}

.apk-related-card:hover {
    border-color: rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
    color: var(--cs-text);
}

.apk-related-card img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.apk-related-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apk-related-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cs-lime);
    text-transform: uppercase;
}

.apk-related-ver {
    font-size: 0.8rem;
    color: var(--cs-muted);
}

body.bv-apkluto .btn-outline-primary {
    border-color: rgba(0, 123, 255, 0.5);
    color: #7ec8ff;
}

body.bv-apkluto .btn-outline-primary:hover {
    background: var(--cs-primary);
    color: #fff;
}

body.bv-apkluto .pagination .page-link {
    background: var(--apk-card);
    color: var(--apk-heading);
    border-color: var(--apk-border);
    box-shadow: var(--apk-shadow);
}

body.bv-apkluto .pagination .page-item.active .page-link {
    background: var(--apk-teal);
    border-color: var(--apk-teal);
}

/* —— BrasilViaWeb navbar / layout —— */
.ym-navbar {
    background: rgba(15, 17, 24, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.ym-navbar.scrolled { padding: 10px 0; }

.ym-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--cs-lime) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ym-navbar .nav-link {
    color: var(--cs-muted) !important;
    font-weight: 600;
}

.ym-navbar .nav-link:hover,
.ym-navbar .nav-link.active {
    color: var(--cs-lime) !important;
}

.ym-search .input-group-text,
.ym-search .form-control {
    background: var(--cs-card-2);
    border-color: var(--cs-border);
    color: var(--cs-text);
}

/* —— App layout spacing (fix breadcrumb gap) —— */
body.bv-apkluto .ym-breadcrumb-wrap {
    padding-top: 68px;
    margin-bottom: 0;
    padding-bottom: 4px;
}

body.bv-apkluto .ym-main {
    padding-top: 8px;
    padding-bottom: 2rem;
}

body.bv-apkluto.apkluto-detail-page .ym-main,
body.bv-apkluto.apkluto-app-page .ym-main {
    max-width: 860px;
}

body.bv-apkluto .apkluto-subnav {
    margin-bottom: 10px;
}

body.bv-apkluto .apkluto-detail {
    margin-top: 0;
}

@media (max-width: 768px) {
    body.bv-apkluto .ym-breadcrumb-wrap {
        padding-top: 62px;
        padding-bottom: 2px;
    }

    body.bv-apkluto .ym-main {
        padding-top: 6px;
    }
}

.ym-main { padding-top: 100px; padding-bottom: 2rem; }

.ym-breadcrumb-wrap {
    padding-top: 90px;
    margin-bottom: -60px;
}

.ym-footer {
    background: #0a0c12;
    color: #fff;
    padding: 48px 0 20px;
    border-top: 1px solid var(--cs-border);
    margin-top: 32px;
}

.ym-footer hr { border-color: var(--cs-border); }
.ym-footer p, .footer-links a { color: var(--cs-muted); }
.footer-links a:hover { color: var(--cs-lime); }

.footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--cs-lime);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .ym-main { padding-top: 88px; }
    .ym-breadcrumb-wrap { padding-top: 80px; margin-bottom: -48px; }
}

/* —— APKLUTO detail page (luck26-game / FA999 layout) —— */
body.apkluto-detail-page {
    background: var(--apk-bg);
    color: var(--apk-text);
}

body.apkluto-detail-page .ym-main {
    max-width: 860px;
}

body.apkluto-detail-page .ym-breadcrumb .breadcrumb-item a,
body.apkluto-detail-page .ym-breadcrumb .breadcrumb-item.active {
    color: var(--apk-muted);
    font-size: 0.9rem;
}

body.apkluto-detail-page .ym-breadcrumb .breadcrumb-item a:hover {
    color: var(--apk-teal);
}

.apkluto-detail {
    margin-top: 0;
}

.apkluto-subnav {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    background: #fff;
    border: none;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--apk-shadow);
}

.apkluto-subnav-item {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #374151;
    border-bottom: 3px solid transparent;
    background: #fff;
}

.apkluto-subnav-item:hover {
    color: #1bbc9b;
    background: #f9fafb;
}

.apkluto-subnav-item.active {
    color: #1bbc9b;
    border-bottom-color: #1bbc9b;
    background: #f0fdf9;
}

.apkluto-card {
    background: #fff;
    border: none;
    border-radius: 2px;
    margin-bottom: 14px;
    padding: 18px 20px;
    box-shadow: 2px 2px 2px 0 #e3e3e3;
}

/* APKLUTO app-s layout (luck26-game) */
.apkluto-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-areas:
        "side head"
        "side meta";
    column-gap: 20px;
    row-gap: 12px;
    align-items: start;
}

.apkluto-head {
    grid-area: head;
    min-width: 0;
}

.apkluto-side {
    grid-area: side;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 150px;
}

.apkluto-meta-panel {
    grid-area: meta;
    min-width: 0;
}

.apkluto-logo-box {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.apkluto-logo-badge {
    position: absolute;
    top: 10px;
    left: -28px;
    z-index: 2;
    width: 100px;
    padding: 4px 0;
    background: #19b934;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(-45deg);
    transform-origin: center;
    letter-spacing: 0.3px;
}

.apkluto-hero-logo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.apkluto-side-dl {
    width: 100%;
    padding: 10px 8px;
    font-size: 0.82rem;
    border-radius: 3px;
    box-shadow: none;
}

.apkluto-meta-panel {
    background: #f2f2f2;
    margin-top: 2px;
    overflow: hidden;
}

.apkluto-meta-grid {
    display: flex;
    flex-wrap: wrap;
}

.apkluto-meta-cell {
    width: 33.3333%;
    padding: 10px 12px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    box-sizing: border-box;
}

.apkluto-meta-cell:nth-child(3n) {
    border-right: none;
}

.apkluto-meta-cell strong {
    display: block;
    font-size: 0.82rem;
    color: #111827;
    margin-bottom: 4px;
    font-weight: 800;
}

.apkluto-meta-cell span {
    display: block;
    font-size: 0.88rem;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.apkluto-app-icon {
    width: 150px;
    height: 150px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.apkluto-app-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
    color: #111827;
}

.apkluto-app-version {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
}

.apkluto-app-cats {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.apkluto-app-cats a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    background: #1bbc9b;
    color: #fff !important;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

.apkluto-app-cats a:hover {
    text-decoration: underline;
}

.apkluto-app-lead {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.55;
}

.apkluto-app-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.apkluto-updated-label {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 4px;
}

.apkluto-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1bbc9b;
    color: #fff !important;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 10px 16px;
    border-radius: 3px;
    text-decoration: none;
    box-shadow: none;
    border: none;
    text-transform: uppercase;
}

.apkluto-dl-btn:hover {
    background: #17a589;
    color: #fff;
}

.apkluto-rating-line {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    text-align: center;
}

.apkluto-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.apkluto-rating-stars .apk-star {
    color: #1bbc9b;
    font-size: 0.95rem;
}

.apkluto-rating-score {
    line-height: 1.2;
}

.apkluto-rating-line strong {
    font-size: 1.1rem;
    color: #1bbc9b;
}

.apkluto-votes {
    flex: 0 0 100%;
    margin-left: 0;
    color: #6b7280;
    font-size: 0.82rem;
}

.apkluto-report-link {
    font-size: 0.88rem;
    color: #6b7280;
    text-decoration: underline;
}

/* Mobile — APKLUTO: head full width, then 50% logo | 50% meta */
@media (max-width: 767px) {
    body.apkluto-detail-page .apkluto-app-card {
        padding: 10px;
    }

    .apkluto-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "head head"
            "side meta";
        column-gap: 0;
        row-gap: 10px;
    }

    .apkluto-head {
        padding-bottom: 2px;
    }

    .apkluto-app-title {
        font-size: 1.65rem;
        line-height: 1.22;
    }

    .apkluto-app-version {
        font-size: 0.9rem;
    }

    .apkluto-app-lead {
        font-size: 0.88rem;
        margin-bottom: 0;
    }

    .apkluto-side {
        width: auto;
        padding-right: 10px;
        gap: 6px;
    }

    .apkluto-side-dl {
        font-size: 0.78rem;
        padding: 9px 6px;
    }

    .apkluto-rating-line {
        font-size: 0.78rem;
        gap: 3px;
    }

    .apkluto-rating-stars .apk-star {
        font-size: 0.82rem;
    }

    .apkluto-rating-line strong {
        font-size: 0.95rem;
    }

    .apkluto-votes {
        display: block;
        margin: 2px 0 0;
        font-size: 0.72rem;
    }

    .apkluto-report-link {
        text-align: center;
        font-size: 0.75rem;
    }

    .apkluto-meta-panel {
        margin-top: 0;
    }

    .apkluto-meta-grid {
        flex-direction: column;
    }

    .apkluto-meta-cell {
        width: 100%;
        padding: 8px 10px;
        border-right: none;
    }

    .apkluto-meta-cell strong {
        font-size: 0.78rem;
        margin-bottom: 2px;
    }

    .apkluto-meta-cell span {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .apkluto-side {
        align-items: stretch;
    }
}

.apkluto-meta-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .apkluto-meta-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .apkluto-meta-strip {
        grid-template-columns: 1fr;
    }
}

.apkluto-meta-item {
    padding: 16px 14px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.apkluto-meta-item:last-child {
    border-right: none;
}

.apkluto-meta-item strong {
    display: block;
    font-size: 0.82rem;
    color: #111827;
    margin-bottom: 6px;
    font-weight: 800;
}

.apkluto-meta-item span {
    display: block;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

.apkluto-social-bar {
    padding: 12px 20px;
}

.apkluto-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.apkluto-social-list a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 1.1rem;
}

.apkluto-social-list a:hover {
    background: #22c55e;
    color: #fff;
}

.apkluto-report-box {
    padding: 14px 20px;
}

.apkluto-report-title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
}

.apkluto-report-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

.apkluto-h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: #111827;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 8px;
}

.apkluto-desc .apkluto-content,
.apkluto-desc .app-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.8;
}

.apkluto-desc .app-content h2,
.apkluto-desc .app-content h3 {
    color: #111827;
    font-weight: 800;
    margin-top: 1.4em;
}

.apkluto-desc .app-content a {
    color: #2563eb;
}

.apkluto-dl-inline {
    margin: 20px 0 0;
}

.apkluto-dl-text {
    display: inline-block;
    background: #22c55e;
    color: #fff !important;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
}

.apkluto-dl-text:hover {
    background: #16a34a;
    color: #fff;
}

.apkluto-faq-item {
    margin-bottom: 18px;
}

.apkluto-faq-q {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.apkluto-faq-a {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.apkluto-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.apkluto-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.apkluto-related-item:hover {
    border-color: #86efac;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.apkluto-related-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.apkluto-related-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apkluto-related-updated {
    font-size: 0.68rem;
    font-weight: 800;
    color: #16a34a;
    text-transform: uppercase;
}

.apkluto-related-text strong {
    font-size: 0.95rem;
    color: #111827;
}

.apkluto-related-text em {
    font-style: normal;
    font-size: 0.82rem;
    color: #6b7280;
}

.apkluto-screens .swiper-slide img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
