/* * Optimized Widget: ranking_sidebar 
 * Style: "Tactical Minimalist" - Modernized for JGTR */
/* --- WIDGET CONTAINER --- */
.widget-ranking-sidebar { display: flex; flex-direction: column; padding: 0; background: rgba(8, 10, 25, 0.92); /* BG:PSEUDO-ELEM (blur stability) */ border: 1px solid rgba(108, 99, 255, 0.26); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.42), 0 0 24px rgba(108, 99, 255, 0.08); margin: 0.5rem 0; height: fit-content; position: relative; z-index: 10; overflow: visible; isolation: isolate; /* ISOLATE:NEW-CTX (backdrop-filter) */ transform: translate3d(0,0,0); backface-visibility: hidden; }
/* Fix Chrome Blur Flicker: Remplacement par une grille tactique stable */
.widget-ranking-sidebar::before { content: ""; position: absolute; inset: 0; background: transparent; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 18px 18px; border-radius: 12px; z-index: -1; pointer-events: none; /* GRID:CORPSE-ONLY (no header pollution) */ clip-path: inset(35px 0 0 0); opacity: 0.58; /* DFI Optimization */ transform: translate3d(0,0,0); backface-visibility: hidden; }
/* HEADER:TACTICAL */
.widget-ranking-sidebar .terminal-system-header { background: rgba(108, 99, 255, 0.08); border-bottom: 1px solid rgba(108, 99, 255, 0.2); padding: 0.5rem 0.8rem; display: flex; justify-content: space-between; align-items: center; font-family: "JetBrains Mono", "Share Tech Mono", "Consolas", monospace; border-radius: 12px 12px 0 0; position: relative; /* Pour s'assurer que l'arrondi fonctionne malgré l'overflow parent */ overflow: hidden; }
.widget-ranking-sidebar .system-path { color: #9ca3af; font-size: 0.65rem; letter-spacing: 0.05em; }
.widget-ranking-sidebar .system-path span { color: #6c63ff; }
.widget-ranking-sidebar .system-status { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #a78bfa; }
/* Wrapper pour restaurer le padding sur le contenu */
.sidebar-content-wrapper { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.7rem 0.6rem 0.75rem; }
/* --- TOP GRID (SQUARE BUTTONS) --- */
.sidebar-top-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; position: relative; z-index: 50; }
.sidebar-section-group { margin-bottom: 0; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* FLEX:GROW-DEFAULT (single btn) */ flex: 1 1 0; }
.sidebar-section-group[data-type="square"] { /* MIN-W:2COL-THRESHOLD (flex-grow override) */ min-width: calc(49% - 0.2rem); min-height: 72px; position: relative; z-index: 1; }
/* Hover Bridge: Secures the 8px gap between trigger and panel */
.sidebar-section-group[data-type="square"]::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; background: transparent; z-index: 10; pointer-events: none; }
/* On active le bridge UNIQUEMENT au hover du groupe ET quand le panel est visible */
.sidebar-section-group[data-type="square"]:hover::after { pointer-events: auto; }
.sidebar-section-group[data-type="square"].is-expanded, .sidebar-section-group[data-type="square"].is-auto-preview-open { z-index: 110; }
.sidebar-section-group[data-type="square"].is-auto-preview-open, .sidebar-section-group[data-type="square"].is-auto-preview-closing { z-index: 210; }
.sidebar-trigger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; width: 100%; height: 100%; cursor: pointer; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; z-index: 100; background: rgba(18, 20, 32, 0.83); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; overflow: hidden; /* On remet l'overflow hidden pour confiner les lueurs et effets de balayage */ }
.sidebar-section-group[data-type="square"] .sidebar-trigger { flex-direction: column; justify-content: center; gap: 0.25rem; height: 100%; }
.sidebar-section-group[data-type="square"].is-expanded .sidebar-trigger, .sidebar-section-group[data-type="square"].is-auto-preview-open .sidebar-trigger { border-radius: 12px; background: rgba(15, 17, 25, 0.98); }
.sidebar-trigger::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent); transform: translateX(-100%); transition: transform 0.6s ease; pointer-events: none; /* Sécurité : l'effet visuel ne doit pas capter le survol */ }
.sidebar-trigger:hover { background: rgba(20, 22, 35, 0.8); border-color: rgba(108, 99, 255, 0.4); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); }
/* Hover-Only Open Logic */
.sidebar-section-group[data-type="square"]:hover .sidebar-collapsible-panel { max-height: 2000px; opacity: 1; transform: scale(1); filter: none; pointer-events: auto; z-index: 120; }
.sidebar-section-group[data-type="square"]:hover .sidebar-trigger { border-radius: 12px; border-color: rgba(108, 99, 255, 0.6); background: rgba(15, 17, 25, 0.98); }
.sidebar-section-group[data-type="square"]:hover { z-index: 200; /* MQ:MOBILE-768px (force 1col) */ }
/* Handle Click Lock (is-expanded) */
.sidebar-section-group[data-type="square"].is-expanded .sidebar-collapsible-panel, .sidebar-section-group[data-type="square"].is-auto-preview-open .sidebar-collapsible-panel { max-height: 2000px; opacity: 1; transform: scale(1); filter: none; pointer-events: auto; }
.sidebar-trigger:hover::before { transform: translateX(100%); }
.sidebar-trigger.is-active, .sidebar-section-group[data-type="square"].is-auto-preview-open .sidebar-trigger { border-color: rgba(108, 99, 255, 0.6); background: rgba(15, 17, 25, 0.98); box-shadow: 0 0 20px rgba(108, 99, 255, 0.2); }
.trigger-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; background: linear-gradient(to right, #6c63ff, #b066ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 8px rgba(108, 99, 255, 0.4); font-family: "Kanit", sans-serif; }
.trigger-icon-main, .sidebar-jmkoin-img { font-size: 1.5rem; color: #6c63ff; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sidebar-jmkoin-img { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)); transform: rotate(-90deg) translateZ(0); will-change: transform, filter; margin-bottom: -15px; margin-top: -13px; position: relative; z-index: 10; }
.sidebar-trigger:hover .trigger-icon-main, .sidebar-trigger:hover .sidebar-jmkoin-img { transform: scale(1.2); color: #fff; filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.5)); }
.sidebar-trigger:hover .sidebar-jmkoin-img { transform: rotate(-90deg) scale(1.15) translateZ(0); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7)); }
.sidebar-trigger.is-active .trigger-icon-main, .sidebar-trigger.is-active .sidebar-jmkoin-img { transform: scale(1.1); color: #fff; }
.sidebar-trigger.is-active .sidebar-jmkoin-img { transform: rotate(-90deg) scale(1.1); }
.trigger-icon { color: #6c63ff; font-size: 12px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); filter: drop-shadow(0 0 5px rgba(108, 99, 255, 0.5)); }
.sidebar-trigger.is-active .trigger-icon { transform: rotate(180deg); }
/* --- COLLAPSIBLE PANELS --- */
.sidebar-collapsible-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 280px; max-height: 0; opacity: 0; overflow: hidden; /* SPACE:MIN-12px (mobile safety) */ transition: max-height 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease-out, transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease-out, box-shadow 0.6s ease-out; background: rgba(15, 17, 25, 0.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 12px; border: 1px solid rgba(108, 99, 255, 0.3); transform: scale(0.95) translateY(-6px); transform-origin: top left; pointer-events: none; z-index: 50; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); will-change: max-height, opacity, transform; }
.sidebar-section-group[data-type="square"]:hover .sidebar-collapsible-panel, .sidebar-section-group[data-type="square"].is-expanded .sidebar-collapsible-panel, .sidebar-section-group[data-type="square"].is-auto-preview-open .sidebar-collapsible-panel { overflow: visible; /* Rétabli uniquement quand ouvert */ }
.sidebar-section-group[data-type="square"]:nth-child(even) .sidebar-collapsible-panel { left: auto; right: 0; transform-origin: top right; }
/* Si le bouton est seul (100% largeur), on recentre le panneau ou on s'assure qu'il ne dépasse pas */
.sidebar-section-group[data-type="square"]:only-child .sidebar-collapsible-panel { width: 100%; }
.sidebar-section-group:not([data-type="square"]) .sidebar-collapsible-panel { position: relative; top: auto; width: 100%; max-height: 40px; opacity: 0.25; filter: grayscale(1) blur(1px); transform: scale(0.98); transform-origin: top center; border-radius: 0 0 12px 12px; pointer-events: auto; border-color: rgba(255, 255, 255, 0.05); }
.sidebar-section-group:not([data-type="square"]).is-expanded .sidebar-collapsible-panel { max-height: 2000px; opacity: 1; filter: none; transform: scale(1); background: rgba(15, 17, 25, 0.8); }
.sidebar-section-group[data-type="square"].is-auto-preview-open .sidebar-collapsible-panel { transform: scale(1) translateY(0); opacity: 1; filter: none; }
.sidebar-section-group[data-type="square"].is-auto-preview-open .sidebar-trigger::before { transform: translateX(100%); }

@media (min-width: 1280px) {
  .sidebar-section-group[data-type="square"]::after {
    top: 0;
    bottom: 0;
    left: auto;
    right: 100%;
    width: 12px;
    height: auto;
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child .sidebar-collapsible-panel {
    top: 0;
    left: auto;
    right: calc(100% + 12px);
    transform-origin: top right;
    transform: scale(0.95) translateX(-8px);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child:hover .sidebar-collapsible-panel,
  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-expanded .sidebar-collapsible-panel,
  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-open .sidebar-collapsible-panel {
    top: 0;
    left: auto;
    right: calc(100% + 12px);
    transform: scale(1);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-open .sidebar-trigger {
    border-color: rgba(251, 191, 36, 0.56);
    background: rgba(15, 17, 25, 0.98);
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.08),
      0 0 22px rgba(251, 191, 36, 0.16),
      inset 0 0 18px rgba(251, 191, 36, 0.04),
      0 12px 30px rgba(0, 0, 0, 0.55);
    transition: background 1.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 1.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-open .trigger-label,
  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-closing .trigger-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    white-space: nowrap;
    line-height: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 242, 194, 0.96), rgba(251, 191, 36, 0.96) 55%, rgba(249, 115, 22, 0.88));
    color: #4b2e08;
    -webkit-text-fill-color: #4b2e08;
    -webkit-background-clip: initial;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 0 18px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: background 1.25s cubic-bezier(0.22, 1, 0.36, 1), color 1.25s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 1.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-open .sidebar-jmkoin-img {
    filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.86)) drop-shadow(0 0 30px rgba(249, 115, 22, 0.22));
    transform: rotate(-90deg) scale(1.22) translateZ(0);
    transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1), filter 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-open .sidebar-trigger.has-attention::after {
    background: #fbbf24;
    box-shadow: 0 0 12px #fbbf24;
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-open .sidebar-collapsible-panel {
    top: 0;
    left: auto;
    right: calc(100% + 12px);
    transform-origin: top right;
    transition: max-height 1.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease-out, transform 1.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s ease-out, box-shadow 0.85s ease-out;
    border-color: rgba(251, 191, 36, 0.26);
    background: rgba(10, 12, 18, 0.985);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.72), 0 0 32px rgba(251, 191, 36, 0.16), inset 0 0 30px rgba(251, 191, 36, 0.03);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-closing .sidebar-trigger {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(15, 17, 25, 0.98);
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.05),
      0 0 16px rgba(251, 191, 36, 0.1),
      inset 0 0 12px rgba(251, 191, 36, 0.03);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-closing .sidebar-collapsible-panel {
    top: 0;
    left: auto;
    right: calc(100% + 12px);
    transform-origin: top right;
    transition: max-height 0.68s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.68s ease-out, transform 0.68s cubic-bezier(0.22, 1, 0.36, 1), filter 0.68s ease-out, box-shadow 0.68s ease-out;
    opacity: 0;
    transform: scale(0.965) translateX(-14px);
    filter: blur(1.5px);
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(251, 191, 36, 0.08);
  }

  .sidebar-top-grid > .sidebar-section-group[data-type="square"]:first-child.is-auto-preview-open .sidebar-collapsible-panel .monthly-rewards-section .widget-ranking-rewards-monthly {
    border-color: rgba(251, 191, 36, 0.16);
    background: linear-gradient(180deg, rgba(20, 23, 33, 0.99), rgba(14, 16, 24, 0.99));
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.04), 0 20px 40px rgba(0, 0, 0, 0.48);
  }
}
/* --- ATTENTION (PASTILLE) --- */
.sidebar-trigger.has-attention::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: #6c63ff; border-radius: 50%; box-shadow: 0 0 10px #6c63ff; animation: attention-pulse 2s infinite; z-index: 20; }
@keyframes attention-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
/* --- HUD STATS (COMMUNITY) --- */
.community-hud-bar { display: flex; flex-direction: column; gap: 0.4rem; background: rgba(15, 17, 25, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 5px 11px; padding: 0.35rem 0.65rem; position: relative; z-index: 10; margin-bottom: 0.4rem; width: 100%; backdrop-filter: blur(3px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.community-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.community-stat-sub { display: flex; flex-direction: column; align-items: center; text-align: center; }
.community-stat-sub .community-stat-value { font-size: 1.3rem; text-shadow: 0 0 10px rgba(108, 99, 255, 0.3); }
.community-stat-value { font-weight: 900; line-height: 1; font-family: "Kanit", sans-serif; color: #fff; }
.community-stat-label { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.4; font-weight: 800; margin-top: 0.15rem; color: #9ca3af; }
/* --- BUTTON VFX (PLAY) --- */
.jgtr-btn-vfx { position: relative; background: rgba(20, 22, 35, 0.8); border: 1px solid rgba(108, 99, 255, 0.3); border-radius: 7px; padding: 0.75rem; overflow: hidden; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); text-decoration: none !important; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.btn-text-vfx { color: rgba(255, 255, 255, 0.7); font-family: "Kanit", sans-serif; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.035em; z-index: 5; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); transition: all 0.4s ease; }
.btn-icon-vfx { color: #6c63ff; z-index: 5; filter: drop-shadow(0 0 5px rgba(108, 99, 255, 0.3)); transition: all 0.4s ease; }
.btn-glow { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(108, 99, 255, 0.3), transparent 70%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.btn-flare { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent); transform: rotate(45deg) translateX(-100%); transition: transform 0.8s ease; pointer-events: none; }
/* --- INTERNAL WIDGET OVERRIDES (No block-in-block) --- */
.guild-benefactors-section .widget-guild-benefactor-display { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
.guild-benefactors-section .benefactor-card { background: rgba(15, 17, 25, 0.4) !important; border: 1px solid rgba(108, 99, 255, 0.2) !important; backdrop-filter: blur(8px) !important; }
.monthly-rewards-section .widget-ranking-rewards-monthly { background: transparent !important; border: none !important; box-shadow: none !important; }
.widget-ranking-sidebar .monthly-rewards-section .ranking-rewards-monthly__jmkoins-empty { display: none; }
.sidebar-jmkoins-empty-status { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 26px; box-sizing: border-box; margin-top: -0.1rem; padding: 0.3rem 0.55rem; border: 1px solid rgba(245, 158, 11, 0.14); border-radius: 5px 9px; background: rgba(2, 7, 20, 0.55); color: #778397; font: 800 8px/1 "JetBrains Mono", "Share Tech Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.sidebar-jmkoins-empty-status i { color: #f59e0b; font-size: 9px; opacity: 0.72; filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.28)); }
/* Official CTA Style (Orange) */
.player-hud-widget__cta { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: linear-gradient(135deg, #ea580c, #dc2626); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: #fff !important; font-size: 0.85rem; font-weight: 900; text-transform: uppercase; font-family: "Kanit", sans-serif; cursor: pointer !important; pointer-events: auto !important; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.player-hud-widget__cta:hover { background: linear-gradient(135deg, #f97316, #ef4444); transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5); }
.player-hud-widget__cta i { font-size: 0.9rem; }
/* Mobile Adjustments */
@media (max-width: 1279px) {
  .widget-ranking-sidebar { max-width: 400px; margin: 0 auto; }
  /* Top Grid spécifique Mobile */
  .sidebar-top-grid.is-mobile-top { display: flex; flex-direction: row; gap: 0.5rem; padding: 0.5rem 0; margin-bottom: 0.5rem; z-index: 1000; /* Très haut pour passer devant tout */ }
  .sidebar-top-grid.is-mobile-top .sidebar-section-group[data-type="square"] { flex: 1; width: calc(50% - 0.25rem); min-height: 70px; }
  .sidebar-top-grid.is-mobile-top .sidebar-section-group[data-type="square"].is-mobile-hero-pulse .sidebar-trigger {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(15, 17, 25, 0.98);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.05), 0 0 12px rgba(251, 191, 36, 0.1), inset 0 0 10px rgba(251, 191, 36, 0.025), 0 10px 22px rgba(0, 0, 0, 0.44);
    animation: rankings-mobile-hero-pulse 0.9s ease-in-out 4 both;
  }
  .sidebar-top-grid.is-mobile-top .sidebar-section-group[data-type="square"].is-mobile-hero-pulse .trigger-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    white-space: nowrap;
    line-height: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 242, 194, 0.96), rgba(251, 191, 36, 0.96) 55%, rgba(249, 115, 22, 0.88));
    color: #4b2e08;
    -webkit-text-fill-color: #4b2e08;
    -webkit-background-clip: initial;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 0 18px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .sidebar-top-grid.is-mobile-top .sidebar-section-group[data-type="square"].is-mobile-hero-pulse .sidebar-jmkoin-img {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.62)) drop-shadow(0 0 20px rgba(249, 115, 22, 0.16));
    animation: rankings-mobile-hero-icon-pulse 0.9s ease-in-out 4 both;
  }
  .sidebar-top-grid.is-mobile-top .sidebar-section-group[data-type="square"].is-mobile-hero-pulse .sidebar-trigger.has-attention::after {
    background: #fbbf24;
    box-shadow: 0 0 12px #fbbf24;
  }
  .sidebar-top-grid.is-mobile-top .sidebar-collapsible-panel { width: calc(200% + 0.5rem); /* Couvre la largeur des deux boutons */ max-width: 92vw; z-index: 2000; /* VISIBILITY:STRUCTURAL */ visibility: hidden; }
  .sidebar-top-grid.is-mobile-top .sidebar-section-group.is-expanded .sidebar-collapsible-panel, .sidebar-top-grid.is-mobile-top .sidebar-section-group:hover .sidebar-collapsible-panel { visibility: visible; }
  /* POSITION:CONSTRAINED */
  .sidebar-top-grid.is-mobile-top .sidebar-section-group:nth-child(odd) .sidebar-collapsible-panel { left: 0; transform-origin: top left; }
  .sidebar-top-grid.is-mobile-top .sidebar-section-group:nth-child(even) .sidebar-collapsible-panel { right: 0; left: auto; transform-origin: top right; }
  .widget-ranking-sidebar .sidebar-top-grid { display: none; }
  /* Ranked Action Mobile : Simple & Propre */
}
@keyframes rankings-mobile-hero-pulse {
  0% { border-color: rgba(251, 191, 36, 0.28); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.03), 0 0 6px rgba(251, 191, 36, 0.06), inset 0 0 8px rgba(251, 191, 36, 0.015), 0 8px 18px rgba(0, 0, 0, 0.34); transform: translateY(0) scale(0.995); }
  18% { border-color: rgba(251, 191, 36, 0.36); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.05), 0 0 10px rgba(251, 191, 36, 0.08), inset 0 0 10px rgba(251, 191, 36, 0.02), 0 9px 20px rgba(0, 0, 0, 0.38); transform: translateY(-0.25px) scale(0.998); }
  50% { border-color: rgba(251, 191, 36, 0.68); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.16), 0 0 22px rgba(251, 191, 36, 0.2), inset 0 0 16px rgba(251, 191, 36, 0.05), 0 11px 26px rgba(0, 0, 0, 0.5); transform: translateY(-1px) scale(1); }
  82% { border-color: rgba(251, 191, 36, 0.38); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.05), 0 0 10px rgba(251, 191, 36, 0.08), inset 0 0 10px rgba(251, 191, 36, 0.02), 0 9px 20px rgba(0, 0, 0, 0.38); transform: translateY(-0.25px) scale(0.998); }
  100% { border-color: rgba(251, 191, 36, 0.28); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.03), 0 0 6px rgba(251, 191, 36, 0.06), inset 0 0 8px rgba(251, 191, 36, 0.015), 0 8px 18px rgba(0, 0, 0, 0.34); transform: translateY(0) scale(0.995); }
}
@keyframes rankings-mobile-hero-icon-pulse {
  0% { transform: rotate(-90deg) scale(0.985) translateZ(0); filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.28)); }
  18% { transform: rotate(-90deg) scale(0.998) translateZ(0); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.46)); }
  50% { transform: rotate(-90deg) scale(1.16) translateZ(0); filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.62)) drop-shadow(0 0 20px rgba(249, 115, 22, 0.16)); }
  82% { transform: rotate(-90deg) scale(0.998) translateZ(0); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.46)); }
  100% { transform: rotate(-90deg) scale(0.985) translateZ(0); filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.28)); }
}
/* --- RANKED ACTION PANEL --- */
.sidebar-ranked-action { position: relative; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(108, 99, 255, 0.2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); background: rgba(2, 7, 20, 0.62); padding: 0.7rem; }
.action-link-wrapper { display: flex; flex-direction: column; gap: 0.55rem; text-decoration: none !important; height: 100%; width: 100%; cursor: pointer; }
/* On déclenche les effets du bouton quand on survole n'importe où sur la bannière */
.sidebar-ranked-action:hover .jgtr-btn-vfx { transform: translateY(-4px) scale(1.02); background: linear-gradient(135deg, #6c63ff 0%, #b066ff 100%); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4); }
.sidebar-ranked-action:hover .btn-text-vfx { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.sidebar-ranked-action:hover .btn-icon-vfx { color: #fff; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); transform: scale(1.2) rotate(10deg); }
.sidebar-ranked-action:hover .btn-flare { transform: rotate(45deg) translateX(100%); }
.sidebar-ranked-action:hover .btn-glow { opacity: 1; }
/* ANIM:BREATH-CALM (desktop only) */
@media (min-width: 1280px) {
  .sidebar-ranked-action { animation: promo-breathing-glow 6s ease-in-out 6s 2 both; }
  .hologram-value { animation: hologram-value-breathing 6s ease-in-out 6s 2 both; }
  /* ANIM:DISABLE-HOVER (no conflict) */
  .sidebar-ranked-action:hover, .sidebar-ranked-action:hover .hologram-value { animation: none !important; }
}
/* STATE:MOBILE-FULL */
@media (max-width: 1279px) {
  .hologram-value { opacity: 1 !important; }
}
@keyframes promo-breathing-glow {
  0%, 100% { border-color: rgba(108, 99, 255, 0.2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
  50% { border-color: rgba(108, 99, 255, 0.6); box-shadow: 0 0 25px rgba(108, 99, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5); }
}
.action-header { display: flex; flex-direction: column; align-items: center; padding-bottom: 0.25rem; border-bottom: 1px solid rgba(108, 99, 255, 0.1); }
/* Style Hologramme importé et adapté */
.hologram-stats-content { display: inline-block; font-family: "JetBrains Mono", "Share Tech Mono", monospace; font-size: 0.95rem; padding: 0.25rem 0.75rem; white-space: nowrap; transform: translate3d(0,0,0); }
.hologram-label { background: linear-gradient(to right, #6c63ff, #b066ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.8)) drop-shadow(0 0 15px rgba(176, 102, 255, 0.4)); letter-spacing: 0.05em; }
.hologram-value { color: #a7eaff; font-weight: 900; text-shadow: 0 0 2px #a7eaff,
        0 0 10px #71d9ff,
        0 0 20px #00F0FF; opacity: 0.5; /* Apaisé par défaut */ transition: opacity 0.6s ease; }
.sidebar-ranked-action:hover .hologram-value { opacity: 1; /* Pleine puissance au survol */ }
@keyframes hologram-value-breathing {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.hologram-cursor { display: none; }
@keyframes hologram-blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}
.action-content { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.sidebar-ranked-action:hover { transform: translateY(-4px) scale(1.01); border-color: rgba(108, 99, 255, 0.6); box-shadow: 0 0 30px rgba(108, 99, 255, 0.4),
        0 15px 45px rgba(0, 0, 0, 0.6); }
/* Contrainte d'aperçu cadeau sur mobile/tablette (max largeur d'aperçu) */
@media (max-width: 1279px) {
  .monthly-rewards-section .widget-ranking-rewards-monthly { max-width: 400px !important; width: 100% !important; margin: 0 auto !important; box-sizing: border-box !important; }
}
