/* Demo interactiva — emojis, tickets, VIP, perfil y tablas como el panel real */
.lp-adm {
    --demo-emoji-font: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

/* Iconos Pe-icon-7-stroke (sidebar Inicio, Servidor, Ajustes, tema oscuro, etc.) */
.lp-adm [class^="pe-7s-"],
.lp-adm [class*=" pe-7s-"] {
    font-family: 'Pe-icon-7-stroke' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.demo-site-brand-mark,
.lp-adm .adm-cat-emoji,
.lp-adm .adm-inv-icon,
.lp-adm .demo-emoji {
    font-family: var(--demo-emoji-font);
    font-style: normal;
    line-height: 1;
    display: inline-block;
}

.lp-adm .demo-page-wrap { padding: 0 2px; }

.lp-adm .demo-page-server-badge {
    float: right;
    font-size: 14px;
    color: var(--adm-accent, #fca311);
    font-weight: normal;
}

.lp-adm .demo-players-count-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(252, 163, 17, 0.15);
    color: var(--adm-accent);
    vertical-align: middle;
}

.lp-adm .demo-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

@media (max-width: 1100px) {
    .lp-adm .demo-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.lp-adm .demo-stat-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.lp-adm .demo-stat-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(252, 163, 17, 0.12);
    color: var(--adm-accent);
    flex-shrink: 0;
}

.lp-adm .demo-stat-card h4 {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--adm-muted);
    font-weight: 500;
}

.lp-adm .demo-stat-card .val {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.lp-adm .demo-stat-card .lbl {
    display: block;
    font-size: 11px;
    color: var(--adm-muted);
    margin-top: 4px;
}

.lp-adm .demo-clickable-table tbody tr { cursor: pointer; }
.lp-adm .demo-clickable-table tbody tr:hover { background: rgba(252, 163, 17, 0.08); }
.lp-adm .adm-table-striped tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

.lp-adm .demo-trust-high { color: #2ecc71; font-weight: 600; }
.lp-adm .demo-trust-medium { color: #fca311; font-weight: 600; }
.lp-adm .demo-trust-low { color: #e74c3c; font-weight: 600; }

.lp-adm .demo-profile-empty,
.lp-adm .demo-tickets-chat-empty,
.lp-adm .demo-dvip-detail-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--adm-muted);
}

.lp-adm .demo-profile-empty i,
.lp-adm .demo-tickets-chat-empty i,
.lp-adm .demo-dvip-detail-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.45;
}

.lp-adm .demo-profile-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
}

.lp-adm .demo-profile-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.lp-adm .demo-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--adm-border);
}

.lp-adm .demo-profile-avatar-wrap { position: relative; flex-shrink: 0; }

.lp-adm .demo-profile-trust {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #2ecc71;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.lp-adm .demo-profile-trust.demo-trust-medium { background: #fca311; color: #222; }
.lp-adm .demo-profile-trust.demo-trust-low { background: #e74c3c; }

.lp-adm .demo-profile-name { margin: 0 0 8px; font-size: 26px; font-weight: 700; }

.lp-adm .demo-profile-server-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    margin-bottom: 10px;
}

.lp-adm .demo-profile-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--adm-muted);
}

.lp-adm .demo-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--adm-border);
}

.lp-adm .demo-profile-stat {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.lp-adm .demo-profile-stat .v { display: block; font-size: 18px; font-weight: 700; }
.lp-adm .demo-profile-stat .l { font-size: 11px; color: var(--adm-muted); }

.lp-adm .demo-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.lp-adm .demo-profile-tab {
    border: 1px solid var(--adm-border);
    background: transparent;
    color: var(--adm-muted);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lp-adm .demo-profile-tab.is-on {
    background: rgba(252, 163, 17, 0.15);
    border-color: var(--adm-accent);
    color: var(--adm-accent);
    font-weight: 600;
}

.lp-adm .demo-profile-pane { display: none; }
.lp-adm .demo-profile-pane.is-active { display: block; }

.lp-adm .demo-section-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    padding: 18px;
}

.lp-adm .demo-inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.lp-adm .demo-inv-slot {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}

.lp-adm .demo-inv-slot .emoji {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
    font-family: var(--demo-emoji-font);
}

.lp-adm .demo-tickets-layout,
.lp-adm .demo-dvip-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 14px;
    min-height: 480px;
}

@media (max-width: 991px) {
    .lp-adm .demo-tickets-layout,
    .lp-adm .demo-dvip-layout { grid-template-columns: 1fr; }
}

.lp-adm .demo-tickets-sidebar,
.lp-adm .demo-tickets-chat,
.lp-adm .demo-dvip-sidebar,
.lp-adm .demo-dvip-detail {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    padding: 14px;
}

.lp-adm .demo-tickets-topbar,
.lp-adm .demo-dvip-topbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lp-adm .demo-tickets-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--adm-accent); margin: 0 0 4px; }
.lp-adm .demo-dvip-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: #fca311; margin: 0 0 4px; }
.lp-adm .demo-tickets-title, .lp-adm .demo-dvip-title { margin: 0; font-size: 24px; font-weight: 600; }
.lp-adm .demo-tickets-sub, .lp-adm .demo-dvip-sub { margin: 6px 0 0; font-size: 13px; color: var(--adm-muted); }

.lp-adm .demo-tickets-tabs, .lp-adm .demo-dvip-tabs { display: flex; gap: 8px; margin-bottom: 12px; }

.lp-adm .demo-tickets-tab, .lp-adm .demo-dvip-tab {
    flex: 1;
    border: 1px solid var(--adm-border);
    background: transparent;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--adm-muted);
}

.lp-adm .demo-tickets-tab.is-on { background: rgba(252, 163, 17, 0.12); border-color: var(--adm-accent); color: var(--adm-accent); font-weight: 600; }
.lp-adm .demo-dvip-tab.is-on { background: rgba(252, 163, 17, 0.12); border-color: #fca311; color: #fca311; font-weight: 600; }

.lp-adm .demo-form-control {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--adm-border);
    background: rgba(0, 0, 0, 0.15);
    color: var(--adm-text);
    font-size: 13px;
}

.lp-adm .demo-ticket-item, .lp-adm .demo-vip-item {
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
}

.lp-adm .demo-ticket-item.is-active, .lp-adm .demo-vip-item.is-active { border-color: var(--adm-accent); }
.lp-adm .demo-vip-item.is-active { border-color: #fca311; }
.lp-adm .demo-ticket-item.priority-urgent { border-left: 4px solid #e74c3c; }
.lp-adm .demo-ticket-item.priority-high { border-left: 4px solid #f39c12; }

.lp-adm .demo-tickets-messages { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.lp-adm .demo-msg { max-width: 85%; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.lp-adm .demo-msg.player { align-self: flex-start; background: rgba(252, 163, 17, 0.12); }
.lp-adm .demo-msg.staff { align-self: flex-end; background: rgba(46, 204, 113, 0.12); }
.lp-adm .demo-msg-meta { font-size: 11px; color: var(--adm-muted); margin-bottom: 4px; }

.lp-adm .demo-vip-item-role { font-weight: 600; color: #f39c12; }
.lp-adm .demo-vip-item-meta { font-size: 12px; color: var(--adm-muted); margin-top: 4px; }

.lp-adm .demo-dvip-detail-active dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 12px;
    font-size: 13px;
}

.lp-adm .demo-dvip-detail-active dt { color: var(--adm-muted); }

/* Interruptor Free / Premium (demo) — píldora deslizante */
.lp-demo-plan-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lp-demo-plan-switch--chrome {
    margin-left: 0;
    margin-right: 0;
}

.lp-demo-chrome-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
}

.lp-demo-lang-switch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lp-demo-lang-switch--chrome .lp-lang-dropdown-trigger,
.lp-demo-lang-switch--chrome .lang-dropdown-trigger {
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(252, 163, 17, 0.28);
}

.lp-adm-real-shell .demo-lang-switch-li {
    display: flex;
    align-items: center;
}

.lp-adm-real-shell .demo-lang-switch-li .lang-dropdown,
.lp-adm-real-shell .demo-lang-switch-li .lp-lang-dropdown {
    margin: 0 4px;
}

.lp-adm-real-shell .navbar .demo-lang-switch-li .lang-dropdown-trigger,
.lp-adm-real-shell .navbar .demo-lang-switch-li .lp-lang-dropdown-trigger {
    color: inherit;
}

.lp-demo-plan-switch-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(229, 229, 229, 0.72);
    white-space: nowrap;
}

.lp-demo-plan-track {
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
    min-width: 168px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(252, 163, 17, 0.35);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.lp-demo-plan-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd56a 0%, #fca311 55%, #e8940a 100%);
    box-shadow:
        0 2px 8px rgba(252, 163, 17, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.lp-demo-plan-switch[data-demo-plan-ui="premium"] .lp-demo-plan-thumb {
    transform: translateX(100%);
    background: linear-gradient(135deg, #ffe08a 0%, #fca311 40%, #f57c00 100%);
}

.lp-demo-plan-switch[data-demo-plan-ui="free"] .lp-demo-plan-thumb {
    transform: translateX(0);
    background: linear-gradient(135deg, #e8ecf0 0%, #c5ccd6 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.lp-demo-plan-switch-btn {
    appearance: none;
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent !important;
    color: rgba(229, 229, 229, 0.7) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.2s ease;
}

.lp-demo-plan-switch-btn:hover {
    color: #fff !important;
}

.lp-demo-plan-switch-btn.is-active {
    color: #111 !important;
    text-shadow: none;
}

.lp-demo-plan-switch[data-demo-plan-ui="free"] .lp-demo-plan-switch-btn[data-demo-plan-toggle="free"].is-active {
    color: #14213d !important;
}

.lp-demo-plan-switch[data-demo-plan-ui="premium"] .lp-demo-plan-switch-btn[data-demo-plan-toggle="premium"].is-active {
    color: #111 !important;
}

.lp-demo-plan-switch-btn.is-active {
    animation: lpDemoPlanPop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes lpDemoPlanPop {
    0% { transform: scale(0.96); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Evitar que navbar force color claro sobre Premium */
.lp-adm-real-shell .navbar .lp-demo-plan-switch-btn,
.lp-adm-real-shell.dark-theme .navbar .lp-demo-plan-switch-btn,
.lp-adm-real-shell[data-theme="dark"] .navbar .lp-demo-plan-switch-btn,
.lp-adm-real-shell .navbar a .lp-demo-plan-switch-btn {
    color: rgba(229, 229, 229, 0.7) !important;
    background: transparent !important;
}

.lp-adm-real-shell .navbar .lp-demo-plan-switch-btn.is-active,
.lp-adm-real-shell.dark-theme .navbar .lp-demo-plan-switch-btn.is-active,
.lp-adm-real-shell[data-theme="dark"] .navbar .lp-demo-plan-switch-btn.is-active {
    color: #111 !important;
}

.lp-adm-navbar-right .lp-demo-plan-switch,
.demo-navbar-right .lp-demo-plan-switch {
    margin-right: 4px;
}

.lp-adm .lp-adm-nav-tree a.lp-demo-premium-locked,
.lp-adm .qa-chip.lp-demo-premium-locked,
.lp-adm .lp-qa-chip.lp-demo-premium-locked,
.lp-adm .dash-kpi-link.lp-demo-premium-locked,
.lp-adm .lp-dash-kpi-link.lp-demo-premium-locked {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}

.lp-adm .lp-adm-nav-tree a.lp-demo-premium-locked > span:first-child,
.lp-adm .qa-chip.lp-demo-premium-locked > span:not(.premium-lock-badge),
.lp-adm .lp-qa-chip.lp-demo-premium-locked > span:not(.premium-lock-badge) {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(231, 76, 60, 0.85);
    opacity: 0.6;
}

.lp-adm .premium-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #111;
    background: #fca311;
    line-height: 1.3;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.lp-adm .premium-lock-badge::before {
    content: "\e63f";
    font-family: "Pe-icon-7-stroke";
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
}

.lp-adm.theme-light .lp-demo-plan-switch-label,
.lp-adm-real-shell:not(.dark-theme) .lp-demo-plan-switch-label,
.lp-adm-real-shell[data-theme="light"] .lp-demo-plan-switch-label {
    color: rgba(20, 33, 61, 0.65);
}

.lp-adm.theme-light .lp-demo-plan-track,
.lp-adm-real-shell:not(.dark-theme) .lp-demo-plan-track,
.lp-adm-real-shell[data-theme="light"] .lp-demo-plan-track {
    background: rgba(20, 33, 61, 0.06);
    border-color: rgba(252, 163, 17, 0.4);
    box-shadow: inset 0 1px 2px rgba(20, 33, 61, 0.08);
}

.lp-adm.theme-light .lp-demo-plan-switch-btn,
.lp-adm-real-shell:not(.dark-theme) .lp-demo-plan-switch-btn,
.lp-adm-real-shell[data-theme="light"] .lp-demo-plan-switch-btn {
    color: rgba(20, 33, 61, 0.55) !important;
}

.lp-adm.theme-light .lp-demo-plan-switch-btn.is-active,
.lp-adm-real-shell:not(.dark-theme) .lp-demo-plan-switch-btn.is-active,
.lp-adm-real-shell[data-theme="light"] .lp-demo-plan-switch-btn.is-active {
    color: #111 !important;
}

@media (max-width: 900px) {
    .lp-demo-plan-switch--chrome {
        display: none;
    }
    .lp-demo-chrome-tools {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .lp-adm-navbar-right .lp-demo-plan-switch-label,
    .demo-navbar-right .lp-demo-plan-switch-label {
        display: none;
    }

    .lp-demo-plan-track {
        min-width: 140px;
    }

    .lp-demo-plan-switch-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
}
