body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.header {
    background-color: #fff;
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.page-title {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.lang-dropdown {
    min-width: 140px;
}

.lang-dropdown .dropdown-toggle {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.lang-dropdown .dropdown-toggle:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
}

.lang-dropdown .dropdown-toggle::after {
    margin-left: auto;
}

.lang-dropdown .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-width: 140px;
}

.lang-dropdown .dropdown-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.lang-dropdown .dropdown-item:hover {
    background: #f8f9fa;
}

.lang-dropdown .dropdown-item.active {
    background: #007aff;
    color: #fff;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #e62117;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 10px;
}

.youtube-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #cc1d12;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #d6249f;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s;
}

.instagram-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #b81f88;
}

.details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #007aff;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.details-link:hover {
    background: #f8f9fa;
    border-color: #007aff;
    color: #0056b3;
}

.flag-icon {
    font-size: 20px;
}

.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 75px;
    height: 75px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 7px;
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.app-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.store-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 6px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.store-btn i {
    line-height: 1;
}

.app-store-btn {
    background: #000;
    color: #fff;
}

.app-store-btn:hover {
    background: #333;
    color: #fff;
}

.play-store-btn {
    background: #01875f;
    color: #fff;
}

.play-store-btn:hover {
    background: #00a872;
    color: #fff;
}

.container-custom {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
}

@media (max-width: 768px) {
    .app-icon {
        width: 60px;
        height: 60px;
    }

    .app-title {
        font-size: 16px;
    }

    .app-description {
        font-size: 13px;
    }

    .store-links {
        gap: 8px;
    }

    .store-links .store-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
        border-radius: 40px;
    }

    .store-links .store-btn .store-text {
        display: none;
    }

    .store-links .store-btn i {
        margin: 0;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .container-custom {
        padding: 15px 10px;
    }

    .app-card {
        padding: 15px;
        gap: 12px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
    }

    .app-title {
        font-size: 15px;
    }

    .app-description {
        font-size: 12px;
    }

    .store-links .store-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .store-links .store-btn i {
        font-size: 16px;
    }

    .brand-name {
        font-size: 16px;
    }

    .page-title {
        font-size: 14px;
    }

    .navbar-brand img {
        width: 32px;
        height: 32px;
    }

    .youtube-btn {
        padding: 14px;
        width: 56px;
        height: 56px;
        justify-content: center;
        border-radius: 40px;
        margin-right: 10px;
    }

    .youtube-btn .yt-text {
        display: none;
    }

    .instagram-btn {
        padding: 14px;
        width: 56px;
        height: 56px;
        justify-content: center;
        border-radius: 40px;
    }

    .instagram-btn .ig-text {
        display: none;
    }

    .details-link {
        padding: 14px;
        width: 56px;
        height: 56px;
        justify-content: center;
        border-radius: 40px;
    }

    .details-link span {
        display: none;
    }

    .store-links {
        margin-bottom: 4px;
    }
}

/* --- Details Page (Grid & Detail View) --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.detail-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.detail-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    background: #f8f9fa;
    padding: 6px;
}

.detail-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.detail-card-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-card-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.detail-card-stats .stat-item i {
    color: #f59e0b;
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    width: 1em;
}

.detail-card-stats .stat-item:nth-child(2) i {
    color: #01875f;
}

.detail-card-stats .stat-item:nth-child(3) i {
    color: #007aff;
}

/* App Detail (Single Screen) */
.app-detail {
    min-height: 60vh;
    padding: 24px 0;
}

.app-detail-content {
    max-width: 480px;
    margin: 0 auto;
}

.detail-main {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.detail-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 24px;
}

.detail-app-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.detail-app-description {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 28px;
}

.detail-stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.detail-stat i {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    width: 1em;
    color: #007aff;
}

.detail-stat:nth-child(1) i {
    color: #f59e0b;
}

.detail-stat:nth-child(2) i {
    color: #01875f;
}

.detail-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.detail-stat-label {
    font-size: 12px;
    color: #888;
}

.detail-store-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.detail-store-links .store-btn {
    min-width: 180px;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .detail-card {
        padding: 20px 16px;
    }

    .detail-card-icon {
        width: 64px;
        height: 64px;
    }

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

    .detail-main {
        padding: 32px 24px;
    }

    .detail-stats-row {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}