.subscribe-container {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.plan-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--brand-blue);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

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

.tier-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.tier-card:hover {
    border-color: rgba(48, 92, 222, 0.5);
    background: linear-gradient(180deg, rgba(48, 92, 222, 0.05), transparent);
}

.tier-card.selected {
    border-color: var(--brand-blue);
    background: linear-gradient(180deg, rgba(48, 92, 222, 0.1), transparent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -20px rgba(48, 92, 222, 0.3);
}

.tier-card[data-tier="expansion"].selected {
    border-color: var(--brand-purple);
    background: linear-gradient(180deg, rgba(246, 149, 92, 0.1), transparent);
    box-shadow: 0 20px 40px -20px rgba(246, 149, 92, 0.3);
}

.tier-card .selection-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-card.selected .selection-indicator {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.tier-card.selected .selection-indicator:after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.add-ons-section {
    margin-top: 4rem;
}

.add-on-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-on-card:hover {
    border-color: var(--brand-blue);
}

.add-on-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.add-on-info {
    flex-grow: 1;
}

.add-on-price {
    font-weight: 700;
    color: var(--color-text);
}

.tier-card[data-tier="expansion"] .base-price {
    display: contents;
}

.tier-card[data-tier="expansion"] .price-tag::before {
    content: '';
}

.credits-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-purple);
    margin-bottom: 1rem;
}

.summary-panel {
    margin-top: 4rem;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: none;
    transition: all 0.3s ease;
}

.summary-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.summary-details table tr td {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-details .row-label {
    color: var(--color-muted);
    font-weight: 500;
    font-size: 1rem;
}

.summary-details .row-value {
    text-align: right;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text);
}

.summary-details .subtotal-row td {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.summary-details .subtotal-row .row-label,
.summary-details .subtotal-row .row-value {
    color: var(--color-text);
    font-weight: 600;
}

.summary-details .total-row td {
    border-bottom: none;
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.summary-details .total-row .row-label {
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.summary-details .total-row .row-value {
    color: var(--brand-blue);
    font-size: 1.75rem;
    font-weight: 800;
}

.summary-details table tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.summary-details .credits-row td {
    background: rgba(144, 103, 222, 0.08);
    padding: 1.25rem;
    border-radius: var(--radius);
    border-bottom: none;
    text-align: center;
    margin-top: 2rem;
    display: block;
    border: 1px solid rgba(144, 103, 222, 0.2);
    width: 100%;
}

.summary-details .comparison-row td {
    width: 100%;
}

@media (max-width: 600px) {
    .tier-card {
        padding: 1.5rem;
    }

    .add-on-card {
        padding: 1rem;
        gap: 1rem;
    }

    .summary-details table tr {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 0.25rem;
    }

    .summary-details .row-value {
        text-align: left;
        width: 100%;
    }

    .summary-details .subtotal-row td,
    .summary-details .total-row td {
        padding-top: 1rem;
    }

    .summary-panel {
        padding: 1.5rem;
    }

    .total-amount {
        font-size: 2rem !important;
    }
}

.summary-details .credits-row .row-label {
    color: var(--brand-purple);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    text-align: center;
}

.comparison-row td {
    background: rgba(246, 149, 92, 0.05);
    border-radius: var(--radius);
    border: 1px dashed rgba(246, 149, 92, 0.2);
    padding: 1.5rem !important;
    margin-top: 1.5rem;
    display: block;
}

.comparison-row .savings-badge {
    display: inline-block;
    background: #f6955c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .tier-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        flex-direction: column;
        text-align: center;
    }
}

.add-on-card.selected {
    border-color: var(--brand-blue);
    background: rgba(48, 92, 222, 0.05);
}

.add-on-card.disabled-addon {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 1.75rem;
    margin: 0;
}

.agreement-text-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: left;
}

.agreement-text-container h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-blue);
    border-bottom: 1px solid rgba(48, 92, 222, 0.2);
    padding-bottom: 0.5rem;
}

.agreement-text-container p {
    margin-bottom: 1rem;
}

.agreement-text-container .placeholder {
    background: rgba(246, 149, 92, 0.1);
    padding: 0 0.5rem;
    border-bottom: 1px dashed var(--brand-purple);
    color: var(--brand-purple);
    font-weight: 600;
}

.agreement-acceptance {
    background: rgba(48, 92, 222, 0.05);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(48, 92, 222, 0.2);
    margin-bottom: 2rem;
}

.agreement-acceptance label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
}

.agreement-acceptance input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.8rem 2rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions button {
        width: 100%;
    }
}