/* Личный кабинет — стили в тон сайта Хотошо */
.lk {
    --lk-ink: #2c2420;
    --lk-muted: #6b5e56;
    --lk-line: rgba(62, 57, 54, 0.12);
    --lk-surface: #fffdf9;
    --lk-panel: #ffffff;
    --lk-accent: #5c3f3c;
    --lk-accent-2: #7a5550;
    --lk-gold: #c4a35a;
    --lk-soft: #f3ebe3;
    --lk-ok: #2f7d4a;
    --lk-danger: #b33a2b;
    --lk-radius: 14px;
    --lk-shadow: 0 10px 30px rgba(44, 36, 32, 0.08);
}

.lk-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.lk-alert {
    margin: 16px 20px 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    animation: lkFadeIn 0.35s ease;
}

.lk-alert-ok {
    background: #e8f5ec;
    color: #1e5c32;
    border: 1px solid #b9dfc4;
}

.lk-alert-err {
    background: #fdecea;
    color: #8a2a1f;
    border: 1px solid #f0c2bb;
}

@keyframes lkFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lkRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.lk-hero {
    position: relative;
    border-radius: var(--lk-radius);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(196, 163, 90, 0.28), transparent 45%),
        radial-gradient(ellipse at 90% 10%, rgba(122, 85, 80, 0.35), transparent 40%),
        linear-gradient(135deg, #4a322f 0%, #5c3f3c 45%, #3e3936 100%);
    color: #fff;
    padding: 36px 32px;
    box-shadow: var(--lk-shadow);
    margin-bottom: 24px;
    animation: lkRise 0.45s ease;
}

.lk-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 11px
        );
    pointer-events: none;
}

.lk-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.lk-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.lk-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(145deg, #7a5550, #3e3936);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}

.lk-avatar:hover {
    transform: scale(1.03);
}

.lk-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-avatar-btn {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--lk-gold);
    color: #2c2420;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.lk-avatar-btn:hover {
    transform: scale(1.08);
    background: #d4b56e;
}

.lk-hero-info {
    flex: 1;
    min-width: 240px;
}

.lk-hero-info h1 {
    margin: 0 0 4px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.lk-handle {
    opacity: 0.8;
    font-size: 14px;
    margin-bottom: 12px;
}

.lk-role {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
}

.lk-bio {
    max-width: 640px;
    opacity: 0.92;
    line-height: 1.55;
    margin: 8px 0 14px;
    font-size: 15px;
}

.lk-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    opacity: 0.88;
    margin-bottom: 16px;
}

.lk-meta-row a {
    color: #f5e6c0;
}

.lk-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.lk-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.lk-stat:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.lk-stat-val {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.lk-stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
    margin-top: 4px;
}

.lk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.lk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lk-btn:hover {
    transform: translateY(-1px);
}

.lk-btn-gold {
    background: var(--lk-gold);
    color: #2c2420;
}

.lk-btn-gold:hover {
    background: #d4b56e;
}

.lk-btn-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lk-btn-light:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lk-btn-accent {
    background: var(--lk-accent);
    color: #fff;
}

.lk-btn-accent:hover {
    background: var(--lk-accent-2);
}

.lk-btn-ghost {
    background: transparent;
    color: var(--lk-accent);
    border: 1px solid var(--lk-line);
}

.lk-btn-danger {
    background: var(--lk-danger);
    color: #fff;
}

.lk-btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.lk-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    align-items: start;
    animation: lkRise 0.55s ease;
}

.lk-side {
    background: var(--lk-panel);
    border-radius: var(--lk-radius);
    box-shadow: var(--lk-shadow);
    border: 1px solid var(--lk-line);
    padding: 12px;
    position: sticky;
    top: 72px;
}

.lk-side-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lk-muted);
    padding: 8px 12px 10px;
}

.lk-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--lk-ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.lk-nav-btn:hover {
    background: var(--lk-soft);
}

.lk-nav-btn.active {
    background: var(--lk-accent);
    color: #fff;
}

.lk-nav-btn .lk-badge {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.lk-nav-btn.active .lk-badge {
    background: rgba(255, 255, 255, 0.2);
}

.lk-main {
    min-width: 0;
}

.lk-panel {
    display: none;
    background: var(--lk-panel);
    border-radius: var(--lk-radius);
    box-shadow: var(--lk-shadow);
    border: 1px solid var(--lk-line);
    padding: 24px;
    animation: lkRise 0.35s ease;
}

.lk-panel.active {
    display: block;
}

.lk-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lk-line);
}

.lk-panel-head h2 {
    margin: 0;
    font-size: 22px;
    color: var(--lk-ink);
}

.lk-panel-head p {
    margin: 4px 0 0;
    color: var(--lk-muted);
    font-size: 14px;
    width: 100%;
}

.lk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.lk-card {
    background: var(--lk-surface);
    border: 1px solid var(--lk-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(44, 36, 32, 0.1);
}

.lk-card-media {
    height: 160px;
    background:
        linear-gradient(135deg, #ebe2d8, #d9cdc2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lk-muted);
    font-size: 42px;
    overflow: hidden;
}

.lk-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-card-body {
    padding: 14px;
}

.lk-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lk-ink);
    margin: 0 0 6px;
}

.lk-card-title a {
    color: inherit;
    text-decoration: none;
}

.lk-card-title a:hover {
    color: var(--lk-accent);
}

.lk-card-meta {
    font-size: 13px;
    color: var(--lk-muted);
    line-height: 1.45;
}

.lk-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.lk-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--lk-muted);
}

.lk-empty-ico {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.lk-empty h3 {
    margin: 0 0 6px;
    color: var(--lk-ink);
}

.lk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lk-list-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lk-list-item:hover {
    border-color: rgba(92, 63, 60, 0.35);
    background: #fff;
}

.lk-list-item a {
    color: var(--lk-ink);
    text-decoration: none;
    font-weight: 600;
}

.lk-list-item a:hover {
    color: var(--lk-accent);
}

.lk-list-meta {
    font-size: 12px;
    color: var(--lk-muted);
    margin-top: 4px;
}

.lk-form {
    display: grid;
    gap: 14px;
    background: var(--lk-soft);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--lk-line);
    margin-bottom: 22px;
}

.lk-form.hidden {
    display: none;
}

.lk-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.lk-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-ink);
    margin-bottom: 6px;
}

.lk-field input,
.lk-field select,
.lk-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lk-line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    color: var(--lk-ink);
}

.lk-field textarea {
    min-height: 100px;
    resize: vertical;
}

.lk-field small {
    display: block;
    margin-top: 5px;
    color: var(--lk-muted);
    font-size: 12px;
}

.lk-tips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.lk-tip {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(160deg, #fffdf9, #f3ebe3);
    border: 1px solid var(--lk-line);
}

.lk-tip h4 {
    margin: 0 0 8px;
    color: var(--lk-accent);
    font-size: 15px;
}

.lk-tip p {
    margin: 0;
    font-size: 13px;
    color: var(--lk-muted);
    line-height: 1.5;
}

.lk-rec {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--lk-line);
    background: #fff;
    margin-bottom: 12px;
}

.lk-rec-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.lk-rec-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lk-accent);
    background: var(--lk-soft);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.lk-msg {
    border: 1px solid var(--lk-line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--lk-surface);
}

.lk-msg.new {
    border-left: 4px solid var(--lk-gold);
}

.lk-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.lk-msg-subject {
    font-weight: 700;
    color: var(--lk-ink);
}

.lk-msg-reply {
    margin-top: 12px;
    padding: 12px;
    background: #eef6f0;
    border-radius: 10px;
    font-size: 14px;
}

.lk-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.lk-gal-item {
    border: 1px solid var(--lk-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.lk-gal-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
}

.lk-gal-info {
    padding: 10px;
    font-size: 13px;
}

.lk-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.lk-box {
    border: 1px solid var(--lk-line);
    border-radius: 12px;
    padding: 16px;
    background: var(--lk-surface);
}

.lk-box h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--lk-ink);
}

.lk-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.lk-quick a,
.lk-quick button {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    background: var(--lk-soft);
    border: 1px solid var(--lk-line);
    color: var(--lk-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lk-quick a:hover,
.lk-quick button:hover {
    background: #ebe0d6;
    transform: translateY(-2px);
}

.lk-quick span {
    font-size: 22px;
}

.lk-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 24, 20, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lk-modal.active {
    display: flex;
}

.lk-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: lkRise 0.3s ease;
}

.lk-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lk-modal-head h3 {
    margin: 0;
    font-size: 18px;
}

.lk-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--lk-muted);
    line-height: 1;
}

.lk-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 10px auto;
    display: none;
    border: 3px solid var(--lk-soft);
}

.lk-section-note {
    font-size: 13px;
    color: var(--lk-muted);
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .lk-layout {
        grid-template-columns: 1fr;
    }

    .lk-side {
        position: static;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 10px;
    }

    .lk-side-title {
        display: none;
    }

    .lk-nav-btn {
        white-space: nowrap;
        width: auto;
    }

    .lk-nav-btn .lk-badge {
        margin-left: 6px;
    }

    .lk-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lk-hero {
        padding: 24px 18px;
    }

    .lk-hero-info h1 {
        font-size: 24px;
    }

    .lk-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .lk-panel {
        padding: 16px;
    }
}
