/* =====================================
   APKZIVRA — MAIN DESIGN
   Dark / Purple / Mobile First
===================================== */

:root {
    --az-bg: #080D18;
    --az-surface: #101827;
    --az-card: #151E30;
    --az-primary: #7C3AED;
    --az-primary-light: #A78BFA;
    --az-white: #FFFFFF;
    --az-muted: #AAB4C6;
    --az-border: #263248;
    --az-radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--az-bg);
    color: var(--az-white);
    font-family: Inter, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.az-container,
.az-footer-inner {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
}

/* =====================================
   HEADER
===================================== */

.az-header,
.az-site-header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 13, 24, 0.97);
    border-bottom: 1px solid var(--az-border);
    backdrop-filter: blur(12px);
}

.admin-bar .az-header,
.admin-bar .az-site-header,
.admin-bar .site-header {
    top: 32px;
}

.az-header-inner,
.az-header-container,
.az-site-header-inner {
    max-width: 1200px;
    margin-inline: auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.az-logo,
.az-site-logo,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--az-white);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.az-logo span,
.az-site-logo span,
.az-footer-brand > a span {
    color: var(--az-primary-light);
}

.az-logo img,
.az-site-logo img,
.custom-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

.az-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.az-header button,
.az-header-actions button,
.az-menu-toggle,
.az-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
    color: var(--az-white);
    background: var(--az-card);
    border: 1px solid var(--az-border);
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.az-header button:hover,
.az-header-actions button:hover,
.az-menu-toggle:hover,
.az-search-toggle:hover {
    background: #252044;
    border-color: var(--az-primary);
}

#az-mobile-menu,
#az-search-panel {
    background: var(--az-surface);
    border-bottom: 1px solid var(--az-border);
    padding: 14px 16px;
}

#az-mobile-menu[hidden],
#az-search-panel[hidden] {
    display: none !important;
}

#az-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#az-mobile-menu a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--az-border);
}

#az-search-panel form {
    display: flex;
    gap: 8px;
    max-width: 700px;
    margin: auto;
}

#az-search-panel input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px;
    background: var(--az-bg);
    color: var(--az-white);
    border: 1px solid var(--az-border);
    border-radius: 10px;
}

#az-search-panel button,
#az-search-panel input[type="submit"] {
    padding: 10px 18px;
    background: var(--az-primary);
    color: white;
    border: 0;
    border-radius: 10px;
}

/* =====================================
   MAIN CONTENT
===================================== */

.az-main {
    min-height: 55vh;
    padding: 30px 0 55px;
}

.az-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.az-post-card {
    min-width: 0;
    overflow: hidden;
    background: var(--az-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius);
    transition: transform 0.2s, border-color 0.2s;
}

.az-post-card:hover {
    transform: translateY(-3px);
    border-color: var(--az-primary);
}

.az-post-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--az-surface);
}

.az-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.az-post-content {
    padding: 13px;
}

.az-post-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
}

.az-post-excerpt {
    color: var(--az-muted);
    font-size: 12px;
}

.az-post-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--az-primary-light);
    font-size: 13px;
    font-weight: 700;
}

.az-pagination {
    margin-top: 30px;
    text-align: center;
}

.az-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    min-height: 36px;
    margin: 3px;
    padding: 5px 10px;
    background: var(--az-card);
    border: 1px solid var(--az-border);
    border-radius: 8px;
}

.az-pagination .current {
    background: var(--az-primary);
    border-color: var(--az-primary);
}

.az-empty-state {
    padding: 55px 20px;
    text-align: center;
    background: var(--az-surface);
    border-radius: var(--az-radius);
}

.az-empty-state p {
    color: var(--az-muted);
}

/* =====================================
   FOOTER
===================================== */

.az-footer {
    background: var(--az-surface);
    border-top: 1px solid var(--az-border);
    padding: 45px 0 30px;
}

.az-footer-inner {
    display: grid;
    gap: 28px;
}

.az-footer-brand > a {
    font-size: 25px;
    font-weight: 800;
}

.az-footer-brand p {
    color: var(--az-muted);
    font-size: 14px;
    margin: 8px 0;
}

.az-footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.az-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.az-footer-column h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.az-footer-column a {
    color: var(--az-muted);
    font-size: 13px;
    transition: color 0.2s;
}

.az-footer-column a:hover {
    color: var(--az-primary-light);
}

.az-footer-copyright {
    padding-top: 22px;
    border-top: 1px solid var(--az-border);
    color: var(--az-muted);
    text-align: center;
    font-size: 12px;
}

/* =====================================
   MOBILE BOTTOM NAVIGATION
===================================== */

.az-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    background: rgba(16, 24, 39, 0.98);
    border-top: 1px solid var(--az-border);
    backdrop-filter: blur(14px);
}

.az-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 49px;
    padding: 4px 1px;
    color: var(--az-muted);
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.az-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 25px;
    line-height: 1;
}

.az-bottom-nav-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.az-bottom-nav-label {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}

.az-bottom-nav-item.is-active {
    color: var(--az-primary-light);
    background: rgba(124, 58, 237, 0.13);
}

.az-bottom-nav-item:hover {
    color: var(--az-white);
}

body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

/* =====================================
   RESPONSIVE
===================================== */

@media (min-width: 768px) {
    .az-header-inner,
    .az-header-container,
    .az-site-header-inner {
        padding: 15px 24px;
    }

    .az-logo img,
    .az-site-logo img,
    .custom-logo {
        max-width: 240px;
        max-height: 58px;
    }

    .az-main {
        padding: 45px 0 70px;
    }

    .az-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .az-footer-inner {
        grid-template-columns: 1fr 1.3fr;
        gap: 35px;
    }

    .az-footer-copyright {
        grid-column: 1 / -1;
    }

    .az-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

@media (min-width: 1100px) {
    .az-post-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .admin-bar .az-header,
    .admin-bar .az-site-header,
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 360px) {
    .az-bottom-nav-label {
        font-size: 9px;
    }

    .az-footer-columns {
        gap: 12px;
    }
}


/* =====================================
   APKZIVRA HOMEPAGE
===================================== */

.az-homepage {
    padding: 18px 0 55px;
}

.az-home-section {
    margin-top: 28px;
}

.az-section-heading {
    margin: 0 0 15px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

/* =====================================
   HERO SLIDER
===================================== */

.az-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #263248;
    border-radius: 16px;
    background: #151E30;
    isolation: isolate;
}

.az-hero-track {
    display: flex;
    width: 100%;
    transition: transform 450ms ease-in-out;
    will-change: transform;
}

.az-hero-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.az-hero-slide-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.az-hero-slide-link > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.az-hero-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-align: center;
    background: linear-gradient(
        125deg,
        #21123f 0%,
        #7C3AED 52%,
        #101827 100%
    );
}

.az-hero-placeholder span {
    font-size: clamp(12px, 3vw, 20px);
    font-weight: 800;
    letter-spacing: 3px;
    opacity: 0.75;
}

.az-hero-placeholder strong {
    font-size: clamp(17px, 4vw, 38px);
    line-height: 1.2;
}

.az-slider-prev,
.az-slider-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(8, 13, 24, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 18px;
}

.az-slider-prev {
    left: 9px;
}

.az-slider-next {
    right: 9px;
}

.az-slider-prev:hover,
.az-slider-next:hover {
    background: #7C3AED;
}

.az-slider-dots {
    position: absolute;
    z-index: 2;
    bottom: 9px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
}

.az-slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s, background 0.25s;
}

.az-slider-dot.is-active {
    width: 23px;
    background: #A78BFA;
}

/* =====================================
   THREE CATEGORY CARDS
===================================== */

.az-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.az-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 105px;
    padding: 12px 5px;
    text-align: center;
    background: #151E30;
    border: 1px solid #263248;
    border-radius: 13px;
    transition: border-color 0.2s, background 0.2s;
}

.az-category-card:hover {
    border-color: #7C3AED;
    background: #211936;
}

.az-category-card > img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.az-category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 30px;
}

.az-category-title {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* =====================================
   APPLICATION CARDS
===================================== */

.az-app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.az-app-card {
    min-width: 0;
    overflow: hidden;
    background: #151E30;
    border: 1px solid #263248;
    border-radius: 14px;
    transition: border-color 0.2s, transform 0.2s;
}

.az-app-card:hover {
    border-color: #7C3AED;
    transform: translateY(-2px);
}

.az-app-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
}

.az-app-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 11px;
    background: #101827;
}

.az-app-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.az-app-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #A78BFA;
    background: linear-gradient(135deg, #211936, #101827);
    font-size: 26px;
    font-weight: 900;
}

.az-app-card-title {
    margin: 11px 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.az-app-card-action {
    display: block;
    margin-top: auto;
    padding: 9px 6px;
    color: #fff;
    background: #7C3AED;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.az-app-card:hover .az-app-card-action {
    background: #6D28D9;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (min-width: 768px) {
    .az-homepage {
        padding-top: 30px;
    }

    .az-home-section {
        margin-top: 42px;
    }

    .az-section-heading {
        font-size: 24px;
    }

    .az-category-grid {
        gap: 18px;
    }

    .az-category-card {
        min-height: 145px;
    }

    .az-category-card > img,
    .az-category-placeholder {
        width: 65px;
        height: 65px;
    }

    .az-category-title {
        font-size: 15px;
    }

    .az-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .az-slider-prev,
    .az-slider-next {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 1100px) {
    .az-app-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .az-hero-slide-link {
        aspect-ratio: 16 / 5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .az-hero-track {
        transition: none;
    }
}
/* ==========================================
   APKZIVRA — SINGLE APPLICATION PAGE
========================================== */

.az-single-app {
    padding-top: 22px;
}

.az-app-detail {
    max-width: 960px;
    margin: 0 auto;
}

.az-app-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #AAB4C6;
    font-size: 12px;
}

.az-app-breadcrumb a {
    color: #A78BFA;
}

.az-app-detail-header {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 20px;
    background: #151E30;
    border: 1px solid #263248;
    border-radius: 16px;
}

.az-app-detail-icon {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #101827;
}

.az-app-detail-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.az-app-detail-heading {
    min-width: 0;
}

.az-app-detail-heading h1 {
    margin: 0 0 7px;
    color: #FFFFFF;
    font-size: clamp(20px, 4vw, 32px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.az-app-developer {
    margin: 0 0 8px;
    color: #AAB4C6;
    font-size: 13px;
}

.az-app-version {
    display: inline-block;
    padding: 4px 10px;
    color: #C4B5FD;
    background: rgba(124, 58, 237, 0.16);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

/* Application Information */

.az-app-information,
.az-app-description {
    margin-top: 22px;
    padding: 20px;
    background: #101827;
    border: 1px solid #263248;
    border-radius: 16px;
}

.az-app-information h2,
.az-app-description h2 {
    margin: 0 0 18px;
    color: #FFFFFF;
    font-size: 19px;
}

.az-app-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.az-app-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    background: #151E30;
    border: 1px solid #263248;
    border-radius: 11px;
}

.az-app-info-label {
    color: #AAB4C6;
    font-size: 12px;
}

.az-app-info-value {
    color: #FFFFFF;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* Download Section */

.az-app-download-section {
    margin-top: 22px;
    padding: 20px;
    text-align: center;
    background: #151E30;
    border: 1px solid #263248;
    border-radius: 16px;
}

.az-app-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 13px 20px;
    color: #FFFFFF;
    background: #7C3AED;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    transition: background 0.2s, transform 0.2s;
}

.az-app-download-button:hover {
    color: #FFFFFF;
    background: #6D28D9;
    transform: translateY(-2px);
}

.az-app-download-section p {
    margin: 12px 0 0;
    color: #AAB4C6;
    font-size: 12px;
}

.az-app-download-unavailable {
    margin-top: 22px;
    padding: 20px;
    color: #AAB4C6;
    text-align: center;
    background: #151E30;
    border: 1px solid #263248;
    border-radius: 12px;
}

/* Description */

.az-app-description-content {
    color: #D1D5DB;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.az-app-description-content img {
    height: auto;
    border-radius: 12px;
}

.az-app-description-content a {
    color: #A78BFA;
    text-decoration: underline;
}

/* Category Tags */

.az-app-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
    color: #AAB4C6;
    font-size: 13px;
}

.az-app-tags a {
    padding: 7px 12px;
    color: #C4B5FD;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 9px;
}

.az-app-tags a:hover {
    background: rgba(124, 58, 237, 0.28);
}

/* Responsive */

@media (min-width: 768px) {
    .az-single-app {
        padding-top: 40px;
    }

    .az-app-detail-header {
        padding: 28px;
        gap: 25px;
    }

    .az-app-detail-icon {
        width: 125px;
        height: 125px;
    }

    .az-app-information,
    .az-app-description,
    .az-app-download-section {
        padding: 28px;
    }

    .az-app-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .az-app-download-button {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 380px) {
    .az-app-detail-header {
        padding: 14px;
        gap: 12px;
    }

    .az-app-detail-icon {
        width: 76px;
        height: 76px;
        border-radius: 15px;
    }

    .az-app-detail-heading h1 {
        font-size: 19px;
    }
}

/* ==========================================
   APKZivra — 404 Error Page
========================================== */

.az-404-page {
    min-height: 75vh;
    padding: 65px 16px 90px;
    background: #080d18;
    color: #ffffff;
}

.az-error-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.az-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: #a78bfa;
    font-size: 42px;
    font-weight: 800;
}

.az-error-code {
    margin: 0;
    color: #a78bfa;
    font-size: clamp(76px, 16vw, 140px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -5px;
}

.az-error-content h1 {
    margin: 12px 0;
    color: #ffffff;
    font-size: clamp(25px, 5vw, 38px);
    font-weight: 800;
}

.az-error-description {
    max-width: 480px;
    margin: 16px auto 28px;
    color: #aab4c6;
    font-size: 15px;
    line-height: 1.8;
}

.az-error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 42px;
}

.az-error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.az-error-button-primary {
    background: #7c3aed;
    color: #ffffff;
}

.az-error-button-primary:hover {
    background: #6d28d9;
    color: #ffffff;
    transform: translateY(-2px);
}

.az-error-button-secondary {
    background: #151e30;
    border: 1px solid #263248;
    color: #ffffff;
}

.az-error-button-secondary:hover {
    background: #202c43;
    color: #ffffff;
}

.az-error-search {
    max-width: 430px;
    margin: 0 auto;
    padding: 25px 20px;
    border: 1px solid #263248;
    border-radius: 18px;
    background: #101827;
}

.az-error-search h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 18px;
}

.az-error-search form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.az-error-search input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #263248;
    border-radius: 10px;
    background: #080d18;
    color: #ffffff;
    font-size: 14px;
}

.az-error-search input[type="search"]:focus {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

.az-error-search input[type="submit"],
.az-error-search button[type="submit"] {
    min-height: 44px;
    padding: 10px 15px;
    border: 0;
    border-radius: 10px;
    background: #7c3aed;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 767px) {
    .az-404-page {
        padding: 48px 16px 110px;
    }

    .az-error-description {
        font-size: 14px;
    }

    .az-error-actions {
        gap: 10px;
    }

    .az-error-button {
        flex: 1;
        min-width: 130px;
    }

    .az-error-search {
        padding: 20px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .az-error-button {
        transition: none;
    }
}





/* ==========================================
   APKZivra — Standard WordPress Pages
========================================== */

.az-standard-page {
    min-height: 70vh;
    padding: 40px 16px 90px;
    background: #080d18;
    color: #ffffff;
}

.az-page-article {
    max-width: 900px;
    margin: 0 auto;
}

.az-page-header {
    margin-bottom: 30px;
}

.az-page-header .az-app-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #aab4c6;
    font-size: 13px;
}

.az-page-header .az-app-breadcrumb a {
    color: #a78bfa;
    text-decoration: none;
}

.az-page-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.25;
}

.az-page-featured-image {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 18px;
}

.az-page-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.az-page-content {
    padding: 30px;
    border: 1px solid #263248;
    border-radius: 18px;
    background: #101827;
    color: #d1d9e6;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.az-page-content h2,
.az-page-content h3,
.az-page-content h4 {
    margin: 30px 0 14px;
    color: #ffffff;
    line-height: 1.4;
}

.az-page-content h2 {
    font-size: 25px;
}

.az-page-content h3 {
    font-size: 20px;
}

.az-page-content p {
    margin: 0 0 18px;
}

.az-page-content a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.az-page-content a:hover {
    color: #c4b5fd;
}

.az-page-content ul,
.az-page-content ol {
    margin: 0 0 22px;
    padding-left: 25px;
}

.az-page-content li {
    margin-bottom: 8px;
}

.az-page-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid #7c3aed;
    border-radius: 0 12px 12px 0;
    background: #151e30;
}

.az-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.az-page-content input,
.az-page-content textarea,
.az-page-content select {
    max-width: 100%;
    padding: 12px;
    border: 1px solid #263248;
    border-radius: 10px;
    background: #080d18;
    color: #ffffff;
}

.az-page-content button,
.az-page-content input[type="submit"] {
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: #7c3aed;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.az-page-content button:hover,
.az-page-content input[type="submit"]:hover {
    background: #6d28d9;
}

.az-page-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.az-page-content th,
.az-page-content td {
    padding: 12px;
    border: 1px solid #263248;
    text-align: left;
}

.az-page-content th {
    background: #151e30;
}

.az-page-pagination {
    margin-top: 25px;
    color: #a78bfa;
}

@media (max-width: 767px) {
    .az-standard-page {
        padding: 25px 12px 110px;
    }

    .az-page-header {
        margin-bottom: 22px;
    }

    .az-page-content {
        padding: 20px 16px;
        border-radius: 14px;
        font-size: 15px;
    }

    .az-page-content h2 {
        font-size: 21px;
    }

    .az-page-content h3 {
        font-size: 18px;
    }
}

/* ==========================================
   APKZivra — Final UI Improvements
========================================== */

/* Browse More Applications */

.az-app-back-navigation {
    margin-top: 28px;
    text-align: center;
}

.az-app-back-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    color: #c4b5fd;
    background: #151e30;
    border: 1px solid #7c3aed;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.az-app-back-navigation a:hover {
    color: #ffffff;
    background: #7c3aed;
}

/* Easier slider controls on touchscreens */

.az-slider-prev,
.az-slider-next {
    min-width: 44px;
    min-height: 44px;
}

.az-slider-dot {
    position: relative;
    min-height: 24px;
    background-clip: content-box;
    padding-block: 8px;
}

/* Visible keyboard focus */

.az-header a:focus-visible,
.az-header button:focus-visible,
.az-bottom-nav-item:focus-visible,
.az-category-card:focus-visible,
.az-app-card-link:focus-visible,
.az-app-download-button:focus-visible,
.az-app-back-navigation a:focus-visible,
.az-slider-prev:focus-visible,
.az-slider-next:focus-visible,
.az-slider-dot:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

/* Prevent long content from overflowing */

.az-app-detail,
.az-page-article,
.az-app-card {
    min-width: 0;
}

.az-app-description-content pre,
.az-page-content pre {
    max-width: 100%;
    overflow-x: auto;
}

/* Small screen adjustments */

@media (max-width: 380px) {
    .az-category-grid {
        gap: 6px;
    }

    .az-category-card {
        padding-inline: 3px;
    }

    .az-category-title {
        font-size: 10px;
    }
}

/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .az-app-card,
    .az-category-card,
    .az-app-download-button,
    .az-app-back-navigation a {
        transition: none;
    }
}
