/**
 * Файл: media/templates/site/cassiopeia/css/neygen/lk.css
 * Назначение: стили личного кабинета Neygen.
 */

.neygen-lk-page {
    --neygen-lk-blue: #3f6ecb;
    --neygen-lk-blue-dark: #2f58aa;
    --neygen-lk-bg: #f7f9ff;
    --neygen-lk-card: #ffffff;
    --neygen-lk-text: #182230;
    --neygen-lk-muted: #667085;
    --neygen-lk-border: #e4eaf6;
    --neygen-lk-soft-blue: #eef4ff;
    --neygen-lk-danger: #d92d20;
    --neygen-lk-danger-soft: #fff1f0;

    /* background:
        radial-gradient(circle at 12% 0%, rgba(63, 110, 203, 0.10), transparent 32%),
        linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%); */
    color: var(--neygen-lk-text);
    padding: 34px 16px 56px;
}

.neygen-lk-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.neygen-lk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--neygen-lk-border);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(28, 45, 86, 0.08);
}

.neygen-lk-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--neygen-lk-soft-blue);
    color: var(--neygen-lk-blue);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.neygen-lk-hero h1 {
    margin: 0;
    padding: 0;
    color: var(--neygen-lk-text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.neygen-lk-hello {
    margin: 12px 0 0;
    color: #26364d;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 750;
}

.neygen-lk-lead {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--neygen-lk-muted);
    font-size: 16px;
    line-height: 1.65;
}

.neygen-lk-email {
    display: inline-flex;
    width: fit-content;
    margin-top: 14px;
    padding: 7px 11px;
    border: 1px solid var(--neygen-lk-border);
    border-radius: 999px;
    background: #ffffff;
    color: #667085;
    font-size: 13px;
    line-height: 1.2;
}

.neygen-lk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.neygen-lk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.neygen-lk-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.neygen-lk-button:disabled,
.neygen-lk-button[disabled] {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.neygen-lk-button--primary {
    background: var(--neygen-lk-blue);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(63, 110, 203, 0.22);
}

.neygen-lk-button--primary:hover {
    background: var(--neygen-lk-blue-dark);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(63, 110, 203, 0.28);
}

.neygen-lk-button--secondary {
    background: #ffffff;
    color: var(--neygen-lk-blue);
    border-color: #cad7f2;
}

.neygen-lk-button--secondary:hover {
    background: var(--neygen-lk-soft-blue);
    color: var(--neygen-lk-blue-dark);
    border-color: #b7c8ee;
}

.neygen-lk-button--ghost {
    background: #ffffff;
    color: #667085;
    border-color: var(--neygen-lk-border);
}

.neygen-lk-button--ghost:hover {
    color: var(--neygen-lk-text);
    border-color: #cfd8ea;
}

.neygen-lk-button--danger {
    background: var(--neygen-lk-danger-soft);
    color: var(--neygen-lk-danger);
    border-color: #ffd0cc;
}

.neygen-lk-button--danger:hover {
    background: var(--neygen-lk-danger);
    color: #ffffff;
    border-color: var(--neygen-lk-danger);
}

.neygen-lk-button--small {
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13px;
}

.neygen-lk-workspace {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--neygen-lk-border);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(28, 45, 86, 0.06);
    overflow: hidden;
}

.neygen-lk-tabs-wrap {
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(247, 249, 255, 0.94), rgba(255, 255, 255, 0.94));
    border-bottom: 1px solid var(--neygen-lk-border);
}

.neygen-lk-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.neygen-lk-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 15px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #475467;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.neygen-lk-tab:hover {
    background: #ffffff;
    border-color: var(--neygen-lk-border);
    color: var(--neygen-lk-text);
}

.neygen-lk-tab.is-active {
    background: #ffffff;
    color: var(--neygen-lk-blue);
    border-color: #cad7f2;
    box-shadow: 0 10px 22px rgba(28, 45, 86, 0.07);
}

.neygen-lk-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--neygen-lk-soft-blue);
    color: var(--neygen-lk-blue);
    font-size: 13px;
    line-height: 1;
}

.neygen-lk-panels {
    padding: 24px;
}

.neygen-lk-panel {
    display: none;
}

.neygen-lk-panel.is-active {
    display: block;
    animation: neygenLkPanelIn 0.22s ease both;
}

@keyframes neygenLkPanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neygen-lk-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.neygen-lk-panel__head h2 {
    margin: 0;
    color: var(--neygen-lk-text);
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.neygen-lk-panel__head p {
    margin: 7px 0 0;
    color: var(--neygen-lk-muted);
    font-size: 15px;
    line-height: 1.55;
}

.neygen-lk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 34px;
    background:
        radial-gradient(circle at 50% 0%, rgba(63, 110, 203, 0.08), transparent 34%),
        #ffffff;
    border: 1px dashed #cbd7ef;
    border-radius: 24px;
    text-align: center;
}

.neygen-lk-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: var(--neygen-lk-soft-blue);
    color: var(--neygen-lk-blue);
    font-size: 30px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(63, 110, 203, 0.10);
}

.neygen-lk-empty h3 {
    margin: 0;
    color: var(--neygen-lk-text);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.neygen-lk-empty p {
    max-width: 560px;
    margin: 10px 0 22px;
    color: var(--neygen-lk-muted);
    font-size: 16px;
    line-height: 1.65;
}

.neygen-lk-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.neygen-lk-service-card,
.neygen-lk-history-card,
.neygen-lk-card {
    background: #ffffff;
    border: 1px solid var(--neygen-lk-border);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(28, 45, 86, 0.06);
}

.neygen-lk-service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 18px;
}

.neygen-lk-service-card__top {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
}

.neygen-lk-service-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--neygen-lk-border);
    border-radius: 16px;
    background: #f7f9ff;
    color: var(--neygen-lk-blue);
    font-size: 14px;
    font-weight: 900;
}

.neygen-lk-service-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.neygen-lk-service-card h3 {
    margin: 0;
    color: var(--neygen-lk-text);
    font-size: 18px;
    line-height: 1.25;
}

.neygen-lk-service-card p {
    margin: 7px 0 0;
    color: var(--neygen-lk-muted);
    font-size: 14px;
    line-height: 1.55;
}

.neygen-lk-service-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}

.neygen-lk-service-card__actions>a:not(.neygen-lk-button) {
    color: var(--neygen-lk-blue);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    text-decoration: none;
}

.neygen-lk-service-card__actions>a:not(.neygen-lk-button):hover {
    color: var(--neygen-lk-blue-dark);
    text-decoration: underline;
}

.neygen-lk-history-list {
    display: grid;
    gap: 12px;
}

.neygen-lk-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.neygen-lk-history-card__date {
    margin-bottom: 8px;
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.neygen-lk-history-card h3 {
    margin: 0;
    color: var(--neygen-lk-text);
    font-size: 18px;
    line-height: 1.35;
}

.neygen-lk-history-card__services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.neygen-lk-history-card__services a,
.neygen-lk-history-card__services span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--neygen-lk-soft-blue);
    color: var(--neygen-lk-blue);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
}

.neygen-lk-history-card__services a:hover {
    background: #dfeaff;
    color: var(--neygen-lk-blue-dark);
}

.neygen-lk-history-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.neygen-lk-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 16px;
    align-items: start;
}

.neygen-lk-card {
    padding: 22px;
}

.neygen-lk-card h3 {
    margin: 0 0 16px;
    color: var(--neygen-lk-text);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.neygen-lk-card p {
    margin: 0 0 18px;
    color: var(--neygen-lk-muted);
    font-size: 15px;
    line-height: 1.6;
}

.neygen-lk-profile-form {
    display: grid;
    gap: 14px;
}

.neygen-lk-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

.neygen-lk-field span {
    color: #344054;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.neygen-lk-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8e0ee;
    border-radius: 14px;
    background: #ffffff;
    color: var(--neygen-lk-text);
    font-size: 15px;
    line-height: 1.3;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.neygen-lk-field input:focus {
    border-color: var(--neygen-lk-blue);
    box-shadow: 0 0 0 4px rgba(63, 110, 203, 0.12);
}

.neygen-lk-field input[readonly] {
    background: #f8fafc;
    color: #667085;
}

.neygen-lk-profile-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 2px;
}

.neygen-lk-profile-meta>div {
    padding: 13px;
    border: 1px solid var(--neygen-lk-border);
    border-radius: 16px;
    background: #f8faff;
}

.neygen-lk-profile-meta span {
    display: block;
    margin-bottom: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.neygen-lk-profile-meta strong {
    display: block;
    color: var(--neygen-lk-text);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 850;
    word-break: break-word;
}

.neygen-lk-profile-notice {
    padding: 12px 14px;
    border: 1px solid #fedf89;
    border-radius: 14px;
    background: #fffaeb;
    color: #93370d;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.neygen-lk-logout-form {
    margin-top: 12px;
}

.neygen-lk-card--account {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.neygen-lk-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.neygen-lk-alert--success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

@media (max-width: 900px) {
    .neygen-lk-hero {
        grid-template-columns: 1fr;
    }

    .neygen-lk-hero__actions {
        justify-content: flex-start;
    }

    .neygen-lk-service-grid,
    .neygen-lk-profile-grid {
        grid-template-columns: 1fr;
    }

    .neygen-lk-history-card {
        grid-template-columns: 1fr;
    }

    .neygen-lk-history-card__actions {
        justify-content: flex-start;
    }

    .neygen-lk-profile-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .neygen-lk-page {
        padding: 20px 10px 42px;
    }

    .neygen-lk-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .neygen-lk-workspace {
        border-radius: 22px;
    }

    .neygen-lk-panels {
        padding: 16px;
    }

    .neygen-lk-tabs-wrap {
        padding: 10px;
    }

    .neygen-lk-tab {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .neygen-lk-panel__head h2 {
        font-size: 23px;
    }

    .neygen-lk-empty {
        min-height: 300px;
        padding: 26px 18px;
    }

    .neygen-lk-empty h3 {
        font-size: 21px;
    }

    .neygen-lk-empty p {
        font-size: 15px;
    }

    .neygen-lk-button {
        width: 100%;
    }

    .neygen-lk-service-card__actions,
    .neygen-lk-history-card__actions,
    .neygen-lk-hero__actions {
        width: 100%;
    }

    .neygen-lk-service-card__actions .neygen-lk-button,
    .neygen-lk-history-card__actions .neygen-lk-button {
        width: auto;
        flex: 1 1 auto;
    }
}