/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f2f8;
    color: #0b0f1c;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c5cae0;
    border-radius: 10px;
}

.app {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 25px;
    transition: margin-left 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    /*background: rgba(240, 242, 248, 0.92);*/
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(79, 123, 255, 0.06);
    padding: 0 24px;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo .blue {
    background: linear-gradient(135deg, #4f7bff, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo .dark {
    color: #0b0f1c;
}

/* Nav Links - Desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5578;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
}

.nav-links>li>a:hover {
    color: #4f7bff;
    background: rgba(79, 123, 255, 0.06);
}

.nav-links>li>a.active {
    color: #4f7bff;
    background: rgba(79, 123, 255, 0.08);
}

.nav-links>li>a .arrow {
    font-size: 10px;
    transition: transform 0.3s;
    margin-left: 2px;
}

.nav-links>li:hover>a .arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: absolute;
    top: calc(100%);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    padding: 8px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(79, 123, 255, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.nav-links>li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #1a2340;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.dropdown a:hover {
    background: rgba(79, 123, 255, 0.04);
    color: #4f7bff;
    border-left-color: #4f7bff;
}

.dropdown .icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.dropdown .badge-drop {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #ff4d6a;
    padding: 1px 10px;
    border-radius: 30px;
}

/* ===== NAV RIGHT ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(79, 123, 255, 0.06);
    transition: all 0.2s;
    position: relative;
}

.nav-right .icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 123, 255, 0.1);
}

.nav-right .icon-btn svg {
    width: 20px;
    height: 20px;
    fill: #4a5578;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ff4d6a;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    border: 2px solid #f0f2f8;
}

.nav-right .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f7bff, #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79, 123, 255, 0.25);
    transition: all 0.2s;
}

.nav-right .avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 123, 255, 0.35);
}

/* ===== HAMBURGER (Mobile) ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a2340;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== SIDENAV (Mobile) ===== */
.sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidenav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidenav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 100;
    padding: 24px 20px 30px;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.06);
}

.sidenav.open {
    left: 0;
}

.sidenav .logo {
    font-size: 22px;
    margin-bottom: 24px;
}

.sidenav .nav-group {
    margin-bottom: 20px;
}

.sidenav .nav-group .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #b3bcd6;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.sidenav .nav-group a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2340;
    text-decoration: none;
    transition: all 0.15s;
}

.sidenav .nav-group a:hover {
    background: rgba(79, 123, 255, 0.06);
    color: #4f7bff;
}

.sidenav .nav-group a .icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.sidenav .nav-group a .badge-side {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #ff4d6a;
    padding: 1px 10px;
    border-radius: 30px;
}

.sidenav .divider {
    height: 1px;
    background: rgba(79, 123, 255, 0.06);
    margin: 16px 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 0 24px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #0b0f1c;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, #4f7bff, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 16px;
    color: #6b7899;
    margin-top: 10px;
    max-width: 460px;
    line-height: 1.6;
}

.search-wrap {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: 18px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(79, 123, 255, 0.06);
    border: 1px solid rgba(79, 123, 255, 0.06);
    transition: all 0.3s;
}

.search-wrap:focus-within {
    border-color: #4f7bff;
    box-shadow: 0 4px 28px rgba(79, 123, 255, 0.12);
    transform: translateY(-2px);
}

.search-wrap svg {
    width: 22px;
    height: 22px;
    fill: #9aa3c2;
    flex-shrink: 0;
}

.search-wrap input {
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    background: transparent;
    color: #0b0f1c;
    padding: 18px 0;
    font-weight: 500;
}

.search-wrap input::placeholder {
    color: #b3bcd6;
    font-weight: 400;
}

.search-wrap .shortcut {
    font-size: 12px;
    font-weight: 600;
    color: #b3bcd6;
    background: #f0f2f8;
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

/* ===== BANNERS ===== */
.banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 10px 0 20px;
}

.banner-card {
    border-radius: 22px;
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #1a1f36, #0f1322);
}

.banner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.banner-card:active {
    transform: scale(0.98);
}

.banner-card .badge {
    font-size: 10px;
    font-weight: 700;
    color: #fec84d;
    background: rgba(254, 200, 77, 0.15);
    padding: 3px 14px;
    border-radius: 30px;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.banner-card h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 8px;
}

.banner-card h3 a{
    text-decoration: none;
    color: #fff;
}

.banner-card .banner-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.banner-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.banner-card .package {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.banner-card .download-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.banner-card .download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.banner-card .glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 123, 255, 0.15), transparent 70%);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.banner-card.gradient-1 {
    background: linear-gradient(135deg, #1a1f36, #2d1b69);
}
.banner-card.gradient-2 {
    background: linear-gradient(135deg, #0f2027, #203a43);
}
.banner-card.gradient-3 {
    background: linear-gradient(135deg, #2b1a3a, #1a1f36);
}

/* ===== BANNER WITH IMAGE ===== */
.banner-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
    padding: 28px 24px;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.banner-image:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.banner-image .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 15, 28, 0.85) 0%, rgba(11, 15, 28, 0.4) 60%, rgba(11, 15, 28, 0.2) 100%);
    z-index: 1;
}

.banner-image .banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 140px;
}

.banner-image .badge {
    background: rgba(254, 200, 77, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    color: #fec84d;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.banner-image h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.banner-image .banner-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.banner-image .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.banner-image .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.banner-image .package {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.banner-image .download-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.banner-image .download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .banner-image {
        min-height: 150px;
        padding: 20px 18px;
    }
    
    .banner-image h3 {
        font-size: 18px;
    }
    
    .banner-image .banner-content {
        min-height: 110px;
    }
    
    .banner-image .icon-box {
        width: 36px;
        height: 36px;
    }
}

/* ===== BANNER HYBRID (Text + Thumbnail) ===== */
.banner-hybrid {
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
    min-height: 160px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.banner-hybrid:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.banner-hybrid-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 24px 28px;
    height: 100%;
    min-height: 160px;
    gap: 20px;
}

.banner-hybrid .banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-hybrid .badge {
    background: rgba(254, 200, 77, 0.15);
    backdrop-filter: blur(4px);
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    color: #fec84d;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.banner-hybrid h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 8px;
}

.banner-hybrid .banner-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.banner-hybrid .package {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.banner-hybrid .download-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 5px 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.banner-hybrid .download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.banner-hybrid .banner-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.banner-hybrid .banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-hybrid-inner {
        padding: 18px 16px;
        min-height: 130px;
        flex-direction: row;
        gap: 14px;
    }
    
    .banner-hybrid h3 {
        font-size: 16px;
    }
    
    .banner-hybrid .banner-thumb {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }
    
    .banner-hybrid .banner-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .banner-hybrid .package {
        font-size: 10px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .banner-hybrid .banner-thumb {
        width: 60px;
        height: 60px;
    }
    
    .banner-hybrid h3 {
        font-size: 14px;
    }
    
    .banner-hybrid .download-btn {
        font-size: 10px;
        padding: 4px 14px;
    }
}

/* ===== SECTION ===== */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 32px 0 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0b0f1c;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 .emoji {
    font-size: 24px;
}

.section-header a {
    font-size: 14px;
    font-weight: 600;
    color: #4f7bff;
    text-decoration: none;
    transition: all 0.2s;
    padding: 4px 12px;
    border-radius: 8px;
}

.section-header a:hover {
    background: rgba(79, 123, 255, 0.06);
}

/* ===== QUICK ACCESS ===== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin-bottom: 6px;
}

.quick-item {
    background: #fff;
    border-radius: 18px;
    padding: 20px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(79, 123, 255, 0.04);
    text-decoration: none;
    color: #0b0f1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.quick-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(79, 123, 255, 0.08);
    border-color: rgba(79, 123, 255, 0.1);
}

.quick-item .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.2s;
}

.quick-item span {
    font-size: 13px;
    font-weight: 600;
    color: #2d3654;
}

/* ===== TRENDING ===== */
.trending-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.trending-wrap a {
    background: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2340;
    text-decoration: none;
    border: 1px solid rgba(79, 123, 255, 0.06);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.trending-wrap a:hover {
    background: #eef2ff;
    border-color: #4f7bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 123, 255, 0.08);
}

.trending-wrap .hot {
    color: #ff4d6a;
}

/* ===== APP CARDS ===== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 4px;
}

.app-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 10px 16px;
    text-align: center;
    border: 1px solid rgba(79, 123, 255, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: #0b0f1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(79, 123, 255, 0.08);
    border-color: rgba(79, 123, 255, 0.1);
}

.app-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f3ff, #e8edff);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #4f7bff;
}

.app-card .name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card .meta {
    font-size: 11px;
    color: #9aa3c2;
    margin-top: 4px;
}

.app-card .rating {
    font-size: 12px;
    color: #fec84d;
    margin-top: 3px;
    font-weight: 600;
}

/* ===== HORIZONTAL SCROLL (Desktop grid) ===== */
.scroll-x {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding-bottom: 4px;
}

.scroll-x .app-card {
    min-width: unset;
    max-width: unset;
}

/* ===== EDITOR CHOICE ===== */
.editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.editor-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(79, 123, 255, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: #0b0f1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.editor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 44px rgba(79, 123, 255, 0.08);
    border-color: rgba(79, 123, 255, 0.1);
}

.editor-card .top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.editor-card .top .icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f3ff, #e8edff);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #4f7bff;
}

.editor-card .top .info h4 {
    font-size: 15px;
    font-weight: 700;
}

.editor-card .top .info .rating {
    font-size: 13px;
    color: #fec84d;
    font-weight: 600;
}

.editor-card .desc {
    font-size: 13px;
    color: #6b7899;
    margin-top: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PRE-REGISTER & SALE ===== */
.pre-grid,
.sale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.pre-card,
.sale-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(79, 123, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: #0b0f1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.pre-card:hover,
.sale-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(79, 123, 255, 0.08);
    border-color: rgba(79, 123, 255, 0.1);
}

.pre-card .icon,
.sale-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f3ff, #e8edff);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #4f7bff;
}

.pre-card .info h4,
.sale-card .info h4 {
    font-size: 14px;
    font-weight: 700;
}

.pre-card .info .dev,
.sale-card .info .dev {
    font-size: 12px;
    color: #6b7899;
}

.pre-card .count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: #4f7bff;
    background: #eef2ff;
    padding: 3px 14px;
    border-radius: 30px;
    flex-shrink: 0;
}

.sale-card .price {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.sale-card .price .current {
    font-weight: 800;
    color: #22b573;
    font-size: 16px;
}

.sale-card .price .original {
    font-size: 12px;
    color: #b3bcd6;
    text-decoration: line-through;
    display: block;
}

/* ===== UPDATE CARD ===== */
.update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.update-card {
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(79, 123, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: #0b0f1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(79, 123, 255, 0.08);
    border-color: rgba(79, 123, 255, 0.1);
}

.update-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f3ff, #e8edff);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #4f7bff;
}

.update-card .info h4 {
    font-size: 14px;
    font-weight: 600;
}

.update-card .info .meta {
    font-size: 12px;
    color: #6b7899;
}

.update-card .version {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #4f7bff;
    background: #eef2ff;
    padding: 2px 14px;
    border-radius: 30px;
    flex-shrink: 0;
}

/* ===== TOP NEW ===== */
.topnew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.topnew-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(79, 123, 255, 0.04);
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: #0b0f1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.topnew-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(79, 123, 255, 0.08);
    border-color: rgba(79, 123, 255, 0.1);
}

.topnew-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f3ff, #e8edff);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #4f7bff;
}

.topnew-card .info h4 {
    font-size: 14px;
    font-weight: 700;
}

.topnew-card .info p {
    font-size: 12px;
    color: #6b7899;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-top: 2px;
}

/* ============================================================ */
/* ===== RESPONSIVE ===== */
/* ============================================================ */

/* Desktop & Tablet */
@media (max-width: 1024px) {
    .banners {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .editor-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .pre-grid,
    .sale-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .update-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Mobile - hide desktop nav, show hamburger + sidenav */
@media (max-width: 768px) {
    .app {
        padding: 30px;
    }

    .navbar {
        padding: 0 16px;
    }

    .navbar-inner {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-right .icon-btn {
        display: none;
    }

    .nav-right .avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0 16px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .search-wrap {
        width: 100%;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .banners {
        grid-template-columns: 1fr;
    }

    .banner-card {
        min-height: 140px;
    }

    .banner-card h3 {
        font-size: 18px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .scroll-x {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .pre-grid,
    .sale-grid {
        grid-template-columns: 1fr;
    }

    .update-grid {
        grid-template-columns: 1fr 1fr;
    }

    .topnew-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile kecil */
@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .scroll-x {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .update-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-item {
        padding: 14px 8px 12px;
    }

    .quick-item .icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .banner-card {
        padding: 18px 16px;
        min-height: 120px;
    }

    .banner-card h3 {
        font-size: 16px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .trending-wrap a {
        font-size: 12px;
        padding: 6px 14px;
    }

    .logo {
        font-size: 20px;
    }

    .sidenav {
        width: 280px;
        left: -300px;
    }
}

/* Desktop large */
@media (min-width: 1024px) {
    .banners {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .scroll-x {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .editor-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pre-grid,
    .sale-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .update-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .topnew-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #fff;
    border-top: 1px solid rgba(79, 123, 255, 0.06);
    padding: 48px 24px 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

/* Brand */
.footer-brand {
    max-width: 320px;
}

.footer-desc {
    font-size: 14px;
    color: #6b7899;
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f0f2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
    background: #4f7bff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 123, 255, 0.25);
}

/* Links Grid */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0b0f1c;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: #6b7899;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: #4f7bff;
    transform: translateX(4px);
}

/* Bottom */
.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(79, 123, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9aa3c2;
}

.footer-version {
    font-weight: 600;
    color: #b3bcd6;
    background: #f0f2f8;
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 11px;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 32px 16px 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-desc {
        text-align: center;
    }
}

/* --- Pagination --- */
.pagination-btn {
    background: linear-gradient(135deg, #4f7bff, #6c5ce7);
    background-clip: border-box;
    border-color: #4f7bff;
    color: #fafafa;
    padding: .8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 2.5rem;
    text-align: center;
    text-decoration: none;
}

.pagination-btn:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
}

.pagination-btn.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.items-center {
  align-items: center;
}
.flex-col {
  flex-direction: column;
}
.flex {
  display: flex;
}
.mt-10 {
  margin-top: 2.5rem;
}

/* ===== DETAIL PAGE - PREMIUM ===== */
.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ===== HERO SECTION ===== */
.detail-hero {
    position: relative;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    margin-bottom: 32px;
}

.detail-hero-bg {
    position: relative;
    height: 420px;
    background: #1a1f36;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11,15,28,0.3) 0%, rgba(11,15,28,0.85) 80%, rgba(11,15,28,0.95) 100%);
}

.detail-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.back-btn {
    position: absolute;
    top: 24px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
    z-index: 2;
}

.back-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-4px);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.detail-hero-main {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    z-index: 2;
}

.detail-icon-large {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.1);
}

.detail-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    background: #22b573;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: 3px solid #1a1f36;
    cursor: default;
}

.icon-badge .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: -50%;
    background: #0b0f1c;
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    white-space: nowrap;
}

.icon-badge:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.detail-hero-text {
    flex: 1;
    min-width: 0;
}

.detail-hero-text h1 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.detail-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-subtitle span {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.detail-subtitle .dot {
    color: rgba(255,255,255,0.2);
}

.detail-subtitle .rating {
    color: #fec84d;
    font-weight: 700;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tag {
    padding: 4px 14px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.04);
}

.detail-actions-premium {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-download-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4f7bff, #6c5ce7);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 24px rgba(79, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-download-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-download-premium:hover::before {
    opacity: 1;
}

.btn-download-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(79, 123, 255, 0.4);
}

.btn-download-premium:active {
    transform: scale(0.96);
}

.btn-download-premium svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.btn-download-premium .btn-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 30px;
}

.btn-share-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-share-premium:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.btn-share-premium svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-favorite {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-favorite:hover {
    background: rgba(255,77,106,0.2);
    transform: translateY(-3px);
}

.btn-favorite svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ===== CONTENT GRID ===== */
.detail-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    padding: 0 32px;
}

/* ===== DETAIL CARD ===== */
.detail-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    border: 1px solid rgba(79, 123, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    transition: all 0.3s;
}

.detail-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.sticky-card {
    position: sticky;
    top: 90px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0b0f1c;
}

.card-header .count,
.card-header .version-badge {
    font-size: 12px;
    font-weight: 600;
    color: #9aa3c2;
}

.version-badge {
    background: #eef2ff;
    color: #4f7bff;
    padding: 2px 12px;
    border-radius: 30px;
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #4f7bff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-expand:hover {
    background: rgba(79, 123, 255, 0.06);
}

.btn-expand svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s;
}

.btn-expand.active svg {
    transform: rotate(180deg);
}

.view-all {
    font-size: 13px;
    font-weight: 600;
    color: #4f7bff;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* ===== DESCRIPTION ===== */
.detail-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5578;
}

.detail-description.collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.detail-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
}

/* ===== SCREENSHOTS ===== */
.detail-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f2f8;
    aspect-ratio: 9/16;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(79, 123, 255, 0.04);
}

.screenshot-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 123, 255, 0.1);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

/* ===== CHANGELOG ===== */
.detail-changelog ul {
    list-style: none;
    padding: 0;
}

.detail-changelog ul li {
    padding: 8px 0;
    font-size: 14px;
    color: #4a5578;
    border-bottom: 1px solid rgba(79, 123, 255, 0.04);
}

.detail-changelog ul li:last-child {
    border-bottom: none;
}

/* ===== REVIEWS ===== */
.detail-reviews {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(79, 123, 255, 0.04);
}

.review-item:last-child {
    border-bottom: none;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f3ff, #e8edff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4f7bff;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
    min-width: 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.review-name {
    font-size: 13px;
    font-weight: 700;
    color: #0b0f1c;
}

.review-rating {
    font-size: 13px;
}

.review-date {
    font-size: 11px;
    color: #9aa3c2;
}

.review-text {
    font-size: 14px;
    color: #4a5578;
    line-height: 1.5;
}

/* ===== QUICK INFO ===== */
.quick-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(79, 123, 255, 0.04);
}

.quick-info-item:last-child {
    border-bottom: none;
}

.qi-icon {
    font-size: 18px;
    width: 32px;
    text-align: center;
}

.quick-info-item > div {
    flex: 1;
    min-width: 0;
}

.qi-label {
    display: block;
    font-size: 11px;
    color: #9aa3c2;
    font-weight: 500;
}

.qi-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0b0f1c;
    word-break: break-all;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-download-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #4f7bff, #6c5ce7);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-download-sticky:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 123, 255, 0.3);
}

.btn-download-sticky svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #9aa3c2;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-report:hover {
    background: rgba(255,77,106,0.06);
    color: #ff4d6a;
}

.btn-report svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== SIMILAR APPS ===== */
.similar-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.similar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.similar-item:hover {
    background: rgba(79, 123, 255, 0.04);
    border-color: rgba(79, 123, 255, 0.06);
    transform: translateX(4px);
}

.similar-item img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.similar-item > div {
    flex: 1;
    min-width: 0;
}

.similar-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0b0f1c;
}

.similar-rating {
    font-size: 12px;
    color: #fec84d;
    font-weight: 600;
}

.similar-size {
    font-size: 11px;
    color: #9aa3c2;
    font-weight: 500;
    flex-shrink: 0;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 40px;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.16);
}

.lightbox-counter {
    position: absolute;
    bottom: 32px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .detail-content-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .sticky-card {
        position: relative;
        top: 0;
    }
    
    .detail-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .detail-hero-text h1 {
        font-size: 26px;
    }
    
    .detail-subtitle {
        justify-content: center;
    }
    
    .detail-tags {
        justify-content: center;
    }
    
    .detail-actions-premium {
        justify-content: center;
    }
    
    .detail-icon-large {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .detail-hero-bg {
        height: 380px;
    }
    
    .detail-hero-content {
        padding: 16px 16px 24px;
    }
    
    .back-btn {
        top: 16px;
        left: 16px;
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .detail-hero-main {
        gap: 16px;
    }
    
    .detail-icon-large {
        width: 90px;
        height: 90px;
        border-radius: 20px;
    }
    
    .detail-hero-text h1 {
        font-size: 22px;
    }
    
    .detail-actions-premium {
        flex-wrap: wrap;
    }
    
    .btn-download-premium {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .detail-content-grid {
        padding: 0 12px;
    }
    
    .detail-card {
        padding: 16px 18px;
        margin-bottom: 16px;
    }
    
    .detail-screenshots {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .detail-hero {
        border-radius: 0;
    }
    
    .lightbox {
        padding: 16px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .detail-hero-bg {
        height: 340px;
    }
    
    .detail-hero-text h1 {
        font-size: 18px;
    }
    
    .detail-subtitle span {
        font-size: 12px;
    }
    
    .tag {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .detail-icon-large {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }
    
    .icon-badge {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .detail-screenshots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-download-premium {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .btn-download-premium .btn-sub {
        font-size: 10px;
    }
    
    .btn-share-premium {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .btn-favorite {
        width: 42px;
        height: 42px;
    }
}