
body {
    background: #ffffff !important;
}

.main-content {
    background: #ffffff !important;
}

.page-content {
    background: #ffffff !important;
}

:root {
    --primary-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --hover-transform: translateY(-2px);
    --modern-border-radius: 12px;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #6c757d;
}

.apps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.apps-header-modern {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: transparent;
}

.apps-header-modern h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.apps-header-modern p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

.apps-search-section {
    background: #1B1D1F;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar-modern {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-bar-modern input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.search-bar-modern input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar-modern input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-bar-modern button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #494b58, #3a3c48);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar-modern button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-row-modern {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-row-modern label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.filter-row-modern select {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
}

.filter-row-modern select option {
    background: #1B1D1F;
    color: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 2rem;
}

.app-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.app-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.app-icon-wrapper {
    text-align: center;
    margin-bottom: 16px;
}

.app-icon-modern {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-info-modern {
    text-align: center;
}

.app-name-modern {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
    line-height: 1.4;
}

.vip-badge-modern {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 6px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.app-version-modern {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
}

.app-description-modern {
    font-size: 14px;
    color: #636e72;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 63px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.app-meta-modern {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 14px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-detail-modern {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-detail-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 2rem 0;
}

.pagination-modern button,
.pagination-modern span {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-modern button {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination-modern button:hover:not(:disabled) {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    transform: translateY(-2px);
}

.pagination-modern button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-modern .page-number {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.pagination-modern .page-number:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.pagination-modern .page-number.active {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pagination-modern .page-info {
    padding: 10px 16px;
    color: #6c757d;
    font-size: 14px;
    background: transparent;
    border: none;
}

/* Loading */
.loading-wrapper {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6c757d;
    font-size: 16px;
}

.no-results-modern {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-results-modern i {
    font-size: 80px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results-modern h3 {
    color: #1a1a1a;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-results-modern p {
    color: #6c757d;
    font-size: 16px;
}

.error-message-modern {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-message-modern i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .apps-header-modern {
        padding: 2rem 1rem 1.5rem;
    }
    
    .apps-header-modern h1 {
        font-size: 1.6rem;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .search-bar-modern {
        flex-direction: column;
    }
    
    .filter-row-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-row-modern select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-modern {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-modern button,
    .pagination-modern span {
        padding: 8px 12px;
        font-size: 13px;
    }
}