.plans-hero {
    min-height: 50vh;
    padding: 80px 0;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto 50px;
    border: 1px solid var(--card-border);
}

.pricing-tab {
    flex: 1;
    padding: 15px 20px;
    background-color: var(--secondary-dark);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    color: var(--light-text);
}

.pricing-tab.active {
    background-color: var(--primary-blue);
    color: white;
}

.pricing-tab:hover:not(.active) {
    background-color: rgba(103, 137, 255, 0.1);
}

.plan-category {
    display: none;
}

.plan-category.active {
    display: block;
}

.plan-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.plan-card {
    background-color: var(--secondary-dark);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.popular-tag {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--primary-blue);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    transform: rotate(45deg);
    z-index: 1;
}

.plan-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.plan-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.plan-header.minecraft {
    background-color: #1b236c;
}

.plan-header.database {
    background-color: rgba(45, 91, 158, 0.2);
}

.plan-header.bot {
    background-color: #8c6823b8;
}

.plan-header.vps {
    background-color: rgba(97, 64, 146, 0.2);
}

.plan-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.plan-cycle {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.plan-features {
    padding: 30px;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--gray-text);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236789ff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.feature-list li.unavailable {
    color: var(--gray-text);
    opacity: 0.6;
}

.feature-list li.unavailable::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0a0'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.feature-highlight {
    color: var(--light-text);
    font-weight: 500;
}

.plan-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.plan-card .btn {
    width: 100%;
}

.faq-section {
    margin-top: 80px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--secondary-dark);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray-text);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.section-tabs {
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .plan-cards {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        margin-bottom: 20px;
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .pricing-tabs {
        flex-direction: column;
        max-width: 300px;
    }

    .pricing-tab {
        border-bottom: 1px solid var(--card-border);
    }

    .pricing-tab:last-child {
        border-bottom: none;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .plans-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .plan-header {
        padding: 20px;
    }

    .plan-features {
        padding: 20px;
    }

    .plan-name {
        font-size: 1.5rem;
    }

    .plan-price {
        font-size: 1.8rem;
    }
}

.database-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto 40px;
    border: 1px solid var(--card-border);
}

.database-tab {
    flex: 1;
    padding: 12px 15px;
    background-color: var(--secondary-dark);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    color: var(--light-text);
}

.database-tab.active {
    background-color: rgba(45, 91, 158, 0.6);
    color: white;
}

.database-tab:hover:not(.active) {
    background-color: rgba(45, 91, 158, 0.2);
}


@media (max-width: 768px) {
    .database-tabs {
        flex-direction: column;
        max-width: 250px;
    }

    .database-tab {
        border-bottom: 1px solid var(--card-border);
    }

    .database-tab:last-child {
        border-bottom: none;
    }
}

.plan-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.plan-card:hover .plan-icon {
    transform: scale(1.1);
}