/*!
 * NexAPK 1.0.0
 * https://nexapk.in/
 *
 * Copyright (c) 2026 NexAPK
 *
 * Licensed under the MIT license
 * https://opensource.org/licenses/MIT
 */
:root {
    --body-bg: linear-gradient(180deg, #f7f9ff 0%, #fbfbfd 100%);
    --text: #172032;
    --card: #ffffff;
    --topbar-bg: linear-gradient(90deg, #fff, #fff);
    --border: rgba(15, 20, 40, 0.03);
    --btn-border: rgba(15, 20, 40, 0.04);
    --border-light: rgba(0, 0, 0, 0.05);
    --muted: #8b93a7;
    --accent: #4a6ef2;
    --accent2: #7b41f5;
    --green: #2ecc71;
    --red: #ff6b6b;
    --pill-bg: rgba(74, 110, 242, 0.08);
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 20px rgba(18, 20, 30, 0.06);
    --shadow-hover: 0 20px 40px rgba(18, 20, 30, 0.12);
    --icon-shadow: 0 6px 18px rgba(18, 20, 30, 0.04);
    --icon-shadow-hover: 0 12px 32px rgba(74, 110, 242, 0.15);
    --icon-wrap-bg: linear-gradient(180deg, #f3f6ff, #fff);
    --radius: 18px;
    --footer-bg: #111827;
    --footer-text: #ffffff;
    --footer-muted: #d1d5db;
    --footer-border: #374151;
    --footer-wave: #111827;
    --error-bg: #fef2f2;
    --error-text: #dc2626;
}

[data-theme="dark"] {
    --body-bg: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
    --text: #e2e8f0;
    --card: #1e1e2e;
    --topbar-bg: linear-gradient(90deg, #1e1e2e, #1e1e2e);
    --border: rgba(255, 255, 255, 0.08);
    --btn-border: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.05);
    --muted: #94a3b8;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    --icon-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    --icon-shadow-hover: 0 12px 32px rgba(74, 110, 242, 0.2);
    --icon-wrap-bg: linear-gradient(180deg, #2a2a3a, #1e1e2e);
    --pill-bg: rgba(74, 110, 242, 0.12);
    --glass: rgba(30, 30, 46, 0.9);
    --footer-bg: #111827;
    --footer-text: #ffffff;
    --footer-muted: #d1d5db;
    --footer-border: #374151;
    --footer-wave: #111827;
    --error-bg: #1e1b4b;
    --error-text: #fca5a5;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'El Messiri', sans-serif;
    background: var(--body-bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--topbar-bg);
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hamburger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--btn-border);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    color: var(--text);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 6px;
}

.brand h1 {
    margin: 0;
    font-size: clamp(13px, 1.625vw + 0.5rem, 16px);
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text);
}

.brand small {
    font-size: clamp(11px, 1.375vw + 0.5rem, 11px);
    color: var(--muted);
    font-weight: 600
}

.top-actions {
    display: flex;
    gap: 10px;
    align-items: center
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--btn-border);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    text-decoration: none;
    color: var(--muted);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.icon-btn.active svg {
    color: var(--accent);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

.container {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 0 18px;
    flex: 1;
    transition: max-width 0.3s ease;
}

@media (min-width:768px) {
    .container {
        max-width: 950px;
    }
}

@media (min-width:1024px) {
    .container {
        max-width: 1100px;
    }
}

.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
    margin-top: 0;
    margin-bottom: 22px;
    padding: 13px 20px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 35px rgba(255, 94, 98, 0.35);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(50px);
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.hero h1 {
    margin: 20px 0 10px;
    font-size: clamp(22px, 2.75vw + 0.5rem, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 20%, #e8efff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin: 14px auto 0;
    font-size: clamp(14px, 1.75vw + 0.5rem, 18px);
    font-weight: 500;
    opacity: 0.95;
    color: #fff;
    max-width: 580px;
    line-height: 1.5;
}

.search-section {
    width: 100%;
    max-width: 800px;
    margin: -45px auto 40px;
    padding: 0 18px;
    position: relative;
    z-index: 50;
}

.search-bar-inner {
    background: var(--card);
    border-radius: 35px;
    padding: 8px 12px 8px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.search-bar-inner:focus-within {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 60px rgba(74, 110, 242, 0.18);
    border-color: var(--accent);
}

.search-icon-box {
    color: var(--accent);
    font-size: clamp(16px, 2.0vw + 0.5rem, 20px);
    margin-right: 15px;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-size: clamp(15px, 1.875vw + 0.5rem, 19px);
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.search-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 28px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(74, 110, 242, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: clamp(12px, 1.5vw + 0.5rem, 15px);
    white-space: nowrap;
}

.search-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 30px rgba(74, 110, 242, 0.4);
    filter: brightness(1.1);
}

.search-btn i {
    font-size: clamp(14px, 1.75vw + 0.5rem, 18px);
    transition: transform 0.3s ease;
}

.search-btn:hover i {
    transform: translateX(4px);
}

@media (max-width:600px) {
    .search-section {
        margin-top: -35px;
    }

    .search-bar-inner {
        padding: 6px 6px 6px 20px;
        border-radius: 30px;
    }

    .search-btn span {
        display: none;
    }

    .search-btn {
        padding: 15px;
        border-radius: 50%;
        gap: 0;
    }

    .search-input {
        font-size: clamp(13px, 1.625vw + 0.5rem, 17px);
        padding: 12px 0;
    }

    .search-icon-box {
        margin-right: 12px;
        font-size: clamp(14px, 1.75vw + 0.5rem, 18px);
    }
}

.trend-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border-radius: 50%;
    font-size: clamp(12px, 1.5vw + 0.5rem, 12px);
    font-weight: 700;
    margin-right: 8px;
}

.trend-count {
    font-size: clamp(12px, 1.5vw + 0.5rem, 12px);
    color: var(--muted);
    margin-left: 4px;
}

.popular-section {
    margin: 40px 0;
}

.popular-title {
    text-align: center;
    font-size: clamp(19px, 2.375vw + 0.5rem, 28px);
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.popular-title i {
    color: var(--accent);
    font-size: clamp(22px, 2.75vw + 0.5rem, 32px);
}

.popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.popular-pill {
    background: var(--pill-bg);
    border: 2px solid rgba(74, 110, 242, 0.2);
    border-radius: 999px;
    padding: 12px 24px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--accent);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: clamp(12px, 1.5vw + 0.5rem, 15px);
    white-space: nowrap;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.popular-pill:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.recent-section {
    margin: 40px 0;
}

.recent-title {
    text-align: center;
    font-size: clamp(19px, 2.375vw + 0.5rem, 24px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.results-section {
    margin: 40px 0;
}

.no-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 60px 20px;
    text-align: center;
    background: transparent;
    border-radius: 0;
    margin: 40px auto;
    box-shadow: none;
    border: none;
    max-width: 500px;
}

.no-results .error-icon {
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 10px;
}

.no-results .error-icon svg {
    width: 64px;
    height: 64px;
}

.no-results h3 {
    color: var(--text);
    font-size: clamp(18px, 2.25vw + 0.5rem, 22px);
    margin: 0;
    font-weight: 700;
}

.no-results p {
    color: var(--muted);
    margin: 0;
    font-size: clamp(13px, 1.625vw + 0.5rem, 15px);
    line-height: 1.6;
}

.lottie-container {
    width: 200px;
    height: 200px;
    margin: 0;
    display: none;
}

.btn-back {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.btn-back:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    transition: all 0.3s ease;
    max-width: 100%;
}

@media (min-width:1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: clamp(10px, 3vw, 16px);
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 100%;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 110, 242, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover .title {
    color: var(--accent);
}

.card-tags-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 4px;
}

.icon-wrap {
    width: clamp(72px, 20vw, 96px);
    height: clamp(72px, 20vw, 96px);
    border-radius: 16px;
    background: var(--icon-wrap-bg);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: var(--icon-shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 0 auto 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.card:hover .icon-wrap {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--icon-shadow-hover);
}

.icon-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: shine 5s linear infinite;
    z-index: 2;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.1) brightness(1.05);
    -webkit-filter: contrast(1.1) brightness(1.05);
    transition: filter 0.3s ease;
}

.card:hover .icon {
    filter: contrast(1.15) brightness(1.08) saturate(1.05);
}

.badge {
    font-size: clamp(10px, 1.25vw + 0.5rem, 10px);
    padding: 4px 6px;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 8px rgba(10, 20, 80, 0.06);
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1;
    flex-shrink: 0;
    background-color: var(--tag-color, #4a6ef2);
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.badge.green {
    background-color: #2ecc71;
}

.badge.red {
    background-color: #ff6b6b;
}

.badge.pink {
    background-color: #ff69b4;
}

.badge.orange {
    background-color: #ff8c00;
}

.badge.purple {
    background-color: #9370db;
}

.badge.blue {
    background-color: #4a6ef2;
}

.badge.yellow {
    background-color: var(--accent, #4a6ef2);
}

.badge.indigo {
    background-color: #4b0082;
}

.badge.teal {
    background-color: #008080;
}

.badge.cyan {
    background-color: #00ffff;
}

.badge.rose {
    background-color: #ff007f;
}

.badge.emerald {
    background-color: #50c878;
}

.title {
    font-weight: 700;
    font-size: clamp(12px, 1.5vw + 0.5rem, 15px);
    text-align: center;
    color: var(--text);
    transition: color 0.3s ease;
}

.category {
    font-size: clamp(12px, 1.5vw + 0.5rem, 12px);
    color: var(--muted);
    font-weight: 600;
    text-align: center
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: clamp(11px, 1.375vw + 0.5rem, 13px);
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
    width: 100%;
}

.version,
.download {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    color: #1e6ffb;
}

.version:hover,
.download:hover {
    color: #1e6ffb;
}

.version-icon,
.download-icon {
    color: #1e6ffb !important;
}

.dynamic-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-start;
    margin-top: 4px;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.dynamic-tags .marquee {
    display: flex;
    animation: infiniteScroll 20s linear infinite;
    transition: transform 0.3s ease;
    will-change: transform;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.dynamic-tags .marquee-dupe {
    display: flex;
    position: absolute;
    top: 0;
    left: 100%;
    animation: infiniteScroll 20s linear infinite;
    will-change: transform;
}

.tag-badge {
    font-size: clamp(9px, 1.125vw + 0.5rem, 9px);
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 2px;
    background-color: var(--tag-color, #4a6ef2);
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tag-badge:hover {
    transform: scale(1.1);
}

.tag-badge.green {
    background-color: #2ecc71;
}

.tag-badge.red {
    background-color: #ff6b6b;
}

.tag-badge.pink {
    background-color: #ff69b4;
}

.tag-badge.orange {
    background-color: #ff8c00;
}

.tag-badge.purple {
    background-color: #9370db;
}

.tag-badge.blue {
    background-color: #4a6ef2;
}

.tag-badge.yellow {
    background-color: var(--accent, #4a6ef2);
}

.tag-badge.indigo {
    background-color: #4b0082;
}

.tag-badge.teal {
    background-color: #008080;
}

.tag-badge.cyan {
    background-color: #00ffff;
}

.tag-badge.rose {
    background-color: #ff007f;
}

.tag-badge.emerald {
    background-color: #50c878;
}

.fire-icon {
    width: 8px;
    height: 8px;
    fill: currentColor;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--card);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
    position: relative;
}

.side-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.side-menu-logo .logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, #111827, #2b6df6);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
}

.side-menu-logo h2 {
    margin: 0;
    font-size: clamp(14px, 1.75vw + 0.5rem, 18px);
    font-weight: 700;
    color: var(--text);
}

.close-menu {
    background: none;
    border: none;
    font-size: clamp(19px, 2.375vw + 0.5rem, 24px);
    cursor: pointer;
    color: var(--muted);
}

.side-menu-nav {
    padding: 0 20px;
}

.side-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-nav li {
    margin-bottom: 8px;
}

.side-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.side-menu-nav .search-menu-link:hover {
    background: var(--pill-bg);
    color: var(--accent);
}

.side-menu-nav a.active {
    background: rgba(74, 110, 242, 0.1);
    color: var(--accent);
}

.side-menu-nav svg {
    width: 20px;
    height: 20px;
}

.side-menu-footer {
    margin-top: 40px;
    padding: 0 20px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.side-menu-footer p {
    margin: 0;
    font-size: clamp(12px, 1.5vw + 0.5rem, 12px);
    color: var(--muted);
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text);
    overflow: hidden;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 2rem;
}

.wave path {
    fill: var(--footer-wave);
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    text-align: center;
    position: relative;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo-header,
.logo-sidemenu,
.logo-footer {
    height: auto;
    max-width: 120px;
    object-fit: contain;
}

.footer-links {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--footer-muted);
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--footer-text);
}

.breadcrumb-card {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--card);
    box-shadow: none;
    padding: 8px 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    position: relative;
}

.breadcrumb-card .breadcrumbs {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(12px, 1.5vw + 0.5rem, 13px);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.breadcrumb-card .breadcrumbs::-webkit-scrollbar {
    display: none;
}

.breadcrumb-card .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.breadcrumb-card .breadcrumb-item a {
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.breadcrumb-card .breadcrumb-item a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.breadcrumb-card .breadcrumb-item.active {
    color: var(--muted);
    opacity: 0.8;
}

.breadcrumb-card .breadcrumb-separator {
    color: var(--muted);
    font-size: 14px;
    opacity: 0.8;
}

@media (min-width:768px) {
    .footer-bottom {
        font-size: 1rem;
    }
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin: 0;
}

.nexapk {
    color: #4ade80;
}

.tagline {
    color: var(--footer-muted);
}

@media (min-width:900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px
    }

    .container {
        max-width: 1140px
    }
}

@media (min-width:1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media (max-width:420px) {
    .icon-wrap {
        width: 84px;
        height: 84px
    }

    .icon {
        width: 100%;
        height: 100%;
    }

    .hero h2 {
        font-size: clamp(17px, 2.125vw + 0.5rem, 22px)
    }

    .logo-header {
        max-width: 120px;
    }

    .logo-sidemenu {
        max-width: 100px;
    }

    .logo-footer {
        width: 100px;
    }

    .badge {
        font-size: clamp(9px, 1.125vw + 0.5rem, 9px);
        padding: 3px 5px;
    }

    .no-results h3 {
        font-size: clamp(16px, 2.0vw + 0.5rem, 20px);
    }

    .no-results p {
        font-size: clamp(11px, 1.375vw + 0.5rem, 14px);
    }

    .no-results {
        padding: 20px;
    }
}

@media (min-width:421px) and (max-width:768px) {
    .popular-grid {
        flex-wrap: wrap;
        gap: 8px;
    }
}

main {
    flex: 1;
}

img.icon {
    loading: lazy;
}

.floating-telegram {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    cursor: pointer;
    z-index: 50;
    transition: transform 0.2s ease;
}

.floating-telegram:hover {
    transform: scale(1.1);
}

.floating-telegram svg {
    width: 28px;
    height: 28px;
    fill: white;
}

[data-theme="dark"] .floating-telegram {
    background: #0088cc;
}

[data-theme="dark"] .bg-white {
    background-color: #1e1e2e !important;
}

[data-theme="dark"] .border-gray-100 {
    border-color: #374151 !important;
}

[data-theme="dark"] .text-gray-900 {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-gray-600 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-gray-500 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-gray-400 {
    color: #64748b !important;
}

[data-theme="dark"] .border-gray-200 {
    border-color: #374151 !important;
}

[data-theme="dark"] .ring-gray-200 {
    --tw-ring-color: #374151 !important;
}

.card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
}

@media (max-width:767px) {
    .card {
        padding: 16px 12px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .card .icon-wrap {
        width: 72px !important;
        height: 72px !important;
        margin: 0 auto 10px !important;
    }

    .card .title {
        font-size: 14px !important;
        margin: 8px 0 4px !important;
    }

    .card .category {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .card .row {
        gap: 8px !important;
        font-size: 12px !important;
    }

    .card .badge {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

@media (min-width:768px) {
    .hidden.md\:flex {
        display: flex !important;
    }

    .md\:hidden {
        display: none !important;
    }

    .card.md\:hidden {
        display: none !important;
    }
}

/* Desktop Dark Theme Card Styling - Match Mobile UI */
[data-theme="dark"] .bg-white {
    background-color: #1e1e2e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] a.bg-white {
    background: #1e1e2e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] a.bg-white:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-2px);
}

/* Desktop card container improvements */
@media (min-width: 768px) {
    a.bg-white {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform, box-shadow !important;
    }
    
    a.bg-white:hover {
        transform: translateY(-4px) !important;
    }
}