.luma-mayday-iframe-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    animation: fadeIn 0.3s ease;
    position: relative; /* Pour le bouton flottant */
}

.luma-mayday-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    flex: 1;
}

.luma-iframe-floating-close {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 100;
    background: #cbd5e1; /* Gris clair type Mayday */
    border: none;
    color: #334155; /* Texte sombre pour contraste */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.luma-iframe-floating-close i {
    font-size: 14px;
    font-weight: bold;
}

.luma-iframe-floating-close:hover {
    background: #94a3b8;
    transform: scale(1.1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.luma-iframe-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.luma-iframe-close-btn:hover {
    background: #ef4444;
}

.luma-close-iframe-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.luma-close-iframe-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* ── Favorites Button & Badge ────────────────────────────── */
.luma-fav-trigger-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-transform: uppercase;
}

.luma-fav-trigger-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
}

.luma-fav-badge {
    background: #f59e0b;
    color: white;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1;
    margin-left: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

/* ── Existing ────────────────────────────────────────────── */


/* ── Animations ─────────────────────────────────────────────*/
@keyframes lumaBreathe {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(0.99, 0.985); }
}
.luma-animate-breathe {
    animation: lumaBreathe 3.5s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes lumaSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.luma-spin {
    display: inline-block;
    animation: lumaSpin 1s linear infinite;
}

@keyframes lumaBlink {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50%                 { transform: scaleY(0.1); }
}
.luma-animate-blink {
    animation: lumaBlink 4s infinite;
    transform-origin: center;
}

@keyframes lumaJump {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px) scaleY(1.05); }
}
.luma-animate-jump {
    animation: lumaJump 0.4s ease-in-out;
    transform-origin: bottom center;
}

@keyframes lumaEat {
    0%, 100% { transform: scaleX(1); }
    50%       { transform: scaleX(1.1) scaleY(0.95); }
}
.luma-animate-eat {
    animation: lumaEat 0.3s ease-in-out 3;
    transform-origin: center;
}

@keyframes lumaSpinSlow { 100% { transform: rotate(360deg); } }
.luma-animate-spin-slow {
    animation: lumaSpinSlow 12s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}
@keyframes lumaSpinReverse { 100% { transform: rotate(-360deg); } }
.luma-animate-spin-reverse {
    animation: lumaSpinReverse 15s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes lumaFloatUp {
    0%   { transform: translateY(0) scale(0.5); opacity: 1; }
    100% { transform: translateY(-40px) scale(1); opacity: 0; }
}
.luma-animate-float-up {
    animation: lumaFloatUp 1.2s ease-out forwards;
}

@keyframes lumaPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}
.luma-animate-pulse {
    animation: lumaPulse 2s ease-in-out infinite;
}

@keyframes lumaSqueeze {
    0%   { transform: scale(1, 1); }
    25%  { transform: scale(1.18, 0.82); }
    50%  { transform: scale(0.88, 1.12); }
    75%  { transform: scale(1.08, 0.94); }
    100% { transform: scale(1, 1); }
}
.luma-animate-squeeze {
    animation: lumaSqueeze 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    transform-origin: bottom center;
}

@keyframes lumaRepel {
    0%   { transform: translateX(0) rotate(0deg); }
    20%  { transform: translateX(-10px) rotate(-5deg); }
    40%  { transform: translateX(8px) rotate(4deg); }
    60%  { transform: translateX(-6px) rotate(-3deg); }
    80%  { transform: translateX(4px) rotate(2deg); }
    100% { transform: translateX(0) rotate(0deg); }
}
@keyframes lumaStreakPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px #f59e0b); }
    50%      { transform: scale(1.06); filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4)); }
}
.luma-animate-repel {
    animation: lumaRepel 0.45s ease-in-out;
    transform-origin: bottom center;
}

/* ── New Expressive Animations ────────────────────────────── */
.luma-tilt {
    transform: rotate(12deg) translateY(-2px);
}

@keyframes lumaSpinFast {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.luma-animate-spin-fast {
    animation: lumaSpinFast 0.4s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes lumaThought {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-3px) scale(1.02); }
}
.luma-thought-bubble {
    animation: lumaThought 3s ease-in-out infinite;
    transform-origin: center;
}

/* ── Stat bars ───────────────────────────────────────────────*/
.luma-stat-track {
    height: 6px;
    background: var(--border-color);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 5px;
}
.luma-stat-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── XP bar ──────────────────────────────────────────────────*/
.luma-xp-track {
    height: 3px;
    background: var(--border-color);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 4px;
}
.luma-xp-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.7s ease;
}

/* ── Action buttons ──────────────────────────────────────────*/
.luma-btn-action {
    width: 100%;
    text-align: left;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-body) !important;
    cursor: pointer;
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.18s ease;
    box-sizing: border-box;
}
.luma-btn-action:hover:not(:disabled) {
    background: var(--bg-card) !important;
    border-color: var(--primary, #3b82f6) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.luma-btn-action:active:not(:disabled) { transform: translateY(0); }
.luma-btn-action:disabled              { opacity: 0.4; cursor: not-allowed; }

/* ── Colour swatches ─────────────────────────────────────────*/
.luma-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.18s;
    flex-shrink: 0;
}
.luma-swatch.active {
    border-color: var(--text-main);
    transform: scale(1.2);
}

/* ── Tab bar ─────────────────────────────────────────────────*/
.luma-tab {
    flex: 1;
    padding: 0.55rem 0;
    font-size: 0.78rem;
    font-weight: 600;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    cursor: pointer;
    color: var(--text-muted);
    margin-bottom: -1px;
    transition: color 0.18s, border-color 0.18s;
}
.luma-tab.active {
    color: var(--primary, #3b82f6) !important;
    border-bottom-color: var(--primary, #3b82f6) !important;
}
.luma-tab:hover:not(.active) { color: var(--text-main); }

/* ── Shop ────────────────────────────────────────────────────*/
.luma-cat-btn {
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    border: 1px solid var(--border-color) !important;
    background: none !important;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s;
}
.luma-cat-btn.active {
    background: var(--primary, #3b82f6) !important;
    color: white !important;
    border-color: var(--primary, #3b82f6) !important;
}

.luma-shop-card {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.7rem 0.5rem;
    text-align: center;
    background: var(--bg-body);
    transition: all 0.2s;
    cursor: default;
}
.luma-shop-card.owned   { background: var(--bg-card); }
.luma-shop-card.equipped {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 1px var(--primary, #3b82f6);
}

.luma-shop-btn {
    width: 100%;
    padding: 0.3rem 0;
    border-radius: 6px;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-body) !important;
    color: var(--text-main) !important;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.luma-shop-btn:hover:not(:disabled) {
    background: var(--primary, #3b82f6) !important;
    color: white !important;
    border-color: var(--primary, #3b82f6) !important;
}
.luma-shop-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.luma-shop-btn.equip {
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: var(--primary, #3b82f6) !important;
}

/* ── Quest rows ──────────────────────────────────────────────*/
.luma-quest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.35rem 0;
}

/* ── Chat bubbles ────────────────────────────────────────────*/
.luma-chat-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

/* User Message */
.luma-chat-msg.user {
    background: var(--chat-user-bg, var(--primary, #3b82f6));
    color: var(--chat-user-text, white);
    border-bottom-right-radius: 4px;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,0.1);
}

/* AI Message */
.luma-chat-msg.ai {
    background: var(--chat-ai-bg, var(--bg-body-secondary));
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    border-bottom-left-radius: 4px;
    padding: 0;
}

.luma-chat-msg.ai > div {
    padding: 0.8rem 1.1rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

/* Theme Specific Overrides for Chat */
[data-theme="neon"] .luma-chat-msg.user {
    --chat-user-bg: #fcee09; 
    --chat-user-text: #000000;
    font-weight: 600;
}
[data-theme="neon"] .luma-chat-msg.ai {
    --chat-ai-bg: rgba(181, 55, 255, 0.1);
    border-color: rgba(181, 55, 255, 0.3);
    border-left-color: #b537ff;
}

[data-theme="dark"] .luma-chat-msg.user {
    --chat-user-bg: #2563eb; /* Deeper blue */
}
[data-theme="dark"] .luma-chat-msg.ai {
    --chat-ai-bg: #1f2937;
    border-left-color: var(--primary);
}

[data-theme="light"] .luma-chat-msg.ai,
[data-theme="sakura"] .luma-chat-msg.ai,
[data-theme="forest"] .luma-chat-msg.ai {
    --chat-ai-bg: var(--bg-body-secondary);
}

/* ── Floating Widget ─────────────────────────────────────────*/
.luma-widget-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    transition: filter 0.2s;
}
.luma-widget-bubble:hover {
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

/* Widget message text formatting */
.luma-widget-msg strong { font-weight: 800; color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.3); }
.luma-widget-msg.ai strong { color: var(--primary, #3b82f6); text-shadow: none; }
.luma-widget-alert {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: lumaPulse 1.5s ease-in-out infinite;
}

.luma-widget-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    width: 340px;
    height: 460px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.luma-widget-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.luma-widget-bubble {
    position: relative;
}
.luma-widget-mini-streak {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #f59e0b;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid var(--bg-body);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: lumaStreakPulse 2s infinite ease-in-out;
}
.luma-widget-header-info { flex: 1; min-width: 0; }
.luma-widget-header-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.luma-widget-header-vitals {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.luma-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scroll-behavior: smooth;
}

.luma-widget-msg {
    max-width: 85%;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.83rem;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}
.luma-widget-msg.user {
    background: var(--primary, #3b82f6);
    color: #fff;
    border-bottom-right-radius: 3px;
    margin-left: auto;
}
.luma-widget-msg.ai {
    background: var(--bg-body, #f8fafc);
    color: var(--text-main);
    border: 1px solid var(--border-color, #e2e8f0);
    border-bottom-left-radius: 3px;
}

/* ── Galerie d'images dans le widget (sous le texte) ── */
.luma-widget-img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.luma-widget-img-link {
    flex: 0 0 auto;
}
.luma-widget-img {
    width: 80px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    display: block;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}
.luma-widget-img:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.luma-widget-typing {
    display: flex;
    gap: 4px;
    padding: 0.55rem 0.85rem;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    border-bottom-left-radius: 3px;
    width: fit-content;
}
.luma-widget-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted, #94a3b8);
    border-radius: 50%;
    animation: lumaTypingBounce 1.2s ease-in-out infinite;
}
.luma-widget-typing span:nth-child(2) { animation-delay: 0.2s; }
.luma-widget-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lumaTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-5px); }
}

.luma-widget-input-row {
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.luma-widget-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-body, #f8fafc);
    color: var(--text-main);
    font-size: 0.83rem;
    outline: none;
    transition: border-color 0.15s;
}
.luma-widget-input:focus { border-color: var(--primary, #3b82f6); }
.luma-widget-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--primary, #3b82f6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.luma-widget-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Widget panel slide-up transition */
.luma-widget-slide-enter-active,
.luma-widget-slide-leave-active {
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.luma-widget-slide-enter-from,
.luma-widget-slide-leave-to {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
}

/* ── Aside layout ────────────────────────────────────────────*/
.luma-aside {
    width: 320px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
}
.luma-anav {
    display: flex;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.luma-anav-btn {
    flex: 1;
    padding: 13px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.luma-anav-btn i { font-size: 0.95rem; }
.luma-anav-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--bg-card); }
.luma-anav-btn:hover:not(.active) { color: var(--text-main); background: var(--bg-card); }

.luma-aside-scroll { flex: 1; overflow-y: auto; }
.luma-aside-scroll::-webkit-scrollbar { width: 4px; }
.luma-aside-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.luma-aside-panel { padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }

/* ── Aside pet hero (always visible) ─────────────────────────*/
.luma-pet-hero {
    padding: 1.4rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden; /* Important for overlay */
}

.luma-env-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, black 20%, rgba(0,0,0,0.4) 50%, transparent 85%);
    mask-image: radial-gradient(circle at 50% 45%, black 20%, rgba(0,0,0,0.4) 50%, transparent 85%);
}

.luma-env-svg-forest, .luma-env-svg-cyber, .luma-env-svg-space {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.luma-env-svg-forest svg {
    width: 100%;
    height: 100%;
    animation: lumaBambooSway 8s ease-in-out infinite;
}

@keyframes lumaBambooSway {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(1deg); }
}

.luma-env-svg-cyber svg {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.luma-env-svg-space .luma-stars-container {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50% 50%, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80px 10px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 150px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: lumaStarsDrift 60s linear infinite;
    opacity: 0.4;
}

@keyframes lumaStarsDrift {
    from { background-position: 0 0; }
    to { background-position: 200px 400px; }
}

.luma-env-office .luma-env-overlay {
    opacity: 0.25;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(30, 58, 138, 0.6));
}

.luma-env-none .luma-env-overlay {
    opacity: 0;
}
.luma-pet-hero-stage {
    width: 160px;
    height: 160px;
    cursor: pointer;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 24px;
}
.luma-pet-hero-stage:hover { transform: scale(1.02); }

.luma-store-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 12;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.luma-store-btn:hover {
    background: var(--bg-body);
    border-color: var(--primary);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.luma-store-btn i {
    font-size: 1rem;
    color: #facc15; /* Golden yellow */
}
.luma-pet-info { 
    width: 100%; 
    text-align: center; 
    position: relative; 
    z-index: 10; 
    margin-top: -5px;
}
.luma-pet-name3 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff; /* Contrast guarantee */
    letter-spacing: -0.3px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.luma-pet-badge2 {
    display: inline-flex;
    align-items: center;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: var(--primary);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 11px;
    border-radius: 100px;
    margin-top: 7px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.luma-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 900;
    margin-left: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: lumaStreakPulse 2.5s infinite ease-in-out;
    vertical-align: middle;
}
.luma-streak-badge i {
    font-size: 0.75rem;
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
}
.luma-xp-track3 {
    margin-top: 11px;
    height: 6px;
    background: var(--border-color);
    border-radius: 99px;
    overflow: hidden;
}
.luma-xp-fill3 {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.luma-xp-label3 {
    margin-top: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ── Aside stats ─────────────────────────────────────────────*/
.luma-stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.luma-stat-chip {
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
}
.luma-stat-chip i { font-size: 1.15rem; flex-shrink: 0; }
.luma-stat-chip-val { font-size: 1.1rem; font-weight: 900; color: var(--text-main); line-height: 1; }
.luma-stat-chip-lbl { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; margin-top: 2px; color: var(--text-muted); }
.luma-stat-chip.lux i { color: #d97706; }
.luma-stat-chip.lux .luma-stat-chip-lbl { color: #d97706; }
.luma-stat-chip.pts i { color: #9333ea; }
.luma-stat-chip.pts .luma-stat-chip-lbl { color: #9333ea; }

/* ── Aside section box ───────────────────────────────────────*/
.luma-aside-section {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem;
}
.luma-aside-section-hd {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 7px;
}
.luma-aside-section-hd i { color: var(--warning); font-size: 0.9rem; }

/* ── Aside quests ────────────────────────────────────────────*/
.luma-quest-stack { display: flex; flex-direction: column; gap: 6px; }
.luma-quest-item2 {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.22s;
}
.luma-quest-item2.done {
    border-color: rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.06);
}
.luma-quest-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    background: var(--border-color);
    color: var(--text-muted);
    transition: all 0.22s;
}
.luma-quest-item2.done .luma-quest-dot {
    background: var(--success);
    color: white;
    box-shadow: 0 0 8px rgba(16,185,129,0.3);
}
.luma-quest-item2-lbl {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.22s;
}
.luma-quest-item2.done .luma-quest-item2-lbl {
    color: var(--text-muted);
    text-decoration: line-through;
}
.luma-quest-reward2 {
    font-size: 0.63rem;
    font-weight: 900;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

/* ── Shop categories ─────────────────────────────────────────*/
.luma-shop-cats2 { display: flex; gap: 5px; flex-wrap: wrap; }
.luma-shop-cat2 {
    padding: 5px 11px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.18s;
}
.luma-shop-cat2.active {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.4);
    color: var(--primary);
}
.luma-shop-cat2:hover:not(.active) { color: var(--text-main); }

/* ── Shop grid ───────────────────────────────────────────────*/
.luma-shop-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.luma-shop-tile2 {
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    padding: 11px 9px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s;
}
.luma-shop-tile2:hover { border-color: rgba(59,130,246,0.4); }
.luma-shop-tile2.equipped {
    border-color: var(--primary);
    background: rgba(59,130,246,0.08);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.2);
}
.luma-shop-tile2-icon {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    font-size: 1.5rem;
    color: var(--text-muted);
}
.luma-color-dot {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.luma-shop-tile2-name { font-size: 0.7rem; font-weight: 700; color: var(--text-main); margin-bottom: 7px; line-height: 1.2; }
.luma-shop-tile2-status { font-size: 0.58rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.7px; }
.luma-shop-tile2-status.equipped { color: var(--primary); }
.luma-shop-tile2-status.owned { color: var(--success); }
.luma-shop-buy-btn {
    width: 100%;
    padding: 6px;
    border-radius: 9px;
    border: none;
    font-size: 0.65rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--border-color);
    color: var(--text-muted);
    transition: all 0.18s;
}
.luma-shop-buy-btn.can-buy {
    background: #f59e0b;
    color: white;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}
.luma-shop-buy-btn.can-buy:hover { transform: scale(1.03); box-shadow: 0 4px 10px rgba(245,158,11,0.4); }
.luma-shop-buy-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Aside admin footer ──────────────────────────────────────*/
.luma-aside-footer {
    padding: 0.9rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-body);
}
.luma-admin-pill {
    width: 100%;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: all 0.22s;
}
.luma-admin-pill:hover { color: var(--text-main); border-color: var(--text-muted); }
.luma-admin-pill.active {
    background: rgba(139,92,246,0.1);
    border-color: rgba(139,92,246,0.4);
    color: #7c3aed;
}
.luma-admin-pill i { font-size: 0.95rem; }

/* ── New Quest / Goal Styles ─────────────────────────────────*/
.luma-quest-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.luma-quest-check { color: var(--success); font-size: 1.1rem; flex-shrink: 0; }

/* ── Pinned Sources Sidebar ──────────────────────────────────*/
.luma-pinned-sidebar {
    width: 220px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 5;
}
.luma-pinned-hd {
    padding: 1rem;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.luma-pinned-hd i { color: #f59e0b; }
.luma-pinned-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.luma-pin-item {
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s;
}
.luma-pin-item:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: var(--bg-card);
    transform: translateX(4px);
}
.luma-pin-content { flex: 1; min-width: 0; }
.luma-pin-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.luma-pin-title:hover { color: var(--primary); }
.luma-pin-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}
.luma-pin-item:hover .luma-pin-remove { opacity: 1; }
.luma-pin-remove:hover { color: #ef4444; }

/* ── Quest Trigger Button ────────────────────────────────────*/
.luma-quest-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.luma-quest-float-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.luma-quest-float-btn:hover {
    background: var(--bg-body);
    border-color: #f59e0b;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(245,158,11,0.1);
}

.luma-quest-float-btn i {
    font-size: 1rem;
    color: #f59e0b; /* Orange */
}

.luma-quest-float-badge {
    font-size: 0.65rem;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 1px 4px;
    border-radius: 4px;
}

.luma-quest-notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: lumaPulseDot 2s infinite;
}

@keyframes lumaPulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Modal Base ──────────────────────────────────────────────*/
.luma-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.luma-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.luma-modal-header {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.luma-modal-header h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.luma-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.luma-modal-close:hover { color: var(--text-main); }
.luma-modal-body { padding: 1rem 1.25rem; overflow-y: auto; max-height: 85vh; }

/* ── Quest Modal Content ─────────────────────────────────────*/
.luma-quest-progress-circle {
    /* ... */
}

/* ── Galerie d'images Mayday (LUMA) ─────────────────────────── */

/* Conteneur de message AI - position relative pour les connecteurs SVG */
.luma-chat-msg-content {
    position: relative;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Galerie flottante compacte (toutes les images regroupées) */
.luma-gallery-aside {
    float: right;
    width: 110px;
    margin: 0 0 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.luma-image-card {
    width: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.luma-image-card:hover {
    transform: scale(1.5) translateX(-20px);
    z-index: 100;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.luma-mayday-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111;
}

.luma-image-card:hover .luma-mayday-img {
    border-color: var(--primary);
}

/* Ancre invisible dans le texte (position d'origine de l'image) */
.luma-img-anchor {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.25;
    vertical-align: middle;
    margin: 0 2px;
    transition: all 0.3s;
}
.luma-img-anchor.luma-anchor-active {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--primary);
}

/* SVG de connexion image → texte */
.luma-connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 50;
}

/* Clearfix */

/* ── Formatage des listes dans les messages ── */
.luma-list-item {
    display: block;
    padding-left: 0.5rem;
    margin: 2px 0;
    line-height: 1.5;
}
.luma-list-item.luma-list-numbered {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding-left: 0.25rem;
}
.luma-list-num {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary, #3b82f6);
    min-width: 1.4rem;
    font-size: 0.85em;
}

/* ── Liens Markdown [label](url) cliquables dans les messages ── */
.luma-inline-link {
    color: var(--primary, #3b82f6);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.15s, opacity 0.15s;
}
.luma-inline-link:hover {
    opacity: 0.8;
    text-decoration-style: solid;
}

/* ── Images de drapeaux via Twemoji (compatibilité Windows) ── */
.luma-flag-emoji {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    display: inline-block;
    margin: 0 1px;
}


.luma-orphan-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 0.82em;
    font-weight: 500;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    cursor: default;
    white-space: nowrap;
}

.luma-chat-msg-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Fallback simple si Fancybox est absent (juste pour le style de base) */
.fancybox__container {
    z-index: 100001 !important;
}
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
}
.luma-quest-count { font-size: 1.4rem; font-weight: 900; color: #f59e0b; line-height: 1; }
.luma-quest-sub { font-size: 0.55rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.luma-quest-list-modal { display: flex; flex-direction: column; gap: 8px; }
.luma-quest-card {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.luma-quest-card.done { border-color: #10b981; background: rgba(16, 185, 129, 0.05); }
.luma-quest-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #f59e0b;
}
.luma-quest-card.done .luma-quest-card-icon { color: #10b981; }
.luma-quest-card-info { flex: 1; min-width: 0; }
.luma-quest-card-title { font-size: 0.8rem; font-weight: 700; color: var(--text-main); margin-bottom: 1px; }
.luma-quest-card-reward { font-size: 0.6rem; font-weight: 800; color: #f59e0b; margin-bottom: 4px; }
.luma-quest-card-prog { display: flex; align-items: center; gap: 6px; }
.luma-quest-card-bar { flex: 1; height: 4px; background: var(--border-color); border-radius: 99px; overflow: hidden; }
.luma-quest-card-fill { height: 100%; background: #f59e0b; transition: width 0.4s ease; }
.luma-quest-card.done .luma-quest-card-fill { background: #10b981; }
.luma-quest-card-val { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); width: 25px; }
.luma-quest-card-status { font-size: 1.2rem; color: var(--text-muted); }
.luma-quest-card.done .luma-quest-card-status { color: #10b981; }

/* ── Premium Atelier ─────────────────────────────────────────*/
.luma-shop-preview-box {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.luma-shop-preview-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 6px;
}
.luma-shop-preview-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.luma-shop-tile2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.1rem;
    border-radius: 18px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.luma-shop-tile2:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.luma-shop-tile2-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--bg-card);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-muted);
}
.luma-shop-tile2:hover .luma-shop-tile2-icon { transform: scale(1.1) rotate(5deg); color: var(--primary); }
.luma-shop-tile2.equipped::after {
    content: 'ACTIF';
    position: absolute;
    top: 10px;
    right: -24px;
    font-size: 0.55rem;
    font-weight: 900;
    color: white;
    background: var(--primary);
    padding: 3px 28px;
    transform: rotate(45deg);
    letter-spacing: 0.6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.luma-shop-footer {
    margin-top: auto;
    padding-top: 10px;
}
.luma-shop-status-wrap {
    margin-top: auto;
    padding-top: 10px;
    text-align: center;
}
.luma-shop-buy-btn {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: none;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s;
}
.luma-shop-buy-btn.can-buy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.luma-shop-buy-btn.can-buy:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}
.luma-shop-tile2-status {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 8px;
}
.luma-shop-tile2-status.equipped { color: var(--primary); background: rgba(59, 130, 246, 0.1); }
.luma-shop-tile2-status.owned { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.luma-pinned-list-small {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.luma-pin-item-small {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.luma-pin-item-small:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}
.luma-pin-content {
    flex: 1;
    min-width: 0;
}
.luma-pin-title-small {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.luma-pin-title-small:hover {
    color: var(--primary);
}
.luma-pin-date-small {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.luma-pin-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
}
.luma-pin-remove-btn:hover {
    color: #ef4444;
    opacity: 1;
    transform: scale(1.1);
}

.luma-modal-fade-enter-active,
.luma-modal-fade-leave-active {
    transition: opacity 0.3s ease;
}
.luma-modal-fade-enter-from,
.luma-modal-fade-leave-to {
    opacity: 0;
}
.luma-modal-fade-enter-active .luma-modal-content,
.luma-modal-fade-leave-active .luma-modal-content {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.luma-modal-fade-enter-from .luma-modal-content {
    transform: scale(0.9) translateY(20px);
}
.luma-modal-fade-leave-to .luma-modal-content {
    transform: scale(0.95);
}

/* Animation rapide pour les messages de réflexion */
.luma-fade-fast-enter-active,
.luma-fade-fast-leave-active {
    transition: all 0.4s ease;
}
.luma-fade-fast-enter-from {
    opacity: 0;
    transform: translateX(15px);
}
.luma-fade-fast-leave-to {
    opacity: 0;
    transform: translateX(-15px);
}
.luma-fade-fast-enter-to,
.luma-fade-fast-leave-from {
    opacity: 1;
    transform: translateX(0);
}

/* ── Customizer Modal Overhaul ──────────────────────────────── */
.luma-custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.luma-custom-modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    display: flex;
    overflow: hidden;
}

.luma-custom-modal-sidebar {
    width: 260px;
    background: var(--bg-body-secondary, #0a0f1a);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: relative;
    box-shadow: 10px 0 30px rgba(0,0,0,0.25);
}

.luma-custom-modal-title {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 40px;
    opacity: 0.9;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.luma-custom-modal-cats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.luma-custom-modal-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.luma-custom-modal-cat-btn i { font-size: 1.4rem; }
.luma-custom-modal-cat-btn span { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.luma-custom-modal-cat-btn.active {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.luma-custom-modal-cat-btn:hover:not(.active) {
    background: var(--bg-body);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Tactical ID Card */
.luma-tactical-id {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.id-scanline {
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--primary);
    opacity: 0.2;
    animation: lumaScanline 3s linear infinite;
}

@keyframes lumaScanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

.id-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.id-level {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.id-rank {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

.luma-custom-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.luma-btn-save-v3 {
    background: #10b981 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.2s;
}

.luma-btn-save-v3:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.luma-btn-cancel-v3 {
    background: var(--bg-card) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    transition: all 0.2s;
}

.luma-btn-cancel-v3:hover {
    background: var(--bg-body) !important;
    color: var(--text-main) !important;
    border-color: var(--text-muted) !important;
}

.luma-custom-modal-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    background: var(--bg-body);
}

.luma-custom-preview-stage {
    width: 260px;
    flex-shrink: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-color);
    gap: 16px;
}
.luma-preview-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.luma-preview-avatar {
    z-index: 2;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.4));
}
.luma-preview-label {
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
}

.luma-custom-items-grid {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
}

.luma-item-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.luma-item-try-btn {
    flex: 1;
    padding: 7px;
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.luma-item-try-btn:hover { background: rgba(59, 130, 246, 0.12); }
.luma-item-try-btn.sm {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 6px;
    flex: unset;
}
.luma-custom-section-title {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.luma-color-picker-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 3rem;
}
.luma-color-input {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 4px solid var(--border-color);
    border-radius: 20px;
    background: none;
    cursor: pointer;
    overflow: hidden;
}
.luma-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.luma-color-input::-webkit-color-swatch { border: none; border-radius: 15px; }

.luma-preset-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.luma-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.luma-color-swatch:hover { border-color: rgba(255,255,255,0.3); }
.luma-color-swatch.active { border-color: white; box-shadow: 0 0 15px rgba(255,255,255,0.3); }

.luma-item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 3rem;
}
.luma-item-list.small {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.luma-item-card {
    padding: 20px;
    border-radius: 20px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.luma-item-card:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}
.luma-item-card.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.luma-item-card-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}
.luma-item-price {
    font-size: 0.75rem;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}
.luma-item-buy-btn {
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    background: #f59e0b;
    color: white;
    border: none;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.luma-item-buy-btn:hover { background: #d97706; transform: scale(1.02); }
.luma-item-buy-btn-small {
    font-size: 0.65rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s;
}
.luma-item-buy-btn-small:hover { background: #d97706; }

.luma-item-card.skin { text-align: center; }
.luma-item-card.skin img { margin: 0 auto; }

/* ── NEW PROFESSIONAL CUSTOMIZER MODAL ──────────────────────────────────────*/

@keyframes lumaWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.luma-animate-wiggle {
    animation: lumaWiggle 3s ease-in-out infinite;
    transform-origin: 50% 50%;
}

/* ── PREMIUM CUSTOMIZER MODAL ──────────────────────────────────────*/

.luma-custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: lumaFadeIn 0.3s ease;
}

@keyframes lumaFadeIn { from { opacity: 0; } to { opacity: 1; } }

.luma-custom-modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 50px 150px -30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    animation: lumaModalSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lumaModalSlideUp {
    from { opacity: 0; transform: translateY(60px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 1. Left Sidebar: Navigation */
.luma-custom-modal-sidebar {
    width: 280px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid var(--border-color);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
}

.luma-custom-modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.8px;
    margin-bottom: 32px;
    padding-left: 8px;
}

.luma-custom-modal-cats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.luma-custom-modal-cat-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.luma-custom-modal-cat-btn i {
    font-size: 1.4rem;
    opacity: 0.7;
    transition: transform 0.3s;
}

.luma-custom-modal-cat-btn:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
}

.luma-custom-modal-cat-btn.active {
    background: var(--bg-body);
    border-color: rgba(255,255,255,0.06);
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.luma-custom-modal-cat-btn.active i {
    transform: scale(1.1);
    opacity: 1;
}

.luma-custom-modal-lux {
    background: transparent;
    border: 2px dashed rgba(245, 158, 11, 0.3);
    padding: 20px 10px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}
.luma-custom-modal-lux:hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.6);
}
.luma-custom-modal-lux span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 4px;
}

/* 2. Middle: Preview Area */
.luma-custom-preview-stage {
    flex: 0 0 450px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    overflow: hidden;
}

.luma-preview-stage-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--p-glow, var(--primary)) 0%, transparent 75%);
    opacity: 0.15;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.luma-preview-avatar {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 30px 80px rgba(0,0,0,0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.luma-preview-avatar:hover {
    transform: scale(1.05);
}

.luma-preview-label {
    margin-top: 48px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    opacity: 0.4;
    background: rgba(255,255,255,0.05);
    padding: 6px 16px;
    border-radius: 99px;
}

/* 3. Right: Items Grid */
.luma-custom-modal-main {
    flex: 1 1 0;
    min-width: 350px;
    padding: 32px 24px;
    overflow-y: auto;
    background: var(--bg-body);
}

.luma-custom-modal-main::-webkit-scrollbar { width: 6px; }
.luma-custom-modal-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.luma-custom-section-title {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.luma-custom-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
    opacity: 0.4;
}

/* Items Grid v3 (App Store Style) */
.luma-items-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.luma-item-tile-v3 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.luma-item-tile-v3:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

.luma-item-tile-v3.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.luma-item-tile-v3.equipped::after {
    content: '\eb7a';
    font-family: 'remixicon';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.1rem;
    color: var(--primary);
    background: var(--bg-card);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.luma-item-tile-icon {
    font-size: 2.2rem;
    color: var(--text-main);
    opacity: 0.85;
    transition: all 0.4s;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.luma-item-tile-v3:hover .luma-item-tile-icon {
    color: var(--primary);
}

.luma-item-tile-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.luma-item-tile-price {
    font-size: 0.75rem;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

/* Color Picker Row */
.luma-custom-color-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    background: rgba(0,0,0,0.1);
    padding: 24px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.luma-custom-color-input {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    border: 3px solid var(--border-color);
    cursor: pointer;
    background: none;
    padding: 0;
    transition: transform 0.2s;
}

.luma-custom-color-input:hover { border-color: var(--primary); }

.luma-custom-color-presets {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.luma-color-swatch-v3 {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.luma-color-swatch-v3:hover { border-color: rgba(255,255,255,0.3); }

.luma-color-swatch-v3.active {
    border-color: var(--text-main);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Modal Actions */
.luma-custom-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.luma-btn-save-v3 {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 22px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px -5px rgba(var(--primary-rgb), 0.5);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.luma-btn-save-v3:hover {
    filter: brightness(1.1);
    box-shadow: 0 15px 40px -8px rgba(var(--primary-rgb), 0.6);
}

.luma-btn-cancel-v3 {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid transparent;
    padding: 16px;
    border-radius: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.luma-btn-cancel-v3:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Trigger Button */
.luma-custom-trigger-btn {
    width: 100%;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px -8px rgba(var(--primary-rgb), 0.5);
    margin-top: 1.5rem;
}

.luma-custom-trigger-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.6);
}

.luma-custom-trigger-btn i { font-size: 1.5rem; }


/* ── PURCHASE CONFIRMATION MODAL ────────────────────────────────────────────── */
.luma-purchase-confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.luma-purchase-confirm-content {
    background: var(--bg-card);
    width: 450px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: lumaModalSlideUp 0.3s ease-out;
}

.luma-purchase-confirm-hd {
    padding: 24px;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}
.luma-purchase-confirm-hd i { font-size: 1.5rem; color: #f59e0b; }
.luma-purchase-confirm-hd h3 { margin: 0; font-size: 1.2rem; }

.luma-purchase-confirm-body { padding: 24px; }
.luma-purchase-confirm-body p { margin-top: 0; opacity: 0.8; }

.luma-purchase-total-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-body);
    border-radius: 16px;
    margin: 20px 0;
    border: 1px dashed #f59e0b;
}
.luma-purchase-total-box i { font-size: 1.4rem; color: #f59e0b; }
.luma-purchase-total-box span { font-size: 1.8rem; font-weight: 900; color: #f59e0b; }

.luma-purchase-items-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.luma-purchase-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    font-size: 0.9rem;
}
.luma-purchase-item-cost { margin-left: auto; font-weight: 800; color: #f59e0b; }

.luma-purchase-confirm-ft {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luma-btn-buy-final {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.luma-btn-buy-final:hover:not(:disabled) { background: #d97706; }
.luma-btn-buy-final:disabled { opacity: 0.5; cursor: not-allowed; }

.luma-btn-cancel-final {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 14px;
    cursor: pointer;
}
.luma-btn-cancel-final:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }



/* SVG Animation Support */
[class*="luma-anim-"], [class*="luma-animate-"] {
    transform-box: fill-box;
}

/* ── CHARACTER ANIMATIONS ───────────────────────────────────── */
@keyframes luma-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.01); }
}

/* Apply breathing to the main SVG for better browser support */
.luma-svg-main.luma-anim-breathe { 
    animation: luma-breathe 4s ease-in-out infinite !important; 
    transform-origin: center bottom; 
}

/* Apply other animations to the main group if needed */
.luma-main-group.luma-anim-thinking { 
    animation: luma-thinking 0.8s ease-in-out infinite !important; 
    transform-origin: center center; 
}

.luma-main-group.luma-anim-gaming { 
    animation: luma-gaming 0.6s ease-in-out infinite !important; 
    transform-origin: center center; 
}

@keyframes luma-sleep {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.98); opacity: 0.8; }
}
.luma-anim-sleep { 
    animation: luma-sleep 5s ease-in-out infinite; 
    transform-origin: 50px 50px; 
}

@keyframes luma-wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}
.luma-animate-wiggle { 
    animation: luma-wiggle 3s ease-in-out infinite; 
    transform-origin: 50% 25%; /* Attach to the top of the head */
}

@keyframes luma-squeeze {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.85, 1.15); }
}
.luma-animate-squeeze { animation: luma-squeeze 0.4s ease-out; transform-origin: bottom center; }

@keyframes luma-spin-cw { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes luma-spin-ccw { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.luma-spin-cw { animation: luma-spin-cw 20s linear infinite; transform-origin: center; }
.luma-spin-ccw { animation: luma-spin-ccw 15s linear infinite; transform-origin: center; }

/* ── Random Glitch Behavior ── */
@keyframes luma-glitch-anim {
    0% { transform: translate(0,0) scale(1); filter: hue-rotate(0deg); opacity: 1; }
    10% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); opacity: 0.8; }
    20% { transform: translate(2px, -1px); filter: hue-rotate(180deg); opacity: 0.9; }
    30% { transform: translate(-1px, -2px); filter: hue-rotate(270deg); opacity: 1; }
    40% { transform: translate(0,0) scale(1.05); filter: hue-rotate(0deg); opacity: 0.7; }
    50% { transform: translate(2px, 2px); filter: hue-rotate(45deg); opacity: 1; }
    100% { transform: translate(0,0) scale(1); filter: hue-rotate(0deg); opacity: 1; }
}

.luma-glitch {
    animation: luma-glitch-anim 0.35s cubic-bezier(.25,.46,.45,.94) both;
}

/* ── Sleep & Whistle Particles ── */
@keyframes luma-float-up {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-30px) translateX(10px); opacity: 0; }
}

.luma-float-up-1 { animation: luma-float-up 3s ease-in-out infinite; }
.luma-float-up-2 { animation: luma-float-up 3s ease-in-out infinite 1s; }
.luma-float-up-3 { animation: luma-float-up 3s ease-in-out infinite 2s; }

.luma-sleeping {
    animation: luma-breathe 8s ease-in-out infinite !important; /* Slow breathing */
}

/* ── Thinking State ── */
@keyframes luma-thinking-pulse {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.6; filter: brightness(1.5) blur(1px); }
}

@keyframes luma-thinking-jitter {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-1px) rotate(0.5deg); }
    75% { transform: translateY(1px) rotate(-0.5deg); }
}

.luma-thinking-state {
    animation: luma-thinking-jitter 0.2s ease-in-out infinite;
}

.luma-animate-pulse-fast {
    animation: luma-thinking-pulse 0.4s ease-in-out infinite;
}

/* ── Info Modal Compact (Side-by-Side) ───────────────────────*/
.luma-info-stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.luma-info-stat-v {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.luma-info-stat-v .lbl {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 800;
}

.luma-info-stat-v .val {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 900;
}

.luma-info-security-mini {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 12px;
}

.luma-info-security-mini i {
    color: #10b981;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.luma-info-security-mini h4 {
    margin: 0 0 4px 0;
    font-size: 0.75rem;
    color: var(--text-main);
    font-weight: 800;
}

.luma-info-security-mini p {
    margin: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.luma-info-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── ASIDE TABS ── */
.luma-aside-tabs {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.luma-aside-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.luma-aside-tab i { font-size: 1.1rem; }
.luma-aside-tab:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}
.luma-aside-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ── ACHIEVEMENTS ── */
.luma-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.luma-achievement-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.luma-achievement-card:not(.locked) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}
.luma-achievement-card:not(.locked)::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}
.luma-achievement-card.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
}
.luma-ach-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.luma-achievement-card:not(.locked) .luma-ach-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    border: none;
}
.luma-ach-info { flex: 1; min-width: 0; }
.luma-ach-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}
.luma-ach-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
}
.luma-ach-prog-bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}
.luma-ach-prog-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 1s ease;
}
.luma-ach-prog-txt {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-align: right;
}
.luma-ach-date {
    font-size: 0.65rem;
    color: var(--success, #10b981);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── UI TWEAKS ── */
.luma-stats-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}


.luma-info-card-c {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s;
}

.luma-info-card-c:hover {
    border-color: var(--primary, #3b82f6);
    background: var(--bg-card);
}

.luma-info-card-c i {
    font-size: 1.2rem;
    color: var(--primary, #3b82f6);
    margin-bottom: 8px;
    display: block;
}

.luma-info-card-c h4 {
    margin: 0 0 4px 0;
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 800;
}

.luma-info-card-c p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Info Modal Dashboard (3 Columns) ───────────────────────*/
.luma-info-stat-h {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.luma-info-stat-h .lbl {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 800;
}

.luma-info-stat-h .val {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 900;
}

.luma-faq-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luma-faq-card:hover {
    border-color: var(--primary, #3b82f6);
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.luma-faq-q {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.luma-faq-q i { color: var(--primary); font-size: 1.2rem; }

.luma-faq-a {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── SHOP RARITIES & LOCKS ─────────────────────────────────── */
.luma-item-tile-v3.rare { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 15px rgba(56, 189, 248, 0.1); }
.luma-item-tile-v3.rare i { color: #38bdf8; }

.luma-item-tile-v3.epic { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); }
.luma-item-tile-v3.epic i { color: #a855f7; }

.luma-item-tile-v3.legendary { 
    border-color: rgba(250, 204, 21, 0.6); 
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.2);
    animation: lumaLegendaryPulse 3s infinite;
}
.luma-item-tile-v3.legendary i { color: #facc15; }

@keyframes lumaLegendaryPulse {
    0%, 100% { border-color: rgba(250, 204, 21, 0.6); box-shadow: 0 0 25px rgba(250, 204, 21, 0.2); }
    50% { border-color: rgba(250, 204, 21, 1); box-shadow: 0 0 40px rgba(250, 204, 21, 0.4); }
}

.luma-item-tile-v3.locked {
    opacity: 0.6;
    filter: grayscale(0.8);
    cursor: not-allowed !important;
    border-style: dashed;
    background: rgba(0,0,0,0.2);
}
.luma-item-tile-v3.locked:hover { transform: none; border-color: var(--border-color); }

.luma-item-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #ef4444;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    z-index: 5;
}

.luma-pet-badge2 {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: 4px;
    display: inline-block;
}

