/* Leveling Dashboard — KynxBot Brand (Discord-Lila / Glass) */

:root {
    --lv-panel-bg: rgba(88, 101, 242, 0.08);
    --lv-panel-bg-soft: rgba(20, 22, 36, 0.72);
    --lv-panel-border: rgba(88, 101, 242, 0.22);
    --lv-panel-border-soft: rgba(255, 255, 255, 0.07);
    --lv-accent: #5865f2;
    --lv-accent-hover: #4752c4;
    --lv-accent-glow: rgba(88, 101, 242, 0.35);
    --lv-accent-soft: rgba(88, 101, 242, 0.14);
    --lv-text: #f0f0f5;
    --lv-muted: #9aa0b4;
    --lv-success: #3ba55d;
    --lv-danger: #ed4245;
    --lv-warning: #faa81a;
    --lv-radius: 16px;
    --lv-radius-sm: 11px;
    --lv-display: "Syne", "Sora", system-ui, sans-serif;
    --lv-gold: #f5c542;
}

html { background: #000; }

html::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000;
    z-index: -3;
    pointer-events: none;
}

body.leveling-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent !important;
    color: var(--lv-text);
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html:has(body.leveling-page) {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.lv-hidden { display: none !important; }

.lv-loading {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--lv-muted);
}

.lv-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--lv-accent);
}

/* Layout */
.leveling-main {
    width: min(1180px, calc(100% - 1.75rem));
    margin: 5.75rem auto 2.75rem;
    padding: 0;
}

.leveling-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
}

.leveling-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.leveling-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: var(--lv-muted);
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0;
    transition: color 0.2s;
    font-family: inherit;
}

.leveling-back:hover { color: #fff; }

.leveling-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.leveling-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.leveling-subtitle {
    color: var(--lv-muted);
    font-size: 0.86rem;
    margin: 0;
    line-height: 1.35;
}

.leveling-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lv-tier-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(88, 101, 242, 0.18);
    border: 1px solid rgba(88, 101, 242, 0.35);
    color: #c5caff;
}

/* Toggle */
.lv-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--lv-muted);
}

.lv-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.lv-toggle input { opacity: 0; width: 0; height: 0; }

.lv-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.22s;
}

.lv-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.22s;
}

.lv-toggle input:checked + .lv-toggle-slider { background: var(--lv-accent); }
.lv-toggle input:checked + .lv-toggle-slider::before { transform: translateX(18px); }
.lv-toggle input:disabled + .lv-toggle-slider { opacity: 0.45; cursor: not-allowed; }

/* Buttons */
.lv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.05rem;
    border-radius: var(--lv-radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    white-space: nowrap;
}

.lv-btn-primary {
    background: var(--lv-accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--lv-accent-glow);
}

.lv-btn-primary:hover:not(:disabled) {
    background: var(--lv-accent-hover);
    transform: translateY(-1px);
}

.lv-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.lv-btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--lv-panel-border);
}

.lv-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.lv-btn-ghost {
    background: transparent;
    color: var(--lv-muted);
    border: 1px solid transparent;
    padding: 0.4rem 0.65rem;
}

.lv-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.lv-btn-danger {
    background: rgba(237, 66, 69, 0.14);
    color: #ff6b6e;
    border: 1px solid rgba(237, 66, 69, 0.32);
    padding: 0.32rem 0.6rem;
    font-size: 0.76rem;
}

.lv-btn-danger:hover { background: rgba(237, 66, 69, 0.26); }

.lv-btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
}

/* Tabs */
.lv-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--lv-panel-border);
    border-radius: 11px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.lv-tabs::-webkit-scrollbar { height: 3px; }
.lv-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.lv-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--lv-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.lv-tab i {
    font-size: 0.72rem;
    opacity: 0.75;
}

.lv-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.lv-tab.active {
    background: var(--lv-accent);
    color: #fff;
    box-shadow: 0 3px 12px var(--lv-accent-glow);
}

.lv-tab.active i { opacity: 1; }

.lv-tab-panel { display: none; }

.lv-tab-panel.active {
    display: block;
    animation: lvFadeIn 0.22s ease;
}

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

/* Cards */
.lv-card {
    background:
        linear-gradient(145deg, rgba(88, 101, 242, 0.07), transparent 50%),
        rgba(16, 18, 30, 0.78);
    border: 1px solid var(--lv-panel-border);
    border-radius: var(--lv-radius);
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.85rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.lv-card--flush { padding-bottom: 0.85rem; }

.lv-card-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--lv-display);
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.lv-card-title i {
    color: var(--lv-accent);
    font-size: 0.85rem;
    opacity: 0.9;
}

.lv-card-desc {
    font-size: 0.8rem;
    color: var(--lv-muted);
    margin: 0 0 0.85rem;
    line-height: 1.4;
}

.lv-card-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.lv-card-header-row .lv-card-desc { margin-bottom: 0.75rem; }

/* Grids */
.lv-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.lv-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}

.lv-grid-sources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.7rem;
}

.lv-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.lv-filter-grid > .lv-card { margin-bottom: 0; }

.lv-curve-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 0.75rem;
    align-items: stretch;
}

.lv-curve-layout > .lv-card { margin-bottom: 0; }

.lv-lb-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 0.75rem;
    align-items: start;
}

.lv-lb-grid > .lv-card { margin-bottom: 0; }

.lv-field--span { grid-column: 1 / -1; }

/* Fields */
.lv-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.lv-field label {
    font-size: 0.72rem;
    font-weight: 550;
    color: var(--lv-muted);
}

.lv-field input[type="text"],
.lv-field input[type="number"],
.lv-field input[type="color"],
.lv-field select,
.lv-field textarea {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--lv-radius-sm);
    padding: 0.45rem 0.65rem;
    color: #fff;
    font-size: 0.86rem;
    font-family: inherit;
}

.lv-field input[type="color"] {
    height: 36px;
    padding: 0.2rem;
    cursor: pointer;
}

.lv-field input:focus,
.lv-field select:focus,
.lv-field textarea:focus {
    outline: none;
    border-color: var(--lv-accent);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.22);
}

.lv-field textarea {
    min-height: 60px;
    resize: vertical;
}

.lv-field select option {
    background: #1a1a1e;
    color: #fff;
}

.lv-field-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.lv-field-row > span,
.lv-field-row > label:not(.lv-toggle) {
    margin: 0;
    font-size: 0.84rem;
    color: var(--lv-text);
    line-height: 1.3;
}

.lv-field-row--mb { margin-bottom: 0.7rem; }

.lv-toggle-list,
.lv-toggle-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lv-toggle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.lv-toggle-grid--mt { margin-top: 0.75rem; }

.lv-hint {
    font-size: 0.72rem;
    color: var(--lv-muted);
    margin: 0.15rem 0 0;
    line-height: 1.35;
}

.lv-hint-box {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    border-radius: 9px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.24);
    color: #c5caff;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.lv-hint-box i {
    margin-top: 0.12rem;
    color: var(--lv-accent);
}

.lv-hint-box a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.lv-hint-actions { margin-top: 0.35rem; }

.lv-section-label {
    font-size: 0.68rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    color: var(--lv-muted);
    margin: 0.85rem 0 0.45rem;
}

.lv-filter-block { margin-bottom: 0.55rem; }
.lv-filter-block:last-child { margin-bottom: 0; }
.lv-filter-block .lv-section-label { margin-top: 0.35rem; }

/* Overview */
.lv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.55rem;
}

.lv-stats--hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.lv-stat {
    background: var(--lv-panel-bg-soft);
    border-radius: 9px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--lv-panel-border-soft);
}

.lv-stat-label {
    font-size: 0.68rem;
    color: var(--lv-muted);
    margin-bottom: 0.2rem;
}

.lv-stat-value {
    font-size: 0.98rem;
    font-weight: 650;
    color: #fff;
}

.lv-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.35rem;
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.76rem;
    color: var(--lv-muted);
}

.lv-meta-row i {
    margin-right: 0.25rem;
    opacity: 0.7;
}

.lv-meta-row strong {
    color: var(--lv-text);
    font-weight: 550;
}

.lv-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.55rem;
}

.lv-quick {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    text-align: left;
    padding: 0.8rem 0.85rem;
    border-radius: 11px;
    border: 1px solid var(--lv-panel-border);
    background: var(--lv-panel-bg);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
    font-family: inherit;
    backdrop-filter: blur(12px);
}

.lv-quick i {
    color: var(--lv-accent);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.lv-quick-title {
    font-size: 0.86rem;
    font-weight: 650;
    color: #fff;
}

.lv-quick-desc {
    font-size: 0.72rem;
    color: var(--lv-muted);
    line-height: 1.3;
}

.lv-quick:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, 0.45);
    background: rgba(88, 101, 242, 0.12);
}

.lv-badge {
    display: inline-block;
    padding: 0.16rem 0.48rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
}

.lv-badge-on {
    background: rgba(59, 165, 93, 0.2);
    color: #57f287;
}

.lv-badge-off {
    background: rgba(237, 66, 69, 0.15);
    color: #ff6b6e;
}

.lv-badge-tier {
    background: rgba(88, 101, 242, 0.2);
    color: #c5caff;
}

.lv-badge-locked {
    background: rgba(250, 166, 26, 0.14);
    color: #faa61a;
    flex-shrink: 0;
}

/* Source tiles */
.lv-source-tile {
    border: 1px solid var(--lv-panel-border-soft);
    border-radius: 11px;
    padding: 0.8rem 0.85rem;
    background: var(--lv-panel-bg-soft);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.18s, background 0.18s;
}

.lv-source-tile:hover { border-color: rgba(255, 255, 255, 0.13); }

.lv-source-tile.is-disabled-hint {
    opacity: 0.92;
    border-style: dashed;
}

.lv-source-tile--span {
    grid-column: 1 / -1;
}

.lv-source-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.lv-source-tile-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 650;
    font-size: 0.88rem;
}

.lv-source-tile-title i {
    width: 1.2rem;
    text-align: center;
    color: var(--lv-accent);
    font-size: 0.85rem;
}

.lv-source-tile-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 0.5rem;
}

.lv-source-tile-body--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lv-source-more {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.45rem;
}

.lv-source-more summary {
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 550;
    color: #c5caff;
    list-style: none;
    user-select: none;
}

.lv-source-more summary::-webkit-details-marker { display: none; }

.lv-source-more summary::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    margin-right: 0.4rem;
    opacity: 0.7;
}

.lv-source-more[open] summary::before { content: '\f077'; }

.lv-source-more .lv-source-tile-body { margin-top: 0.5rem; }

/* Chips */
.lv-chip-surface {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    align-items: center;
}

.lv-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.45rem 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.18);
    border: 1px solid rgba(88, 101, 242, 0.32);
    color: #e0e3ff;
    font-size: 0.74rem;
    font-weight: 500;
    max-width: 100%;
}

.lv-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.lv-chip button {
    background: transparent;
    border: none;
    color: #c5caff;
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.8;
}

.lv-chip button:hover { opacity: 1; color: #fff; }

.lv-chip-add {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.4rem;
}

.lv-chip-add select {
    flex: 1;
    min-width: 140px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--lv-radius-sm);
    padding: 0.4rem 0.55rem;
    color: #fff;
    font-size: 0.8rem;
    font-family: inherit;
}

.lv-chip-add select option { background: #1a1a1e; }

/* Presets */
.lv-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.lv-preset-btn {
    padding: 0.4rem 0.8rem;
    border-radius: var(--lv-radius-sm);
    border: 1px solid var(--lv-panel-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}

.lv-preset-btn:hover {
    border-color: var(--lv-accent);
    background: rgba(88, 101, 242, 0.14);
}

.lv-preset-btn.active {
    background: var(--lv-accent);
    border-color: var(--lv-accent);
}

/* Curve chart */
.lv-card--chart {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.lv-curve-chart-wrap {
    margin-top: 0.85rem;
    padding: 0.75rem;
    background: var(--lv-panel-bg-soft);
    border: 1px solid var(--lv-panel-border-soft);
    border-radius: 10px;
}

.lv-curve-chart-label {
    font-size: 0.74rem;
    color: var(--lv-muted);
    margin-bottom: 0.5rem;
}

.lv-curve-chart {
    width: 100%;
    height: 260px;
    display: block;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    flex: 1;
}

/* Rewards */
.lv-rewards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.lv-reward-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    background: var(--lv-panel-bg-soft);
    border: 1px solid var(--lv-panel-border-soft);
    border-radius: 9px;
}

.lv-reward-card-main { min-width: 0; flex: 1; }

.lv-reward-card-title {
    font-weight: 650;
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.lv-reward-card-meta {
    color: var(--lv-muted);
    font-size: 0.74rem;
    line-height: 1.35;
    word-break: break-word;
}

.lv-reward-card-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.lv-reward-form {
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.lv-reward-form .lv-section-label { margin-top: 0; }

.lv-reward-config-panel {
    display: none;
    padding: 0.7rem;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 9px;
    border: 1px solid var(--lv-panel-border-soft);
}

.lv-reward-config-panel.active { display: block; }

.lv-reward-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Leaderboard preview */
.lv-lb-preview {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lv-lb-preview li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    background: var(--lv-panel-bg-soft);
    border-radius: 7px;
    border: 1px solid var(--lv-panel-border-soft);
    font-size: 0.8rem;
}

.lv-lb-rank {
    font-weight: 700;
    color: var(--lv-accent);
    min-width: 1.6rem;
}

.lv-lb-user {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-lb-stats {
    color: var(--lv-muted);
    font-size: 0.74rem;
    white-space: nowrap;
}

/* Members */
.lv-members-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.lv-members-toolbar input {
    width: min(240px, 100%);
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--lv-radius-sm);
    padding: 0.42rem 0.65rem;
    color: #fff;
    font-size: 0.84rem;
    font-family: inherit;
}

.lv-table-wrap {
    overflow-x: auto;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.lv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.lv-table th,
.lv-table td {
    padding: 0.5rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lv-table th {
    background: rgba(0, 0, 0, 0.38);
    color: var(--lv-muted);
    font-weight: 650;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lv-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.lv-table tbody tr:last-child td { border-bottom: none; }

.lv-table code {
    font-size: 0.74rem;
    color: #c5caff;
}

.lv-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.lv-pagination-info {
    font-size: 0.8rem;
    color: var(--lv-muted);
}

.lv-pagination-btns {
    display: flex;
    gap: 0.4rem;
}

.lv-audit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
}

.lv-audit-list li {
    padding: 0.45rem 0.65rem;
    background: var(--lv-panel-bg-soft);
    border-radius: 7px;
    border: 1px solid var(--lv-panel-border-soft);
    font-size: 0.76rem;
    color: var(--lv-muted);
}

.lv-audit-list strong { color: var(--lv-text); }

.lv-empty {
    text-align: center;
    padding: 1.5rem 0.85rem;
    color: var(--lv-muted);
    font-size: 0.84rem;
}

.lv-empty i {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    opacity: 0.5;
}

/* Modal */
.lv-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lv-modal.lv-hidden { display: none !important; }

.lv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.lv-modal-dialog {
    position: relative;
    width: min(400px, 100%);
    background: rgba(18, 18, 22, 0.96);
    border: 1px solid var(--lv-panel-border);
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
}

.lv-modal-dialog--wide {
    width: min(640px, 100%);
}

.lv-modal-dialog--xl {
    width: min(760px, 100%);
}

.lv-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.lv-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--lv-muted, #94a3b8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lv-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.lv-modal-body {
    overflow: auto;
    padding-right: 0.15rem;
    flex: 1 1 auto;
    min-height: 0;
}

.lv-modal-title {
    font-size: 1.02rem;
    font-weight: 650;
    margin: 0 0 0.25rem;
}

.lv-modal-desc {
    font-size: 0.8rem;
    color: var(--lv-muted);
    margin: 0 0 0.85rem;
}

.lv-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 0.95rem;
    flex-shrink: 0;
}

/* Leaderboard tab — compact */
.lv-lb-compact {
    margin-bottom: 1rem;
}
.lv-lb-compact-head {
    align-items: flex-start;
    gap: 0.75rem;
}
.lv-lb-season-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex-shrink: 0;
}
.lv-lb-quick {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.65rem;
}
.lv-lb-quick-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.lv-lb-quick-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
    gap: 0.65rem 0.75rem;
}
.lv-lb-save-hint {
    margin: 0.55rem 0 0.85rem;
}
.lv-lb-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}
.lv-lb-setting-tile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 16, 28, 0.72);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.lv-lb-setting-tile:hover {
    border-color: rgba(88, 101, 242, 0.45);
    background: rgba(20, 26, 44, 0.92);
    transform: translateY(-1px);
}
.lv-lb-setting-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.16);
    color: #a5b4fc;
    flex-shrink: 0;
}
.lv-lb-setting-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1;
}
.lv-lb-setting-copy strong {
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.25;
}
.lv-lb-setting-copy em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--lv-muted, #94a3b8);
    line-height: 1.3;
}
.lv-lb-setting-chevron {
    color: var(--lv-muted, #64748b);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.lv-lb-preview-card {
    margin-top: 0;
}
.lv-lb-preview-head {
    margin-bottom: 0.65rem;
}
.lv-web-iframe-shell--hero {
    height: min(78vh, 860px);
    min-height: 560px;
}
@media (max-width: 1100px) {
    .lv-lb-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lv-lb-quick-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .lv-lb-settings-grid { grid-template-columns: 1fr; }
    .lv-lb-quick-fields { grid-template-columns: 1fr; }
    .lv-lb-compact-head { flex-direction: column; }
    .lv-web-iframe-shell--hero {
        height: min(70vh, 640px);
        min-height: 420px;
    }
}

/* Responsive */
@media (max-width: 980px) {
    .lv-stats--hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lv-filter-grid,
    .lv-curve-layout,
    .lv-lb-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leveling-main {
        margin-top: 5.25rem;
        width: calc(100% - 1rem);
    }

    .leveling-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .leveling-header-actions { width: 100%; }

    .lv-grid-2 { grid-template-columns: 1fr; }

    .lv-stats--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .lv-card { padding: 0.85rem 0.9rem; }

    .lv-reward-card { flex-direction: column; }

    .lv-curve-chart { height: 200px; }

    .lv-card-header-row .lv-members-toolbar {
        width: 100%;
    }

    .lv-members-toolbar input { width: 100%; }
}

@media (max-width: 480px) {
    .lv-tab span { display: none; }
    .lv-tab { padding: 0.5rem 0.7rem; }
    .lv-tab i { font-size: 0.9rem; opacity: 1; }
}

/* Game HQ bar (when leveling is live) */
body.leveling-page {
    font-family: "Sora", system-ui, sans-serif;
}
.leveling-title {
    font-family: var(--lv-display);
    letter-spacing: 0.02em;
}
.lv-hq {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--lv-panel-border);
    background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.12), transparent 55%),
        rgba(16, 18, 32, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.lv-hq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}
.lv-hq-stat {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.85rem;
}
.lv-hq-stat span {
    display: block;
    font-size: 0.75rem;
    color: var(--lv-muted);
}
.lv-hq-stat strong {
    font-family: var(--lv-display);
    font-size: 1.4rem;
    color: var(--lv-accent);
}
.lv-hq-stat--wide { grid-column: span 2; }
@media (max-width: 560px) {
    .lv-hq-stat--wide { grid-column: span 1; }
}
.lv-hq-top {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}
.lv-hq-top .chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
}
.lv-hq-top img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.lv-hq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.lv-hq-url {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--lv-muted);
    word-break: break-all;
}
.lv-check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--lv-text);
}
.lv-check input {
    margin-top: 0.2rem;
    accent-color: var(--lv-accent);
}

.lv-wizard {
    margin: 0 auto 1.5rem;
    max-width: 720px;
}
.lv-wizard-card {
    background:
        linear-gradient(165deg, rgba(88, 101, 242, 0.14), transparent 42%),
        linear-gradient(160deg, rgba(22, 24, 40, 0.96), rgba(10, 11, 20, 0.94));
    border: 1px solid var(--lv-panel-border);
    border-radius: 22px;
    padding: 1.75rem 1.5rem 1.35rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.lv-wizard-progress {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.lv-wiz-dot {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease;
}
.lv-wiz-dot.is-active,
.lv-wiz-dot.is-done {
    background: var(--lv-accent);
}
.lv-wizard-step {
    color: var(--lv-accent);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
    font-weight: 600;
}
.lv-wizard-screen { display: none; animation: lvWizIn 0.35s ease; }
.lv-wizard-screen.is-active { display: block; }
@keyframes lvWizIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.lv-wiz-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(88, 101, 242, 0.15);
    color: var(--lv-accent);
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}
.lv-wizard-screen h2 {
    font-family: var(--lv-display);
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
}
.lv-wiz-hint,
.lv-wizard-screen > p {
    color: var(--lv-muted);
    margin: 0 0 1rem;
    line-height: 1.5;
}
.lv-wiz-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}
.lv-wiz-bullets li {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}
.lv-wiz-bullets li::before {
    content: "✓ ";
    color: var(--lv-accent);
    font-weight: 700;
}
.lv-wiz-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}
.lv-wiz-choice-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}
.lv-wiz-choice {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--lv-text);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.lv-wiz-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 101, 242, 0.35);
}
.lv-wiz-choice.is-active {
    border-color: rgba(88, 101, 242, 0.55);
    background: rgba(88, 101, 242, 0.12);
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.2);
}
.lv-wiz-choice strong {
    display: block;
    font-family: var(--lv-display);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.lv-wiz-choice span {
    font-size: 0.82rem;
    color: var(--lv-muted);
    line-height: 1.4;
}
.lv-wiz-field { margin-bottom: 0.85rem; }
.lv-wiz-check { margin-top: 0.35rem; }
.lv-wiz-summary {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
}
.lv-wizard-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.35rem;
}
.lv-setup-gate.is-locked,
.lv-setup-gate[hidden] {
    display: none !important;
}

/* Setup-only: rest der Seite komplett ausblenden */
body.lv-setup-mode .leveling-header-actions,
body.lv-setup-mode .lv-hq,
body.lv-setup-mode .lv-setup-gate,
body.lv-setup-mode .leveling-subtitle,
body.lv-setup-mode .lv-tier-chip {
    display: none !important;
}
body.lv-setup-mode .leveling-main {
    max-width: 760px;
}
body.lv-setup-mode .leveling-header {
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}
body.lv-setup-mode .lv-wizard {
    margin-top: 0.25rem;
}
body.lv-setup-mode .lv-wizard-card {
    position: relative;
    overflow: hidden;
}
body.lv-setup-mode .lv-wizard-card::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.28), transparent 70%);
    pointer-events: none;
}

/* Overview hero */
.lv-overview-hero {
    border-radius: 20px;
    border: 1px solid rgba(88, 101, 242, 0.22);
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(88, 101, 242, 0.16), transparent 55%),
        linear-gradient(145deg, rgba(14, 22, 40, 0.95), rgba(8, 12, 24, 0.9));
    padding: 1.35rem 1.25rem 1.15rem;
    margin-bottom: 1.25rem;
}
.lv-overview-hero-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.15rem;
}
.lv-overview-heading {
    font-family: var(--lv-display);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    margin: 0.45rem 0 0.35rem;
}
.lv-overview-lead {
    margin: 0;
    color: var(--lv-muted);
    max-width: 36rem;
    line-height: 1.45;
}
.lv-overview-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.lv-overview-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.55rem;
}
.lv-metric {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
}
.lv-metric-label {
    display: block;
    font-size: 0.72rem;
    color: var(--lv-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}
.lv-metric-value {
    font-family: var(--lv-display);
    font-size: 1.15rem;
    color: var(--lv-accent);
}
.lv-overview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: var(--lv-muted);
}
.lv-overview-top-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lv-overview-compact .lv-overview-lead {
    font-size: 0.88rem;
}
.lv-overview-compact .lv-overview-heading {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}
.lv-overview-setup-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.lv-disabled-mode .leveling-title::after {
    content: ' (pausiert)';
    font-size: 0.72em;
    color: var(--lv-muted);
    font-weight: 500;
    letter-spacing: 0;
}
.lv-lb-embed-preview {
    position: relative;
    border-radius: 12px;
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem 0.75rem 1.05rem;
    margin-top: 0.35rem;
    overflow: hidden;
}
.lv-lb-embed-preview-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #5865f2;
}
.lv-lb-embed-preview-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f2f3f5;
    margin-bottom: 0.35rem;
}
.lv-lb-embed-preview-desc {
    font-size: 0.82rem;
    color: #dbdee1;
    margin-bottom: 0.55rem;
    white-space: pre-wrap;
}
.lv-lb-embed-preview .lv-lb-preview {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}
.lv-lb-embed-preview .lv-lb-preview li {
    display: grid;
    grid-template-columns: 2.2rem 1fr auto;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.84rem;
    color: #dbdee1;
    padding: 0.28rem 0.4rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}
.lv-lb-embed-preview .lv-lb-empty-slot {
    opacity: 0.55;
}
.lv-lb-embed-preview-footer {
    margin-top: 0.65rem;
    font-size: 0.72rem;
    color: #949ba4;
}
.lv-embed-preview-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lv-embed-preview-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #4e5058;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lv-embed-preview-btn--primary {
    background: #5865f2;
}
.lv-embed-preview-select {
    display: inline-flex;
    align-items: center;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.45rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dbdee1;
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lv-info-preview-intro {
    font-size: 0.88rem;
    color: #dbdee1;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.lv-info-preview-field {
    margin-bottom: 0.65rem;
    font-size: 0.84rem;
    color: #dbdee1;
}
.lv-info-preview-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #949ba4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}
.lv-info-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.75rem 0;
}
.lv-info-preview-stats > div {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
    text-align: center;
}
.lv-info-preview-stats span {
    display: block;
    font-size: 0.65rem;
    color: #949ba4;
    margin-bottom: 0.15rem;
}
.lv-info-preview-stats strong {
    font-size: 0.95rem;
    color: #f2f3f5;
}
.lv-info-preview-block {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #dbdee1;
    white-space: normal;
}
.lv-info-preview-block:last-child {
    margin-bottom: 0;
}
.lv-level-cmd-preview {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(12, 18, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.lv-level-cmd-preview-line {
    font-size: 0.88rem;
    color: #dbdee1;
    margin-bottom: 0.75rem;
}
.lv-level-cmd-preview-card {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #0b1220 0%, #121a2e 100%);
    border-left: 4px solid var(--lv-accent, #5865F2);
}
.lv-level-cmd-preview-card-top {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}
.lv-level-cmd-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1f2e;
    border: 2px solid var(--lv-accent, #5865F2);
    flex-shrink: 0;
}
.lv-level-cmd-name {
    font-weight: 700;
    color: #f8fafc;
    font-size: 1.05rem;
}
.lv-level-cmd-title {
    color: var(--lv-accent, #5865F2);
    font-weight: 600;
    font-size: 0.9rem;
}
.lv-level-cmd-meta {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}
.lv-level-cmd-bar-wrap {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: #1e293b;
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.lv-level-cmd-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--lv-accent, #5865F2);
}
.lv-level-cmd-pct {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #e2e8f0;
}
.lv-level-cmd-xp {
    font-size: 0.78rem;
    color: #64748b;
}

.lv-card--mt { margin-top: 1.25rem; }

.lv-web-design-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 980px) {
    .lv-web-design-grid { grid-template-columns: 1fr; }
}

.lv-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}
.lv-preset-chip {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 18, 32, 0.8);
    color: #dbdee1;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.lv-preset-chip.is-active,
.lv-preset-chip:hover {
    border-color: rgba(88, 101, 242, 0.55);
    background: rgba(88, 101, 242, 0.18);
    color: #fff;
}

.lv-field input[type="color"] {
    width: 42px;
    min-height: 38px;
    padding: 0.15rem;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 0.4rem;
}
.lv-field input[type="color"] + input[type="text"] {
    width: calc(100% - 52px);
    display: inline-block;
}

.lv-web-preview-wrap { position: sticky; top: 1rem; }
.lv-web-preview-hint {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.85rem;
    opacity: 0.85;
}
.lv-web-iframe-shell {
    position: relative;
    height: min(72vh, 720px);
    min-height: 480px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #070b14;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.lv-web-preview-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #070b14;
}
.lv-web-preview {
    --wprev-accent: #22d3a6;
    --wprev-glow: #22d3a6;
    --wprev-bg: #070b14;
    --wprev-text: #e8eefc;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--wprev-bg);
    color: var(--wprev-text);
    min-height: 420px;
    padding: 1rem;
}
.lv-web-preview-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--wprev-glow) 28%, transparent), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 80%, color-mix(in srgb, var(--wprev-accent) 16%, transparent), transparent 50%);
    pointer-events: none;
}
.lv-web-preview-hero,
.lv-web-preview-podium,
.lv-web-preview-rows,
.lv-web-preview-footer { position: relative; z-index: 1; }

.lv-web-preview-hero {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}
.lv-web-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--wprev-accent) 35%, #1a2338);
    border: 2px solid color-mix(in srgb, var(--wprev-accent) 55%, transparent);
}
.lv-web-preview-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wprev-accent);
    font-weight: 700;
}
.lv-web-preview-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0.1rem;
}
.lv-web-preview-meta {
    font-size: 0.78rem;
    opacity: 0.7;
}
.lv-web-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}
.lv-web-preview-stats > div {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.4rem;
    text-align: center;
}
.lv-web-preview-stats span {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.65;
}
.lv-web-preview-stats b {
    font-size: 0.82rem;
    color: var(--wprev-accent);
}
.lv-web-preview-rows.is-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.lv-web-preview-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    align-items: end;
}
.lv-web-prev-pod {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.55rem 0.35rem;
    text-align: center;
    font-size: 0.72rem;
}
.lv-web-prev-pod b {
    display: block;
    color: var(--wprev-accent);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.lv-web-prev-pod.is-1 { min-height: 72px; border-color: rgba(245, 197, 66, 0.4); }
.lv-web-prev-pod.is-2 { min-height: 58px; }
.lv-web-prev-pod.is-3 { min-height: 50px; }

.lv-web-preview-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.lv-web-prev-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 0.45rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
}
.lv-web-prev-row span { color: var(--wprev-accent); font-weight: 700; }
.lv-web-prev-row em { font-style: normal; opacity: 0.65; font-size: 0.72rem; }

.lv-web-preview-footer {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--wprev-accent);
    opacity: 0.85;
}

.lv-quick {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 18, 32, 0.7);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.lv-quick:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, 0.45);
    background: rgba(88, 101, 242, 0.12);
}
.lv-quick i {
    color: var(--lv-accent);
}

@media (min-width: 720px) {
    .lv-wiz-choice-grid:not(.lv-wiz-choice-grid--4) {
        grid-template-columns: repeat(3, 1fr);
    }
}
