/* plans.css - Stili minimal e professionali */

.plans-content {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Current Subscription Card */
.current-subscription-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.subscription-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-badge-large {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.active {
    background: var(--success);
}

.status-indicator.cancelled {
    background: var(--warning);
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.subscription-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.billing-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--success);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.plan-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
}

.plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.plan-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
}

.plan-card.current-plan {
    border-color: var(--success);
    background: var(--bg-secondary);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.current {
    background: var(--success);
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.plan-pricing {
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price .currency {
    font-size: 20px;
    color: var(--text-secondary);
}

.plan-price .period {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-price.free {
    color: var(--text-secondary);
    font-size: 28px;
}

.yearly-price {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.yearly-save {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: var(--success);
    color: white;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.plan-features {
    flex: 1;
    margin-bottom: 20px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.plan-features li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
}

.plan-cta {
    width: 100%;
}

.plan-cta .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

/* User Plan Badge in Sidebar */
.user-plan {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Modal Customization */
.modal-body p {
    line-height: 1.6;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .plans-content {
        padding: 16px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .current-subscription-card {
        padding: 20px;
    }

    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .subscription-details {
        grid-template-columns: 1fr;
    }

    .billing-toggle {
        flex-wrap: wrap;
        gap: 12px;
    }

    .plan-name {
        font-size: 20px;
    }

    .plan-price {
        font-size: 32px;
    }
}