/**
 * Page modules — themed cards (security, forgot, rules, characters, register)
 * Loaded after theme-2026.css; uses CSS variables for light/dark.
 */

/* ─── Shared page cards ─── */

.lc-body .security-card,
.lc-body .forgot-card,
.lc-body .register-card,
.lc-body .rules-hero,
.lc-body .rules-section,
.lc-body .character-card,
.lc-body .character-empty {
    background: var(--lc-bg-card) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius) !important;
    box-shadow: var(--lc-shadow-soft) !important;
    overflow: hidden;
    margin-bottom: 20px;
}

.lc-body .security-card-head,
.lc-body .forgot-card-head,
.lc-body .register-card-head,
.lc-body .rules-hero-head {
    padding: 28px 30px !important;
    background: var(--lc-bg-elevated) !important;
    border-bottom: 3px solid var(--lc-accent) !important;
}

.lc-body .security-card-head h2,
.lc-body .forgot-card-head h2,
.lc-body .register-card-head h2,
.lc-body .rules-hero-head h2 {
    margin: 0 0 8px 0 !important;
    font-weight: 700 !important;
    color: var(--lc-text) !important;
}

.lc-body .security-card-head p,
.lc-body .forgot-card-head p,
.lc-body .register-card-head p,
.lc-body .rules-hero-head p {
    margin: 0 !important;
    color: var(--lc-text-muted) !important;
    font-size: 15px;
}

.lc-body .security-card-body,
.lc-body .forgot-card-body,
.lc-body .register-card-body {
    padding: 30px !important;
    background: var(--lc-bg-card) !important;
}

.lc-body .register-card-head h2 i,
.lc-body .forgot-card-head h2 i {
    color: var(--lc-accent) !important;
}

.lc-body .register-big-icon,
.lc-body .forgot-big-icon {
    font-size: 72px;
    line-height: 1;
    color: var(--lc-accent) !important;
    opacity: 0.85;
}

/* ─── Security ─── */

.lc-body .security-form-box {
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius-sm) !important;
    background: var(--lc-nav-hover-bg) !important;
    padding: 22px !important;
    margin-bottom: 22px !important;
}

.lc-body .security-form-box h4 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    color: var(--lc-text) !important;
}

.lc-body .security-form-box h4 i {
    color: var(--lc-accent) !important;
    margin-right: 6px;
}

.lc-body .security-note,
.lc-body .forgot-note,
.lc-body .register-note {
    background: var(--lc-nav-hover-bg) !important;
    border-left: 4px solid var(--lc-accent) !important;
    padding: 15px 18px !important;
    border-radius: 6px !important;
    color: var(--lc-text-muted) !important;
    margin-bottom: 20px !important;
}

.lc-body .register-note a,
.lc-body .forgot-note a {
    color: var(--lc-accent) !important;
}

.lc-body .security-current-email {
    background: var(--lc-input-bg) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    color: var(--lc-text) !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.lc-body .security-tips li {
    color: var(--lc-text-muted) !important;
    border-bottom-color: var(--lc-border) !important;
}

.lc-body .security-tips li:before {
    color: var(--lc-accent) !important;
}

.lc-body .security-input,
.lc-body .forgot-input {
    height: 40px;
    border-radius: var(--lc-radius-sm) !important;
}

/* ─── Forgot password ─── */

.lc-body .forgot-check-box {
    background: var(--lc-nav-hover-bg) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius-sm) !important;
    padding: 18px !important;
    margin-top: 10px !important;
    margin-bottom: 22px !important;
}

.lc-body .forgot-help {
    color: var(--lc-text-muted) !important;
}

.lc-body .forgot-help a {
    color: var(--lc-accent) !important;
}

.lc-body .forgot-big-icon {
    color: var(--lc-accent) !important;
}

/* ─── Rules ─── */

.lc-body .rules-section-title {
    padding: 16px 20px !important;
    background: var(--lc-bg-elevated) !important;
    border-bottom: 1px solid var(--lc-border) !important;
}

.lc-body .rules-section-title h4 {
    margin: 0 !important;
    font-weight: 700 !important;
    color: var(--lc-text) !important;
}

.lc-body .rules-section-title i {
    color: var(--lc-accent) !important;
    margin-right: 7px;
}

.lc-body .rules-section-body {
    padding: 18px 20px !important;
}

.lc-body .rules-list li {
    color: var(--lc-text-muted) !important;
    border-bottom-color: var(--lc-border) !important;
}

.lc-body .rules-list li:before {
    color: var(--lc-accent) !important;
}

.lc-body .rules-list-danger li:before {
    color: #e74c3c !important;
}

.lc-body .punishment-table th {
    background: var(--lc-bg-elevated) !important;
    color: var(--lc-text) !important;
    border-bottom-color: var(--lc-border) !important;
}

.lc-body .rules-important {
    border-left: 4px solid #d9534f !important;
    background: rgba(217, 83, 79, 0.08) !important;
    padding: 18px 20px !important;
    border-radius: 6px !important;
    color: var(--lc-text-muted) !important;
}

/* ─── Characters ─── */

.lc-body .character-card-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid var(--lc-border) !important;
    background: var(--lc-bg-elevated) !important;
}

.lc-body .character-card-body {
    padding: 20px !important;
}

.lc-body .character-card__title {
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    color: var(--lc-text) !important;
}

.lc-body .character-meta {
    margin-top: 6px;
    font-size: 14px;
    color: var(--lc-text-muted) !important;
}

.lc-body .character-avatar {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--lc-radius-sm);
    background: color-mix(in srgb, var(--lc-bg-elevated) 88%, transparent) !important;
    border: none !important;
}

.lc-body .character-avatar--lg {
    width: 120px;
    height: 120px;
    padding: 10px;
}

.lc-body .character-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lc-body .character-level {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: var(--lc-accent) !important;
    color: #0a0c10 !important;
}

.lc-body .character-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lc-body .character-summary__actions {
    margin-left: auto;
}

.lc-body .character-detail {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.lc-body .character-dl,
.lc-body .character-stats {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.lc-body .character-dl__row,
.lc-body .character-stats__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--lc-border);
}

.lc-body .character-dl__row:last-child,
.lc-body .character-stats__row:last-child {
    border-bottom: none;
}

.lc-body .character-dl dt,
.lc-body .character-stats dt {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--lc-text-muted) !important;
}

.lc-body .character-dl dd,
.lc-body .character-stats dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--lc-text) !important;
    text-align: right;
}

.lc-body .character-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.lc-body .character-stats__row--full {
    grid-column: 1 / -1;
}

.lc-body .character-tabs {
    border-bottom: 1px solid var(--lc-border) !important;
    margin: 0 0 20px !important;
}

.lc-body .character-tabs > li > a {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--lc-text-muted) !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-bottom: 2px solid transparent !important;
}

.lc-body .character-tabs > li > a:hover,
.lc-body .character-tabs > li > a:focus {
    background: transparent !important;
    color: var(--lc-text) !important;
    border-color: transparent !important;
}

.lc-body .character-tabs > li.active > a,
.lc-body .character-tabs > li.active > a:hover,
.lc-body .character-tabs > li.active > a:focus {
    color: var(--lc-accent) !important;
    background: transparent !important;
    border-bottom-color: var(--lc-accent) !important;
}

.lc-body .character-tab-content {
    padding-top: 4px;
}

.lc-body .character-equip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lc-body .character-equip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lc-border);
}

.lc-body .character-equip-item:last-child {
    border-bottom: none;
}

.lc-body .character-equip-icon {
    width: 28px;
    text-align: center;
    color: var(--lc-accent) !important;
    flex-shrink: 0;
}

.lc-body .character-equip-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--lc-text) !important;
}

.lc-body .character-equip-meta {
    font-size: 12px;
    color: var(--lc-text-muted) !important;
    flex-shrink: 0;
}

.lc-body .character-stat-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    background: var(--lc-accent) !important;
    color: #0a0c10 !important;
}

.lc-body .character-stat-plus:hover {
    background: var(--lc-accent-hover) !important;
    color: #0a0c10 !important;
}

.lc-character-alerts {
    margin-bottom: 12px;
}

.lc-character-alert--toast {
    margin: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.lc-character-alert--toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lc-body .character-stat-value.lc-stat-bump {
    display: inline-block;
    animation: lcStatBump 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.lc-body .character-stats__row.lc-stat-row-flash {
    background: color-mix(in srgb, var(--lc-accent) 10%, transparent);
    border-radius: 8px;
    transition: background 0.45s ease;
}

@keyframes lcStatBump {
    0% {
        transform: scale(1);
        color: var(--lc-text);
    }

    45% {
        transform: scale(1.2);
        color: var(--lc-accent);
    }

    100% {
        transform: scale(1);
        color: var(--lc-text);
    }
}

.lc-character-stat-form [name="add_stat"].is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ─── Сайтовый диалог (замена alert / confirm) ─── */

body.lc-dialog-open {
    overflow: hidden;
}

.lc-dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lc-dialog.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lc-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 12, 0.72);
    backdrop-filter: blur(4px);
}

.lc-dialog__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 22px 22px 18px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    background: var(--lc-bg-elevated);
    box-shadow: var(--lc-shadow);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.lc-dialog.is-open .lc-dialog__panel {
    transform: translateY(0) scale(1);
}

.lc-dialog__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--lc-text);
}

.lc-dialog__message {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--lc-text-muted);
    white-space: pre-line;
}

.lc-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.lc-dialog__confirm.lc-btn--danger {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff !important;
}

.lc-dialog__confirm.lc-btn--danger:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

.lc-body .character-empty {
    border: 1px solid var(--lc-border) !important;
    border-style: solid !important;
    color: var(--lc-text-muted) !important;
    padding: 30px !important;
    text-align: center;
}

.lc-body .character-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--lc-border);
}

/* ─── Register / auth forms ─── */

.lc-body .reg-page {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--lc-text-muted);
}

.lc-body .register-hint {
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: var(--lc-radius-sm);
    border: 1px solid color-mix(in srgb, var(--lc-accent) 35%, transparent);
    background: color-mix(in srgb, var(--lc-accent) 8%, transparent);
    color: var(--lc-text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.lc-body .register-hint i {
    color: var(--lc-accent) !important;
    margin-right: 6px;
}

.lc-body .lc-form-field {
    margin-bottom: 18px;
}

.lc-body .lc-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lc-text-muted) !important;
}

.lc-body .lc-form-input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--lc-text) !important;
    background: var(--lc-input-bg) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius-sm) !important;
    box-shadow: none !important;
    transition: border-color var(--lc-transition), box-shadow var(--lc-transition);
}

.lc-body .lc-form-input::placeholder {
    color: var(--lc-text-muted);
    opacity: 0.75;
}

.lc-body .lc-form-input:focus {
    outline: none;
    border-color: var(--lc-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-accent) 18%, transparent) !important;
}

.lc-body select.lc-form-input,
.lc-body .lc-admin-form select.lc-form-input {
    cursor: pointer;
    padding-right: 36px;
}

html[data-lc-theme="dark"] .lc-body select.lc-form-input,
html[data-lc-theme="dark"] .lc-body .lc-admin-form select.lc-form-input {
    color-scheme: dark;
}

html[data-lc-theme="light"] .lc-body select.lc-form-input,
html[data-lc-theme="light"] .lc-body .lc-admin-form select.lc-form-input {
    color-scheme: light;
}

html[data-lc-theme="dark"] .lc-body select.lc-form-input option,
html[data-lc-theme="dark"] .lc-body .lc-admin-form select.lc-form-input option {
    background-color: var(--lc-bg-elevated);
    color: var(--lc-text);
}

.lc-body .lc-form-input--textarea,
.lc-body textarea.lc-form-input {
    height: auto;
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.lc-body .register-card-actions {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--lc-border);
    text-align: right;
}

.lc-body .register-card-actions .lc-btn,
.lc-body .forgot-actions .lc-btn {
    min-height: 42px;
    padding: 10px 28px;
    border: none;
    font-size: 14px;
    font-weight: 700;
}

.lc-body .reg-page [style*="background:#ffffff"],
.lc-body .reg-page [style*="background:#fff"] {
    background: var(--lc-bg-card) !important;
}

/* ─── Sky forms override ─── */

.lc-body .sky-form,
.lc-body .sky-form fieldset,
.lc-body .sky-form section {
    background: transparent !important;
    border-color: var(--lc-border) !important;
}

.lc-body .sky-form .input,
.lc-body .sky-form .select {
    background: var(--lc-input-bg) !important;
    border-color: var(--lc-border) !important;
    color: var(--lc-text) !important;
}

/* ─── Двухколоночная сетка (как на FAQ, Rules и др.) — Bootstrap 3 float ─── */

.lc-content-row {
    margin-left: -15px;
    margin-right: -15px;
}

.lc-content-row > .col-md-9,
.lc-content-row > .col-md-3 {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    .lc-content-row > .col-md-9,
    .lc-content-row > .lc-main {
        float: left;
        width: 75%;
    }

    .lc-content-row > .col-md-3,
    .lc-content-row > .lc-sidebar {
        float: left;
        width: 25%;
    }
}

.lc-content-head,
.lc-sidebar-head {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.lc-content-head h3,
.lc-sidebar-head h3 {
    margin-bottom: 0 !important;
}

.home-news-intro {
    padding: 14px 20px;
    color: var(--lc-text-muted);
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--lc-border);
    background: var(--lc-bg-elevated);
}

.lc-main .home-news-box {
    margin-top: 0;
}

.lc-body .rules-important h4 {
    margin-top: 0 !important;
    color: #e74c3c !important;
    font-weight: 700 !important;
}

.lc-main .lc-content-head + .home-news-box,
.lc-sidebar .lc-sidebar-head + .lc-auth-card,
.lc-sidebar .lc-sidebar-head + .lc-card,
.lc-sidebar .lc-sidebar-head + .lc-cabinet {
    margin-top: 0;
}

/* ─── Sidebar: личный кабинет / авторизация (.lc-cabinet) ───────────
   Разметка: engine/modules/sidebar-user.php, sidebar-login.php
   Настройки: engine/data/theme-config.php + theme-dynamic.php
   ─────────────────────────────────────────────────────────────────── */

.lc-body .lc-cabinet {
    --lc-cabinet-accent: var(--lc-sidebar-accent, var(--lc-accent));
    position: relative;
    margin-bottom: 20px;
    background: var(--lc-bg-card) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius) !important;
    box-shadow: var(--lc-shadow-soft) !important;
    overflow: hidden;
    isolation: isolate;
}

/* Свечение по краям — opacity из theme-config (sidebar-glow-opacity) */
.lc-cabinet::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--lc-sidebar-glow, 0.22);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(232, 163, 23, 0.28), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(255, 107, 53, 0.15), transparent 50%);
    z-index: 0;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
    .lc-cabinet::before {
        background:
            radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--lc-cabinet-accent) 45%, transparent), transparent 55%),
            radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--lc-fire) 25%, transparent), transparent 50%);
    }
}

.lc-cabinet > * {
    position: relative;
    z-index: 1;
}

/* Шапка: аватар + имя */
.lc-cabinet__top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px 16px;
    background: linear-gradient(135deg, rgba(232, 163, 23, 0.08) 0%, var(--lc-bg-elevated) 55%);
    border-bottom: 1px solid var(--lc-border);
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
    .lc-cabinet__top {
        background: linear-gradient(
            135deg,
            color-mix(in srgb, var(--lc-cabinet-accent) 10%, var(--lc-bg-elevated)) 0%,
            var(--lc-bg-elevated) 55%
        );
    }
}

.lc-cabinet__avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--lc-cabinet-accent);
    background: rgba(232, 163, 23, 0.14);
    border: 1px solid rgba(232, 163, 23, 0.35);
    box-shadow: 0 4px 16px rgba(232, 163, 23, 0.2);
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
    .lc-cabinet__avatar {
        background: color-mix(in srgb, var(--lc-cabinet-accent) 14%, transparent);
        border: 1px solid color-mix(in srgb, var(--lc-cabinet-accent) 35%, transparent);
        box-shadow: 0 4px 16px color-mix(in srgb, var(--lc-cabinet-accent) 20%, transparent);
    }
}

.lc-cabinet__identity {
    min-width: 0;
    flex: 1;
}

.lc-cabinet__badge {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lc-cabinet-accent);
    background: color-mix(in srgb, var(--lc-cabinet-accent) 12%, transparent);
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--lc-cabinet-accent) 25%, transparent);
}

.lc-cabinet__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.lc-cabinet__badges .lc-cabinet__badge {
    margin-bottom: 0;
}

.lc-cabinet__badge--role {
    letter-spacing: 0.08em;
}

.lc-cabinet__badge--admin {
    color: #fff;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    border-color: rgba(192, 57, 43, 0.65);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.28);
}

.lc-cabinet__badge--gm {
    color: #fff;
    background: linear-gradient(135deg, #7d3c98 0%, #9b59b6 100%);
    border-color: rgba(125, 60, 152, 0.65);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.28);
}

.lc-cabinet__badge--gs {
    color: #fff;
    background: linear-gradient(135deg, #1f618d 0%, #3498db 100%);
    border-color: rgba(31, 97, 141, 0.65);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.28);
}

.lc-cabinet__name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--lc-text);
    word-break: break-word;
}

.lc-cabinet__name--sm {
    font-size: 15px;
    line-height: 1.3;
}

.lc-cabinet__avatar--sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 17px;
    box-shadow: none;
}

/* Блок баланса */
.lc-cabinet__balance {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--lc-border);
    background: color-mix(in srgb, var(--lc-cabinet-accent) 4%, transparent);
}

.lc-cabinet__balance-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--lc-cabinet-accent);
    background: color-mix(in srgb, var(--lc-cabinet-accent) 12%, transparent);
}

.lc-cabinet__balance-meta {
    flex: 1;
    min-width: 0;
}

.lc-cabinet__balance-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lc-text-muted);
    margin-bottom: 2px;
}

.lc-cabinet__balance-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--lc-text);
}

.lc-cabinet__balance-action {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-cabinet-accent) !important;
    text-decoration: none !important;
    background: color-mix(in srgb, var(--lc-cabinet-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--lc-cabinet-accent) 30%, transparent);
    transition: background var(--lc-transition), transform var(--lc-transition);
}

.lc-cabinet__balance-action:hover {
    background: color-mix(in srgb, var(--lc-cabinet-accent) 22%, transparent);
    transform: scale(1.05);
}

/* Навигация кабинета */
.lc-cabinet__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
}

.lc-cabinet__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--lc-radius-sm);
    color: var(--lc-text-muted) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--lc-transition), color var(--lc-transition), transform var(--lc-transition);
}

.lc-cabinet__nav-item i {
    width: 22px;
    text-align: center;
    font-size: 15px;
    color: var(--lc-cabinet-accent);
    opacity: 0.9;
}

.lc-cabinet__nav-item:hover {
    background: color-mix(in srgb, var(--lc-cabinet-accent) 10%, transparent);
    color: var(--lc-text) !important;
    transform: translateX(2px);
}

/* Кнопка выхода */
.lc-cabinet__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 12px 14px;
    padding: 11px 14px;
    border-radius: var(--lc-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #f07178 !important;
    text-decoration: none !important;
    background: color-mix(in srgb, #f07178 8%, transparent);
    border: 1px solid color-mix(in srgb, #f07178 22%, transparent);
    transition: background var(--lc-transition), border-color var(--lc-transition);
}

.lc-cabinet__logout:hover {
    background: color-mix(in srgb, #f07178 14%, transparent);
    border-color: color-mix(in srgb, #f07178 35%, transparent);
}

/* Гость: форма входа */
.lc-cabinet--guest .lc-cabinet__top--guest {
    padding: 14px 16px;
    gap: 12px;
}

.lc-cabinet--guest .lc-cabinet__form {
    padding: 14px 16px 16px;
}

.lc-cabinet__field {
    margin-bottom: 12px;
}

.lc-cabinet__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lc-text-muted);
}

.lc-cabinet__input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--lc-text);
    background: var(--lc-input-bg);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    box-shadow: none;
    transition: border-color var(--lc-transition), box-shadow var(--lc-transition);
}

.lc-cabinet__input::placeholder {
    color: var(--lc-text-muted);
    opacity: 0.75;
}

.lc-cabinet__input:focus {
    outline: none;
    border-color: var(--lc-cabinet-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-cabinet-accent) 18%, transparent);
}

.lc-cabinet__submit {
    width: 100%;
    height: 42px;
    margin-top: 4px;
    padding: 0 16px;
    border: none;
    border-radius: var(--lc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    line-height: 42px;
    color: #101218;
    background: linear-gradient(135deg, var(--lc-cabinet-accent), color-mix(in srgb, var(--lc-fire) 55%, var(--lc-cabinet-accent)));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--lc-cabinet-accent) 35%, transparent);
    cursor: pointer;
    transition: transform var(--lc-transition), box-shadow var(--lc-transition);
}

.lc-cabinet__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--lc-cabinet-accent) 45%, transparent);
}

.lc-cabinet__footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.lc-cabinet__footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 10px;
    border-radius: var(--lc-radius-sm);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--lc-text-muted) !important;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid var(--lc-border);
    transition: background var(--lc-transition), color var(--lc-transition), border-color var(--lc-transition);
}

.lc-cabinet__footer-link:hover,
.lc-cabinet__footer-link:focus {
    color: var(--lc-cabinet-accent) !important;
    border-color: color-mix(in srgb, var(--lc-cabinet-accent) 40%, transparent);
    background: color-mix(in srgb, var(--lc-cabinet-accent) 8%, transparent);
    outline: none;
}

[data-lc-theme="light"] .lc-cabinet__submit {
    color: #1a1f2e;
}

/* Виджеты сайдбара — тот же стиль что личный кабинет */
.lc-body .lc-cabinet.lc-cabinet--widget {
    margin-bottom: 16px;
}

.lc-cabinet--widget .lc-cabinet__top--widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(232, 163, 23, 0.08) 0%, var(--lc-bg-elevated) 55%);
    border-bottom: 1px solid var(--lc-border);
}

.lc-cabinet--widget .lc-cabinet__module-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lc-text);
    margin: 0;
}

.lc-cabinet__body {
    padding: 12px 14px 14px;
    color: var(--lc-text-muted);
}

.lc-cabinet__body--table {
    padding: 8px 10px 10px;
}

.lc-cabinet__body .compact-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--lc-border);
    font-size: 13px;
    line-height: 1.35;
}

.lc-cabinet__body .compact-stat-row span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    color: var(--lc-text-muted);
}

.lc-cabinet__body .compact-stat-row span i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.lc-cabinet__body .compact-stat-row b {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    color: var(--lc-text);
}

.lc-cabinet__body .compact-castle-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--lc-border);
}

.lc-cabinet__body .compact-castle-row:last-child,
.lc-cabinet__body .compact-stat-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
}

.lc-cabinet__body .castle-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-cabinet__body .castle-left > i {
    font-size: 18px;
    color: var(--lc-accent);
    opacity: 0.9;
    flex-shrink: 0;
}

.lc-cabinet__body .castle-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--lc-text);
    line-height: 1.3;
}

.lc-cabinet__body .castle-owner {
    margin-top: 3px;
    font-size: 12px;
    color: var(--lc-text-muted);
    line-height: 1.35;
}

.lc-cabinet__body .sidebar-top-table {
    margin-bottom: 0;
    width: 100%;
    background: transparent;
    border-collapse: collapse;
}

.lc-cabinet__body .sidebar-top-table thead tr th {
    padding: 8px 6px;
    border: none;
    border-bottom: 1px solid var(--lc-border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--lc-text-muted);
    background: transparent;
}

.lc-cabinet__body .sidebar-top-table tbody tr td {
    padding: 9px 6px;
    border: none;
    border-top: 1px solid var(--lc-border);
    vertical-align: middle;
}

.lc-cabinet__body .sidebar-top-table tbody tr:first-child td {
    border-top: none;
}

.lc-cabinet__body .sidebar-top-table .lc-col-rank {
    width: 35px;
}

.lc-cabinet__body .sidebar-top-table .lc-col-level {
    width: 65px;
    text-align: right;
}

.lc-cabinet__body .lc-rank-place {
    font-weight: 600;
    color: var(--lc-text-muted);
}

.lc-cabinet__body .lc-rank-place--1 {
    color: #f0b429 !important;
}

.lc-cabinet__body .lc-rank-place--2 {
    color: #9aa4b2 !important;
}

.lc-cabinet__body .lc-rank-place--3 {
    color: #c7833d !important;
}

/* ─── News feed (flat list inside card) ─── */

.home-news-box .home-news-content {
    padding: 0 !important;
}

.home-news-box .timeline-v2 {
    padding: 0;
    margin: 0;
    list-style: none;
}

.home-news-box .timeline-v2:before {
    display: none !important;
}

.home-news-box .timeline-v2 > li {
    position: relative;
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--lc-border);
}

.home-news-box .timeline-v2 > li:last-child {
    border-bottom: none;
}

.home-news-box .timeline-v2 > li .cbp_tmtime {
    position: static;
    width: auto;
    display: block;
    padding: 0;
    margin-bottom: 8px;
}

.home-news-box .timeline-v2 > li .cbp_tmtime span {
    position: static;
    display: inline;
    text-align: left;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--lc-text-muted) !important;
}

.home-news-box .timeline-v2 > li .cbp_tmicon {
    display: none !important;
}

.home-news-box .timeline-v2 > li .cbp_tmlabel {
    margin: 0 !important;
    padding: 0 !important;
    clear: none;
    position: static;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--lc-text-muted);
}

.home-news-box .timeline-v2 > li .cbp_tmlabel:after {
    display: none !important;
}

.home-news-box .timeline-v2 > li .cbp_tmlabel h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.home-news-box .timeline-v2 > li .cbp_tmlabel h2 a {
    color: var(--lc-text) !important;
    text-decoration: none;
    transition: color var(--lc-transition);
}

.home-news-box .timeline-v2 > li .cbp_tmlabel h2 a:hover {
    color: var(--lc-accent) !important;
}

.home-news-box .timeline-v2 > li .cbp_tmlabel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--lc-text-muted);
}

@media (max-width: 767px) {
    .home-news-box .timeline-v2 > li {
        padding: 16px 18px;
    }

    .home-news-box .timeline-v2 > li .cbp_tmtime,
    .home-news-box .timeline-v2 > li .cbp_tmlabel {
        position: static !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ─── Donate page ─── */

.lc-body .donate-page-card {
    background: var(--lc-bg-card) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius) !important;
    box-shadow: var(--lc-shadow-soft) !important;
    margin-bottom: 25px;
    overflow: hidden;
}

.lc-body .donate-hero {
    background: var(--lc-bg-elevated) !important;
    border-bottom: 3px solid var(--lc-accent) !important;
    padding: 28px 30px;
}

.lc-body .donate-hero h2 {
    margin: 0 0 10px 0;
    font-weight: 700;
    color: var(--lc-text) !important;
}

.lc-body .donate-hero p {
    margin: 0;
    color: var(--lc-text-muted) !important;
    font-size: 15px;
    line-height: 1.5;
}

.lc-body .donate-hero-icon {
    font-size: 72px;
    color: var(--lc-accent) !important;
}

.lc-body .donate-content {
    padding: 30px;
}

.lc-body .donate-info-box {
    background: var(--lc-nav-hover-bg) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius-sm) !important;
    padding: 18px;
    min-height: 115px;
    margin-bottom: 15px;
    transition: border-color var(--lc-transition);
}

.lc-body .donate-info-box:hover {
    border-color: var(--lc-accent) !important;
}

.lc-body .donate-info-box i {
    color: var(--lc-accent) !important;
}

.lc-body .donate-info-box h4 {
    color: var(--lc-text) !important;
}

.lc-body .donate-info-box p {
    color: var(--lc-text-muted) !important;
}

.lc-body .donate-module-wrap {
    background: var(--lc-bg-card) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius-sm) !important;
    padding: 30px;
    margin-top: 10px;
}

.lc-body .donate-payment-box {
    text-align: center;
}

.lc-body .donate-payment-box > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

.lc-body .donate-payment-box iframe,
.lc-body .donate-payment-iframe {
    border: none;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.lc-body .donate-module-rate {
    max-width: 420px;
    margin: 0 auto 20px;
}

.lc-body .donate-module-rate .donate-info-box {
    margin-bottom: 0;
}

.lc-body .donate-topup-code {
    max-width: 420px;
    margin: 0 auto 20px;
    text-align: left;
}

.lc-body .donate-topup-code__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--lc-text);
}

.lc-body .donate-topup-code__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.lc-body .donate-topup-code__input {
    flex: 1 1 auto;
    min-width: 0;
    text-transform: uppercase;
}

.lc-body .donate-topup-code__feedback {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: var(--lc-radius-sm);
    font-size: 13px;
    line-height: 1.45;
}

.lc-body .donate-topup-code__feedback--success {
    color: #8ee4a0;
    background: rgba(95, 208, 104, 0.1);
    border: 1px solid rgba(95, 208, 104, 0.28);
}

.lc-body .donate-topup-code__feedback--error {
    color: #ffb4b4;
    background: rgba(220, 80, 80, 0.1);
    border: 1px solid rgba(220, 80, 80, 0.28);
}

.lc-body .donate-topup-code__feedback--info {
    color: var(--lc-text-muted);
    background: var(--lc-nav-hover-bg);
    border: 1px solid var(--lc-border);
}

.lc-body .donate-topup-code + .donate-topup-code__feedback,
.lc-body .donate-topup-code > .donate-topup-code__feedback {
    margin-bottom: 10px;
}

.lc-body .donate-topup-code__hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--lc-text-muted) !important;
}

.lc-body .donate-topup-code--guest {
    text-align: center;
}

.lc-body .donate-topup-code__active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 16px;
    background: var(--lc-nav-hover-bg);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
}

.lc-body .donate-topup-code__clear-form {
    margin-left: auto;
}

.lc-body .donate-promo-active--code {
    margin-top: 10px;
}

.lc-body .donate-promo-active--muted {
    margin-top: 10px;
    opacity: 0.85;
}

.lc-body .lc-topup-promo-badge--code {
    background: rgba(120, 180, 255, 0.15);
    color: #7cb8ff;
    border-color: rgba(120, 180, 255, 0.35);
}

.lc-body .donate-paypalych {
    max-width: none;
    margin: 0;
    padding: 24px;
    text-align: left;
    background: var(--lc-nav-hover-bg);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
}

.lc-body .donate-payment-methods {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.lc-body .donate-payment-picker__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--lc-text);
    text-align: center;
}

.lc-body .donate-payment-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 560px) {
    .lc-body .donate-payment-picker {
        grid-template-columns: 1fr;
    }
}

.lc-body .donate-payment-picker__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 20px 18px;
    margin: 0;
    width: 100%;
    font-family: inherit;
    text-align: center;
    color: var(--lc-text-muted);
    background: var(--lc-bg-card);
    border: 2px solid var(--lc-border);
    border-radius: var(--lc-radius);
    cursor: pointer;
    transition: color var(--lc-transition), border-color var(--lc-transition), background var(--lc-transition), box-shadow var(--lc-transition), transform var(--lc-transition);
}

.lc-body .donate-payment-picker__card:hover {
    color: var(--lc-text);
    border-color: var(--lc-border-strong);
    transform: translateY(-2px);
}

.lc-body .donate-payment-picker__card.is-active {
    color: var(--lc-text);
    background: rgba(232, 163, 23, 0.08);
    border-color: var(--lc-accent);
    box-shadow: 0 0 0 1px rgba(232, 163, 23, 0.25), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.lc-body .donate-payment-picker__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.lc-body .donate-payment-picker__desc {
    font-size: 13px;
    line-height: 1.35;
    color: var(--lc-text-muted);
}

.lc-body .donate-payment-picker__card.is-active .donate-payment-picker__desc {
    color: var(--lc-text);
    opacity: 0.85;
}

.lc-body .donate-payment-panels {
    position: relative;
}

.lc-body .donate-payment-panel {
    display: none !important;
}

.lc-body .donate-payment-panel.is-active {
    display: block !important;
    animation: donatePanelIn 0.22s ease-out;
}

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

.lc-body .donate-yoomoney {
    text-align: center;
    padding: 8px 0 0;
}

.lc-body .donate-paypalych__head {
    margin-bottom: 14px;
    text-align: center;
}

.lc-body .donate-paypalych__head h4 {
    margin: 0;
    font-size: 16px;
    color: var(--lc-text);
}

.lc-body .donate-paypalych__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--lc-text);
}

.lc-body .donate-paypalych__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.lc-body .donate-paypalych__input {
    flex: 1 1 140px;
    min-width: 0;
}

.lc-body .donate-paypalych__hint {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--lc-text-muted) !important;
}

.lc-body .donate-paypalych__hint--guest {
    margin: 0;
    text-align: center;
}

.lc-body .donate-payment-box iframe,
.lc-body .donate-payment-box form,
.lc-body .donate-payment-box .ya-pay,
.lc-body .donate-payment-box div {
    max-width: 640px;
}

/* ─── Ranking page ─── */

.lc-body .ranking-box {
    background: var(--lc-bg-card) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius) !important;
    padding: 25px;
    color: var(--lc-text-muted);
    box-shadow: var(--lc-shadow-soft) !important;
}

.lc-body .ranking-tabs {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--lc-border) !important;
}

.lc-body .ranking-tabs > li > a {
    background: var(--lc-nav-hover-bg) !important;
    color: var(--lc-text-muted) !important;
    border: 1px solid var(--lc-border) !important;
    margin-right: 8px;
}

.lc-body .ranking-tabs > li.active > a,
.lc-body .ranking-tabs > li.active > a:hover,
.lc-body .ranking-tabs > li.active > a:focus {
    background: var(--lc-accent) !important;
    color: #0a0c10 !important;
    border-color: var(--lc-accent) !important;
}

.lc-body .top-title {
    color: var(--lc-text-muted) !important;
}

.lc-body .top-title i {
    color: var(--lc-accent) !important;
}

.lc-body .top-three {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 35px;
    padding-top: 15px;
}

.lc-body .top-player {
    display: table-cell;
    text-align: center;
    vertical-align: bottom;
    padding: 10px;
}

.lc-body .top-player.first {
    transform: translateY(-16px);
}

.lc-body .top-avatar {
    width: 145px;
    height: 145px;
    margin: 0 auto 16px;
    position: relative;
    overflow: visible;
}

.lc-body .top-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lc-body .top-player.first .top-avatar {
    width: 180px;
    height: 180px;
}

.lc-body .place-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    margin-left: -22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    line-height: 38px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: #777;
    border: 3px solid var(--lc-bg-elevated);
    box-shadow: var(--lc-shadow-soft);
}

.lc-body .top-player.first .place-badge { background: #f0b429; }
.lc-body .top-player.second .place-badge { background: #9aa4b2; }
.lc-body .top-player.third .place-badge { background: #c7833d; }

.lc-body .top-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--lc-accent) !important;
    margin-top: 10px;
}

.lc-body .top-player.first .top-name { font-size: 23px; color: #f0b429 !important; }
.lc-body .top-player.second .top-name { color: #9aa4b2 !important; }
.lc-body .top-player.third .top-name { color: #c7833d !important; }

.lc-body .top-info {
    color: var(--lc-text-muted) !important;
    font-size: 14px;
    margin-top: 5px;
}

.lc-body .ranking-table {
    color: var(--lc-text-muted) !important;
    background: var(--lc-bg-card) !important;
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius-sm) !important;
    overflow: hidden;
}

.lc-body .ranking-table thead tr {
    background: var(--lc-bg-elevated) !important;
}

.lc-body .ranking-table th {
    color: var(--lc-text) !important;
    border-bottom: 1px solid var(--lc-border) !important;
}

.lc-body .ranking-table td {
    border-top: 1px solid var(--lc-border) !important;
}

.lc-body .ranking-table tbody tr:hover {
    background: var(--lc-nav-hover-bg) !important;
}

.lc-body .rank-number {
    color: var(--lc-accent) !important;
    font-weight: bold;
}

.lc-body .mini-char-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.lc-body .empty-ranking {
    color: var(--lc-text-muted) !important;
}

/* ─── Events page ─── */

.lc-body .event-card {
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius) !important;
    background: var(--lc-bg-card) !important;
    margin-bottom: 18px;
    box-shadow: var(--lc-shadow-soft) !important;
    overflow: hidden;
}

.lc-body .event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lc-border) !important;
    background: var(--lc-bg-elevated) !important;
}

.lc-body .event-card-header__main {
    flex: 1;
    min-width: 0;
}

.lc-body .event-card-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--lc-text) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.lc-body .event-card-header h4 .fa {
    color: var(--lc-accent) !important;
    font-size: 15px;
    flex-shrink: 0;
}

.lc-body .event-card-body {
    padding: 20px;
    color: var(--lc-text-muted);
}

.lc-body .event-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--lc-text-muted) !important;
}

.lc-body .event-status-active {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--lc-accent) !important;
    color: #0a0c10 !important;
    line-height: 1.2;
}

.lc-body .event-schedule {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    border: 1px solid var(--lc-border);
    border-radius: calc(var(--lc-radius) - 2px);
    background: var(--lc-nav-hover-bg);
    overflow: hidden;
}

.lc-body .event-schedule__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lc-border);
}

.lc-body .event-schedule__item:last-child {
    border-bottom: none;
}

.lc-body .event-schedule__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--lc-text-muted) !important;
}

.lc-body .event-schedule__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--lc-text) !important;
    text-align: right;
}

.lc-body .event-empty {
    border: 1px solid var(--lc-border) !important;
    color: var(--lc-text-muted) !important;
    background: var(--lc-nav-hover-bg) !important;
    border-radius: var(--lc-radius);
    padding: 32px 20px;
    text-align: center;
}

.lc-body .event-empty .fa {
    font-size: 28px;
    color: var(--lc-text-muted);
    opacity: 0.7;
}

.lc-body .event-info-grid {
    margin-bottom: 0;
}

.lc-body .event-info-panel {
    border: 1px solid var(--lc-border) !important;
    border-radius: var(--lc-radius) !important;
    background: var(--lc-bg-card) !important;
    box-shadow: var(--lc-shadow-soft) !important;
    margin-bottom: 18px;
    overflow: hidden;
}

.lc-body .event-info-panel__head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--lc-border) !important;
    background: var(--lc-bg-elevated) !important;
}

.lc-body .event-info-panel__head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--lc-text) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-body .event-info-panel__head h4 .fa,
.lc-body .event-info-panel__head h4 .glyphicon {
    color: var(--lc-accent) !important;
    font-size: 14px;
}

.lc-body .event-info-panel__body {
    padding: 16px 18px;
    color: var(--lc-text-muted) !important;
    font-size: 14px;
    line-height: 1.55;
}

.lc-body .security-actions,
.lc-body .forgot-actions {
    text-align: right;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--lc-border);
}

@media (max-width: 768px) {
    .lc-body .register-hint {
        margin-top: 0;
    }

    .lc-body .register-card-actions,
    .lc-body .forgot-actions {
        text-align: center;
    }

    .lc-body .register-card-actions .lc-btn,
    .lc-body .forgot-actions .lc-btn {
        width: 100%;
    }

    .lc-body .character-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .lc-body .character-summary__actions {
        margin-left: 0;
    }

    .lc-body .character-summary__actions .btn-u {
        width: 100%;
        text-align: center;
    }

    .lc-body .character-detail {
        flex-direction: column;
        align-items: center;
    }

    .lc-body .character-stats {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .lc-body .character-card-actions .btn-u {
        width: 100%;
        text-align: center;
    }

    .lc-body .donate-hero,
    .lc-body .donate-content {
        padding: 20px;
    }

    .lc-body .donate-hero-icon {
        display: none;
    }

    .lc-body .donate-module-wrap {
        padding: 18px;
    }

    .lc-body .top-three,
    .lc-body .top-player {
        display: block;
        width: 100%;
    }

    .lc-body .top-player.first {
        transform: none;
    }
}

/* ─── Site admin (/cabinet-admin) ─── */

.lc-admin-wrap {
    margin-top: 16px;
}

.lc-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 12px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    background: var(--lc-bg-card);
}

.lc-admin-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lc-text-muted) !important;
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background var(--lc-transition), color var(--lc-transition), border-color var(--lc-transition);
}

.lc-admin-nav__item:hover {
    color: var(--lc-text) !important;
    background: var(--lc-nav-hover-bg);
}

.lc-admin-nav__item.is-active {
    color: var(--lc-accent) !important;
    background: color-mix(in srgb, var(--lc-accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--lc-accent) 35%, transparent);
}

.lc-admin-panel {
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    background: var(--lc-bg-card);
    box-shadow: var(--lc-shadow-soft);
    margin-bottom: 18px;
    overflow: hidden;
}

.lc-admin-panel--lcball,
.lc-admin-panel--lcball .lc-admin-panel__body,
.lc-admin-panel--lcball .lc-lcball-currencies,
.lc-admin-panel--lcball .lc-lcball-currency-wrap,
.lc-admin-panel--lcball .lc-lcball-currency--add,
.lc-admin-panel--lcball .lc-lcball-add-currency-form {
    overflow: visible;
}

.lc-admin-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--lc-border);
    background: var(--lc-bg-elevated);
}

.lc-admin-panel__head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--lc-text);
}

.lc-admin-panel__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--lc-accent) !important;
}

.lc-admin-panel .table-responsive,
.lc-admin-panel__body {
    padding: 16px 18px;
}

.lc-admin-panel .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.lc-admin-panel__body--flush {
    padding: 0;
}

.lc-admin-panel .lc-admin-form {
    padding: 0;
}

.lc-admin-form--nested {
    padding: 0;
}

.lc-admin-form__actions {
    padding-top: 8px;
}

.lc-admin-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 16px;
}

.lc-admin-form__grid-span {
    grid-column: 1 / -1;
}

.lc-admin-form--jackpot .lc-form-field {
    margin-bottom: 0;
}

.lc-admin-form--jackpot .lc-admin-form__actions {
    margin-top: 4px;
}

@media (max-width: 991px) {
    .lc-admin-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .lc-admin-form__grid {
        grid-template-columns: 1fr;
    }
}

.lc-admin-table--jackpot {
    width: 100%;
    margin-bottom: 0;
}

.lc-admin-table--jackpot > thead > tr > th,
.lc-admin-table--jackpot > tbody > tr > td {
    padding: 11px 14px !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.lc-admin-table--jackpot > thead > tr > th {
    font-size: 11px;
    letter-spacing: 0.05em;
}

.lc-admin-table--jackpot > tbody > tr > td:nth-child(5) {
    white-space: normal;
    min-width: 110px;
}

.lc-admin-table--jackpot .lc-jackpot-date {
    min-width: 130px;
}

.lc-jackpot-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.lc-jackpot-status--open {
    color: #2e86c1;
    background: color-mix(in srgb, #3498db 14%, transparent);
    border: 1px solid color-mix(in srgb, #3498db 28%, transparent);
}

.lc-jackpot-status--spinning {
    color: #9b59b6;
    background: color-mix(in srgb, #9b59b6 14%, transparent);
    border: 1px solid color-mix(in srgb, #9b59b6 28%, transparent);
}

.lc-jackpot-status--winner {
    color: var(--lc-accent);
    background: color-mix(in srgb, var(--lc-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--lc-accent) 30%, transparent);
}

.lc-jackpot-status--closed {
    color: var(--lc-text-muted);
    background: color-mix(in srgb, var(--lc-text-muted) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--lc-border) 80%, transparent);
}

.lc-form-input--code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.45;
    min-height: 220px;
}

.lc-site-custom-html {
    color: var(--lc-text-muted);
    line-height: 1.6;
}

.lc-site-custom-html h2,
.lc-site-custom-html h3,
.lc-site-custom-html h4 {
    color: var(--lc-text);
    margin-top: 0;
}

.lc-site-custom-html ul,
.lc-site-custom-html ol {
    padding-left: 1.25em;
}

.lc-site-custom-html table {
    width: 100%;
    margin-bottom: 16px;
}

.lc-admin-table {
    margin: 0;
    color: var(--lc-text-muted);
}

.lc-admin-table thead th {
    color: var(--lc-text-muted) !important;
    border-bottom-color: var(--lc-border) !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lc-admin-table td,
.lc-admin-table th {
    border-top-color: var(--lc-border) !important;
    vertical-align: middle !important;
}

.lc-admin-table a {
    color: var(--lc-accent) !important;
}

.lc-admin-table__actions {
    white-space: nowrap;
    min-width: 200px;
}

.lc-admin-table__actions .lc-admin-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.lc-admin-table--wiki .lc-admin-table__col-actions,
.lc-admin-table--wiki .lc-admin-table__actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--lc-bg-card);
    box-shadow: -10px 0 14px rgba(0, 0, 0, 0.18);
}

.lc-admin-table--wiki th.lc-admin-table__col-actions {
    background: var(--lc-bg-elevated);
}

.lc-admin-table--wiki td:nth-child(3) code,
.lc-admin-table--wiki th:nth-child(3) {
    max-width: 160px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.lc-admin-panel__head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lc-wiki-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.lc-wiki-admin-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--lc-border);
    background: var(--lc-bg-elevated);
    color: var(--lc-text-muted) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lc-wiki-admin-tabs__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--lc-text);
}

.lc-wiki-admin-tabs__item.is-active,
.lc-wiki-admin-tabs__item:hover {
    border-color: var(--lc-accent);
    color: var(--lc-accent) !important;
    background: rgba(212, 175, 55, 0.08);
}

.lc-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.lc-settings-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--lc-border);
    background: var(--lc-bg-elevated);
    color: var(--lc-text-muted) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lc-settings-tabs__item.is-active,
.lc-settings-tabs__item:hover {
    border-color: var(--lc-accent);
    color: var(--lc-accent) !important;
    background: rgba(212, 175, 55, 0.08);
}

.lc-wiki-admin-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lc-wiki-admin-search .lc-form-input {
    flex: 1 1 220px;
    max-width: 360px;
}

.lc-wiki-admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--lc-border);
}

.lc-wiki-admin-pagination__info {
    font-size: 13px;
    color: var(--lc-text-muted);
}

.lc-wiki-admin-pagination__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lc-db-backup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.lc-db-backup-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    background: var(--lc-bg-elevated);
    cursor: pointer;
}

.lc-db-backup-item__check {
    margin-top: 3px;
}

.lc-db-backup-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lc-db-backup-item__body strong {
    color: var(--lc-text);
    font-size: 14px;
}

.lc-db-backup-item__body span {
    color: var(--lc-accent);
    font-size: 12px;
    font-family: Consolas, monospace;
}

.lc-db-backup-item__body small {
    color: var(--lc-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.lc-admin-panel--danger {
    border-color: rgba(220, 53, 69, 0.45);
}

.lc-admin-panel--danger .lc-admin-panel__head {
    background: rgba(220, 53, 69, 0.12);
}

.lc-admin-panel--danger .lc-admin-panel__head h4 {
    color: #ff8f98;
}

.lc-admin-hint--danger {
    color: #ffb4bb !important;
}

.lc-db-backup-custom {
    margin-bottom: 16px;
}

.lc-form-input--sm {
    margin-top: 8px;
    font-size: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.lc-db-restore-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid var(--lc-border);
    background: var(--lc-bg-elevated);
}

.lc-db-restore-summary.is-ok {
    border-color: rgba(46, 204, 113, 0.45);
}

.lc-db-restore-summary.is-error {
    border-color: rgba(220, 53, 69, 0.55);
    background: rgba(220, 53, 69, 0.08);
}

.lc-db-restore-summary span {
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-db-restore-table__section td {
    background: var(--lc-bg-elevated);
    font-weight: 700;
    color: var(--lc-text);
}

.lc-db-restore-table tr.is-replace td:nth-child(2) {
    color: #f0ad4e;
}

.lc-db-restore-table tr.is-create td:nth-child(2) {
    color: #5bc0de;
}

.lc-db-restore-table tr.is-remove td:nth-child(2) {
    color: #ff8f98;
}

.lc-db-restore-table tr.is-unchanged td:nth-child(2) {
    color: var(--lc-text-muted);
}

.lc-db-restore-table tr.is-conflict td:nth-child(2) {
    color: #ff6b76;
    font-weight: 700;
}

.lc-db-restore-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.lc-db-restore-apply-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.lc-db-archive-filters {
    margin-bottom: 16px;
}

.lc-db-archive-quick-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--lc-text-muted);
}

.lc-db-archive-quick-dates__item {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--lc-border);
    border-radius: 999px;
    color: var(--lc-text-muted);
    text-decoration: none;
}

.lc-db-archive-quick-dates__item.is-active,
.lc-db-archive-quick-dates__item:hover {
    border-color: rgba(255, 107, 53, 0.45);
    color: var(--lc-accent);
}

.lc-db-archive-table {
    table-layout: fixed;
    width: 100%;
}

.lc-db-archive-table th:nth-child(1),
.lc-db-archive-table td:nth-child(1) {
    width: 100px;
}

.lc-db-archive-table th:nth-child(2),
.lc-db-archive-table td:nth-child(2) {
    width: 22%;
}

.lc-db-archive-table th:nth-child(3),
.lc-db-archive-table td.lc-db-archive-table__files {
    width: 30%;
    overflow: hidden;
}

.lc-db-archive-table th:nth-child(4),
.lc-db-archive-table td.lc-db-archive-table__size {
    width: 76px;
}

.lc-db-archive-table th:nth-child(5),
.lc-db-archive-table td.lc-db-archive-table__admin {
    width: 80px;
}

.lc-db-archive-table th:nth-child(6),
.lc-db-archive-table td.lc-db-archive-table__actions {
    width: 148px;
}

.lc-db-archive-table td {
    vertical-align: top !important;
    overflow: hidden;
}

.lc-db-archive-table__date {
    white-space: nowrap;
    font-size: 13px;
}

.lc-db-archive-table__size,
.lc-db-archive-table__admin {
    white-space: nowrap;
    vertical-align: middle !important;
    text-align: left;
}

.lc-db-archive-table__meta {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--lc-text-muted);
    word-break: break-word;
}

.lc-db-archive-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.lc-db-archive-file {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.25;
}

.lc-db-archive-file__label {
    display: block;
    font-weight: 600;
    color: var(--lc-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-db-archive-file__mode {
    display: inline-block;
    max-width: 100%;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--lc-text-muted);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

.lc-db-archive-table__actions {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.lc-db-archive-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lc-db-archive-actions__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    min-height: 30px;
}

.lc-db-archive-actions__row .lc-btn {
    flex-shrink: 0;
    min-width: 32px;
    padding-left: 8px;
    padding-right: 8px;
}

.lc-db-archive-actions__label {
    flex: 1;
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-db-archive-action-confirm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: var(--lc-text-muted);
    white-space: nowrap;
    cursor: pointer;
}

.lc-db-archive-restore-details {
    display: block;
}

.lc-db-archive-restore-details summary {
    list-style: none;
    cursor: pointer;
}

.lc-db-archive-restore-details summary::-webkit-details-marker {
    display: none;
}

.lc-db-archive-actions__row--summary {
    user-select: none;
}

.lc-db-archive-actions__row--summary .lc-btn {
    pointer-events: none;
}

.lc-db-archive-restore-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    background: var(--lc-bg-card);
}

.lc-db-archive-restore-form .lc-form-input--sm {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.lc-lcball-currencies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    align-items: stretch;
}

.lc-lcball-currency-wrap {
    position: relative;
    min-width: 0;
    display: flex;
}

.lc-lcball-currency-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    z-index: 2;
}

.lc-lcball-currency-delete__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--lc-border-strong);
    border-radius: 6px;
    background: var(--lc-bg-elevated);
    color: var(--lc-text-muted);
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.lc-lcball-currency-delete__btn:hover {
    color: #e25555;
    border-color: rgba(226, 85, 85, 0.45);
    background: var(--lc-bg-card);
}

.lc-lcball-currency {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 118px;
    padding: 14px 16px;
    border: 1px solid var(--lc-border);
    border-radius: 12px;
    background: var(--lc-bg-card);
    color: var(--lc-text);
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.lc-lcball-currency--add {
    border-style: dashed;
    cursor: default;
}

.lc-lcball-add-currency-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    height: 100%;
    position: relative;
}

.lc-lcball-add-search {
    font-size: 12px;
    padding: 6px 8px;
}

.lc-lcball-add-submit {
    align-self: center;
    min-width: 36px;
    height: 28px;
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    background: var(--lc-bg-elevated);
    color: var(--lc-text);
    cursor: pointer;
}

.lc-lcball-add-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lc-lcball-add-search-results,
.lc-lcball-item-search-results {
    display: none;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    background: var(--lc-bg-elevated);
    box-shadow: var(--lc-shadow-soft);
}

.lc-lcball-add-search-results.is-open,
.lc-lcball-item-search-results.is-open {
    display: block;
}

.lc-lcball-add-search-result,
.lc-lcball-item-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--lc-border);
    background: transparent;
    color: var(--lc-text);
    cursor: pointer;
    text-align: left;
}

.lc-lcball-add-search-result:last-child,
.lc-lcball-item-search-result:last-child {
    border-bottom: 0;
}

.lc-lcball-add-search-result:hover,
.lc-lcball-item-search-result:hover {
    background: rgba(255, 107, 53, 0.08);
}

.lc-lcball-add-search-result__name,
.lc-lcball-item-search-result__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-lcball-add-search-result__id,
.lc-lcball-item-search-result__id {
    color: var(--lc-accent);
    font-weight: 700;
    white-space: nowrap;
}

.lc-lcball-add-search-empty,
.lc-lcball-item-search-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-lcball-item-search {
    position: relative;
    width: 100%;
    min-width: 0;
}

.lc-lcball-item-search-id {
    display: block;
    margin-top: 4px;
    padding-left: 2px;
    font-size: 10px;
    line-height: 1.2;
    color: var(--lc-text-muted);
}

.lc-lcball-prizes {
    width: 100%;
}

.lc-lcball-prizes__head,
.lc-lcball-prize-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px 72px 72px;
    column-gap: 8px;
    align-items: start;
}

.lc-lcball-prizes__head {
    padding: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lc-text-muted);
    border-bottom: 1px solid var(--lc-border);
}

.lc-lcball-prizes__col-num {
    text-align: center;
}

.lc-lcball-prize-row {
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--lc-border);
}

.lc-lcball-prize-row:last-child {
    border-bottom: 0;
}

.lc-lcball-prizes__col-side {
    text-align: center;
}

.lc-lcball-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lc-lcball-move-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lc-lcball-move-actions .lc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    min-width: 0;
    padding: 0;
    margin: 0;
}

/* Все поля строки — одна высота, одна линия */
.lc-body .lc-lcball-prizes .lc-lcball-row-input {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    font-size: 13px;
    line-height: 36px !important;
}

.lc-body .lc-lcball-prizes .lc-lcball-item-search-input {
    font-weight: 600;
    text-align: left;
}

.lc-body .lc-lcball-prizes .lc-lcball-num-input {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lc-lcball-prize-row.is-top-prize {
    background: rgba(255, 107, 53, 0.05);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.lc-lcball-pos-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.lc-lcball-top-badge {
    display: inline-block;
    max-width: 100%;
    padding: 2px 5px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--lc-accent);
    background: rgba(255, 107, 53, 0.12);
}

.lc-lcball-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    background: var(--lc-bg-elevated);
    color: var(--lc-text-muted);
    font-size: 13px;
}

.lc-lcball-currency.is-active,
.lc-lcball-currency:hover {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.06);
}

.lc-lcball-currency__name {
    font-size: 14px;
    font-weight: 600;
}

.lc-lcball-currency__stats {
    font-size: 18px;
    font-weight: 700;
    color: var(--lc-accent);
}

.lc-lcball-currency__id {
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-lcball-summary strong {
    color: var(--lc-text);
    font-size: 16px;
}

.lc-lcball-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.lc-lcball-tabs__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--lc-border);
    border-radius: 12px;
    background: var(--lc-bg-card);
    color: var(--lc-text);
    text-decoration: none;
}

.lc-lcball-tabs__item.is-active,
.lc-lcball-tabs__item:hover {
    border-color: rgba(255, 107, 53, 0.45);
}

.lc-lcball-tabs__item strong {
    font-size: 15px;
}

.lc-lcball-tabs__item span {
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-lcball-filter-form,
.lc-lcball-search-form,
.lc-lcball-token-form {
    margin-bottom: 0;
}

.lc-lcball-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.lc-lcball-token-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.06);
}

.lc-lcball-token-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--lc-accent);
    font-size: 24px;
}

.lc-lcball-token-card__meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--lc-text-muted);
}

.lc-lcball-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lc-lcball-pages__label {
    color: var(--lc-text-muted);
    font-size: 13px;
}

.lc-lcball-pages__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    color: var(--lc-text-muted);
    text-decoration: none;
}

.lc-lcball-pages__item.is-active,
.lc-lcball-pages__item:hover {
    border-color: rgba(255, 107, 53, 0.45);
    color: var(--lc-accent);
}

.lc-lcball-search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.lc-lcball-search-results__title {
    width: 100%;
    font-size: 13px;
    color: var(--lc-text-muted);
}

.lc-lcball-search-results__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    background: var(--lc-bg-card);
    color: var(--lc-text);
    cursor: pointer;
}

.lc-lcball-search-results__item:hover {
    border-color: rgba(255, 107, 53, 0.45);
}

.lc-lcball-main-prize-hint {
    margin: 0 0 16px;
}

.lc-client-export-card {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    background: var(--lc-bg-card);
}

.lc-client-export-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lc-client-export-card__head h5 {
    margin: 0;
    font-size: 16px;
}

.lc-client-export-card__table {
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-client-export-verify-hint {
    margin-top: 20px;
}

.lc-client-lod-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.lc-client-export-card.is-planned {
    opacity: 0.72;
}

.lc-client-export-card__file {
    font-size: 12px;
}

.lc-client-lod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--lc-border);
}

.lc-client-lod-form {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-client-lod-mode {
    display: block;
    margin-top: 4px;
}

.lc-client-lod-res-meta {
    margin-bottom: 0;
}

.lc-client-lod-res-table-wrap {
    max-height: 320px;
    overflow: auto;
    margin-top: 8px;
}

.lc-client-lod-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.lc-client-lod-badge.is-ok {
    background: rgba(46, 160, 67, 0.15);
    color: #3fb950;
}

.lc-client-lod-badge.is-planned {
    background: rgba(255, 255, 255, 0.06);
    color: var(--lc-text-muted);
}

.lc-lcball-reset-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--lc-border);
}

.lc-lcball-reset-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.lc-admin-wrap--item-editor {
    max-width: none;
    padding-top: 8px;
}

.lc-admin-wrap--item-editor .lc-ia {
    height: calc(100vh - 200px);
    min-height: 520px;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

/* ItemAll Editor layout */
.lc-ia {
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    background: #f0f0f0;
    overflow: hidden;
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.lc-ia.is-lod-mode {
    border-color: #e8a04a;
    box-shadow: inset 0 3px 0 #f0a030;
}

.lc-body .lc-ia {
    color: #222;
}

.lc-ia-menubar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #fafafa 0%, #e8e8e8 100%);
    border-bottom: 1px solid #c8c8c8;
    flex-shrink: 0;
}

.lc-ia-source-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 7px 14px;
    font-size: 12px;
    border-bottom: 1px solid #c0c0c0;
    flex-shrink: 0;
}

.lc-ia-source-bar--file {
    background: linear-gradient(180deg, #fff8e8 0%, #ffe8c8 100%);
    color: #5c3d00;
}

.lc-ia-source-bar--file .fa {
    color: #d97706;
}

.lc-ia-source-bar--db {
    background: linear-gradient(180deg, #eef6fc 0%, #dceaf5 100%);
    color: #2a4458;
}

.lc-ia-source-bar--db .fa {
    color: #2980b9;
}

.lc-ia-source-bar__mode {
    font-weight: 600;
}

.lc-ia-source-bar__name {
    color: inherit;
}

.lc-ia-source-bar__meta {
    color: #666;
    font-size: 11px;
}

.lc-ia-source-bar__hint {
    color: #666;
    font-size: 11px;
    margin-left: auto;
}

.lc-ia-menubar__left,
.lc-ia-menubar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lc-ia-menubar__tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.lc-ia-menu--lod-db .lc-ia-menu__btn--sync {
    background: linear-gradient(180deg, #e8f4fc 0%, #d4e8f8 100%);
    border-color: #7eb8dc;
    color: #1a4a6e;
    font-weight: 600;
}

.lc-ia-menu--lod-db .lc-ia-menu__btn--sync:hover {
    background: linear-gradient(180deg, #f0f8ff 0%, #dceef8 100%);
}

.lc-sc-db-open-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
}

.lc-ia-open-upload {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.lc-ia-open-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.lc-ia-open-upload__btn {
    cursor: pointer;
    margin: 0;
}

.lc-ia-open-upload__name {
    font-size: 11px;
    color: #555;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-ia-menubar__link {
    font-size: 12px;
    color: #444;
    text-decoration: none;
    padding: 4px 8px;
}

.lc-ia-menubar__link:hover {
    color: var(--lc-accent);
}

.lc-ia-menu {
    position: relative;
}

.lc-ia-menu__btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    color: #222;
}

.lc-ia-menu__btn:hover,
.lc-ia-menu.is-open .lc-ia-menu__btn {
    border-color: #b8b8b8;
    background: #fff;
}

.lc-ia-menu__btn--db strong {
    color: var(--lc-accent);
}

.lc-ia-menu__drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 280px;
    max-width: 360px;
    margin-top: 2px;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #b8b8b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lc-ia-menu__drop--right {
    left: auto;
    right: 0;
}

.lc-ia-menu.is-open .lc-ia-menu__drop {
    display: block;
}

.lc-ia-menu__item {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #222;
}

.lc-ia-menu__item:hover:not(:disabled) {
    background: #e8f4fc;
}

.lc-ia-menu__item:disabled {
    opacity: 0.45;
    cursor: default;
}

.lc-ia-menu__item--file {
    cursor: pointer;
}

.lc-ia-menu__file {
    display: none;
}

.lc-ia-menu__form {
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
}

.lc-ia-menu__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
}

.lc-ia-menu__label {
    font-size: 11px;
    color: #666;
}

.lc-ia-menu__action {
    border: 1px solid #b8b8b8;
    background: #f5f5f5;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
}

.lc-ia-menu__section {
    border-top: 1px solid #e0e0e0;
    padding-bottom: 4px;
}

.lc-ia-menu__section-title {
    padding: 6px 14px 4px;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
}

.lc-ia-menu__res-list {
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
}

.lc-ia-menu__res-form {
    margin: 0;
}

.lc-ia-menu__item--res {
    font-size: 12px;
}

.lc-ia-menu__item--res.is-item-all {
    font-weight: 600;
}

.lc-ia-menu__badge {
    font-size: 9px;
    color: var(--lc-accent);
    margin-left: 6px;
}

.lc-ia-menu__empty {
    padding: 8px 14px;
    font-size: 11px;
    color: #888;
}

.lc-ia-hidden {
    display: none;
}

.lc-ia-body {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.lc-ia-side {
    display: flex;
    flex-direction: column;
    background: #e4e4e4;
    border-right: 1px solid #c0c0c0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.lc-ia-side__top {
    flex-shrink: 0;
}

.lc-ia-side__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 4px;
    font-weight: 600;
    font-size: 12px;
}

.lc-ia-side__count {
    font-weight: 400;
    font-size: 11px;
    color: #666;
    font-style: normal;
}

.lc-ia-link-btn {
    border: none;
    background: none;
    color: #0066cc;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.lc-ia-side__search {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
}

.lc-ia-side__hint {
    margin: 0;
    padding: 6px 8px;
    font-size: 10px;
    color: #666;
    line-height: 1.35;
    flex-shrink: 0;
    border-top: 1px solid #c8c8c8;
    background: #dcdcdc;
}

.lc-ia-filters {
    padding: 0 8px 8px;
}

.lc-ia-filters__title {
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
    padding: 2px 4px;
    background: #d8d8d8;
    border: 1px solid #c0c0c0;
}

.lc-ia-filters__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
}

.lc-ia-filters__cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lc-ia-filters__label {
    font-size: 10px;
    color: #555;
    line-height: 1.2;
}

.lc-ia-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #a8a8a8;
    background: #fff;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1.3;
    color: #222;
    border-radius: 2px;
    min-height: 26px;
}

.lc-ia-input--textarea {
    min-height: 72px;
    resize: vertical;
}

.lc-ia-input--xs {
    max-width: 80px;
}

.lc-ia-btn {
    border: 1px solid #a8a8a8;
    background: #f5f5f5;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
    color: #222;
    white-space: nowrap;
}

.lc-ia-btn--primary {
    background: var(--lc-accent);
    border-color: var(--lc-accent);
    color: #fff;
}

.lc-ia-btn--lg {
    padding: 8px 20px;
    font-size: 13px;
}

.lc-ia-list-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 8px;
    border: 1px solid #a8a8a8;
    background: #fff;
}

.lc-ia-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.lc-ia-list th,
.lc-ia-list td {
    padding: 3px 6px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}

.lc-ia-list thead th {
    position: sticky;
    top: 0;
    background: #ececec;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid #c0c0c0;
}

.lc-ia-list__chk {
    width: 22px;
    text-align: center;
}

.lc-ia-list__id {
    width: 52px;
    font-variant-numeric: tabular-nums;
}

.lc-ia-list__name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-ia-list__row {
    cursor: pointer;
}

.lc-ia-list__row:hover,
.lc-ia-list__row.is-active {
    background: #d6e8f8;
}

.lc-ia-list__empty {
    text-align: center;
    color: #888;
    padding: 16px 8px;
}

.lc-ia-main {
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    min-height: 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.lc-ia-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.lc-ia-item-bar {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #e8e8e8;
    border-bottom: 1px solid #c0c0c0;
    flex-shrink: 0;
}

.lc-ia-item-bar__id {
    width: 72px;
    flex-shrink: 0;
    font-weight: 700;
    text-align: center;
}

.lc-ia-item-bar__name {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 600;
    background: #1a1a1a;
    color: #f0f0f0;
    border-color: #333;
}

.lc-ia-main-tabs {
    display: flex;
    gap: 0;
    padding: 0 12px;
    background: #ddd;
    border-bottom: 1px solid #c0c0c0;
    flex-shrink: 0;
}

.lc-ia-main-tabs__btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    color: #444;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.lc-ia-main-tabs__btn.is-active {
    background: #f5f5f5;
    border-bottom-color: var(--lc-accent);
    color: #222;
    font-weight: 600;
}

.lc-ia-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f5f5f5;
    padding: 4px 0 8px;
}

.lc-ia-sub-tabs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    padding: 6px 12px;
    background: #ececec;
    border-bottom: 1px solid #c0c0c0;
    margin: 0;
}

.lc-ia-main-panel {
    display: none;
    padding: 10px 12px;
}

.lc-ia-main-panel.is-active {
    display: block;
}

.lc-ia-sub-tabs__btn {
    border: 1px solid #c0c0c0;
    background: #ececec;
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
}

.lc-ia-sub-tabs__btn.is-active {
    background: #fff;
    border-color: var(--lc-accent);
    color: var(--lc-accent);
    font-weight: 600;
}

.lc-ia-tab {
    display: none;
}

.lc-ia-tab.is-active {
    display: block;
}

.lc-ia-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.lc-ia-fieldset {
    border: 1px solid #c0c0c0;
    background: #fff;
    margin: 0 0 10px;
    padding: 8px 10px 10px;
}

.lc-ia-fieldset legend {
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    color: #444;
}

.lc-ia-label {
    display: block;
    font-size: 10px;
    color: #555;
    margin: 6px 0 2px;
}

.lc-ia-label--section {
    margin-top: 10px;
    font-weight: 600;
}

.lc-ia-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-top: 6px;
}

.lc-ia-inline-field {
    flex: 1 1 100px;
    min-width: 80px;
}

.lc-ia-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.lc-ia-stats__item span {
    display: block;
    font-size: 10px;
    color: #555;
    margin-bottom: 2px;
}

.lc-ia-icon-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lc-ia-icon-fields {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
}

.lc-ia-icon-fields > div {
    flex: 1 1 60px;
}

.lc-ia-icon-preview {
    width: 48px;
    height: 48px;
    border: 1px solid #a8a8a8;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
}

.lc-ia-class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.lc-ia-classes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 8px;
    margin-top: 6px;
}

.lc-ia-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    margin: 4px 0;
    cursor: pointer;
}

.lc-ia-check--class {
    margin: 0;
}

.lc-ia-job-flag {
    margin-top: 4px;
}

.lc-ia-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
    border: 1px solid #c0c0c0;
}

.lc-ia-table th,
.lc-ia-table td {
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
}

.lc-ia-table th {
    background: #ececec;
    font-size: 11px;
}

.lc-ia-table .lc-ia-input {
    min-height: 24px;
}

.lc-ia-hint {
    font-size: 11px;
    color: #666;
    margin: 6px 0;
    line-height: 1.4;
}

.lc-ia-placeholder {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #666;
    text-align: center;
    min-height: 0;
    overflow: auto;
}

.lc-ia-savebar {
    padding: 10px 12px;
    border-top: 1px solid #c0c0c0;
    background: #e8e8e8;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .lc-admin-wrap--item-editor .lc-ia {
        height: auto;
        max-height: none;
    }

    .lc-ia-body {
        grid-template-columns: 1fr;
    }

    .lc-ia-side {
        max-height: 320px;
    }

    .lc-ia-columns {
        grid-template-columns: 1fr;
    }

    .lc-ia-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lc-admin-table__col-actions {
    min-width: 200px;
    text-align: left !important;
}

.lc-admin-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.lc-admin-form--inline,
.lc-admin-form--table-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: 100%;
}

.lc-admin-form--table-row .lc-btn,
.lc-admin-form--inline .lc-btn {
    flex-shrink: 0;
}

.lc-form-input--sm,
.lc-form-input--table,
.lc-admin-table .lc-admin-form--inline .lc-form-input,
.lc-admin-table .lc-admin-form--table-row .lc-form-input {
    display: inline-block;
    width: auto;
    min-width: 130px;
    max-width: 170px;
    height: 34px;
    padding: 5px 32px 5px 10px;
    font-size: 13px;
    margin: 0;
    flex: 0 0 auto;
}


.lc-admin-table .lc-admin-form--table-row a.lc-btn {
    flex-shrink: 0;
}

.lc-admin-edit-row td {
    background: var(--lc-nav-hover-bg) !important;
}

.lc-admin-news-list {
    display: flex;
    flex-direction: column;
}

.lc-admin-news-item {
    border-bottom: 1px solid var(--lc-border);
}

.lc-admin-news-item:last-child {
    border-bottom: none;
}

.lc-admin-news-item__head {
    padding: 16px 18px;
}

.lc-admin-news-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-admin-news-item__id {
    font-weight: 700;
    color: var(--lc-accent);
}

.lc-admin-news-item__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--lc-text);
    line-height: 1.35;
}

.lc-admin-news-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lc-admin-news-item__edit {
    padding: 0 18px 18px;
    border-top: 1px solid var(--lc-border);
    background: var(--lc-nav-hover-bg);
}

.lc-admin-news-item__edit .lc-admin-form {
    padding-top: 16px;
}

.lc-admin-empty {
    padding: 20px 18px;
    color: var(--lc-text-muted);
    margin: 0;
}

.lc-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.lc-admin-stat {
    padding: 16px 18px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    background: var(--lc-bg-card);
}

.lc-admin-stat__label {
    display: block;
    font-size: 12px;
    color: var(--lc-text-muted);
    margin-bottom: 6px;
}

.lc-admin-stat__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--lc-text);
}

.lc-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--lc-text-muted);
    border-bottom: 1px solid var(--lc-border);
}

.lc-admin-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.lc-admin-detail-stat {
    padding: 12px 14px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    background: var(--lc-bg-elevated);
}

.lc-admin-detail-stat__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lc-text-muted);
    margin-bottom: 6px;
}

.lc-admin-detail-stat__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--lc-text);
}

.lc-admin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.lc-admin-status i {
    font-size: 10px;
}

.lc-admin-status--online {
    color: #2ecc71;
}

.lc-admin-status--offline {
    color: var(--lc-text-muted);
}

.lc-admin-role {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    color: var(--lc-text-muted);
    background: color-mix(in srgb, var(--lc-text-muted) 10%, transparent);
    border: 1px solid var(--lc-border);
}

.lc-admin-role--admin {
    color: var(--lc-accent);
    background: color-mix(in srgb, var(--lc-accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--lc-accent) 30%, transparent);
}

.lc-admin-form--sectioned {
    padding-top: 4px;
    border-top: 1px solid var(--lc-border);
}

.lc-admin-form__section {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lc-text-muted);
}

.lc-admin-badge {
    font-weight: 700;
    color: var(--lc-accent);
}

.lc-cabinet__nav-item--admin {
    color: var(--lc-accent) !important;
}

.lc-btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.lc-btn--danger {
    color: #e74c3c !important;
    border-color: color-mix(in srgb, #e74c3c 35%, transparent) !important;
}

.lc-btn--danger:hover {
    background: color-mix(in srgb, #e74c3c 12%, transparent) !important;
}

.lc-admin-topup-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--lc-text-muted);
    border: 1px solid color-mix(in srgb, #e67e22 35%, transparent);
    border-radius: var(--lc-radius-sm);
    background: color-mix(in srgb, #e67e22 8%, transparent);
}

.lc-admin-topup-warning i {
    color: #e67e22;
    margin-top: 2px;
}

.lc-admin-topup-confirm {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lc-text);
    cursor: pointer;
}

.lc-admin-topup-confirm input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--lc-accent);
}

.lc-form-field--checkbox {
    margin-bottom: 0;
}

/* ─── Промокоды / подарки ─── */

.lc-form-input--upper {
    text-transform: uppercase;
}

.lc-cabinet__nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 4px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    color: var(--lc-bg);
    background: var(--lc-accent);
    border-radius: 999px;
}

.lc-cabinet-page__hint {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lc-text-muted);
}

.lc-gifts-empty {
    padding: 20px 18px;
    margin: 0;
    color: var(--lc-text-muted);
}

.lc-gifts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lc-gift-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--lc-border);
}

.lc-gift-card:last-child {
    border-bottom: none;
}

.lc-gift-card--ready {
    background: color-mix(in srgb, var(--lc-accent) 4%, transparent);
}

.lc-gift-card--claimed {
    opacity: 0.72;
}

.lc-gift-card--expired {
    opacity: 0.55;
}

.lc-gift-card__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lc-text);
}

.lc-gift-card__code {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lc-text-muted);
}

.lc-gift-card__amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--lc-accent);
}

.lc-gift-card__amount i {
    margin-right: 6px;
}

.lc-gift-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.lc-gift-card__status {
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-gift-card__status--done {
    color: var(--lc-green);
}

.lc-gift-card__status--expired {
    color: #e74c3c;
}

.lc-gift-card__form {
    margin: 0;
}

@media (max-width: 767px) {
    .lc-gift-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .lc-gift-card__meta {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
}

.lc-date-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.lc-date-quick__btn {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--lc-text-muted);
    background: var(--lc-bg-elevated);
    border: 1px solid var(--lc-border);
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--lc-transition), color var(--lc-transition), border-color var(--lc-transition);
}

.lc-date-quick__btn:hover {
    color: var(--lc-accent);
    border-color: color-mix(in srgb, var(--lc-accent) 35%, transparent);
    background: color-mix(in srgb, var(--lc-accent) 8%, transparent);
}

.lc-date-quick__btn--ghost {
    color: var(--lc-text-muted);
}

.lc-admin-hint {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--lc-text-muted);
    line-height: 1.5;
}

.lc-admin-muted {
    color: var(--lc-text-muted);
    font-size: 12px;
}

.lc-admin-panel__meta {
    font-size: 12px;
    color: var(--lc-text-muted);
    font-weight: 500;
}

.lc-admin-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--lc-border);
}

.lc-admin-pagination__info {
    font-size: 13px;
    color: var(--lc-text-muted);
}

.lc-admin-table--logs .lc-log-time {
    white-space: nowrap;
    font-size: 12px;
}

.lc-log-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--lc-bg-elevated);
    border: 1px solid var(--lc-border);
    color: var(--lc-text-muted);
}

.lc-log-action {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--lc-bg-elevated);
    border: 1px solid var(--lc-border);
}

.lc-log-message {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.45;
}

.lc-log-context {
    margin-top: 6px;
    font-size: 11px;
}

.lc-log-context pre {
    margin: 6px 0 0;
    padding: 8px;
    border-radius: var(--lc-radius-sm);
    background: var(--lc-bg-elevated);
    border: 1px solid var(--lc-border);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 11px;
    max-height: 120px;
    overflow: auto;
}

.lc-topup-promo-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: color-mix(in srgb, var(--lc-accent) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--lc-accent) 35%, transparent);
    color: var(--lc-accent);
}

.lc-topup-promo-badge--live {
    animation: lc-topup-promo-pulse 2s ease-in-out infinite;
}

@keyframes lc-topup-promo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.lc-admin-topup-preview {
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: var(--lc-radius-sm);
    border: 1px solid var(--lc-border);
    background: var(--lc-bg-elevated);
    font-size: 14px;
    color: var(--lc-text-muted);
}

.lc-body .donate-promo-active {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 14px;
    color: var(--lc-text);
}

/* Editors hub */
.lc-editors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.lc-editors-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    background: var(--lc-surface, #fff);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lc-editors-card:hover {
    border-color: var(--lc-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.lc-editors-card--muted {
    opacity: 0.92;
}

.lc-editors-card__icon {
    font-size: 22px;
    color: var(--lc-accent);
}

.lc-editors-card__title {
    font-size: 17px;
    font-weight: 700;
}

.lc-editors-card__meta {
    font-size: 12px;
    color: var(--lc-text-muted);
}

.lc-editors-card__desc {
    font-size: 13px;
    color: var(--lc-text-muted);
    line-height: 1.45;
}

.lc-editors-card__badge {
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.lc-editors-card__badge--ready {
    background: #e8f5e9;
    color: #2e7d32;
}

.lc-editors-card__badge--soon {
    background: #fff3e0;
    color: #e65100;
}

.lc-editors-section {
    margin-top: 28px;
}

.lc-editors-section:first-of-type {
    margin-top: 0;
}

.lc-editors-section__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.lc-editors-section__title .fa {
    margin-right: 6px;
    color: var(--lc-accent);
}

.lc-editors-section__hint {
    margin-top: 0;
    margin-bottom: 12px;
}

.lc-content-head__sub {
    margin: 6px 0 0;
    font-size: 13px;
}

.lc-content-head__sub a {
    color: var(--lc-text-muted);
}

/* LOD / String editors (shared layout with exchange) */
.lc-admin-wrap--exchange-editor,
.lc-admin-wrap--lod-editor,
.lc-admin-wrap--string-editor,
.lc-admin-wrap--str-client-editor {
    max-width: none;
    padding-top: 8px;
}

.lc-admin-wrap--exchange-editor .lc-ia,
.lc-admin-wrap--lod-editor .lc-ia,
.lc-admin-wrap--string-editor .lc-ia,
.lc-admin-wrap--str-client-editor .lc-ia {
    height: calc(100vh - 220px);
    min-height: 480px;
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.lc-ia-body--exchange {
    flex: 1;
    min-height: 0;
}

.lc-ex-simple-list-wrap {
    flex: 1;
    min-height: 0;
}

.lc-ex-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lc-ex-simple-list__item {
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.35;
}

.lc-ex-simple-list__item:hover {
    background: #e8f0f8;
}

.lc-ex-simple-list__item.is-active {
    background: #316ac5;
    color: #fff;
}

.lc-ex-simple-list__empty {
    padding: 12px;
    color: #666;
    font-size: 12px;
}

.lc-ex-form-scroll {
    padding: 12px;
}

.lc-ex-main-grid {
    display: grid;
    gap: 12px;
}

.lc-ex-field--reward {
    grid-column: 1 / -1;
}

.lc-ex-item-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.lc-ex-item-id {
    width: 88px;
    flex: 0 0 auto;
}

.lc-ex-item-count {
    width: 64px;
    flex: 0 0 auto;
}

.lc-ex-item-name {
    flex: 1 1 160px;
    min-width: 120px;
}

.lc-ex-item-qty-label {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.lc-ia-btn--icon {
    padding: 4px 8px;
    min-width: 32px;
}

.lc-ex-source-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.lc-ex-source-row__label {
    font-size: 12px;
    color: #444;
}

.lc-ex-form-actions {
    padding: 10px 12px;
    border-top: 1px solid #c0c0c0;
    background: #e8e8e8;
    flex-shrink: 0;
}

.lc-ex-picker {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 16px;
}

.lc-ex-picker[hidden] {
    display: none;
}

.lc-ex-picker__box {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lc-ex-picker__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lc-ex-picker__results {
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

.lc-ex-picker__item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #eee;
    background: #fff;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.lc-ex-picker__item:hover {
    background: #eef6fc;
}

.lc-ex-picker__item em {
    font-style: normal;
    color: #666;
    font-size: 12px;
}

.lc-ex-picker__empty {
    padding: 10px;
    font-size: 12px;
    color: #666;
}

.lc-str-locale-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    align-items: start;
    margin-bottom: 10px;
}

.lc-str-locale-row .lc-ia-label {
    grid-column: 1 / -1;
}

.lc-str-locale-row .lc-ia-input,
.lc-str-locale-row textarea {
    grid-column: 1;
}

.lc-admin-panel--compact {
    margin-bottom: 12px;
}

.lc-admin-panel--compact .lc-admin-panel__body {
    padding: 10px 14px;
}
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.lc-sc-db-open-row .lc-ia-input--xs {
    min-width: 140px;
    flex: 1;
}
    padding: 12px;
    border-top: 1px solid var(--lc-border, #ddd);
    font-size: 13px;
}

.lc-str-import-txt h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.lc-str-txt-import-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 1100px) {
    .lc-admin-wrap--exchange-editor .lc-ia,
    .lc-admin-wrap--lod-editor .lc-ia,
    .lc-admin-wrap--string-editor .lc-ia,
    .lc-admin-wrap--str-client-editor .lc-ia {
        height: auto;
        max-height: none;
    }
}

.lc-editor-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10080;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.lc-editor-toast[hidden] {
    display: none;
}

.lc-editor-toast--ok {
    background: #2e7d32;
}

.lc-editor-toast--error {
    background: #c62828;
}
