.app-page {
    max-width: 980px;
    margin: 0 auto;
}

.app-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.app-hero-icon .app-icon {
    width: clamp(120px, 22vw, 200px);
    height: auto;
    border-radius: 22%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    display: block;
}

.app-hero-content h1 {
    font-size: clamp(22px, 4.5vw, 44px);
    margin: 0 0 8px;
    line-height: 1.15;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.verified-inline {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.developer {
    font-weight: 700;
    color: #25d366;
    margin: 0 0 4px;
    font-size: 15px;
}

.developer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.category {
    color: #777;
    font-size: 14px;
    margin: 0 0 12px;
}

.app-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 12px 0 16px;
    font-size: 14px;
}

.app-info .info-item {
    text-align: center;
    min-width: 72px;
}

.app-info .value {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.app-info .label {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

.app-info .separator {
    color: #ddd;
    font-size: 22px;
    font-weight: 300;
}

.classification {
    text-align: center;
}

.classification .badge {
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #25d366;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 auto 4px;
    font-size: 14px;
}

.star {
    color: #f5a623;
}

.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.install-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.btn-install {
    background: #01875f;
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-width: 140px;
    transition: background 0.2s, transform 0.1s;
}

.btn-install:hover {
    background: #016b4b;
}

.btn-install:active {
    transform: scale(0.98);
}

.btn-open {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-width: 140px;
    transition: background 0.2s;
}

.btn-open:hover {
    background: #1557b0;
}

.btn-share,
.btn-favorite {
    background: #fff;
    border: 1px solid #dadce0;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: border-color 0.2s, color 0.2s;
}

.btn-favorite.active {
    color: #e53935;
    border-color: #e53935;
    background: #fff5f5;
}

.btn-favorite.active i {
    font-weight: 900;
}

.progress-bar-container {
    flex: 1 1 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-container.hidden {
    display: none;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #01875f;
    transition: width 0.35s ease;
}

.app-description {
    background: #fff;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.app-description h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #333;
}

.app-description p {
    margin: 0;
    line-height: 1.65;
    color: #555;
}

.top-apps h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.apps-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.app-card.small {
    flex-direction: column;
    text-align: center;
    padding: 14px 10px;
    gap: 8px;
}

.app-card.small img {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: cover;
}

.app-card.small span {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
}

.app-card.small small {
    color: #888;
    font-size: 11px;
}

@media (max-width: 720px) {
    .app-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 16px;
    }

    .app-hero-icon .app-icon {
        margin: 0 auto;
    }

    .app-hero-content h1 {
        justify-content: center;
    }

    .app-info {
        justify-content: center;
    }

    .app-buttons,
    .install-section {
        justify-content: center;
    }

    .btn-install,
    .btn-open {
        flex: 1 1 auto;
        min-width: 120px;
    }
}
