* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 30%, #1a1a2e, #16213e, #0f0f1f);
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.glass {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.app-wrapper {
    max-width: 1280px;
    width: 100%;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.app-wrapper::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(120, 180, 255, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: liquidShift 12s infinite alternate ease-in-out;
}

.app-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(200, 120, 255, 0.06) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: liquidShift 18s infinite alternate-reverse ease-in-out;
}

@keyframes liquidShift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.6; }
    100% { transform: translate(30px, -40px) scale(1.3) rotate(8deg); opacity: 1; }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f0f4ff, #a0c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(100, 180, 255, 0.2);
}

.logo span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: -4px;
    font-weight: 300;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.7rem 1.6rem;
    border-radius: 60px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-glass i {
    font-size: 1rem;
    color: #7cb8ff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(0, 100, 255, 0.25);
}

.btn-primary {
    background: rgba(70, 130, 255, 0.25);
    border-color: rgba(70, 130, 255, 0.4);
}

.btn-primary i {
    color: #8cbaff;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.search-input {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    padding: 0.7rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(4px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    border-color: rgba(100, 180, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.sort-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    padding: 0.7rem 1.5rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

.sort-select option {
    background: #1a1a2e;
    color: #fff;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 5;
}

.pack-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pack-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 1.2rem 1.5rem;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pack-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.pack-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.03), transparent 60%);
    pointer-events: none;
    transition: 0.6s;
}

.pack-card:hover::after {
    transform: translate(10%, 10%);
}

.pack-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pack-preview .no-img {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
}

.pack-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0f4ff;
    margin-bottom: 0.15rem;
    letter-spacing: -0.3px;
}

.pack-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.pack-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pack-author i {
    color: #7cb8ff;
    font-size: 0.7rem;
}

.pack-rating {
    color: #ffd966;
    font-size: 0.85rem;
}

.pack-rating i {
    margin-right: 4px;
}

.pack-version {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
    display: inline-block;
}

.pack-detail {
    position: relative;
    z-index: 5;
}

.pack-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pack-detail-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
    overflow: hidden;
}

.pack-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pack-detail-info h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.pack-detail-author {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.pack-detail-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pack-detail-stats {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.pack-detail-stats i {
    margin-right: 6px;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.upload-container h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-container p {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

.upload-form .form-group {
    margin-bottom: 1.5rem;
}

.upload-form label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.upload-form input,
.upload-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.upload-form input:focus,
.upload-form textarea:focus {
    border-color: rgba(100, 180, 255, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(70, 130, 255, 0.05);
}

.upload-form small {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.progress-bar {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 60px;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a7cf7, #6c5ce7);
    border-radius: 60px;
    transition: width 0.3s ease;
    width: 0%;
}

#progressText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.loading-state,
.empty-state,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.25);
}

.loading-state i,
.empty-state i,
.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.text-muted {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .app-wrapper {
        padding: 1.5rem;
    }
    
    .pack-detail-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-input,
    .sort-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .btn-glass {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .packs-grid {
        grid-template-columns: 1fr;
    }
}