/* ============================================================
   Lexilet – Dashboard Styles: Advanced Features & Customizations
   Part of the refactored 3.4.0.0 CSS module system.
   Requires: lexilet-dashboard-core.css
   ============================================================ */

/* ============================================================
   v2.3.6 – Fordított tanulási mód stílusok
   ============================================================ */

/* ---- Tanulási irány pill (deck meta alatt hover-re) ------- */
.lexd-deck-meta-hover {
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lexd-dir-pills {
    display: inline-flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.lexd-deck-item:hover .lexd-dir-pills {
    opacity: 1;
    transform: translateY(0);
}

.lexd-dir-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    line-height: 1.6;
}

.lexd-dir-pill-n {
    background: #eef;
    color: #6c63ff;
    border: 1px solid #d0cdff;
}

.lexd-dir-pill-r {
    background: #fff3ea;
    color: #e67e22;
    border: 1px solid #ffd5b0;
}

/* ---- Irány-választó gomb (⇄) a Tanulás gomb mellett ------ */
html body .lexd .lexd-dir-choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #dde1e7;
    background: #fff;
    color: #6c63ff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

html body .lexd .lexd-dir-choose:hover {
    background: #6c63ff !important;
    color: #fff !important;
    border-color: #6c63ff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(108, 99, 255, 0.25);
}

/* ---- Direction popover (floating card) ------------------- */
.lexd-dir-popover {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 230px;
    border: 1px solid #eaedf2;
    animation: lexdPopIn 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lexdPopIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lexd-dir-pop-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f4;
    transition: background 0.12s;
}

.lexd-dir-pop-opt:last-child {
    border-bottom: none;
}

.lexd-dir-pop-opt:hover {
    background: #f7f6ff;
}

.lexd-dir-pop-icon {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.lexd-dir-pop-normal .lexd-dir-pop-icon {
    background: #eef;
    color: #6c63ff;
}

.lexd-dir-pop-rev .lexd-dir-pop-icon {
    background: #fff3ea;
    color: #e67e22;
}

.lexd-dir-pop-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lexd-dir-pop-text strong {
    font-size: 0.82rem;
    color: #222;
}

.lexd-dir-pop-text small {
    font-size: 0.7rem;
    color: #999;
}

/* ---- Panel fejléc: irányválasztó gomb -------------------- */
.lexd-panel-study-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

html body .lexd .lexd-panel-dir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dde1e7;
    background: #fff;
    color: #6c63ff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

html body .lexd .lexd-panel-dir-btn:hover {
    background: #6c63ff !important;
    color: #fff !important;
    border-color: #6c63ff !important;
}

.lexd-panel-dir-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #eaedf2;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    min-width: 220px;
    z-index: 200;
    animation: lexdPopIn 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lexd-panel-dir-option {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #444;
    border-bottom: 1px solid #f0f0f4;
    transition: background 0.12s;
}

.lexd-panel-dir-option:last-child {
    border-bottom: none;
}

.lexd-panel-dir-option:hover {
    background: #f7f6ff;
}

.lexd-panel-dir-reverse {
    color: #e67e22;
}

.lexd-panel-dir-reverse:hover {
    background: #fff8f0 !important;
}

/* Relative wrapper for dropdown */
.lexd-panel-study-wrap {
    position: relative;
}

/* ---- Mode badge a tanulókártyán (fejlécben) --------------- */
.lexilet-mode-badge {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    margin: 4px auto 0;
    display: inline-block;
    align-self: center;
}

.lexilet-mode-badge.is-reverse {
    background: rgba(230, 126, 34, 0.12);
    color: #e67e22;
}

/* ---- Progress pills a kártyán (alján) --------------------- */
.lexilet-progress-pills {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.lexilet-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    color: #bbb;
    border: 1.5px solid #e0e0e8;
    transition: all 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.lexilet-pill.is-active {
    color: #fff;
    border-color: transparent;
}

.lexilet-pill-normal.is-active {
    background: #6c63ff;
}

.lexilet-pill-reverse.is-active {
    background: #e67e22;
}

/* Kártya front-nak relatív pozíció kell a pill miatt */
.lexilet-card-front {
    position: relative;
}

/* ---- Switch direction gomb a completion screenben -------- */
.lexilet-btn-switch-dir {
    background: linear-gradient(135deg, #e67e22, #c0630e);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.lexilet-btn-switch-dir:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---- Mobilon: popover teljes szélesség -------------------- */
@media (max-width: 500px) {
    .lexd-dir-popover {
        width: 95vw;
        right: 0;
        left: auto;
    }
}

/* ============================================================
   v2.3.6.1 – Szótár és kártyatáblázat pill stílusok
   ============================================================ */

/* -- Szótár: haladás pill-ek -------------------------------- */
.lexd-dict-pills {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.lexd-dict-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.5;
}

.lexd-dict-pill-n {
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.lexd-dict-pill-r {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

/* -- Kártyatáblázat (pakli panel): haladás pill-ek ---------- */
.lexd-ct-pills {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-right: 6px;
    vertical-align: middle;
}

.lexd-ct-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.6;
}

.lexd-ct-pill-n {
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.lexd-ct-pill-r {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

/* -- v2.3.6.1: felülírjuk a dashboard.css-ben lévő régi
      mode-badge és pill stílusokat erősebbé -------------- */
html body .lexilet-mode-badge {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 6px auto 0;
    padding: 4px 14px 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(108, 99, 255, 0.1) !important;
    color: #6c63ff !important;
    width: fit-content;
    border: 1.5px solid rgba(108, 99, 255, 0.2);
    align-self: unset;
}

html body .lexilet-mode-badge.is-reverse {
    background: rgba(230, 126, 34, 0.1) !important;
    color: #e67e22 !important;
    border-color: rgba(230, 126, 34, 0.25);
}

/* -- Switch dir gomb mindenképpen látható legyen ------------ */
html body .lexilet-btn-switch-dir {
    background: linear-gradient(135deg, #e67e22, #c0630e) !important;
    color: #fff !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* -- Mobil: szótár 2 oszlop -> 1 oszlop ------------------- */
@media (max-width: 600px) {
    .lexd-dict-row {
        grid-template-columns: 1fr;
    }

    .lexd-dict-col-term {
        border-right: none;
        border-bottom: 1px solid #eeecff;
        padding-right: 0;
        padding-bottom: 4px;
        margin-bottom: 4px;
    }

    .lexd-dict-col-def {
        padding-left: 0;
    }
}

/* ============================================================
   Lexilet – Anagramma Játék (v2.3.8)
   ============================================================ */

.lexd-anagram-container {
    padding: 16px;
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Topbar: exit button + timer + progress in one flex row – no floating, no overlap on mobile */
.lexd-anagram-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.lexd-anagram-exit-btn {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.lexd-anagram-exit-btn:hover {
    background: #c0392b;
    color: #fff;
}

.lexd-anagram-timer {
    font-weight: 700;
    color: #e67e22;
    font-size: 1rem;
    flex: 1;
    text-align: center;
}

.lexd-anagram-progress {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Skip / next button */
.lexd-anagram-actions {
    text-align: center;
    margin: 10px 0 4px;
}

.lexd-anagram-skip-btn {
    background: none;
    border: 2px solid #bbb;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.9rem;
    color: #888;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lexd-anagram-skip-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
    background: #f0efff;
}

/* Punctuation block: fixed pre-filled slot, no interaction */
.lexd-anagram-punct-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lexd-anagram-slot.is-punct {
    border-style: solid;
    border-color: #ddd;
    background: #f5f5f5;
    color: #888;
    cursor: default;
    pointer-events: none;
    font-weight: 900;
}

/* Skipped (solution shown) slot */
.lexd-anagram-slot.is-skipped {
    border-color: #f39c12 !important;
    background: #fef9e7 !important;
    color: #b7770d !important;
    border-style: solid !important;
}

/* Definition (clue) */
.lexd-anagram-definition {
    background: linear-gradient(135deg, #fff8f0, #fff3e6);
    border: 2px solid #f0c080;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.1);
    line-height: 1.5;
}

/* -- Words row: word-blocks wrap to multiple lines if needed - */
.lexd-anagram-words-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 4px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 22px;
}

/* One block per word: slots on top, tiles on bottom */
.lexd-anagram-word-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Visual spacer between word blocks — represents the space character */
.lexd-anagram-word-sep {
    display: flex;
    align-items: flex-start;
    padding: 0 4px;
}

.lexd-anagram-word-sep-line {
    display: block;
    width: 12px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin-top: 36px;
}

/* Slots row */
.lexd-anagram-slots-row {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.lexd-anagram-slot {
    width: 56px;
    height: 62px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    user-select: none;
    -webkit-user-select: none;
}

.lexd-anagram-slot.is-filled {
    border-style: solid;
    border-color: #e67e22;
    background: #fff8f0;
    box-shadow: 0 1px 6px rgba(230, 126, 34, 0.2);
}

.lexd-anagram-slot.is-filled:hover {
    background: #ffe8cc;
    transform: scale(1.06);
}

.lexd-anagram-slot.is-correct {
    border-color: #27ae60 !important;
    background: #eafaf1 !important;
    color: #27ae60 !important;
    border-style: solid !important;
    transform: scale(1.06);
}

.lexd-anagram-slot.is-wrong {
    border-color: #e74c3c !important;
    background: #fdf2f2 !important;
    color: #e74c3c !important;
    border-style: solid !important;
    animation: lexd-anagram-shake 0.4s ease;
}

@keyframes lexd-anagram-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }
}

/* Tile group: wraps onto multiple lines for long words */
.lexd-anagram-tile-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 420px;
}

/* Individual letter tile — ~2x bigger than before */
.lexd-anagram-tile {
    width: 56px;
    height: 62px;
    background: linear-gradient(145deg, #6c63ff, #897cff);
    color: #fff;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 0 #4b44cc, 0 5px 12px rgba(108, 99, 255, 0.25);
    border-bottom: 4px solid #4b44cc;
    transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    top: 0;
    flex-shrink: 0;
}

.lexd-anagram-tile:hover:not(.is-used) {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #4b44cc, 0 10px 18px rgba(108, 99, 255, 0.3);
}

.lexd-anagram-tile:active:not(.is-used) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4b44cc;
    top: 2px;
}

.lexd-anagram-tile.is-used {
    opacity: 0.18;
    cursor: default;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* Selected tile: waiting to be placed into a slot */
.lexd-anagram-tile.is-selected {
    background: linear-gradient(145deg, #e67e22, #f39c12);
    box-shadow: 0 4px 0 #b85c10, 0 6px 16px rgba(230, 126, 34, 0.5);
    border-bottom-color: #b85c10;
    transform: translateY(-5px) scale(1.1);
    z-index: 2;
}

/* Empty slot: highlighted when a tile is selected */
.lexd-anagram-slot.can-receive {
    border-color: #e67e22;
    border-style: dashed;
    background: #fff8f0;
    animation: lexd-slot-pulse 1s ease infinite;
}

@keyframes lexd-slot-pulse {

    0%,
    100% {
        border-color: #e67e22;
    }

    50% {
        border-color: #f0c080;
    }
}

/* Feedback */
.lexd-anagram-feedback {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    min-height: 30px;
    border-radius: 8px;
    padding: 5px 14px;
    margin-top: 8px;
}

.lexd-anagram-feedback.is-correct {
    color: #27ae60;
    background: #eafaf1;
}

.lexd-anagram-feedback.is-wrong {
    color: #e74c3c;
    background: #fdf2f2;
}

.lexd-anagram-feedback.is-hint {
    color: #7f6000;
    background: #fef9e7;
    border: 1px solid #f9e79f;
}

/* Mobile */
@media (max-width: 600px) {
    .lexd-game-actions {
        grid-template-columns: 1fr !important;
    }

    .lexd-anagram-slot,
    .lexd-anagram-tile {
        width: clamp(28px, 8vw, 38px);
        height: clamp(32px, 9vw, 42px);
        font-size: clamp(0.75rem, 3.5vw, 1.05rem);
        border-radius: 8px;
        flex-shrink: 1;
        min-width: 0;
    }

    .lexd-anagram-slots-row {
        gap: 2px;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 2px;
    }

    .lexd-anagram-tile-group {
        gap: 2px;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .lexd-anagram-definition {
        font-size: 1rem;
        padding: 12px 14px;
    }

    .lexd-anagram-word-sep {
        padding: 0 2px;
    }

    .lexd-anagram-word-sep-line {
        width: 8px;
        margin-top: 22px;
    }

    .lexd-anagram-words-row {
        gap: 10px 3px;
        padding: 0 2px;
    }

    .lexd-anagram-word-block {
        gap: 6px;
        max-width: 100%;
    }
}

/* -- Lexi Pont API --------------------------------- */
.lex-point-float {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    font-weight: bold;
    color: #6c63ff;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 16px;
    animation: lexFloatUp 1.5s ease-out forwards;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes lexFloatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -80%) scale(1.1);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -120%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(1);
    }
}

/* -- Lexi Pont Ranglista ---------------------------- */
.lexd-lb-tab {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.95rem;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lexd-lb-tab:hover {
    color: #6c63ff;
    background: rgba(108, 99, 255, 0.05);
}

.lexd-lb-tab.is-active {
    background: #6c63ff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.lexd-lb-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lexd-lb-top-btn:hover {
    background: #6c63ff !important;
    color: #fff !important;
}

.lexd-leaderboard-list li {
    border-radius: 6px;
    margin-bottom: 4px;
    transition: transform 0.1s;
}

.lexd-leaderboard-list li:hover {
    transform: translateX(4px);
}

.lexd-streak-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff4e5;
    color: #e65100;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 2px;
    border: 1px solid #ffe0b2;
}

/* -- Globális ranglista – szint badge (v3.5.1.09) ----------- */
.lexd-lb-szint-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #888;
    margin-top: 1px;
}

/* -- Szintbeli ranglista – streak badge (v3.5.1.09) --------- */
.lexd-tp-levellb-streak {
    display: inline-flex;
    align-items: center;
    background: #fff4e5;
    color: #e65100;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    margin-left: 5px;
    border: 1px solid #ffe0b2;
    vertical-align: middle;
}

/* -- Alert Box ----------------------------------------------- */
.lexd-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lexd-alert-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.lexd-alert-content {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
}

.lexd-alert-content strong {
    display: block;
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.lexd-alert-content p {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

.lexd-btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ================================================================
 *  Bulk selection toolbar & checkboxes
 * ================================================================ */

.lexd-ct-check-col {
    width: 36px;
    text-align: center;
    padding: 0 4px;
}

.lexd-ct-check-col input[type="checkbox"],
.lexd-row-check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6c63ff;
}

.lexd-bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0eeff;
    border: 1px solid #d4cfff;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
    animation: lexd-fadein 0.18s ease;
}

.lexd-bulk-count {
    font-size: 0.9rem;
    color: #4a43cc;
    font-weight: 600;
    flex: 1;
}

.lexd-btn-bulk-delete {
    background: #e74c3c;
    color: #fff !important;
    border: none;
    font-size: 0.85rem;
    padding: 6px 14px;
}

.lexd-btn-bulk-delete:hover {
    background: #c0392b;
}

.lexd-btn-bulk-delete .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    margin-right: 4px;
}

.lexd-btn-bulk-cancel {
    background: #fff;
    color: #555 !important;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    padding: 6px 14px;
}

.lexd-btn-bulk-cancel:hover {
    background: #f5f5f5;
}

/* Áthelyezés és Másolás – v3.7.1.3 */
.lexd-btn-bulk-move,
.lexd-btn-bulk-copy {
    background: #fff;
    color: #555 !important;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    padding: 6px 14px;
}

.lexd-btn-bulk-move:hover,
.lexd-btn-bulk-copy:hover {
    background: #f5f5f5;
}

.lexd-btn-bulk-move .dashicons,
.lexd-btn-bulk-copy .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    margin-right: 4px;
}

/* Highlight checked rows */
.lexd-cards-tbody tr:has(.lexd-row-check:checked) {
    background: #f5f3ff;
}

/* ================================================================
 *  Deck bulk move toolbar & checkboxes
 * ================================================================ */

.lexd-deck-check-wrap {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.lexd-deck-check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6c63ff;
}

.lexd-deck-item {
    position: relative;
}

.lexd-deck-item .lexd-deck-info {
    padding-left: 28px;
}

.lexd-deck-item:has(.lexd-deck-check:checked) {
    background: #f5f3ff;
    outline: 2px solid #d4cfff;
}

.lexd-deck-bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0eeff;
    border: 1px solid #d4cfff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    animation: lexd-fadein 0.18s ease;
}

.lexd-deck-bulk-count {
    font-size: 0.9rem;
    color: #4a43cc;
    font-weight: 600;
    flex: 1;
    min-width: 120px;
}

.lexd-deck-bulk-folder-select {
    flex: 2;
    min-width: 160px;
    padding: 6px 10px;
    border: 1px solid #c5bfff;
    border-radius: 6px;
    font-size: 0.88rem;
    background: #fff;
    color: #333;
}

.lexd-btn-deck-bulk-move {
    background: #6c63ff;
    color: #fff !important;
    border: none;
    font-size: 0.85rem;
    padding: 6px 14px;
    white-space: nowrap;
}

.lexd-btn-deck-bulk-move:hover {
    background: #5a52e0;
}

.lexd-btn-deck-bulk-move .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    margin-right: 4px;
}

.lexd-btn-deck-bulk-cancel {
    background: #fff;
    color: #555 !important;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    padding: 6px 14px;
    white-space: nowrap;
}

.lexd-btn-deck-bulk-cancel:hover {
    background: #f5f5f5;
}

/* ================================================================
 *  v2.8.2.0 – Sokszorozó képregény-buborék banner
 * ================================================================ */
.lexd-multiplier-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 40%, #ffdd00 80%, #ff8c00 100%);
    border-radius: 14px;
    padding: 18px 24px 18px 200px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 0 3px #ffdd00 inset;
    display: flex;
    align-items: center;
    min-height: 90px;
    animation: lexd-mlt-pulse 2.5s ease-in-out infinite;
}

@keyframes lexd-mlt-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 0 3px #ffdd00 inset;
    }

    50% {
        box-shadow: 0 6px 30px rgba(255, 107, 53, 0.65), 0 0 0 4px #ff8c00 inset;
    }
}

.lexd-mlt-cloud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.35;
}

.lexd-mlt-bubble {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 3px solid #333;
    border-radius: 50%;
    width: 110px;
    height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 #333;
    z-index: 2;
    text-align: center;
    line-height: 1.1;
}

.lexd-mlt-bubble-tail {
    position: absolute;
    bottom: -18px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 8px solid transparent;
    border-top: 20px solid #333;
    transform: rotate(-20deg);
    z-index: 1;
}

.lexd-mlt-bubble-tail::after {
    content: '';
    position: absolute;
    top: -22px;
    left: -9px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 6px solid transparent;
    border-top: 18px solid #fff;
}

.lexd-mlt-factor {
    font-size: 2.1em;
    font-weight: 900;
    color: #ff4500;
    text-shadow: 1px 1px 0 #fff;
    letter-spacing: -1px;
    display: block;
}

.lexd-mlt-boom {
    font-size: 0.85em;
    font-weight: 900;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.lexd-mlt-text {
    position: relative;
    z-index: 2;
    flex: 1;
}

.lexd-mlt-headline {
    font-size: 1.25em;
    font-weight: 900;
    color: #1a0000;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.lexd-mlt-sub {
    font-size: 0.92em;
    color: #2d0800;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.lexd-mlt-sub strong {
    color: #c0392b;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
}

.lexd-mlt-timer {
    font-size: 0.88em;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.lexd-mlt-star {
    position: absolute;
    font-size: 1.4em;
    pointer-events: none;
    animation: lexd-star-float 3s ease-in-out infinite;
    z-index: 3;
}

.lexd-mlt-star.s1 {
    top: 8px;
    right: 22%;
    animation-delay: 0s;
}

.lexd-mlt-star.s2 {
    top: 12px;
    right: 10%;
    animation-delay: 0.7s;
}

.lexd-mlt-star.s3 {
    bottom: 8px;
    right: 18%;
    animation-delay: 1.4s;
}

.lexd-mlt-star.s4 {
    bottom: 10px;
    right: 5%;
    animation-delay: 2.1s;
}

@keyframes lexd-star-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: translateY(-8px) rotate(15deg);
        opacity: 0.7;
    }
}

@media (max-width: 600px) {
    .lexd-multiplier-banner {
        padding: 14px 14px 14px 130px;
        min-height: 80px;
    }

    .lexd-mlt-bubble {
        width: 85px;
        height: 75px;
        left: 12px;
    }

    .lexd-mlt-factor {
        font-size: 1.6em;
    }

    .lexd-mlt-headline {
        font-size: 1em;
    }

    .lexd-mlt-sub {
        font-size: 0.82em;
    }

    .lexd-mlt-star {
        display: none;
    }
}

/* ================================================================
 *  v2.8.2.0 – [lexilet_leaderboard] shortcode stílusok
 * ================================================================ */
.lexilet-leaderboard-wrap {
    width: 100%;
    font-family: inherit;
    margin: 0 0 24px 0;
}

.lexilet-lb-period-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lexilet-lb-period-btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 20px;
    border: 2px solid #6c63ff;
    color: #6c63ff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.88em;
    transition: background 0.18s, color 0.18s;
    background: #fff;
}

.lexilet-lb-period-btn:hover {
    background: #ede9ff;
}

.lexilet-lb-period-btn.is-active {
    background: #6c63ff;
    color: #fff !important;
}

.lexilet-lb-title {
    margin: 0 0 14px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #2d2d2d;
}

.lexilet-lb-multiplier-note {
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.95em;
    font-weight: 600;
}

.lexilet-lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97em;
}

.lexilet-lb-table thead tr {
    background: linear-gradient(135deg, #6c63ff, #8a2be2);
    color: #fff;
}

.lexilet-lb-table th {
    padding: 11px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.03em;
}

.lexilet-lb-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s;
}

.lexilet-lb-table tbody tr:hover {
    background: #f7f5ff;
}

.lexilet-lb-row-me {
    background: #ede9ff !important;
    font-weight: 700;
}

.lexilet-lb-col-rank {
    width: 56px;
    text-align: center;
}

.lexilet-lb-col-score {
    width: 120px;
    text-align: right;
    padding-right: 20px !important;
}

.lexilet-lb-table td {
    padding: 10px 16px;
}

.lexilet-lb-medal {
    font-size: 1.2em;
}

.lexilet-lb-you {
    font-size: 0.8em;
    color: #6c63ff;
    margin-left: 5px;
    font-weight: normal;
}

.lexilet-lb-empty {
    padding: 24px;
    text-align: center;
    color: #888;
    font-style: italic;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.lexilet-lb-updated {
    font-size: 0.8em;
    color: #aaa;
    text-align: right;
    margin: 8px 0 0 0;
}

.lexilet-lb-no-points-warning {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    border-left: 4px solid #e74c3c;
    color: #922b21;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 14px;
    font-size: 0.95em;
}

.lexilet-lb-empty-warning {
    background: #fdf2f2;
    border: 1px dashed #f5c6c6;
    color: #922b21;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

/* ============================================================
   KERESZTREJTVÉNY JÁTÉK (v3.1.1.0)
   ============================================================ */
* ═══ Crossword ═══════════════════════════════════════════════ */ .lexd-cw-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 8px 24px;
    animation: lexd-fade 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

/* --- Topbar -------------------------------------------------- */
.lexd-cw-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px;
    border-bottom: 1px solid #e8eaf0;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.lexd-cw-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

.lexd-cw-score-display {
    background: linear-gradient(135deg, #4a5fd4, #6c63ff);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* --- Clue bar (above grid, replaces old panel) --------------- */
.lexd-cw-clue-bar {
    background: #1c1c2e;
    color: #fff;
    padding: 7px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 38px;
    flex-wrap: wrap;
}

.lexd-cw-clue-bar-num {
    background: #4a5fd4;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.lexd-cw-clue-bar-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    min-width: 60px;
}

.lexd-cw-clue-bar-right {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.lexd-cw-clue-bar-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.lexd-cw-clue-bar-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lexd-cw-clue-bar-progress {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

/* --- Grid viewport (scrollable container) -------------------- */
.lexd-cw-viewport {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior: contain;
    position: relative;
    margin-bottom: 8px;
    border: 1px solid #dde0e8;
    border-radius: 6px;
    background: #f5f6fa;
}

/* --- Sizer (explicit size = table * scale → scroll works) ---- */
.lexd-cw-sizer {
    position: relative;
    overflow: hidden;
}

/* --- Grid table --------------------------------------------- */
.lexd-cw-grid {
    border-collapse: collapse;
    table-layout: fixed;
    transform-origin: 0 0;
}

.lexd-cw-grid tr {
    display: table-row;
}

/* --- Cells -------------------------------------------------- */
.lexd-cw-cell {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    position: relative;
    vertical-align: top;
}

.lexd-cw-cell--blocked {
    background: transparent;
    border: none;
}

.lexd-cw-cell--letter {
    background: #fff;
    border: 1.5px solid #7a8599;
    cursor: pointer;
    touch-action: manipulation;
}

.lexd-cw-cell--letter.is-highlighted {
    background: #e8eeff;
    border-color: #5a72d4;
}

.lexd-cw-cell--letter.is-active-cell {
    background: #c5d0f5;
    border-color: #4a5fd4;
}

/* --- Cell number --------------------------------------------- */
.lexd-cw-cell-num {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 8px;
    line-height: 1;
    color: #333;
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
}

/* --- Cell letter (visual span, input goes through hidden el) - */
.lexd-cw-letter {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 36px;
    color: #1a1a1a;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.lexd-cw-letter.is-correct {
    color: #1b5e20;
}

.lexd-cw-letter.is-wrong {
    color: #e53935;
}

/* --- Hidden input (captures keyboard, off-screen) ------------ */
.lexd-cw-hidden-input {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0.01;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: transparent;
    caret-color: transparent;
    pointer-events: none;
    z-index: 999;
}

/* --- Clues list --------------------------------------------- */
.lexd-cw-clues {
    display: flex;
    gap: 16px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.lexd-cw-clue-col {
    flex: 1;
    min-width: 0;
    margin-bottom: 14px;
}

.lexd-cw-clue-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #4a5fd4;
    margin: 0 0 6px;
    padding-bottom: 5px;
    border-bottom: 2px solid #c5d0f5;
    position: sticky;
    top: 0;
    background: #fff;
}

.lexd-cw-clue {
    padding: 4px 7px;
    font-size: 0.78rem;
    color: #444;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.13s;
    margin-bottom: 1px;
    line-height: 1.35;
}

.lexd-cw-clue:hover {
    background: #f0f4ff;
}

.lexd-cw-clue.is-active {
    background: #e8eeff;
    color: #1a1a1a;
    font-weight: 600;
}

.lexd-cw-clue.is-solved {
    color: #2d6a4f;
    text-decoration: line-through;
    opacity: 0.55;
}

.lexd-cw-clue-num {
    font-weight: 700;
    color: #4a5fd4;
    margin-right: 2px;
}

@media (max-width: 600px) {
    .lexd-cw-clues {
        max-height: 150px;
        width: 100%;
        gap: 10px;
    }
}

/* Körülzárt üres cella → fekete */
.lexd-cw-cell--enclosed {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

/* ============================================================
   TTS Nyelv Badge (v3.2.1.0)
   ============================================================ */
.lexd-lang-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    background: #e8f4fd;
    color: #1a6fa8;
    border: 1px solid #b8d9f0;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ============================================================
   Csoport leírás – tanulói nézet (v3.2.2.0)
   ============================================================ */
.lexd-group-section-description {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background: #f7f9fc;
    border-left: 3px solid #4a90d9;
    border-radius: 0 6px 6px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================================
   Csoport rangsor – tanulói nézet (v3.2.2.1)
   ============================================================ */
.lexd-group-leaderboard {
    margin: 20px 0 0;
    padding: 16px 18px;
    background: #f5f9f6;
    border: 1px solid #c3d9cb;
    border-radius: 10px;
}

.lexd-group-lb-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d6a4f;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Rangsor tab fülek – közös stílusok a teacher CSS-ből másolva,
   de itt a dashboard scope-jára is szükséges */
.lexd-group-leaderboard .lext-lb-tab-btns {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lexd-group-leaderboard .lext-lb-tab-btn {
    background: #eaf4ee !important;
    border: 1px solid #b7d8c2;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d6a4f !important;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.5;
}

.lexd-group-leaderboard .lext-lb-tab-btn:hover {
    background: #d4eddb !important;
    border-color: #2d6a4f;
    color: #2d6a4f !important;
}

.lexd-group-leaderboard .lext-lb-tab-btn.is-active {
    background: #2d6a4f !important;
    border-color: #2d6a4f;
    color: #fff !important;
}

.lexd-group-leaderboard .lext-lb-tab-panel {
    display: none;
}

.lexd-group-leaderboard .lext-lb-tab-panel.is-active {
    display: block;
}

.lexd-group-leaderboard .lext-stats-leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lexd-group-leaderboard .lext-stats-lb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #d4e9da;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.88rem;
}

.lexd-group-leaderboard .lext-stats-lb-rank-1 {
    background: #fffbea;
    border-color: #f4c95d;
}

.lexd-group-leaderboard .lext-stats-lb-rank-2 {
    background: #f7f7f7;
    border-color: #c0c0c0;
}

.lexd-group-leaderboard .lext-stats-lb-rank-3 {
    background: #fff4ee;
    border-color: #d4916a;
}

.lexd-group-leaderboard .lext-stats-lb-rank {
    font-weight: 700;
    color: #888;
    min-width: 22px;
}

.lexd-group-leaderboard .lext-stats-lb-rank-1 .lext-stats-lb-rank {
    color: #b7791f;
}

.lexd-group-leaderboard .lext-stats-lb-rank-2 .lext-stats-lb-rank {
    color: #718096;
}

.lexd-group-leaderboard .lext-stats-lb-rank-3 .lext-stats-lb-rank {
    color: #c05621;
}

.lexd-group-leaderboard .lext-stats-lb-name {
    flex: 1;
    font-weight: 500;
}

.lexd-group-leaderboard .lext-stats-lb-pts {
    font-weight: 600;
    color: #1b4332;
}

/* "Te" kiemelés */
.lext-lb-item--me {
    outline: 2px solid #2d6a4f;
    outline-offset: -1px;
}

.lext-lb-you-badge {
    display: inline-block;
    background: #2d6a4f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.lexd-group-leaderboard .lext-lb-empty {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* ============================================================
   Card Layout Mobile (v3.2.5.0)
   ============================================================ */
@media (max-width: 650px) {
    .lexd-deck-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .lexd-deck-info {
        padding-right: 0;
    }

    .lexd-deck-actions {
        justify-content: flex-start;
        margin-left: 0;
        width: 100%;
    }
}
/* =====================================================================
   Mobil Kártyanézet – Szójegyzetfüzet elrendezés (v3.3.3.2)
   Felülírja a fenti stacked blokk stílusait a "Saját Paklik"
   kártyanézethez <= 768px szélességen.
   ===================================================================== */

/* Desktop/tablet: popup + mobil badge elemek rejtve */
.lexd-ct-menu-toggle,
.lexd-ct-menu-popup,
.lexd-menu-overlay,
.lexd-badge-mobile-only {
    display: none;
}

@media (max-width: 768px) {

    /* --- Gyors kártya hozzáadása blokk: kontrasztosabb keret mobilon --- */
    .lexd-quick-add {
        border: 1.5px solid #c8ccd6 !important;
        box-shadow: none !important;
    }

    /* --- Külső konténer + table mobilon átlátszó – a kártyasoroknak saját keretük van --- */
    .lexd-cards-table-wrap {
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    .lexd-cards-table,
    .lexilet-cards-table {
        border: none !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
    }
    .lexd-cards-table thead,
    .lexilet-cards-table thead,
    .lexd-cards-table thead tr,
    .lexilet-cards-table thead tr,
    .lexd-cards-table thead th,
    .lexilet-cards-table thead th {
        border: none !important;
        display: none !important;
    }

    /* --- Kártya sor: flex konténer szójegyzetfüzet elrendezéssel --- */
    /* tbody tr: magasabb specificitás, felülírja a lexilet-dashboard-cards.css szabályát */
    .lexd-cards-table tbody tr,
    .lexilet-cards-table tbody tr {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start;
        position: relative;
        background: #ffffff;
        border: 1.5px solid #c8ccd6 !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        padding: 12px 14px 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }

    /* --- TD-k belső vízszintes vonalainak eltávolítása --- */
    .lexd-cards-table tbody td,
    .lexilet-cards-table tbody td {
        border-bottom: none !important;
        border-top: none !important;
    }

    /* --- Checkbox oszlop: alapból rejtve, csak bulk módban látható --- */
    .lexd-cards-table td.lexd-ct-check-col,
    .lexilet-cards-table td.lexd-ct-check-col {
        display: none !important;
        width: auto;
        padding: 0 8px 0 0;
        border: none;
        align-self: center;
        order: 0;
    }
    .lexd-cards-table.is-bulk-mode td.lexd-ct-check-col,
    .lexilet-cards-table.is-bulk-mode td.lexd-ct-check-col {
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
    }

    /* --- Kifejezés cella: bal felső ~58% --- */
    .lexd-cards-table td.lexd-ct-term,
    .lexilet-cards-table td.lexd-ct-term {
        flex: 0 0 58% !important;
        max-width: 58%;
        order: 1;
        padding: 0 8px 6px 0 !important;
        border: none !important;
        font-size: 1.05rem;
        font-weight: 700;
        color: #222;
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        width: auto;
    }
    .lexd-cards-table td.lexd-ct-term::before,
    .lexilet-cards-table td.lexd-ct-term::before {
        display: none !important; /* "Kifejezés" felirat elrejtve */
    }

    /* Mastery badge (desktop): rejtve mobilon */
    .lexd-badge-desktop-only {
        display: none !important;
    }

    /* Mastery badge (mobil): az akciósávban, csillag az SRS előtt */
    .lexd-badge-mobile-only {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 26px;
        height: 26px;
    }
    .lexd-badge-mobile-only .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
        line-height: 18px;
        color: #f0ad4e;
    }
    .lexd-badge-mobile-only.is-mastered .dashicons {
        color: #f0ad4e;
    }

    /* Play gomb a kifejezés mellett */
    .lexd-cards-table td.lexd-ct-term .lexd-ct-play-term,
    .lexilet-cards-table td.lexd-ct-term .lexd-ct-play-term {
        display: inline-flex !important;
        width: 26px;
        height: 26px;
        border: none;
        background: #f0f4ff;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: #5c7cfa;
        margin-left: 2px;
    }
    .lexd-cards-table td.lexd-ct-term .lexd-ct-play-term .dashicons,
    .lexilet-cards-table td.lexd-ct-term .lexd-ct-play-term .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
        line-height: 14px;
    }

    /* --- Jelentés cella: jobb felső ~42% --- */
    .lexd-cards-table td.lexd-ct-def,
    .lexilet-cards-table td.lexd-ct-def {
        flex: 0 0 42% !important;
        max-width: 42%;
        order: 2;
        padding: 2px 0 6px 0 !important;
        border: none !important;
        font-size: 0.93rem;
        color: #555;
        text-align: right !important;
        display: block !important;
        justify-content: initial !important;
        width: auto;
    }
    .lexd-cards-table td.lexd-ct-def::before,
    .lexilet-cards-table td.lexd-ct-def::before {
        display: none !important; /* "Jelentés" felirat elrejtve */
    }

    /* --- Példa cella: CSS grid – play gomb a mondattal egy sorban --- */
    .lexd-cards-table td.lexd-ct-ex,
    .lexilet-cards-table td.lexd-ct-ex {
        flex: 0 0 100% !important;
        order: 3;
        padding: 6px 0 4px !important;
        border-top: 1px solid #f0f0f0 !important;
        border-bottom: none !important;
        font-size: 0.9rem;
        color: #444;
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 2px;
        align-items: start;
        width: 100%;
        box-sizing: border-box;
    }
    .lexd-cards-table td.lexd-ct-ex::before,
    .lexilet-cards-table td.lexd-ct-ex::before {
        display: none !important; /* "Példa" felirat elrejtve */
    }
    /* Példamondat – bal oszlop, 1. sor */
    .lexd-cards-table .lexd-ex-sentence,
    .lexilet-cards-table .lexd-ex-sentence {
        grid-column: 1;
        grid-row: 1;
        font-style: italic;
        color: #444;
        margin-bottom: 0;
    }
    /* Példamondat jelentése – bal oszlop, 2. sor */
    .lexd-cards-table .lexd-ex-meaning,
    .lexilet-cards-table .lexd-ex-meaning {
        grid-column: 1;
        grid-row: 2;
        font-size: 0.82em !important;
        color: #888 !important;
        margin-top: 0 !important;
    }
    /* Play gomb – jobb oszlop, mindkét sort átfedve, középre igazítva */
    .lexd-cards-table .lexd-ct-play-ex-wrap,
    .lexilet-cards-table .lexd-ct-play-ex-wrap {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        margin-top: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lexd-cards-table .lexd-ct-play-ex,
    .lexilet-cards-table .lexd-ct-play-ex {
        display: inline-flex !important;
        width: 28px;
        height: 28px;
        border: none;
        background: #f0f4ff;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        color: #5c7cfa;
        flex-shrink: 0;
    }

    /* --- Műveletek cella: badge + pillák balra, toggle gomb jobbra --- */
    .lexd-cards-table td.lexd-ct-actions,
    .lexilet-cards-table td.lexd-ct-actions {
        flex: 0 0 100% !important;
        order: 4;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        padding: 6px 0 0 !important;
        border: none !important;
        gap: 6px;
        width: 100%;
    }
    .lexd-cards-table td.lexd-ct-actions::before,
    .lexilet-cards-table td.lexd-ct-actions::before {
        display: none !important;
    }

    /* Desktop akció gombok elrejtése mobilon (a popup-ban lesznek) */
    .lexd-cards-table td.lexd-ct-actions > .lexd-ct-edit,
    .lexd-cards-table td.lexd-ct-actions > .lexd-ct-reset,
    .lexd-cards-table td.lexd-ct-actions > .lexd-ct-del,
    .lexilet-cards-table td.lexd-ct-actions > .lexd-ct-edit,
    .lexilet-cards-table td.lexd-ct-actions > .lexd-ct-reset,
    .lexilet-cards-table td.lexd-ct-actions > .lexd-ct-del {
        display: none !important;
    }

    /* Toggle gomb jobbra tolva – auto margin a pillák után */
    .lexd-cards-table td.lexd-ct-actions .lexd-ct-menu-toggle,
    .lexilet-cards-table td.lexd-ct-actions .lexd-ct-menu-toggle {
        margin-left: auto;
    }

    /* --- Műveletek menu toggle gomb --- */
    .lexd-ct-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        height: 34px;
        padding: 0 12px 0 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #f7f7f7;
        cursor: pointer;
        color: #555;
        flex-shrink: 0;
        font-size: 0;   /* A dashicons szövegméretét nem örökli */
    }
    .lexd-ct-menu-toggle:hover {
        background: #efefef;
    }
    .lexd-ct-menu-toggle-label {
        font-size: 0.82rem;
        font-weight: 500;
        color: #555;
        white-space: nowrap;
    }
    .lexd-ct-menu-toggle .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
        line-height: 18px;
        color: #555;
    }

    /* --- Popup (bottom sheet) – megjelenítés JS adja hozzá .is-body-popup osztályt --- */
    .lexd-ct-menu-popup {
        display: none;
    }
    .lexd-ct-menu-popup-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px 10px;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        background: #fff;
        border-radius: 18px 18px 0 0;
    }
    .lexd-ct-menu-popup-title {
        font-weight: 700;
        font-size: 1.0rem;
        color: #333;
    }
    .lexd-ct-menu-close {
        width: 32px;
        height: 32px;
        border: none;
        background: #f2f2f2;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        padding: 0;
    }
    .lexd-ct-menu-close:hover {
        background: #e5e5e5;
    }
    .lexd-ct-menu-close .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
        line-height: 16px;
    }

    /* Popup akció gombok */
    .lexd-popup-btn {
        display: flex !important;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 15px 20px;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: #333;
        cursor: pointer;
        text-align: left;
        border-bottom: 1px solid #f5f5f5;
    }
    .lexd-popup-btn:hover {
        background: #f9f9f9;
    }
    .lexd-popup-btn:last-child {
        border-bottom: none;
    }
    .lexd-popup-btn.lexd-ct-del {
        color: #e03131;
    }
    .lexd-popup-btn .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        flex-shrink: 0;
    }

    /* --- Overlay háttér (backdrop) --- */
    .lexd-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 10000;
    }
    .lexd-menu-overlay.is-active {
        display: block !important;
    }

    /* --- Inline szerkesztés mód mobilon --- */
    .lexd-cards-table tr.is-editing,
    .lexilet-cards-table tr.is-editing {
        display: block !important;
    }
    .lexd-cards-table tr.is-editing td,
    .lexilet-cards-table tr.is-editing td {
        display: block !important;
        width: 100% !important;
        padding: 4px 0 !important;
    }
    .lexd-cards-table tr.is-editing td::before,
    .lexilet-cards-table tr.is-editing td::before {
        display: block !important;
    }
    /* Szerkesztés állapotban a menu toggle rejtve */
    .lexd-cards-table tr.is-editing .lexd-ct-menu-toggle,
    .lexilet-cards-table tr.is-editing .lexd-ct-menu-toggle {
        display: none !important;
    }

}
/* === Mobil kártyanézet vége === */

/* =====================================================================
   Műveletek popup – globális stílusok (v3.3.3.2)
   A popup document.body-ba kerül JS-ből, ezért nem lehet @media-ban.
   ===================================================================== */

/* Popup maga: position:fixed, document.body gyerekként jelenik meg */
.lexd-ct-menu-popup.is-body-popup {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    padding-bottom: env(safe-area-inset-bottom, 8px);
    z-index: 10001;
    max-height: 75vh;
    overflow-y: auto;
}

.lexd-ct-menu-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    z-index: 1;
}

.lexd-ct-menu-popup-title {
    font-weight: 700;
    font-size: 1.0rem;
    color: #333;
}

.lexd-ct-menu-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    padding: 0;
}

.lexd-ct-menu-close:hover { background: #e5e5e5; }

.lexd-ct-menu-close .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.lexd-popup-btn {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
}

.lexd-popup-btn:hover { background: #f9f9f9; }
.lexd-popup-btn:last-child { border-bottom: none; }
.lexd-popup-btn.lexd-ct-del { color: #e03131; }

.lexd-popup-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    flex-shrink: 0;
}

/* Overlay – szintén globális (position:fixed, body gyerek) */
.lexd-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
}

.lexd-menu-overlay.is-active {
    display: block !important;
}
/* === Popup globális stílusok vége === */

/* =================================================================
 * v3.4.2.0 – Dashboard kártyalista: ⓘ info badge + info modal
 * ================================================================= */
.lexd-ct-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #6b7cff;
    font-size: 1em;
    cursor: pointer;
    border-radius: 50px;
    padding: 1px 6px;
    border: 1px solid rgba(107,124,255,0.3);
    background: rgba(107,124,255,0.07);
    transition: background 0.15s;
    user-select: none;
}

.lexd-ct-info-badge:hover {
    background: rgba(107,124,255,0.18);
}

/* lexd-val-info: inline szerkesztő textarea az info mezőhöz */
.lexd-val-info {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9em;
    border: 1px solid #d0c9ff;
    border-radius: 6px;
    padding: 5px 8px;
    color: #333;
}

/* =============================================================
 *  TŰZPRÓBA CSEMPE (v3.5.1.0)
 * ============================================================= */

/* A Tűzpróba csempe alapstílusa – a meglévő .lexd-stat-card-ra épül */
.lexd-tuzproba-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 14px 10px 12px;
    background: linear-gradient(135deg, #fff5f0 0%, #fff0e6 100%);
    border: 1px solid rgba(229, 57, 53, 0.2);
    cursor: default;
    min-width: 120px;
}

.lexd-tuzproba-icon {
    font-size: 1.6em;
    margin-bottom: 2px;
    display: block;
}

.lexd-tuzproba-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.lexd-tuzproba-label {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b71c1c;
    opacity: 0.75;
}

.lexd-tuzproba-szintnev {
    font-size: 1.1em;
    font-weight: 800;
    color: #c62828;
    line-height: 1.2;
}

.lexd-tuzproba-szintszam {
    font-size: 0.78em;
    color: #888;
    line-height: 1.2;
}

.lexd-tuzproba-heti {
    font-size: 0.88em;
    font-weight: 600;
    color: #444;
    margin-top: 4px;
}

.lexd-tuzproba-felirat {
    font-size: 0.76em;
    color: #666;
    margin-top: 3px;
    line-height: 1.3;
}

/* Státusz-specifikus felirat-színek */
.lexd-tuzproba-felirat--threshold_ok {
    color: #2e7d32;
    font-weight: 700;
}

.lexd-tuzproba-felirat--threshold_fail {
    color: #e67e22;
}

.lexd-tuzproba-felirat--up {
    color: #2e7d32;
    font-weight: 700;
}

.lexd-tuzproba-felirat--down {
    color: #c0392b;
    font-weight: 700;
}

.lexd-tuzproba-felirat--normal {
    color: #666;
}

/* ================================================================
 * TŰZPRÓBA CSEMPE – kompakt redesign (v3.5.1.01)
 * ================================================================ */

.lexd-tp-tile {
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    border: 3px solid #ff8f00 !important;
    box-shadow: 0 2px 10px rgba(255, 143, 0, 0.18);
    position: relative;
}
.lexd-tp-tile::after {
    content: '↗';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.75rem;
    color: #ff8f00;
    opacity: 0.7;
    font-weight: bold;
}
.lexd-tp-tile:hover {
    box-shadow: 0 6px 20px rgba(255, 143, 0, 0.35);
    border-color: #e65100 !important;
    transform: translateY(-2px);
}
.lexd-tp-tile:hover::after {
    opacity: 1;
}
.lexd-tp-tile-szintnev {
    font-size: 1.15rem;
    font-weight: 800;
    color: #c62828;
}
.lexd-tp-tile-felirat {
    font-size: 0.78rem;
    margin-top: 2px;
    font-weight: 600;
}
.lexd-tp-tile--up    .lexd-tp-tile-felirat { color: #2e7d32; }
.lexd-tp-tile--down  .lexd-tp-tile-felirat { color: #c0392b; }
.lexd-tp-tile--threshold_ok   .lexd-tp-tile-felirat { color: #2e7d32; }
.lexd-tp-tile--threshold_fail .lexd-tp-tile-felirat { color: #e67e22; }

/* ================================================================
 * TŰZPRÓBA TAB – Hero blokk (v3.5.1.01)
 * ================================================================ */

.lexd-tp-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ff6f00 0%, #d32f2f 60%, #7b1fa2 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(200, 50, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.lexd-tp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='150' cy='60' r='90' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") no-repeat right -20px top -20px;
    pointer-events: none;
}

.lexd-tp-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 200px;
}
.lexd-tp-hero-flame {
    font-size: 3.5rem;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255,200,0,0.6);
    animation: lexd-tp-flicker 2.2s ease-in-out infinite alternate;
}
@keyframes lexd-tp-flicker {
    0%   { transform: rotate(-3deg) scale(1);   }
    50%  { transform: rotate(2deg) scale(1.06); }
    100% { transform: rotate(-2deg) scale(0.97);}
}
.lexd-tp-hero-szintnev {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.lexd-tp-hero-szintszam {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 2px;
}

.lexd-tp-hero-right {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.lexd-tp-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 18px;
    min-width: 90px;
    backdrop-filter: blur(4px);
}
.lexd-tp-hero-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}
.lexd-tp-hero-stat-lbl {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 2px;
    text-align: center;
}

.lexd-tp-hero-badge {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 4px;
}
.lexd-tp-badge--up      { background: rgba(46,125,50,0.35); }
.lexd-tp-badge--down    { background: rgba(192,57,43,0.35); }
.lexd-tp-badge--ok      { background: rgba(46,125,50,0.35); }
.lexd-tp-badge--fail    { background: rgba(230,126,34,0.30); }

/* ================================================================
 * TŰZPRÓBA TAB – Szekció cím
 * ================================================================ */

.lexd-tp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #333;
}

/* ================================================================
 * TŰZPRÓBA TAB – Szintlétra (v3.5.1.01)
 * ================================================================ */

.lexd-tp-szintlatra-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 24px;
    margin-bottom: 20px;
    overflow: visible;
}
.lexd-tp-szintlatra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
}
/* Mobil-only elemek – desktopon rejtve (v3.8.2.9) */
.lexd-tp-szint-path--mob-only {
    display: none;
}

/* Folyamatábra stílus (v3.8.2.8) */
.lexd-tp-szintlatra--flow {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 0;
    overflow: visible;
}
.lexd-tp-szint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
}
.lexd-tp-szint--passed {
    background: #e8f5e9;
    color: #388e3c;
    opacity: 0.8;
}
.lexd-tp-szint--current {
    background: linear-gradient(135deg, #ff6f00, #d32f2f);
    color: #fff;
    box-shadow: 0 4px 16px rgba(211,47,47,0.35);
    transform: scale(1.12);
}
.lexd-tp-szint--future {
    background: #f0f0f0;
    color: #999;
}
.lexd-tp-szint-icon {
    font-size: 1.1em;
}
.lexd-tp-szint-nev {
    white-space: nowrap;
    font-size: 0.8rem;
}
.lexd-tp-szint-current-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: lexd-tp-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes lexd-tp-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1);   }
    50%       { opacity: 0.5; transform: scale(0.7); }
}
/* Kanyargós SVG összekötő út (v3.8.2.8) */
.lexd-tp-szint-path {
    width: 60px;
    height: 44px;
    flex-shrink: 0;
    margin-bottom: 18px; /* szintnév magasságát kompenzálja */
}
.lexd-tp-szint-path path {
    stroke: #ccc;
}
/* Már teljesített szakasz: narancssárga */
.lexd-tp-szint-path--done path {
    stroke: #ff8f00;
}
/* Három pont (···) SVG az elrejtett szinteknél */
.lexd-tp-szint-path--dots {
    width: 30px;
    height: 44px;
}
.lexd-tp-szint-path--dots circle {
    fill: #bbb;
}

/* ================================================================
 * TŰZPRÓBA – WebP badge wrapper (v3.8.2.8)
 * ================================================================ */
.lexd-tp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 3px solid currentColor; /* szintszín a style attr-ból */
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.lexd-tp-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* Hero méret: nagyobb keret + erősebb árnyék */
.lexd-tp-hero-flame .lexd-tp-badge {
    border-width: 4px;
    box-shadow: 0 4px 16px rgba(255,143,0,0.3);
}
/* Szintlétra kis ikonok: vékonyabb keret */
.lexd-tp-szint-icon .lexd-tp-badge {
    border-width: 2px;
    box-shadow: none;
}
/* Szintlétra hover: kinagyítás (v3.8.2.8) */
.lexd-tp-szint {
    cursor: pointer;
}
.lexd-tp-szint:hover {
    z-index: 100;
}
.lexd-tp-szint-icon .lexd-tp-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lexd-tp-szint:hover .lexd-tp-szint-icon .lexd-tp-badge {
    transform: scale(3);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* ================================================================
 * TŰZPRÓBA TAB – Szintbeli ranglista (v3.5.1.01)
 * ================================================================ */

.lexd-tp-levellb-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.lexd-tp-levellb-sub {
    font-size: 0.88rem;
    color: #888;
    margin: -8px 0 14px 0;
}
.lexd-tp-levellb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lexd-tp-levellb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.93rem;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.lexd-tp-levellb-item--me {
    background: #fff8e1;
    border-color: #ffe082;
    font-weight: 700;
}
.lexd-tp-levellb-item--up {
    background: #e8f5e9;
    border-color: #a5d6a7;
}
.lexd-tp-levellb-item--down {
    background: #ffebee;
    border-color: #ef9a9a;
}
.lexd-tp-levellb-item--me.lexd-tp-levellb-item--up {
    background: #c8e6c9;
    border-color: #81c784;
}
.lexd-tp-levellb-item--me.lexd-tp-levellb-item--down {
    background: #ffcdd2;
    border-color: #ef9a9a;
}
.lexd-tp-levellb-rank {
    font-weight: 800;
    min-width: 28px;
    color: #555;
    font-size: 0.9rem;
}
.lexd-tp-levellb-name {
    flex: 1;
}
.lexd-tp-levellb-me-tag {
    font-size: 0.8em;
    color: #e67e22;
    font-weight: 700;
}
.lexd-tp-levellb-pts {
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
}
.lexd-tp-zone-badge {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.lexd-tp-zone-up {
    background: #e8f8ef;
    color: #1a8a48;
}
.lexd-tp-zone-down {
    background: #fdecea;
    color: #c0392b;
}
.lexd-tp-zone-stay {
    background: #f2f2f2;
    color: #888;
}

/* ================================================================
 * TŰZPRÓBA TAB – Lángőr kompakt (v3.5.1.01)
 * ================================================================ */

/* v3.8.2.9: Lángőr szekció – CSS Grid, viking kép jobb oldalon */
.lexd-tp-shield-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr clamp(120px, 20vw, 220px);
    grid-template-rows: auto auto auto;
    column-gap: 24px;
    align-items: start;
}
.lexd-tp-shield-wrap > .lexd-tp-section-title {
    grid-column: 1;
    grid-row: 1;
}
.lexd-tp-shield-wrap > .lexd-tp-levellb-sub {
    grid-column: 1;
    grid-row: 2;
}
.lexd-tp-shield-img {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
}
.lexd-tp-shield-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.lexd-tp-shield-wrap > .lexd-tp-shield-inner {
    grid-column: 1;
    grid-row: 3;
}
.lexd-tp-shield-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.lexd-tp-shield-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: #444;
}
.lexd-tp-shield-info strong {
    font-size: 1.4rem;
    color: #5c6bc0;
}
.lexd-tp-shield-buy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lexd-tp-shield-note {
    font-size: 0.82rem;
    color: #e67e22;
    margin: 0;
}

/* ================================================================
 * TŰZPRÓBA TAB – Divider + globális szekció
 * ================================================================ */

.lexd-tp-divider-wrap {
    margin: 8px 0 20px;
}
.lexd-tp-divider {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 0 0 20px;
}

/* Reszponzív */
@media (max-width: 600px) {
    .lexd-tp-hero {
        padding: 18px 16px;
    }
    .lexd-tp-hero-flame {
        font-size: 2.5rem;
    }
    .lexd-tp-hero-szintnev {
        font-size: 1.5rem;
    }
    .lexd-tp-hero-right {
        gap: 12px;
    }
    .lexd-tp-hero-stat {
        padding: 8px 12px;
        min-width: 70px;
    }
    /* v3.8.2.9: Mobil szintlépcső – 3 szint, görgetés nélkül */
    .lexd-tp-szint--mob-hide,
    .lexd-tp-szint-path--mob-hide {
        display: none !important;
    }
    .lexd-tp-szint-path--mob-only {
        display: block;
    }
    .lexd-tp-szintlatra-wrap {
        overflow: visible;
        padding-bottom: 8px;
    }
    .lexd-tp-szintlatra--flow {
        flex-wrap: nowrap;
        justify-content: center;
        min-width: auto;
        padding: 12px 4px;
    }
    .lexd-tp-szint {
        padding: 5px 5px;
        font-size: 0.72rem;
    }
    .lexd-tp-szint-icon .lexd-tp-badge {
        width: 36px !important;
        height: 36px !important;
    }
    .lexd-tp-szint-icon .lexd-tp-badge img {
        width: 36px !important;
        height: 36px !important;
    }
    .lexd-tp-szint-path {
        width: 32px;
        height: 24px;
        margin-bottom: 14px;
    }
    .lexd-tp-szint-path--dots {
        width: 20px;
        height: 24px;
    }
    .lexd-tp-szint-nev {
        font-size: 0.68rem;
    }
    .lexd-tp-szint:hover .lexd-tp-szint-icon .lexd-tp-badge {
        transform: scale(2.5);
    }
    /* v3.8.2.9: Lángőr – mobilon kép csak cím+leírás mellé, pajzsok alá */
    .lexd-tp-shield-wrap {
        grid-template-columns: 1fr 90px;
        column-gap: 12px;
    }
    .lexd-tp-shield-img {
        grid-row: 1 / 3;
    }
    .lexd-tp-shield-wrap > .lexd-tp-shield-inner {
        grid-column: 1 / -1;
    }
}

/* ================================================================
 * STAT-CARD EGYEDI SÚGÓ GOMB (.lexd-sc-info-btn) – v3.5.1.03
 * ================================================================ */

.lexd-sc-info-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f9f9f9;
    border: 1.5px solid #ccc;
    color: #888;
    font-size: 10px;
    font-style: italic;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
    z-index: 2;
    flex-shrink: 0;
}
.lexd-sc-info-btn:hover {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
    transform: scale(1.15);
}

/* ============================================================
   Import / Export belső fülrendszer (v3.5.1.27)
   ============================================================ */

.lexd-impexp-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.lexd-impexp-tab-btn {
    padding: 8px 20px;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent !important;
    color: #888 !important;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    margin-bottom: -2px;
}

.lexd-impexp-tab-btn:hover {
    color: #555 !important;
    background: #f5f5f5 !important;
}

.lexd-impexp-tab-btn.is-active {
    color: #6c63ff !important;
    background: #fff !important;
    border-color: #eee;
    border-bottom-color: #fff;
    box-shadow: none;
}

/* Export panel */
.lexd-export-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
}

.lexd-export-deck-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lexd-export-deck-row label {
    font-weight: 600;
    min-width: 130px;
}

.lexd-export-deck {
    flex: 1;
    min-width: 200px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.lexd-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.lexd-export-note {
    font-size: 12px;
    color: #999;
    margin: 0;
    font-style: italic;
}

.lexd-export-result {
    font-size: 13px;
    font-weight: 600;
}

/* Vágólapos modal */
.lexd-export-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lexd-export-modal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    max-height: 80vh;
    overflow-y: auto;
}

.lexd-export-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lexd-export-modal-header strong {
    font-size: 15px;
    font-weight: 700;
}

.lexd-export-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.lexd-export-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.lexd-export-modal-hint {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.lexd-export-modal-text {
    width: 100%;
    font-family: monospace;
    font-size: 12px;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #f9f9f9;
    box-sizing: border-box;
    min-height: 180px;
}

.lexd-export-modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lexd-export-copy-msg {
    font-size: 13px;
    font-weight: 600;
    color: #27ae60;
}

@media (max-width: 600px) {
    .lexd-export-deck-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .lexd-export-deck {
        width: 100%;
    }
}

/* ── Beállítások tab – pill switcher (v3.9.0.50) ──────────── */
.lexd-settings-pills {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #6c63ff;
    width: 100%;
    box-shadow: 0 2px 8px rgba(108,99,255,0.13);
}
.lexd-settings-pill {
    padding: 13px 28px;
    border: none;
    background: #fff !important;
    color: #6c63ff !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    transition: background .15s, color .15s;
    position: relative;
}
.lexd-settings-pill:not(:last-child) {
    border-right: 2px solid #6c63ff;
}
.lexd-settings-pill:hover {
    background: #f0eeff !important;
    color: #6c63ff !important;
}
.lexd-settings-pill.is-active {
    background: #6c63ff !important;
    color: #fff !important;
}
.lexd-settings-pill .dashicons {
    font-size: 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
}
.lexd-settings-pill.is-active .lexd-pill-badge {
    background: #fff;
    color: #6c63ff;
}
@media (max-width: 600px) {
    .lexd-settings-pills {
        width: 100%;
    }
    .lexd-settings-pill {
        flex: 1;
        justify-content: center;
        padding: 11px 10px;
        font-size: 0.9rem;
    }
}

/* ── Saját Paklik tab – pill switcher (v3.9.0.49) ──────────── */
.lexd-decks-pills {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #6c63ff;
    width: 100%;
    box-shadow: 0 2px 8px rgba(108,99,255,0.13);
}
.lexd-decks-pill {
    padding: 13px 28px;
    border: none;
    background: #fff !important;
    color: #6c63ff !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    transition: background .15s, color .15s;
    position: relative;
}
.lexd-decks-pill:not(:last-child) {
    border-right: 2px solid #6c63ff;
}
.lexd-decks-pill:hover {
    background: #f0eeff !important;
    color: #6c63ff !important;
}
.lexd-decks-pill.is-active {
    background: #6c63ff !important;
    color: #fff !important;
}
.lexd-decks-pill .dashicons {
    font-size: 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
}
/* ÚJ badge a pill-eken (v3.9.0.49) */
.lexd-pill-badge {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 5px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    vertical-align: middle;
    text-transform: uppercase;
    animation: lexd-badge-pulse 2s ease-in-out 3;
}
.lexd-decks-pill.is-active .lexd-pill-badge {
    background: #fff;
    color: #6c63ff;
}
@keyframes lexd-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}
/* Hint szöveg a pill-sor alatt (v3.9.0.49) */
.lexd-pills-hint {
    font-size: 0.82rem;
    color: #888;
    font-style: italic;
    margin-bottom: 20px;
    padding: 4px 4px 0;
    transition: opacity .4s;
}
@media (max-width: 600px) {
    .lexd-decks-pills {
        width: 100%;
    }
    .lexd-decks-pill {
        flex: 1;
        justify-content: center;
        padding: 11px 10px;
        font-size: 0.9rem;
    }
    .lexd-pill-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
}

/* ── Játékok tab – pill switcher (v3.9.0.50) ──────────── */
.lexd-games-pills {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #6c63ff;
    width: 100%;
    box-shadow: 0 2px 8px rgba(108,99,255,0.13);
}
.lexd-games-pill {
    padding: 13px 28px;
    border: none;
    background: #fff !important;
    color: #6c63ff !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    transition: background .15s, color .15s;
    position: relative;
}
.lexd-games-pill:not(:last-child) {
    border-right: 2px solid #6c63ff;
}
.lexd-games-pill:hover {
    background: #f0eeff !important;
    color: #6c63ff !important;
}
.lexd-games-pill.is-active {
    background: #6c63ff !important;
    color: #fff !important;
}
.lexd-games-pill .dashicons {
    font-size: 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
}
.lexd-games-pill.is-active .lexd-pill-badge {
    background: #fff;
    color: #6c63ff;
}
@media (max-width: 600px) {
    .lexd-games-pills {
        width: 100%;
    }
    .lexd-games-pill {
        flex: 1;
        justify-content: center;
        padding: 11px 10px;
        font-size: 0.9rem;
    }
}
