.main-content {
    padding-top: 120px;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--shadow-color);
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 0;
    margin-bottom: 60px;
}

.script-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.script-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--accent-primary);
}

.script-card:hover::before {
    transform: scaleX(1);
}

.script-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hub-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.hub-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--shadow-color);
}

.script-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.script-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.script-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    align-items: center;
}

.feature {
    background: rgba(255, 105, 180, 0.1);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 105, 180, 0.2);
    transform: translateY(-2px);
}

.script-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.free-scripts {
    text-align: center;
    padding: 40px 0;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.free-scripts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 105, 180, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.free-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.free-scripts .btn {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .scripts-grid {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }
    
    .script-card {
        padding: 30px 20px;
    }
    
    .hub-image {
        width: 70px;
        height: 70px;
    }
    
    .script-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 150px;
    }
    
    .main-content {
        padding-top: 100px;
    }
    
    .free-scripts {
        padding: 30px 20px;
    }
    
    .free-text {
        font-size: 1.1rem;
    }
}
