/* Клієнтський кабінет: навігація та вкладки */

.client-dashboard-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.client-cabinet-promo {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.client-cabinet-promo p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text, #1a1d26);
}

.client-dashboard-heading {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.client-dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .client-dashboard-shell {
        flex-direction: row;
        align-items: flex-start;
    }

    .client-dashboard-nav-wrap {
        flex: 0 0 220px;
        max-width: 260px;
    }

    .client-dashboard-main {
        flex: 1 1 0;
        min-width: 0;
    }
}

.client-dashboard-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 900px) {
    .client-dashboard-nav {
        flex-direction: column;
        flex-wrap: nowrap;
    }
}

.client-dash-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text, #1a1d26);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.client-dash-nav-link:hover {
    background: rgba(0, 0, 0, 0.07);
}

.client-dash-nav-link:focus-visible {
    outline: 2px solid var(--color-accent, #2563eb);
    outline-offset: 2px;
}

.client-dash-nav-link.is-active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--color-accent-strong, #1d4ed8);
}

.client-panel-tab {
    outline: none;
}

.client-panel-tab[hidden] {
    display: none !important;
}

.client-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 1.25rem;
}

.client-overview-card {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.client-overview-card__label {
    font-size: 0.85rem;
    color: var(--color-text-muted, #4f5770);
    margin: 0 0 6px;
}

.client-overview-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.client-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-orders-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.client-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.client-orders-table th,
.client-orders-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.client-orders-table th {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
}

.client-orders-table tr:last-child td {
    border-bottom: none;
}

.client-orders-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.client-orders-badge--paid {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.client-orders-badge--unpaid {
    background: rgba(234, 179, 8, 0.2);
    color: #a16207;
}

.client-orders-badge--failed {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.client-orders-badge--other {
    background: rgba(0, 0, 0, 0.06);
}

.client-profile-form .form-field {
    margin-bottom: 14px;
}

.client-profile-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.client-profile-form input[type="text"],
.client-profile-form input[type="email"],
.client-profile-form input[type="password"] {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.client-tab-section-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.client-tab-section-desc {
    margin: 0 0 1rem;
    color: var(--color-text-muted, #4f5770);
    font-size: 0.95rem;
}

.client-tab-section-title--small {
    font-size: 1rem;
}

.client-tab-section-desc--tight {
    margin-bottom: 0.75rem;
}

.client-profile-divider {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.client-orders-footnote {
    margin-top: 10px;
}

.client-order-row-actions {
    white-space: nowrap;
}

.client-order-row-actions .client-order-pay-btn {
    margin-right: 8px;
}

.client-order-servers-link {
    margin-left: 4px;
}
