/* =========================================================
   PROFILE PACKAGES PAGE
========================================================= */

.profile-packages-page {
    padding: 40px 0 64px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.04), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.profile-packages-page .container {
    width: min(100% - 40px, 1400px);
    margin-inline: auto;
}

.profile-packages-page .card {
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.profile-packages-page .card__body {
    padding: 24px;
    overflow-x: auto;
}

.profile-packages-page .card__body h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.package-box {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.package-box--active {
    border-color: rgba(22, 163, 74, 0.22);
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.04), #ffffff);
}

.package-box__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.package-box__head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.06rem;
    line-height: 1.3;
    font-weight: 900;
}

.package-box__text {
    margin: 0 0 16px;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.75;
}

.package-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.package-meta li {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;
}

.package-meta strong {
    color: #0f172a;
    font-weight: 800;
}

.package-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.package-badge.is-active {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.package-box__footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.package-price {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
}

.packages-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.7;
}

.profile-packages-page .admin-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
}

.profile-packages-page .admin-table thead th {
    padding: 14px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.4;
    font-weight: 900;
    text-align: left;
    white-space: nowrap;
}

.profile-packages-page .admin-table thead th:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 14px;
}

.profile-packages-page .admin-table thead th:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 14px;
}

.profile-packages-page .admin-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.6;
    background: #ffffff;
    vertical-align: top;
}

.profile-packages-page .admin-table tbody tr td:first-child {
    border-left: 1px solid #e2e8f0;
}

.profile-packages-page .admin-table tbody tr td:last-child {
    border-right: 1px solid #e2e8f0;
}

.profile-packages-page .admin-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

.profile-packages-page .admin-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

@media (max-width: 1100px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-packages-page {
        padding: 24px 0 48px;
    }

    .profile-packages-page .container {
        width: min(100% - 24px, 1400px);
    }

    .profile-packages-page .card__body {
        padding: 18px;
    }

    .package-box {
        padding: 16px;
    }
}
