/* user.css - Minimal & Clean Design */

/* VPN Promo Box */
.vpn-promo-box {
    border-radius: 24px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    color: white;
    backdrop-filter: blur(10px);
    /* Restoring background gradient since inline style was removed */
    background: var(--gradient-primary);
}

.promo-content {
    padding: 3rem;
    flex: 1;
    z-index: 2;
    max-width: 60%;
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.promo-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.promo-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.promo-features span {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-promo {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    background: white;
    color: #4facfe;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: #00f2fe;
}

.btn-promo:active {
    transform: translateY(0);
}

.promo-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 320px;
}

.shield-icon {
    font-size: 8rem;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse-ring 3s infinite;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Category Pills - Modern */
.category-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    background: white;
    border-radius: 50px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.category-pill.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* App Grid - Modern Cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 1);
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.05) rotate(3deg);
}

.app-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 20px rgba(253, 160, 133, 0.3);
}

.app-info {
    margin-bottom: 1.5rem;
}

.app-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-primary);
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.app-desc {
    font-size: 0.9rem;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    height: 2.7rem;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #8898aa;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-download {
    width: 100%;
    background: var(--color-light);
    color: var(--color-dark);
    font-weight: 600;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-download:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Search Input - Enhanced */
.search-section {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border-radius: 50px;
    padding: 14px 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: var(--color-primary);
    transform: scale(1.02);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.7;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* =========================================
   COMPACT MOBILE STYLES (v2)
   ========================================= */
@media (max-width: 768px) {
    .vpn-promo-box {
        flex-direction: column;
        text-align: center;
        padding: 0 0 1rem 0;
        /* Reduced padding */
        min-height: auto;
    }

    .promo-content {
        max-width: 100%;
        padding: 1.25rem 1rem;
        /* Compact padding */
        z-index: 5;
    }

    .promo-title {
        font-size: 1.5rem;
        /* Much smaller title */
        margin-bottom: 0.4rem;
    }

    .promo-desc {
        font-size: 0.85rem;
        /* Smaller desc */
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    /* Compact Grid for Features */
    .promo-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        justify-content: center;
        margin-bottom: 1.25rem;
    }

    .promo-features span {
        font-size: 0.75rem;
        padding: 5px 8px;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
    }

    .promo-visual {
        display: none;
        /* Hide visual area completely to save height */
    }

    .shield-icon {
        display: none;
    }

    .btn-promo {
        width: 100%;
        padding: 8px;
        font-size: 0.9rem;
    }

    /* Compact app grid */
    .app-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .app-card {
        padding: 1rem;
    }
}