@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff4655;
    --bg: #000000;
    --surface: #0a0a0a;
    --surface-elevated: #0f0f0f;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #a1a1aa;
    --text-muted: #52525b;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.memberships-hero {
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding: 120px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memberships-hero::before {
    display: none;
}

.hero-overlay {
    display: none;
}

.memberships-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-dim);
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.membership-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.membership-card::before {
    display: none;
}

.membership-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.membership-card.elite {
    background: var(--surface-elevated);
    border-color: rgba(255, 70, 85, 0.15);
}

.membership-card.elite:hover {
    border-color: rgba(255, 70, 85, 0.3);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-badge.pro-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
}

.elite-badge {
    background: rgba(255, 70, 85, 0.15);
    color: var(--primary);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.card-header {
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.membership-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    letter-spacing: -0.5px;
}

.price-period {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.benefit-item:hover {
    background: transparent;
    transform: none;
}

.benefit-icon {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.625rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.membership-card.elite .benefit-icon {
    border-color: rgba(255, 70, 85, 0.3);
    color: var(--primary);
}

.benefit-text {
    font-size: 0.8125rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.purchase-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-controls {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    max-width: 600px;
}

.custom-select-wrapper {
    flex: 1;
}

.custom-select {
    position: relative;
    user-select: none;
}

.select-trigger {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.875rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.custom-select.active .select-trigger {
    border-color: var(--primary);
}

.select-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.select-arrow {
    transition: transform 0.2s ease;
    color: var(--text-dim);
}

.custom-select.active .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.custom-select.active .select-options {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.select-option {
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-option:not([disabled]):hover {
    background: rgba(255, 255, 255, 0.05);
}

.select-option[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.option-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.option-price {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.75rem;
}

.select-option.selected {
    background: rgba(255, 70, 85, 0.1);
}

.main-buy-button {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.main-buy-button::before {
    display: none;
}

.main-buy-button:hover {
    background: #bd3944;
}

.main-buy-button:active {
    transform: scale(0.98);
}

.main-buy-button:disabled {
    background: var(--surface);
    color: var(--text-muted);
    cursor: not-allowed;
}

.main-buy-button:disabled:hover {
    background: var(--surface);
}

.button-text {
    position: relative;
    z-index: 1;
}

.payment-info {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-text {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 500;
}

.payment-methods-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.payment-methods {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-logo {
    max-width: 280px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.payment-logo:hover {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    border-radius: 8px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.875rem;
}

.close {
    color: var(--text-dim);
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text);
}

.discord-button {
    display: inline-block;
    background: #5865F2;
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.discord-button:hover {
    background: #4752C4;
}

@media (max-width: 1024px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .membership-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .memberships-hero {
        padding: 90px 15px 50px;
    }

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

    .membership-card {
        padding: 1.5rem;
    }

    .membership-title {
        font-size: 1.375rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .benefit-text {
        font-size: 0.75rem;
    }

    .purchase-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .main-buy-button {
        width: 100%;
    }

    .payment-logo {
        max-width: 240px;
    }

    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}