﻿.subscription-container {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: var(--gradient-2);
}

.subscription-content {
    max-width: 1400px;
    margin: 0 auto;
}

.subscription-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .subscription-header h1 {
        font-size: 3rem;
        background: linear-gradient(to right, #fff, var(--accent));
        -webkit-background-clip: text;
        color: transparent;
        margin-bottom: 1rem;
    }

    .subscription-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.25rem;
        line-height: 1.6;
    }

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

    .card-header h2 {
        color: white;
        font-size: 1.5rem;
        margin: 0;
    }

    .card-header i {
        color: var(--accent);
        font-size: 1.5rem;
    }

.plan-info {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .detail-item:last-child {
        border-bottom: none;
    }

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.detail-value {
    color: white;
    font-weight: 500;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.no-subscription {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.no-subscription-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-subscription h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-subscription p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Team Members Section */
.team-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

    .team-header h2 {
        color: white;
        font-size: 1.5rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .team-header i {
        color: var(--accent);
    }

.add-member-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

    .add-member-form .input-group {
        flex: 1;
        display: flex;
        align-items: center;
        position: relative;
        min-width: 250px;
    }

        .add-member-form .input-group i {
            position: absolute;
            left: 0.75rem;
            color: rgba(255, 255, 255, 0.4);
            pointer-events: none;
            font-size: 1rem;
        }

        .add-member-form .input-group input {
            width: 100%;
            padding: 0.75rem 0.75rem 0.75rem 2.25rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-size: 0.875rem;
        }

            .add-member-form .input-group input.invalid {
                border-color: #ef4444;
            }

            .add-member-form .input-group input::placeholder {
                color: rgba(255, 255, 255, 0.4);
            }

            .add-member-form .input-group input:focus {
                outline: none;
                border-color: var(--accent);
                background: rgba(255, 255, 255, 0.08);
            }

    .add-member-form button {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 0.875rem;
        white-space: nowrap;
    }

.members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .member-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

.member-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-email {
    color: white;
    font-weight: 500;
}

.member-dates {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

    .btn-remove:hover {
        background: rgba(239, 68, 68, 0.2);
        transform: translateY(-1px);
    }

/* Resource Usage Section */
.resources-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

    .resource-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.resource-name {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .resource-name i {
        color: var(--accent);
    }

.resource-usage {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

    .progress-fill.warning {
        background: linear-gradient(90deg, #eab308, #f59e0b);
    }

    .progress-fill.danger {
        background: linear-gradient(90deg, #ef4444, #dc2626);
    }

.resource-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.payment-history {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

    .payment-history h2 {
        color: white;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

        .payment-history h2 i {
            color: var(--accent);
        }

.payment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .payment-table th {
        color: rgba(255, 255, 255, 0.8);
        font-weight: 600;
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.875rem;
    }

    .payment-table td {
        color: white;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .payment-table tr:last-child td {
        border-bottom: none;
    }

    .payment-table tr:hover {
        background: rgba(255, 255, 255, 0.02);
    }

.payment-amount {
    font-weight: 600;
    color: var(--accent);
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .payment-status.success {
        color: #22c55e;
    }

    .payment-status.pending {
        color: #eab308;
    }

    .payment-status.failed {
        color: #ef4444;
    }

.cancel-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #ef4444;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-message {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #3b82f6;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    }

.empty-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

@media (max-width: 768px) {
    .subscription-container {
        padding: 6rem 1rem 2rem;
    }

    .subscription-header h1 {
        font-size: 2rem;
    }

    .subscription-header p {
        font-size: 1rem;
    }

    .subscription-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .payment-table {
        font-size: 0.875rem;
    }

        .payment-table th,
        .payment-table td {
            padding: 0.75rem 0.5rem;
        }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .add-member-form {
        flex-direction: column;
    }

        .add-member-form input {
            min-width: 100%;
        }

    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .payment-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}