﻿.subscription-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1400px);
    margin: 0 auto;
}

.subscription-header {
    max-width: 860px;
    margin: 0 auto 3rem;
    text-align: center;
}

.subscription-header h1 {
    color: var(--text-strong);
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
}

.subscription-header p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.subscription-content > .subscription-card + .team-section,
.subscription-content > .team-section + .resources-section,
.subscription-content > .resources-section + .resources-purchase-section,
.subscription-content > .resources-purchase-section + .payment-history,
.subscription-content > .no-subscription + .payment-history,
.subscription-content > .subscription-card + .payment-history,
.subscription-content > .team-section + .payment-history {
    margin-top: 2rem;
}

.subscription-grid,
.purchase-options,
.resources-grid {
    display: grid;
    gap: 1.5rem;
}

.subscription-grid,
.purchase-options {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 3rem;
}

.resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 2rem;
}

.subscription-card,
.team-section,
.resources-section,
.payment-history,
.resources-purchase-section,
.no-subscription {
    padding: 1.8rem;
}

.card-header,
.team-header,
.resource-header,
.payment-history h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-header,
.resource-header {
    justify-content: space-between;
}

.card-header,
.team-header {
    margin-bottom: 1.5rem;
}

.card-header h2,
.team-header h2,
.payment-history h2 {
    color: var(--text-strong);
    font-size: 1.35rem;
    margin: 0;
}

.card-header i,
.team-header i,
.resource-name i,
.payment-history h2 i {
    color: var(--accent-2);
}

.plan-info,
.verification-code-section {
    margin-bottom: 2rem;
}

.plan-name,
.purchase-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.plan-price,
.purchase-price {
    font-size: 2rem;
    font-weight: 800;
    color: #dffbff;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label,
.detail-label,
.resource-details,
.member-dates,
.setup-label,
.one-time-label {
    color: var(--text-muted);
}

.detail-value,
.resource-usage,
.member-email {
    color: var(--text-strong);
    font-weight: 600;
}

.status-badge {
    padding: 0.42rem 0.82rem;
}

.status-active,
.payment-status.success {
    color: var(--success);
}

.status-active {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.2);
}

.status-inactive,
.status-cancelled,
.payment-status.failed {
    color: var(--danger);
}

.status-inactive,
.status-cancelled {
    background: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.2);
}

.payment-status.pending {
    color: var(--warning);
}

.no-subscription {
    text-align: center;
}

.no-subscription-icon,
.empty-state i {
    font-size: 3.4rem;
    color: rgba(255, 255, 255, 0.24);
    margin-bottom: 1rem;
}

.no-subscription h2,
.purchase-header,
.payment-history h2 {
    margin-bottom: 1rem;
}

.no-subscription p,
.purchase-description,
.verification-info,
.resend-text,
.empty-state {
    color: var(--text-soft);
    line-height: 1.68;
}

.add-member-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.add-member-form .input-group {
    flex: 1;
    min-width: 250px;
}

.add-member-form .input-group input {
    padding-left: 2.8rem !important;
}

.add-member-form button,
.purchase-btn {
    min-height: 3rem;
    white-space: nowrap;
    margin-top: 0.35rem;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-item,
.resource-item,
.purchase-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.member-item,
.resource-item {
    padding: 1rem 1.1rem;
}

.purchase-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.member-item:hover,
.resource-item:hover,
.purchase-card:hover {
    transform: translateY(-3px);
    border-color: rgba(149, 240, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18);
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-small {
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 999px;
}

.btn-remove {
    background: rgba(251, 113, 133, 0.1);
    color: var(--danger);
    border: 1px solid rgba(251, 113, 133, 0.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: inherit;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #facc15, #f59e0b);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #fb7185, #e11d48);
}

.resource-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}

.payment-table,
.resource-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.payment-table th,
.resource-table th {
    color: var(--text-soft);
    font-weight: 700;
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.84rem;
}

.payment-table td,
.resource-table td {
    color: var(--text-soft);
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.payment-table tr:last-child td,
.resource-table tr:last-child td {
    border-bottom: none;
}

.payment-table tr:hover,
.resource-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.payment-amount,
.resource-table td:last-child {
    font-weight: 700;
    color: #dffbff;
}

.cancel-section,
.resend-section {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.cancel-section .btn,
.resend-section .btn,
.resources-purchase-section .btn,
.purchase-card .btn {
    margin-top: 0.90em;
}

.cancel-warning,
.info-message,
.verification-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.cancel-warning {
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.2);
    color: var(--danger);
}

.info-message {
    background: rgba(66, 215, 255, 0.1);
    border: 1px solid rgba(66, 215, 255, 0.2);
    color: var(--accent-2);
}

.verification-status.verified {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.verification-status.unverified {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    color: var(--warning);
}

.purchase-card.popular {
    border-color: rgba(149, 240, 255, 0.22);
    background: linear-gradient(180deg, rgba(18, 37, 58, 0.76), rgba(9, 16, 30, 0.88));
}

.purchase-card.popular .popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    background: rgba(66, 215, 255, 0.14);
    border: 1px solid rgba(149, 240, 255, 0.18);
    color: #dffbff;
    font-size: 0.72rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .subscription-grid,
    .purchase-options,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .detail-item,
    .member-item,
    .team-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-member-form {
        flex-direction: column;
    }

    .add-member-form .input-group,
    .add-member-form input {
        min-width: 100%;
        width: 100%;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .payment-table {
        font-size: 0.875rem;
    }

    .payment-table th,
    .payment-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .payment-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
