/* ==========================================================================
   GAMES VIEW V2 - Premium Design System
   ========================================================================== */

:root {
    --game-card-bg: #ffffff;
    --game-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --game-sidebar-width: 420px;
}

[data-theme="dark"] {
    --game-card-bg: #1e293b;
    --game-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Grid System */
.games-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Premium Card Design */
.games-v2-card {
    position: relative;
    background: var(--game-card-bg);
    border-radius: 20px !important;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--game-card-shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden !important;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%;
    aspect-ratio: 1; /* Enforce square dimensions as requested */
}

.games-v2-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.2);
}

.games-v2-card-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-body);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    transition: transform 0.5s ease;
}

.games-v2-card:hover .games-v2-card-icon {
    transform: rotate(10deg);
}

.games-v2-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.games-v2-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1; /* Allow description to take available space */
}

.games-v2-card-decor {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    opacity: 0.03;
    transition: opacity 0.5s ease;
}

.games-v2-card:hover .games-v2-card-decor {
    opacity: 0.08;
}

/* No Leaderboard Ribbon */
.gc-no-leaderboard-ribbon {
    position: absolute;
    top: 0;
    right: 16px;
    width: 24px;
    height: 36px;
    background: #ef4444;
    opacity: 0.9;
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    font-size: 11px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

.gc-versus-ribbon {
    position: absolute;
    top: 0;
    right: 16px;
    width: 24px;
    height: 36px;
    background: #3b82f6;
    opacity: 0.9;
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    font-size: 11px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.gc-lab-ribbon {
    position: absolute;
    top: 0;
    right: 16px;
    width: 24px;
    height: 36px;
    background: #a855f7;
    opacity: 0.9;
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    font-size: 11px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
    box-shadow: 0 3px 8px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

/* Joker Ribbon */
.gc-joker-ribbon {
    position: absolute;
    top: 0;
    right: 16px;
    width: 24px;
    height: 36px;
    background: #22c55e;
    opacity: 0.9;
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    font-size: 11px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

/* Audio Ribbon */
.gc-audio-ribbon {
    position: absolute;
    top: 0;
    right: 16px;
    width: 24px;
    height: 36px;
    background: #ec4899; /* Pink 500 (Matches Admin) */
    opacity: 0.95;
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    font-size: 11px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
    box-shadow: 0 3px 8px rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
}

/* Ribbon Stacking Logic */
/* We calculate offsets by counting how many other ribbons might be present */
/* Order: No-Leaderboard -> Versus -> Joker -> Audio */

/* Versus offset */
.gc-no-leaderboard-ribbon ~ .gc-versus-ribbon {
    right: 48px; /* 16 + 24 + 8 gap */
}

/* Joker offset */
.gc-no-leaderboard-ribbon ~ .gc-joker-ribbon,
.gc-versus-ribbon ~ .gc-joker-ribbon {
    right: 48px;
}
.gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-joker-ribbon {
    right: 80px; /* 16 + 24*2 + 8*2 gap */
}

/* Audio offset */
.gc-no-leaderboard-ribbon ~ .gc-audio-ribbon,
.gc-versus-ribbon ~ .gc-audio-ribbon,
.gc-joker-ribbon ~ .gc-audio-ribbon {
    right: 48px;
}
.gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-audio-ribbon,
.gc-no-leaderboard-ribbon ~ .gc-joker-ribbon ~ .gc-audio-ribbon,
.gc-versus-ribbon ~ .gc-joker-ribbon ~ .gc-audio-ribbon {
    right: 80px;
}
.gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-joker-ribbon ~ .gc-audio-ribbon {
    right: 112px; /* 16 + 24*3 + 8*3 gap */
}

.gc-no-leaderboard-ribbon-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gc-no-leaderboard-ribbon-icon i {
    display: block;
    margin: 0;
}

.gc-no-leaderboard-ribbon .gc-no-leaderboard-ribbon-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 2px;
    background-color: white;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Sidebar Styling */
.games-v2-sidebar-card {
    background: var(--game-card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--game-card-shadow);
    overflow: hidden;
}

/* Demo Mode Banner — fixed to the viewport so it never gets clipped by a
   game's own `overflow: hidden` container, and never overlaps its internal UI. */
.game-demo-banner {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 10, 2, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.15);
    animation: demoBannerPulse 2s ease-in-out infinite;
}

.game-demo-banner-label {
    text-transform: uppercase;
}

.game-demo-banner-time {
    font-variant-numeric: tabular-nums;
    background: rgba(251, 191, 36, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
}

@keyframes demoBannerPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.15); }
    50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(251, 191, 36, 0.35); }
}

@media (max-width: 640px) {
    .game-demo-banner {
        top: 12px;
        right: 12px;
        left: 12px;
        justify-content: center;
        font-size: 12px;
    }
}

/* Modal Styling */
.iframe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.iframe-modal-container {
    background: transparent;
    border-radius: 32px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

[data-theme="dark"] .iframe-modal-container {
    background: transparent;
}

.iframe-modal-container.modal-type-chess {
    width: fit-content;
    height: fit-content;
    max-height: 95vh;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    border: none;
}

.iframe-modal-container.modal-type-dialed {
    width: 480px;
    height: 520px;
    background: #0a0a0a;
    border-radius: 24px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.06);
    border: none;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Free'Field — fond opaque identique au jeu : Firefox ne clip pas les iframes
   au border-radius comme Chrome, la backdrop bleue de l'overlay saigne à travers */
.iframe-modal-container.modal-type-simulator {
    background: #080c14;
    border-radius: 12px;
}

.iframe-modal-container.modal-type-cosmots {
    width: 520px;
    height: 90vh;
    max-height: 850px;
    background: #0a0015;
    border-radius: 24px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.2);
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.iframe-modal-container.modal-type-shmup {
    width: 540px;
    height: 740px;
    max-width: 96vw;
    max-height: 94vh;
    background: #010309;
    border-radius: 20px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.3);
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.iframe-modal-container.modal-type-botquest {
    width: 520px;
    height: 875px;
    max-width: 96vw;
    max-height: 95vh;
    background: #070b14;
    border-radius: 20px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.25);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
    .iframe-modal-container.modal-type-cosmots,
    .iframe-modal-container.modal-type-shmup,
    .iframe-modal-container.modal-type-botquest {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
}

@keyframes modalPop {
    0% { transform: scale(0.92) translateY(16px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}


/* Hide scrollbar for Constellations tab */
.game-center-layout.stellar-tab-active .dashboard-main {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game-center-layout.stellar-tab-active .dashboard-main::-webkit-scrollbar {
    display: none;
}

/* --- ADMIN V2 STYLES --- */
.admin-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .admin-row {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* ========================================
   GAME CENTER ADMIN - FLAT DESIGN V3
   ======================================== */

/* --- Layout --- */
.gc-admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .gc-admin-layout {
        grid-template-columns: 1fr;
    }
}

.gc-admin-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Panel --- */
.gc-admin-panel {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
}

[data-theme="dark"] .gc-admin-panel {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-body, #f8fafc);
}

[data-theme="dark"] .gc-admin-panel-header {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-panel-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-admin-panel-header h3 i {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Search --- */
.gc-admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .gc-admin-search {
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-search i {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.gc-admin-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-main);
    width: 100%;
}

.gc-admin-search input::placeholder {
    color: var(--text-muted);
}

/* --- Hub List --- */
.gc-admin-hub-list {
    max-height: 480px;
    overflow-y: auto;
}

.gc-admin-hub-group {
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .gc-admin-hub-group {
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-hub-group:last-child {
    border-bottom: none;
}

.gc-admin-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.gc-admin-hub-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}

.gc-admin-hub-title i {
    color: var(--text-muted);
    font-size: 1rem;
}

.gc-admin-hub-count {
    background: var(--bg-body, #f1f5f9);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

[data-theme="dark"] .gc-admin-hub-count {
    background: rgba(255, 255, 255, 0.08);
}

.gc-admin-hub-header>i {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- User List --- */
.gc-admin-user-list {
    background: var(--bg-body, #f8fafc);
}

[data-theme="dark"] .gc-admin-user-list {
    background: rgba(15, 23, 42, 0.2);
}

.gc-admin-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 32px;
    cursor: pointer;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .gc-admin-user-item {
    border-color: rgba(255, 255, 255, 0.04);
}

.gc-admin-user-item.active {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .gc-admin-user-item.active {
    background: rgba(59, 130, 246, 0.15);
}

/* --- User Avatar --- */
.gc-admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

[data-theme="dark"] .gc-admin-user-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.gc-admin-user-avatar.lg {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
    border-radius: 10px;
    background: #3b82f6;
    color: white;
}

/* --- User Info --- */
.gc-admin-user-info {
    flex: 1;
    min-width: 0;
}

.gc-admin-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-admin-user-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- Role Badge --- */
.gc-admin-role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}

[data-theme="dark"] .gc-admin-role-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.gc-admin-role-badge.super_admin {
    background: #fef2f2;
    color: #dc2626;
}

.gc-admin-role-badge.sector_manager {
    background: #eff6ff;
    color: #2563eb;
}

.gc-admin-role-badge.coordinator {
    background: #f0fdf4;
    color: #16a34a;
}

[data-theme="dark"] .gc-admin-role-badge.super_admin {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

[data-theme="dark"] .gc-admin-role-badge.sector_manager {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .gc-admin-role-badge.coordinator {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

/* --- Empty State --- */
.gc-admin-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
}

.gc-admin-empty i {
    font-size: 2rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 8px;
}

.gc-admin-empty p {
    font-size: 0.82rem;
    margin: 0;
}

/* --- Revoke Button --- */
.gc-admin-revoke-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0.4;
    transition: opacity 0.15s, color 0.15s;
}

.gc-admin-revoke-btn:hover {
    opacity: 1;
    color: #dc2626;
}

/* --- Adjust Card --- */
.gc-admin-adjust-card {
    padding: 20px;
}

.gc-admin-adjust-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gc-admin-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 6px;
}

.gc-admin-adjust-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .gc-admin-adjust-form {
        grid-template-columns: 1fr;
    }
}

.gc-admin-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* --- Input --- */
.gc-admin-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-body, #f8fafc);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}

[data-theme="dark"] .gc-admin-input {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

.gc-admin-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.gc-admin-input.sm {
    padding: 6px 8px;
    font-size: 0.8rem;
    width: 70px;
    text-align: center;
}

/* --- Submit Button --- */
.gc-admin-submit {
    width: 100%;
    margin: 0;
    border-radius: 0 0 14px 14px !important;
    padding: 12px !important;
    font-size: 0.85rem;
}

/* --- Costs List --- */
.gc-admin-costs-list {
    padding: 8px 0;
}

.gc-admin-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

[data-theme="dark"] .gc-admin-cost-row {
    border-color: rgba(255, 255, 255, 0.04);
}

.gc-admin-cost-row:last-child {
    border-bottom: none;
}

.gc-admin-cost-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.gc-admin-cost-info i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gc-admin-cost-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-admin-cost-unit {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- Date Row --- */
.gc-admin-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
}

.gc-admin-date-row .gc-admin-input {
    flex: 1;
}

/* --- History Panel --- */
.gc-admin-history-panel {
    margin-top: 1.5rem;
}

.gc-admin-history-scroll {
    overflow-x: auto;
}

/* --- Admin Tabs --- */
.gc-admin-tabs {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 1.5rem;
    gap: 16px;
    min-height: 48px;
    box-sizing: border-box;
}

[data-theme="dark"] .gc-admin-tabs {
    border-color: rgba(255, 255, 255, 0.1);
}

.gc-admin-tabs-left {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.gc-admin-tabs-right {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    align-self: flex-end;
}

.gc-admin-tabs-right .gc-customization-tabs {
    padding: 3px 5px;
    border-radius: 12px;
    gap: 6px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .gc-admin-tabs-right .gc-customization-tabs {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(45, 27, 78, 0.45) 100%);
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gc-admin-tabs-right .gc-cust-tab-btn {
    padding: 6px 13px;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.25;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

/* Onglet Cadres (Bleu / Indigo) */
.gc-cust-tab-btn.tab-frames {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.07);
}
.gc-cust-tab-btn.tab-frames i {
    color: #2563eb;
    font-size: 1rem;
    transition: color 0.2s ease;
}
.gc-cust-tab-btn.tab-frames:hover {
    background: rgba(37, 99, 235, 0.16);
    color: #1d4ed8;
}
[data-theme="dark"] .gc-cust-tab-btn.tab-frames {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.14);
}
[data-theme="dark"] .gc-cust-tab-btn.tab-frames i {
    color: #60a5fa;
}
[data-theme="dark"] .gc-cust-tab-btn.tab-frames:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #ffffff;
}

.gc-cust-tab-btn.tab-frames.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.4) !important;
}
.gc-cust-tab-btn.tab-frames.active i {
    color: #ffffff !important;
}
.gc-cust-tab-btn.tab-frames.active .gc-cust-tab-count {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}

/* Onglet Badges & Titres (Or / Ambre) */
.gc-cust-tab-btn.tab-badges {
    color: #d97706;
    background: rgba(245, 158, 11, 0.08);
}
.gc-cust-tab-btn.tab-badges i {
    color: #f59e0b;
    font-size: 1rem;
    transition: color 0.2s ease;
}
.gc-cust-tab-btn.tab-badges:hover {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}
[data-theme="dark"] .gc-cust-tab-btn.tab-badges {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.15);
}
[data-theme="dark"] .gc-cust-tab-btn.tab-badges i {
    color: #fbbf24;
}
[data-theme="dark"] .gc-cust-tab-btn.tab-badges:hover {
    background: rgba(245, 158, 11, 0.28);
    color: #ffffff;
}

.gc-cust-tab-btn.tab-badges.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 12px rgba(217, 119, 6, 0.4) !important;
}
.gc-cust-tab-btn.tab-badges.active i {
    color: #ffffff !important;
}
.gc-cust-tab-btn.tab-badges.active .gc-cust-tab-count {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}
.gc-cust-tab-btn.tab-badges.active .gc-cust-tab-lock {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 860px) {
    .gc-admin-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        min-height: auto;
    }
    .gc-admin-tabs-right {
        width: 100%;
        margin-bottom: 8px;
        overflow-x: auto;
    }
}

.gc-admin-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

[data-theme="dark"] .gc-admin-tab {
    color: #94a3b8;
}

.gc-admin-tab:hover {
    color: var(--text-main, #1e293b);
}

[data-theme="dark"] .gc-admin-tab:hover {
    color: #e2e8f0;
}

.gc-admin-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

[data-theme="dark"] .gc-admin-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

.gc-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.gc-admin-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-body, #f8fafc);
}

[data-theme="dark"] .gc-admin-table th {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-table td {
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

[data-theme="dark"] .gc-admin-table td {
    border-color: rgba(255, 255, 255, 0.04);
}

.gc-admin-table tr:last-child td {
    border-bottom: none;
}

.gc-admin-td-muted {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

.gc-admin-td-bold {
    font-weight: 700;
}

/* --- Badge --- */
.gc-admin-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.gc-admin-badge.positive {
    background: #ecfdf5;
    color: #059669;
}

.gc-admin-badge.negative {
    background: #fef2f2;
    color: #dc2626;
}

[data-theme="dark"] .gc-admin-badge.positive {
    background: rgba(5, 150, 105, 0.12);
    color: #34d399;
}

[data-theme="dark"] .gc-admin-badge.negative {
    background: rgba(220, 38, 38, 0.12);
    color: #f87171;
}

/* ========================================
   LEADERBOARD V2
   ======================================== */

.lb-v2 {
    background: transparent;
    padding: 0;
}

/* --- Controls --- */
.lb-v2-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.lb-v2-games {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lb-v2-game-btn {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.lb-v2-game-btn:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.lb-v2-game-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.lb-v2-scope {
    display: flex;
    background: var(--bg-body);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.lb-v2-scope-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-v2-scope-btn:hover {
    color: var(--text-main);
}

.lb-v2-scope-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- Empty State --- */
.lb-v2-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.lb-v2-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* --- Podium --- */
.lb-v2-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.lb-v2-podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 30px;
    text-align: center;
    width: 280px;
    min-height: 220px;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--game-card-shadow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lb-v2-podium-card.gold {
    order: 2;
    transform: scale(1.15);
    border-color: rgba(234, 179, 8, 0.4);
    background: linear-gradient(to bottom, rgba(234, 179, 8, 0.15), rgba(var(--bg-rgb, 0, 0, 0), 0.1));
    z-index: 2;
    padding: 32px 20px;
}

[data-theme="dark"] .lb-v2-podium-card.gold {
    background: linear-gradient(to bottom, rgba(234, 179, 8, 0.15), rgba(0, 0, 0, 0.4));
}

.lb-v2-podium-card.silver {
    order: 1;
    border-color: rgba(148, 163, 184, 0.3);
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.1), rgba(var(--bg-rgb, 0, 0, 0), 0.05));
}

[data-theme="dark"] .lb-v2-podium-card.silver {
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.1), rgba(0, 0, 0, 0.3));
}

.lb-v2-podium-card.bronze {
    order: 3;
    border-color: rgba(217, 119, 6, 0.3);
    background: linear-gradient(to bottom, rgba(217, 119, 6, 0.1), rgba(var(--bg-rgb, 0, 0, 0), 0.05));
}

[data-theme="dark"] .lb-v2-podium-card.bronze {
    background: linear-gradient(to bottom, rgba(217, 119, 6, 0.1), rgba(0, 0, 0, 0.3));
}

.lb-v2-podium-rank {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.1;
    position: absolute;
    top: 12px;
    right: 16px;
}

.lb-v2-podium-crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    color: #eab308;
    filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.6));
}

.lb-v2-podium-avatar {
    width: 64px;
    height: 64px;
    background: var(--bg-body);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.lb-v2-podium-avatar.gold {
    background: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    width: 72px;
    height: 72px;
}

.lb-v2-podium-avatar.silver {
    background: #94a3b8;
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.3);
}

.lb-v2-podium-avatar.bronze {
    background: #d97706;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

.lb-v2-podium-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
    width: 100%;
}

.lb-v2-podium-hub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 600;
    width: 100%;
}

.lb-v2-podium-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.lb-v2-podium-score small {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- List --- */
.lb-v2-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.lb-v2-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--game-card-shadow);
}

.lb-v2-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01) translateX(5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.lb-v2-row-rank {
    width: 30px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.5;
}

.lb-v2-row-avatar {
    width: 42px;
    height: 42px;
    background: var(--bg-body);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.lb-v2-row-info {
    flex: 1;
}

.lb-v2-row-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 2px;
}

.lb-v2-row-hub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lb-v2-row-score {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

.lb-v2-row-score small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .lb-v2-podium {
        gap: 0.5rem;
    }

    .lb-v2-podium-card {
        padding: 12px 8px;
        width: 100px;
    }

    .lb-v2-podium-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .lb-v2-podium-name {
        font-size: 0.8rem;
    }

    .lb-v2-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================
   Cover Image Mode Styling
   ============================ */
.games-v2-card.has-cover {
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 20px !important;
    overflow: hidden !important;
    isolation: isolate;
}

.games-v2-card.has-cover .game-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.games-v2-card.has-cover:hover .game-cover-img {
    transform: scale(1.1);
}

.games-v2-card.has-cover .game-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 16px;
    text-align: center;
}

.games-v2-card.has-cover:hover .game-cover-overlay {
    opacity: 1;
}

.games-v2-card.has-cover .play-text {
    color: white;
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transform: translateY(10px);
    transition: transform 0.25s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    z-index: 2;
    cursor: pointer;
}

[data-skin="cyberpunk"][data-theme="dark"] .play-text {
    color: #010103 !important; /* Noir sur Jaune */
}

.games-v2-card.has-cover:hover .play-text {
    transform: translateY(0);
}

.games-v2-card.has-cover .play-text:hover {
    transform: scale(1.05) !important;
}

/* --- Buy Text (Hover) --- */
.buy-text {
    color: white;
    font-size: 1.02rem;
    font-weight: 800;
    background: #10b981;
    /* Emerald-500 */
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(10px);
    transition: transform 0.25s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    cursor: pointer;
}

[data-skin="cyberpunk"][data-theme="dark"] .buy-text {
    color: #010103 !important;
}

.games-v2-card.has-cover:hover .buy-text {
    transform: translateY(0);
}

.buy-text:hover {
    background: #059669;
    /* Emerald-600 */
    transform: scale(1.05) !important;
}

/* --- Rangée d'actions secondaires (Essayer / Résumé & Infos) --- */
.gc-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    transform: translateY(10px);
    transition: transform 0.25s ease;
    z-index: 2;
}

.games-v2-card.has-cover:hover .gc-secondary-actions {
    transform: translateY(0);
}

/* --- Bouton Résumé & Infos --- */
.gc-synopsis-pill {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gc-synopsis-pill:hover {
    background: rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.06);
}

/* --- Bouton Acheter (même gabarit compact que les pills secondaires) --- */
.gc-buy-pill {
    background: rgba(16, 185, 129, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #6ee7b7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gc-buy-pill:hover {
    background: rgba(16, 185, 129, 0.35);
    border-color: #10b981;
    color: #ffffff;
    transform: scale(1.06);
}

/* --- Demo Trial Pill (Boutique) --- */
.gc-demo-pill {
    background: rgba(251, 191, 36, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fcd34d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gc-demo-pill:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: #fbbf24;
    color: #fff8e1;
    transform: scale(1.06);
}

/* --- Game Info Pop-up Modal --- */
.gc-game-info-modal {
    max-width: 540px;
    width: 92%;
    border-radius: 20px !important;
    background: #0f172a !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85) !important;
    overflow: hidden !important;
    padding: 0 !important;
    isolation: isolate;
}

.gc-game-info-header {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #020617;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.gc-game-info-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) blur(1px);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.games-v2-card.has-cover .gc-lock-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* --- Price Badge (Always Visible) --- */
.game-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: #fbbf24;
    /* Amber-400 */
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.game-price-badge i {
    font-size: 1rem;
}

/* Neon theme override for price badge */
[data-skin="cyberpunk"][data-theme="dark"] .game-price-badge {
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(252, 238, 9, 0.7);
    color: #fcee09;
    box-shadow: 0 4px 10px rgba(252, 238, 9, 0.2), inset 0 1px 0 rgba(252, 238, 9, 0.3);
}

/* --- Shake Error Animation --- */
@keyframes shake-card {

    0%,
    100% {
        transform: scale(1.02) translateX(0);
    }

    15%,
    45%,
    75% {
        transform: scale(1.02) translateX(-4px);
    }

    30%,
    60%,
    90% {
        transform: scale(1.02) translateX(4px);
    }
}

.shake-error {
    animation: shake-card 0.4s cubic-bezier(.36, .07, .19, .97) both;
    border-color: #ef4444 !important;
    /* Red-500 */
    box-shadow: 0 0 0 1px #ef4444, 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

.active-game-pulse {
    border: 2px solid #3b82f6 !important;
    animation: active-game-glow 2s infinite;
    cursor: pointer;
}

@keyframes active-game-glow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
    }
}

/* ==========================================================================
   PREMIUM ACTIVE GAME BANNER
   ========================================================================== */
.active-game-banner-premium.compact {
    min-height: auto;
    /* Much smaller */
    padding: 1.5rem 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.active-game-banner-premium.compact .banner-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 2;
    padding: 0;
}

.banner-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.active-game-banner-premium.compact .banner-title {
    font-size: 1.25rem;
    margin: 0;
}

.turn-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    width: fit-content;
}

.turn-indicator.my-turn {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
}

.active-game-banner-premium.compact .banner-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.btn-resume-match {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #1e293b;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-resume-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-forfeit-match {
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-forfeit-match:hover {
    background: #ef4444;
    color: #fff;
}

/* Live Games Mini Section */
.live-games-mini-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    width: max-content;
    max-width: 100%;
}

[data-theme="dark"] .live-games-mini-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.9));
    border-color: rgba(255, 255, 255, 0.15);
}

.section-header-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-header-mini h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

[data-theme="dark"] .section-header-mini h2 {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;

    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.live-games-container-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.live-game-card-mini {
    position: relative;
    padding: 1rem 1.5rem;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    color: white;
}

[data-theme="dark"] .live-game-card-mini {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.live-game-card-mini:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
}

.live-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.p-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    max-width: 90px;
    word-wrap: break-word;
    text-align: center;
}

.p-name .p-first {
    font-size: 0.85rem;
}

.p-name .p-last {
    font-size: 0.70rem;
    opacity: 0.8;
}

.vs-label {
    font-size: 0.65rem;
    opacity: 0.3;
    font-style: italic;
}

.spectate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(147, 51, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.live-game-card-mini:hover .spectate-overlay {
    opacity: 1;
    transform: translateY(0);
}

.active-game-banner-premium {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

[data-theme="dark"] .active-game-banner-premium {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(88, 28, 135, 0.3));
    border-color: rgba(255, 255, 255, 0.05);
}

.active-game-banner-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.banner-bg-overlay {
    position: absolute;
    inset: 0;
    background: url('/assets/images/gameposter/Proxchess.png') center/cover no-repeat;
    opacity: 0.3;
    filter: blur(4px);
    mix-blend-mode: overlay;
    z-index: 0;
    transition: all 0.6s ease;
}

.active-game-banner-premium:hover .banner-bg-overlay {
    opacity: 0.2;
    transform: scale(1.1);
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    padding: 32px;
    gap: 32px;
}

.banner-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: fit-content;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px 0;
    max-width: 500px;
}

.banner-btn-primary {
    background: white;
    color: #1e293b;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .banner-btn-primary {
    background: var(--primary);
    color: white;
}

.banner-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.banner-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.banner-preview-card {
    width: 240px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.active-game-banner-premium:hover .banner-preview-card {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.banner-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .banner-right {
        display: none;
    }

    .banner-title {
        font-size: 1.7rem;
    }

    .banner-content {
        padding: 24px;
    }
}

/* ========================================
   CYBERPUNK THEME (Neon) OVERRIDES
   ======================================== */
/* Neon Cards - solid yellow border with beveled corners */
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card,
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.unlocked,
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.has-cover {
    background: var(--bg-card) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    overflow: hidden;
    filter: none;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.locked {
    filter: grayscale(0.8);
    opacity: 0.8;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.locked.affordable {
    filter: grayscale(0.2);
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.locked:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Pseudo-element for visible border */
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.has-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #fcee09;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    pointer-events: none;
    z-index: 3;
    transition: border-color 0.3s ease;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.has-cover:hover::before {
    border-color: #00f3ff;
}

/* Corner border lines for beveled corners */
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.has-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        linear-gradient(135deg, transparent calc(50% - 1px), #fcee09 calc(50% - 1px), #fcee09 calc(50% + 1px), transparent calc(50% + 1px)) top left / 20px 20px no-repeat,
        linear-gradient(-45deg, transparent calc(50% - 1px), #fcee09 calc(50% - 1px), #fcee09 calc(50% + 1px), transparent calc(50% + 1px)) bottom right / 20px 20px no-repeat;
    transition: background-color 0.3s ease;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.has-cover:hover::after {
    background:
        linear-gradient(135deg, transparent calc(50% - 1px), #00f3ff calc(50% - 1px), #00f3ff calc(50% + 1px), transparent calc(50% + 1px)) top left / 20px 20px no-repeat,
        linear-gradient(-45deg, transparent calc(50% - 1px), #00f3ff calc(50% - 1px), #00f3ff calc(50% + 1px), transparent calc(50% + 1px)) bottom right / 20px 20px no-repeat;
}

/* Ensure ALL internal images follow the same clip-path and fill the card exactly */
[data-skin="cyberpunk"][data-theme="dark"] .game-cover-img,
[data-skin="cyberpunk"][data-theme="dark"] .game-cover-overlay {
    position: absolute !important;
    inset: 0 !important; /* Fill parent exactly (border is on parent) */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    clip-path: none !important;
    mask-image: none !important;
}

/* Force consistency on hover */
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card:hover .game-cover-img,
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card:hover .game-cover-overlay {
    inset: 0 !important;
}

/* Ensure the overlay is always on top of the image */
[data-skin="cyberpunk"][data-theme="dark"] .game-cover-overlay {
    z-index: 2 !important;
}

/* Fix for ribbons positioning (Avoid bevel and vertical stacking) */
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-versus-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-joker-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-audio-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-lab-ribbon {
    position: absolute !important;
    top: 0 !important;
    z-index: 20 !important;
    height: 48px !important;
}

/* Vertical Stacking for Neon Ribbons */
/* No-Leaderboard: cote droit */
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Versus: cote droit */
[data-skin="cyberpunk"][data-theme="dark"] .gc-versus-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Joker: cote droit */
[data-skin="cyberpunk"][data-theme="dark"] .gc-joker-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Audio: cote droit */
[data-skin="cyberpunk"][data-theme="dark"] .gc-audio-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Lab: cote droit */
[data-skin="cyberpunk"][data-theme="dark"] .gc-lab-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Stacking rules for Neon */
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon ~ .gc-versus-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon ~ .gc-joker-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-versus-ribbon ~ .gc-joker-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon ~ .gc-audio-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-versus-ribbon ~ .gc-audio-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-joker-ribbon ~ .gc-audio-ribbon {
    right: 68px !important;
}

/* Si les 3 banderoles sont presentes */
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-joker-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-audio-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon ~ .gc-joker-ribbon ~ .gc-audio-ribbon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-versus-ribbon ~ .gc-joker-ribbon ~ .gc-audio-ribbon {
    right: 112px !important;
}

/* Si les 4 banderoles sont presentes */
[data-skin="cyberpunk"][data-theme="dark"] .gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-joker-ribbon ~ .gc-audio-ribbon {
    right: 156px !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card:hover,
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.unlocked:hover,
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card.has-cover:hover {
    transform: translateY(-5px);
}

/* Border styles are now handled by box-shadow on card itself */

/* Ensure content stays above the ::before background */
[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card > :not(.gc-no-leaderboard-ribbon):not(.gc-versus-ribbon):not(.gc-joker-ribbon):not(.game-price-badge) {
    position: relative;
    z-index: 2;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card-title {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.3rem;
    padding: 0 24px; /* Padding only for text */
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card-desc {
    padding: 0 24px 24px 24px; /* Padding for text description */
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card-icon {
    margin-bottom: 1rem;
    padding: 24px 24px 0 24px;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card-icon {
    background: linear-gradient(rgba(252, 238, 9, 0.1), rgba(252, 238, 9, 0.1)) padding-box,
                linear-gradient(rgba(252, 238, 9, 0.3), rgba(252, 238, 9, 0.3)) border-box;
    border: 1px solid transparent;
    color: var(--primary) !important;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    border-radius: 0;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-play-btn {
    background: var(--primary);
    color: #000000 !important;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 2px;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    border: 1px solid transparent;
}

/* Force children color if any */
[data-skin="cyberpunk"][data-theme="dark"] .gc-play-btn span, 
[data-skin="cyberpunk"][data-theme="dark"] .gc-play-btn i {
    color: #000000 !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .games-v2-card-decor i {
    color: var(--primary);
    opacity: 0.1;
}

/* Custom Giga Balance for Neon */
[data-skin="cyberpunk"][data-theme="dark"] .gc-balance {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(252, 238, 9, 0.5);
}

/* Cyberpunk Library Title Styling */
[data-skin="cyberpunk"][data-theme="dark"] .gc-header h1 {
    font-family: 'Cyberpunk', sans-serif !important;
    color: #fcee09 !important;
    -webkit-text-fill-color: #fcee09 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 3rem;
    text-shadow: 3px 3px 0 #00f3ff, -3px -3px 0 #ff00ff;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-header p {
    color: var(--primary);
    opacity: 0.8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-nav-item.active {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, transparent 100%);
    color: var(--info);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-user-card {
    background: var(--bg-body-secondary);
    border: 1px solid rgba(252, 238, 9, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-avatar {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(252, 238, 9, 0.3);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-info-box {
    background: rgba(0, 243, 255, 0.03);
    border-left: 3px solid var(--info);
    color: var(--text-main);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-info-box strong {
    color: var(--primary);
}

[data-skin="cyberpunk"][data-theme="dark"] .btn-primary {
    background: var(--primary);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(252, 238, 9, 0.3);
}

[data-skin="cyberpunk"][data-theme="dark"] .btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(252, 238, 9, 0.5);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-header h1,
[data-skin="cyberpunk"][data-theme="dark"] .cyberpunk-title {
    font-family: 'Cyberpunk', sans-serif !important;
    color: #fcee09 !important;
    -webkit-text-fill-color: #fcee09 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important; /* Jaune Cyberpunk pur */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 
        3px 3px 0 var(--info),
        -3px -3px 0 var(--secondary);
    animation: none !important;
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   FREEFIELD V2 (Bêta) CSS STYLES
   ========================================================================== */

.freefield-v2-main-view {
    display: flex;
    width: 100%;
    height: 100%;
    background: #080c14;
    overflow: hidden;
    color: #c8d8f0;
    font-family: 'Exo 2', sans-serif;
}

.freefield-v2-main-view * {
    box-sizing: border-box;
}

/* --- HUD --- */
.freefield-v2-main-view .hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(13, 20, 34, 0.97);
    border: 1px solid #1e2d4a;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    width: 100%;
    margin-bottom: 15px;
}

.freefield-v2-main-view .hud-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: #d40000;
    transform: skewX(-8deg);
}
.freefield-v2-main-view .hud-logo span {
    color: #fbbf24;
    font-size: 0.9rem;
    font-style: normal;
    vertical-align: super;
}

.freefield-v2-main-view .si-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
}

.freefield-v2-main-view .si-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.5;
}

.freefield-v2-main-view .si-val {
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- Plots Grid --- */
.freefield-v2-main-view .plots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 5 / 4;
}

@media (max-width: 768px) {
    .freefield-v2-main-view .plots-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(5, 1fr);
        aspect-ratio: 4 / 5;
    }
}

.freefield-v2-main-view .plot {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1px solid #1e2d4a;
    background: #0d1422;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.freefield-v2-main-view .plot:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.freefield-v2-main-view .plot.empty {
    border-style: dashed;
    border-color: #1e2d4a;
}
.freefield-v2-main-view .plot.empty .plus {
    font-size: 1.5rem;
    color: #4a6080;
}
.freefield-v2-main-view .plot.empty .label {
    font-size: 0.65rem;
    color: #4a6080;
    text-transform: uppercase;
}

.freefield-v2-main-view .plot.locked {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
}

.freefield-v2-main-view .plot.ready {
    border-color: currentColor !important;
    animation: ready-pulse-v2 1.5s ease-out infinite;
}
@keyframes ready-pulse-v2 {
    0%, 100% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 20px currentColor; }
}

.freefield-v2-main-view .plot-trait {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    z-index: 5;
}

.freefield-v2-main-view .sim-display {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 4px;
}

.freefield-v2-main-view .sim-card-visual {
    width: 36px;
    height: 48px;
    margin-bottom: 4px;
}

.freefield-v2-main-view .sim-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.freefield-v2-main-view .sim-type {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.freefield-v2-main-view .growth-progress-container {
    width: 80%;
    margin-top: 4px;
}

.freefield-v2-main-view .progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.freefield-v2-main-view .progress-bar-fill {
    height: 100%;
    background: currentColor;
    transition: width 0.3s;
}

.freefield-v2-main-view .progress-val {
    font-size: 0.55rem;
    color: #8892b0;
    margin-top: 2px;
    text-align: center;
}

.freefield-v2-main-view .time-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

/* --- Sidebar --- */
.freefield-v2-main-view .sidebar {
    width: 320px;
    background: #0d1422;
    border-left: 1px solid #1e2d4a;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
}

.freefield-v2-main-view .sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #1e2d4a;
    background: #080c14;
}

.freefield-v2-main-view .sidebar-tabs button {
    flex: 1;
    padding: 12px 6px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #4a6080;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.freefield-v2-main-view .sidebar-tabs button.active {
    color: #c8d8f0;
    border-bottom-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.freefield-v2-main-view .sidebar-tabs button:hover:not(.active) {
    color: #c8d8f0;
    background: rgba(255,255,255,0.02);
}

.freefield-v2-main-view .sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.freefield-v2-main-view .tab-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Shop & Inventory Items --- */
.freefield-v2-main-view .sim-shop-item,
.freefield-v2-main-view .inventory-item,
.freefield-v2-main-view .upgrade-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #111a2e;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}

.freefield-v2-main-view .sim-shop-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
}

.freefield-v2-main-view .left-bar {
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.freefield-v2-main-view .sim-mini {
    flex-shrink: 0;
    color: currentColor;
}

.freefield-v2-main-view .shop-info,
.freefield-v2-main-view .plan-info,
.freefield-v2-main-view .upg-info {
    flex: 1;
    min-width: 0;
}

.freefield-v2-main-view .sim-name-row,
.freefield-v2-main-view .plan-name,
.freefield-v2-main-view .upg-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.freefield-v2-main-view .shop-meta,
.freefield-v2-main-view .plan-badge,
.freefield-v2-main-view .upg-desc {
    font-size: 0.65rem;
    color: #8892b0;
    margin-top: 2px;
}

.freefield-v2-main-view .shop-right,
.freefield-v2-main-view .plan-val,
.freefield-v2-main-view .upg-buy-btn {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.freefield-v2-main-view .sim-cost-dyn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
}

.freefield-v2-main-view .sim-roi {
    font-size: 0.6rem;
    font-weight: 700;
}

.freefield-v2-main-view .inv-actions {
    display: flex;
    gap: 4px;
}

.freefield-v2-main-view .inv-icon-btn {
    background: #080c14;
    border: 1px solid #1e2d4a;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.freefield-v2-main-view .inv-icon-btn:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
}

.freefield-v2-main-view .inv-icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Toast --- */
.freefield-v2-main-view .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #111a2e;
    border: 1px solid #1e2d4a;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3000;
    transition: all 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.freefield-v2-main-view .toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* --- Upgrades --- */
.freefield-v2-main-view .upgrade-item {
    gap: 12px;
}
.freefield-v2-main-view .upg-icon {
    font-size: 1.5rem;
}
.freefield-v2-main-view .upg-lvl {
    font-size: 0.6rem;
    background: rgba(255,255,255,0.1);
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 5px;
}
.freefield-v2-main-view .upg-buy-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}
.freefield-v2-main-view .upg-buy-btn:disabled {
    background: #1e2d4a;
    color: #4a6080;
    cursor: not-allowed;
}

/* --- Seed Details Modal --- */
.freefield-v2-main-view .seed-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    backdrop-filter: blur(4px);
}
.freefield-v2-main-view .seed-detail-modal {
    background: #0d1422;
    border: 1px solid #1e2d4a;
    border-radius: 16px;
    width: 480px;
    max-width: 90%;
    padding: 20px;
}
.freefield-v2-main-view .sdm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #1e2d4a;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.freefield-v2-main-view .sdm-rarity {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}
.freefield-v2-main-view .sdm-name {
    font-size: 1.2rem;
    font-weight: 800;
}
.freefield-v2-main-view .sdm-sub {
    font-size: 0.65rem;
    color: #8892b0;
}
.freefield-v2-main-view .sdm-close {
    background: transparent;
    border: none;
    color: #8892b0;
    font-size: 1.2rem;
    cursor: pointer;
}
.freefield-v2-main-view .sdm-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}
.freefield-v2-main-view .sdm-stat {
    background: #111a2e;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 8px;
}
.freefield-v2-main-view .sdm-stat-lbl {
    font-size: 0.55rem;
    color: #8892b0;
    text-transform: uppercase;
}
.freefield-v2-main-view .sdm-stat-val {
    font-size: 1rem;
    font-weight: 800;
}
.freefield-v2-main-view .sdm-stat-sub {
    font-size: 0.55rem;
    color: #4a6080;
}
.freefield-v2-main-view .sdm-loot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.freefield-v2-main-view .sdm-loot-bar-wrap {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}
.freefield-v2-main-view .sdm-loot-bar {
    height: 100%;
}
.freefield-v2-main-view .sdm-loot-name {
    font-size: 0.75rem;
    width: 90px;
}
.freefield-v2-main-view .sdm-loot-pct {
    font-size: 0.7rem;
    width: 30px;
    text-align: right;
}
.freefield-v2-main-view .sdm-loot-val {
    font-size: 0.75rem;
    width: 50px;
    text-align: right;
    font-family: 'Share Tech Mono', monospace;
}
.freefield-v2-main-view .sdm-plant-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
}

/* Market dynamics */
.freefield-v2-main-view .cost-up { color: #ef4444; }
.freefield-v2-main-view .cost-down { color: #22c55e; }
.freefield-v2-main-view .cost-stable { color: #3b82f6; }
.freefield-v2-main-view .roi-pos { color: #22c55e; }
.freefield-v2-main-view .roi-neg { color: #ef4444; }
.freefield-v2-main-view .roi-ok { color: #3b82f6; }

/* ── Favorite Games Star Button & Animation ── */
.gc-fav-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 25;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    opacity: 0.85;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.gc-fav-btn:hover {
    transform: scale(1.15);
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
    opacity: 1;
}

.gc-fav-btn.is-fav {
    color: #f59e0b;
    background: var(--bg-card, #ffffff);
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    opacity: 1;
}

@keyframes favPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.4) rotate(15deg); }
    75% { transform: scale(0.9) rotate(-8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.gc-fav-pop {
    animation: favPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Clash des Proxis Banner V3 (Cover Image + Balanced Layout) ── */
.gc-clash-banner-v3 {
    position: relative;
    border-radius: 16px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    padding: 12px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-main, #1e293b);
}

.gc-clash-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.gc-clash-cover-box {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    background: var(--bg-hover, #f1f5f9);
}

.gc-clash-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gc-clash-banner-v3:hover .gc-clash-cover-img {
    transform: scale(1.05);
}

.gc-clash-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.gc-clash-info-col {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gc-clash-header-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gc-clash-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.gc-clash-tag-pill {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: var(--bg-hover, #f1f5f9);
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.gc-clash-timer-pill {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary, #3b82f6);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--primary-light, rgba(59, 130, 246, 0.08));
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.gc-clash-info-trigger {
    background: transparent;
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-muted, #64748b);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-clash-info-trigger:hover {
    color: var(--primary, #3b82f6);
    border-color: var(--primary, #3b82f6);
    background: var(--primary-light, rgba(59, 130, 246, 0.08));
}

.gc-clash-game-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-clash-game-title-text {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.2;
}

.gc-clash-rules-compact {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.gc-clash-level-note {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    margin-left: 2px;
}

/* Clash: "i" icon + popover showing the per-submode score breakdown */
.gc-clash-breakdown-anchor {
    position: relative;
}

.gc-clash-info-icon {
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
    margin-left: 4px;
    vertical-align: middle;
}

.gc-clash-info-icon:hover {
    color: var(--primary, #3b82f6);
}

.gc-clash-breakdown-pop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    padding: 8px 10px;
    min-width: 170px;
    font-size: 0.75rem;
}

/* Arrow pointing back up at the "i" icon that opened the popover, so it's
   unambiguous which score the breakdown belongs to even when the popover
   visually overlaps the row below it. */
.gc-clash-breakdown-pop::before,
.gc-clash-breakdown-pop::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 14px;
    border: 6px solid transparent;
    border-bottom-color: var(--border-color, #e2e8f0);
}

.gc-clash-breakdown-pop::after {
    margin-top: 1px;
    border-width: 5px;
    border-bottom-color: var(--bg-card, #fff);
}

.gc-clash-breakdown-pop-right {
    left: auto;
    right: 0;
}

.gc-clash-breakdown-pop-right::before,
.gc-clash-breakdown-pop-right::after {
    left: auto;
    right: 14px;
}

.gc-clash-breakdown-pop-right::after {
    right: 15px;
}

.gc-clash-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
}

.gc-clash-summary-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    margin-top: 2px;
    flex-wrap: wrap;
}

.gc-clash-lead-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-main, #334155);
}

.gc-clash-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-light, rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-main, #1e293b);
}

.gc-clash-empty-ticker {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gc-clash-cta-col {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    min-width: 170px;
}

.gc-clash-btn-primary {
    border: none;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.gc-clash-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(59, 130, 246, 0.45);
    filter: brightness(1.1);
}

.gc-clash-btn-secondary {
    background: var(--bg-hover, #f1f5f9);
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-main, #334155);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-clash-btn-secondary:hover {
    background: var(--primary-light, rgba(59, 130, 246, 0.1));
    color: var(--primary, #3b82f6);
    border-color: var(--primary, #3b82f6);
}

/* ── Premium Leaderboard Modal for Clash des Proxis ── */
.gc-clash-modal-card {
    max-width: 660px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 1rem;
    border-radius: 20px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.gc-clash-modal-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(245, 158, 11, 0.06) 100%), var(--bg-card);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.gc-clash-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gc-clash-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.gc-clash-modal-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
    color: var(--text-main, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-clash-modal-subtitle {
    font-size: 0.775rem;
    color: var(--text-muted, #64748b);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-clash-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-body-secondary, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gc-clash-modal-close:hover {
    background: var(--border-color, #cbd5e1);
    color: var(--text-main, #0f172a);
    transform: rotate(90deg);
}

/* Rules callout card inside modal */
.gc-clash-rules-callout {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.775rem;
    margin-bottom: 6px;
}

.gc-clash-rules-formula {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--text-main, #1e293b);
}

.gc-clash-rules-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    color: var(--primary, #3b82f6);
    background: var(--primary-light, rgba(59, 130, 246, 0.1));
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Podium Cards */
.gc-clash-podium-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.gc-clash-podium-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.gc-clash-podium-card.is-rank-1 {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.04), transparent);
}

.gc-clash-podium-card.is-expanded {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.gc-clash-podium-card.is-user-hub {
    border-color: var(--primary, #3b82f6);
    background: var(--primary-light, rgba(59, 130, 246, 0.06));
}

.gc-clash-podium-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    color: var(--text-main, #1e293b);
}

.gc-clash-podium-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.gc-clash-rank-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
    background: var(--bg-body-secondary, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
}

.gc-clash-rank-box.rank-1 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    border-color: rgba(245, 158, 11, 0.5);
    color: #d97706;
}

.gc-clash-rank-box.rank-2 {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.15));
    border-color: rgba(148, 163, 184, 0.5);
    color: #475569;
}

.gc-clash-rank-box.rank-3 {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(180, 83, 9, 0.15));
    border-color: rgba(217, 119, 6, 0.5);
    color: #b45309;
}

.gc-clash-hub-name-col {
    flex: 1;
    min-width: 0;
}

.gc-clash-hub-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-clash-hub-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    letter-spacing: -0.01em;
}

.gc-clash-hub-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.gc-clash-hub-subtext {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-clash-subtext-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gc-clash-score-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.gc-clash-avg-score-val {
    font-family: 'Share Tech Mono', monospace, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary, #3b82f6);
    line-height: 1;
}

.gc-clash-score-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #64748b);
    margin-top: 2px;
}

.gc-clash-chevron {
    font-size: 1.25rem;
    color: var(--text-muted, #94a3b8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
}

.gc-clash-podium-card.is-expanded .gc-clash-chevron {
    transform: rotate(180deg);
    color: var(--primary, #3b82f6);
}

/* ── Collapsible Players List (Spoiler) ── */
.gc-clash-players-accordion {
    border-top: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-body-secondary, rgba(248, 250, 252, 0.85));
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    animation: gcAccordionSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gc-clash-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
    margin-bottom: 2px;
}

.gc-clash-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.15s, background 0.15s;
    gap: 10px;
}

.gc-clash-player-row:hover {
    transform: translateX(3px);
}

.gc-clash-player-row.is-top3 {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(to right, rgba(34, 197, 94, 0.06), var(--bg-card));
}

.gc-clash-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.gc-clash-player-rank-chip {
    font-size: 0.8rem;
    font-weight: 900;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body-secondary, #f1f5f9);
    flex-shrink: 0;
}

.gc-clash-player-row.is-top3 .gc-clash-player-rank-chip {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.gc-clash-player-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-clash-top3-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}

.gc-clash-bench-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--bg-hover, #f1f5f9);
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
}

.gc-clash-player-score-col {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.gc-clash-player-score {
    font-family: 'Share Tech Mono', monospace, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-main, #0f172a);
}

.gc-clash-player-row.is-top3 .gc-clash-player-score {
    color: #16a34a;
}

/* Modal Bottom Actions Bar */
.gc-clash-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-header, var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gc-clash-prev-winner-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.775rem;
    color: var(--text-muted, #64748b);
}

.gc-clash-footer-btn-play {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: white;
    border: none;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 9px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transition: all 0.2s;
}

.gc-clash-footer-btn-play:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

/* ── Dark & Neon Specific Overrides ── */
[data-theme="dark"] .gc-clash-modal-card,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-modal-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .gc-clash-modal-header,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-modal-header {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gc-clash-modal-title,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-modal-title {
    color: white;
}

[data-theme="dark"] .gc-clash-podium-card,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-podium-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gc-clash-hub-name,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-hub-name {
    color: white;
}

[data-theme="dark"] .gc-clash-rank-box,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-rank-box {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

[data-theme="dark"] .gc-clash-player-row,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-player-row {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gc-clash-player-name,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-player-name {
    color: #e2e8f0;
}

[data-theme="dark"] .gc-clash-player-score,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-player-score {
    color: white;
}

[data-theme="dark"] .gc-clash-players-accordion,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-players-accordion {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gc-clash-modal-footer,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-modal-footer {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

/* ── Dark & Neon Specific Overrides ── */
[data-theme="dark"] .gc-fav-btn,
[data-skin="cyberpunk"][data-theme="dark"] .gc-fav-btn {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .gc-clash-banner-v3,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-banner-v3 {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    border-color: rgba(99, 102, 241, 0.35);
    color: #cbd5e1;
}

[data-theme="dark"] .gc-clash-ambient,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-ambient {
    opacity: 0.5;
}

[data-theme="dark"] .gc-clash-game-title-text,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-game-title-text {
    color: white;
}

[data-theme="dark"] .gc-clash-btn-secondary,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

[data-theme="dark"] .gc-clash-podium-row,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-podium-row {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

[data-theme="dark"] .gc-clash-hub-name,
[data-skin="cyberpunk"][data-theme="dark"] .gc-clash-hub-name {
    color: white;
}

/* ── Settings Theme Selector Cards ── */
.gc-theme-select-card {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.gc-theme-select-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary, #3b82f6) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.15);
}

.gc-theme-select-card.is-active {
    border-color: var(--primary, #3b82f6) !important;
    background: var(--primary-light, rgba(59, 130, 246, 0.08)) !important;
    box-shadow: 0 0 0 1px var(--primary, #3b82f6), 0 6px 20px rgba(59, 130, 246, 0.18);
}

.gc-theme-select-card.is-locked {
    opacity: 0.52 !important;
    filter: grayscale(35%) !important;
}

.gc-theme-select-card.is-locked:hover {
    transform: none !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

/* ── Settings 3-Column Strict Grid ── */
.gc-settings-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .gc-settings-grid-3col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gc-settings-grid-3col {
        grid-template-columns: minmax(0, 1fr);
    }
}

.game-center-main {
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* ══════════════════════════════════════════════════════════════
   REFINED USER CARD IN SIDEBAR (V2 DUAL-ROW WITH OCTETS)
   ══════════════════════════════════════════════════════════════ */
.game-center-sidebar .gc-user-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px !important;
    margin-top: 6px !important;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-panel, rgba(0, 0, 0, 0.08));
    border-radius: 20px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    color: var(--text-main, #1e293b);
    transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
    cursor: default;
    position: relative;
    overflow: visible !important;
    flex-shrink: 0;
}

.game-center-sidebar .gc-user-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    border-color: var(--border-panel, rgba(0, 0, 0, 0.12));
}

[data-theme="dark"] .game-center-sidebar .gc-user-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .game-center-sidebar .gc-user-card:hover {
    transform: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .game-center-sidebar .gc-user-card {
    background: linear-gradient(145deg, rgba(30, 30, 66, 0.85) 0%, rgba(15, 15, 45, 0.95) 100%);
    border-color: rgba(0, 243, 255, 0.25);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.08);
}

[data-skin="cyberpunk"][data-theme="dark"] .game-center-sidebar .gc-user-card:hover {
    transform: none !important;
}

/* 1. Cadre Profil (Avatar & Identité - Support futur skins de cadres) */
.gc-user-frame {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.04);
    border: 1.5px solid rgba(99, 102, 241, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible !important;
    transition: all 0.25s ease;
}

.gc-user-frame:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 10px -2px rgba(99, 102, 241, 0.12);
}

.gc-user-frame:hover .gc-avatar {
    transform: scale(1.05);
}

[data-theme="dark"] .gc-user-frame {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .gc-user-frame:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(168, 85, 247, 0.15);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-user-frame {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-color: rgba(0, 243, 255, 0.35);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.08);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-user-frame:hover {
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.25);
}

.gc-user-frame .gc-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

[data-theme="dark"] .gc-user-frame .gc-avatar {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-user-frame .gc-avatar {
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
}

.gc-user-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.gc-user-name {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    max-width: 100%;
}

.gc-user-name.name-sm {
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.gc-user-name.name-xs {
    font-size: 0.76rem;
    letter-spacing: -0.025em;
}

[data-theme="dark"] .gc-user-name {
    color: #f8fafc;
}

.gc-user-subline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-user-role-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    line-height: 1.2;
}

.gc-user-role-badge.default {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .gc-user-role-badge.default {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.gc-user-role-badge.lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    width: fit-content;
    vertical-align: middle;
}

/* 2. Separation */
.gc-user-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--border-panel, rgba(148, 163, 184, 0.25)), transparent);
    margin: 1px 0;
}

/* 3. Seconde partie : Grille de Devises (Gigas & Octets) */
.gc-user-currencies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.gc-currency-card {
    padding: 8px 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.gc-currency-card:hover {
    transform: translateY(-1px);
}

/* Giga Card (Amber / Gold) */
.gc-currency-card.giga {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

[data-theme="dark"] .gc-currency-card.giga {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.06) 100%);
    border-color: rgba(245, 158, 11, 0.28);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-currency-card.giga {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.35);
}

/* Octet Card (Cyan / Cyber) */
.gc-currency-card.octet {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.22);
}

[data-theme="dark"] .gc-currency-card.octet {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(14, 165, 233, 0.06) 100%);
    border-color: rgba(6, 182, 212, 0.28);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-currency-card.octet {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.35);
}

.gc-curr-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gc-curr-icon {
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gc-currency-card.giga .gc-curr-icon {
    color: #d97706;
}

[data-theme="dark"] .gc-currency-card.giga .gc-curr-icon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-currency-card.giga .gc-curr-icon {
    color: #f59e0b;
}

.gc-currency-card.octet .gc-curr-icon {
    color: #0891b2;
}

[data-theme="dark"] .gc-currency-card.octet .gc-curr-icon,
[data-skin="cyberpunk"][data-theme="dark"] .gc-currency-card.octet .gc-curr-icon {
    color: #06b6d4;
}

.gc-curr-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted, #64748b);
}

.gc-currency-card.giga .gc-curr-label {
    color: #d97706;
}

[data-theme="dark"] .gc-currency-card.giga .gc-curr-label {
    color: #fbbf24;
}

.gc-currency-card.octet .gc-curr-label {
    color: #0891b2;
}

[data-theme="dark"] .gc-currency-card.octet .gc-curr-label {
    color: #38bdf8;
}

.gc-curr-amount {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gc-currency-card.giga .gc-curr-amount {
    color: #b45309;
}

[data-theme="dark"] .gc-currency-card.giga .gc-curr-amount,
[data-skin="cyberpunk"][data-theme="dark"] .gc-currency-card.giga .gc-curr-amount {
    color: #f59e0b;
}

.gc-curr-unit {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-left: 1px;
}

.gc-currency-card.octet .gc-curr-amount {
    color: #0e7490;
}

[data-theme="dark"] .gc-currency-card.octet .gc-curr-amount,
[data-skin="cyberpunk"][data-theme="dark"] .gc-currency-card.octet .gc-curr-amount {
    color: #06b6d4;
}

.gc-curr-meta {
    font-size: 0.66rem;
    font-weight: 600;
    color: #10b981;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}

.gc-curr-meta.octet-meta {
    color: #0284c7;
}

[data-theme="dark"] .gc-curr-meta.octet-meta {
    color: #38bdf8;
}

/* 4. Bouton Historique du portefeuille */
.gc-history-btn,
.game-center-sidebar .gc-history-btn {
    width: 100%;
    height: 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-top: 2px;
}

.gc-history-btn:hover,
.game-center-sidebar .gc-history-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .gc-history-btn,
[data-theme="dark"] .game-center-sidebar .gc-history-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #f1f5f9 !important;
    box-shadow: none;
}

[data-theme="dark"] .gc-history-btn:hover,
[data-theme="dark"] .game-center-sidebar .gc-history-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-history-btn,
[data-skin="cyberpunk"][data-theme="dark"] .game-center-sidebar .gc-history-btn {
    background: rgba(0, 243, 255, 0.08) !important;
    border-color: rgba(0, 243, 255, 0.3) !important;
    color: #00f3ff !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-history-btn:hover,
[data-skin="cyberpunk"][data-theme="dark"] .game-center-sidebar .gc-history-btn:hover {
    background: rgba(0, 243, 255, 0.2) !important;
    border-color: rgba(0, 243, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
}

/* ══════════════════════════════════════════════════════════════
   GUIDE & INFORMATIONS TRIGGER BUTTON IN SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.gc-guide-wrapper {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-panel, rgba(0, 0, 0, 0.08));
}

.gc-guide-trigger-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.gc-guide-trigger-btn:hover {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.gc-guide-btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gc-guide-btn-text {
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}

.gc-guide-btn-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: #0f172a !important; /* Extremely clear in light mode */
}

.gc-guide-btn-subtitle {
    font-size: 0.72rem;
    color: #475569 !important; /* Visible slate in light mode */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-guide-btn-arrow {
    font-size: 1.2rem;
    color: #2563eb;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Dark theme button */
[data-theme="dark"] .gc-guide-wrapper {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gc-guide-trigger-btn {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .gc-guide-trigger-btn:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.55) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .gc-guide-btn-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .gc-guide-btn-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .gc-guide-btn-subtitle {
    color: #94a3b8 !important;
}

[data-theme="dark"] .gc-guide-btn-arrow {
    color: #60a5fa;
}

/* Neon theme button */
[data-skin="cyberpunk"][data-theme="dark"] .gc-guide-wrapper {
    border-top-color: rgba(0, 243, 255, 0.15);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-guide-trigger-btn {
    background: rgba(0, 243, 255, 0.08) !important;
    border-color: rgba(0, 243, 255, 0.35) !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-guide-trigger-btn:hover {
    background: rgba(0, 243, 255, 0.2) !important;
    border-color: rgba(0, 243, 255, 0.7) !important;
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.35);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-guide-btn-icon {
    color: #00f3ff;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-guide-btn-title {
    color: #ffffff !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-guide-btn-subtitle {
    color: #94a3b8 !important;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-guide-btn-arrow {
    color: #00f3ff;
}

/* ══════════════════════════════════════════════════════════════
   MODAL GUIDE & INFORMATIONS (LIGHT & DARK ADAPTIVE)
   ══════════════════════════════════════════════════════════════ */
.gc-guide-modal {
    width: 95%;
    max-width: 680px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    margin: 1rem;
}

.gc-guide-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.gc-guide-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.gc-guide-modal-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.gc-guide-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gc-guide-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gc-guide-modal-body {
    padding: 10px 18px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-guide-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
}

.gc-guide-card-p {
    margin: 0;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.4;
}

.gc-guide-subcard.giga {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
}

.gc-guide-subcard.giga .subcard-text {
    font-size: 0.74rem;
    color: #78350f;
    line-height: 1.35;
}

.gc-guide-subcard.octet {
    background: #f0f9ff;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
}

.gc-guide-subcard.octet .subcard-text {
    font-size: 0.74rem;
    color: #0369a1;
    line-height: 1.35;
}

.gc-guide-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.gc-guide-badge-label {
    font-size: 0.74rem;
    color: #1e293b;
    line-height: 1.25;
}

.gc-guide-badge-sublabel {
    color: #64748b;
    font-size: 0.68rem;
}

.gc-guide-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.38;
}

.gc-guide-list strong {
    color: #0f172a;
}

.gc-guide-modal-footer {
    padding: 8px 18px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
}

.gc-guide-modal-footer button {
    padding: 6px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #2563eb;
    border: 1px solid #1d4ed8;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.gc-guide-modal-footer button:hover {
    background: #1d4ed8;
}

/* Dark mode modal overrides */
[data-theme="dark"] .gc-guide-modal {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    color: #f1f5f9;
}

[data-theme="dark"] .gc-guide-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .gc-guide-modal-title {
    color: #f8fafc;
}

[data-theme="dark"] .gc-guide-modal-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .gc-guide-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .gc-guide-card {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gc-guide-card-p {
    color: #cbd5e1;
}

[data-theme="dark"] .gc-guide-subcard.giga {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.22);
}

[data-theme="dark"] .gc-guide-subcard.giga .subcard-text {
    color: #cbd5e1;
}

[data-theme="dark"] .gc-guide-subcard.octet {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.22);
}

[data-theme="dark"] .gc-guide-subcard.octet .subcard-text {
    color: #cbd5e1;
}

[data-theme="dark"] .gc-guide-badge-row {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .gc-guide-badge-label {
    color: #e2e8f0;
}

[data-theme="dark"] .gc-guide-badge-sublabel {
    color: #94a3b8;
}

[data-theme="dark"] .gc-guide-list {
    color: #94a3b8;
}

[data-theme="dark"] .gc-guide-list strong {
    color: #e2e8f0;
}

[data-theme="dark"] .gc-guide-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.5);
}

[data-theme="dark"] .gc-guide-modal-footer button {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

/* ══════════════════════════════════════════════════════════════
   MOCK CADRES & DÉCORS D'AVATAR (LABO DE TEST INTERACTIF)
   ══════════════════════════════════════════════════════════════ */
.gc-frame-mock-trigger-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.04));
    border: 1.5px solid rgba(245, 158, 11, 0.25);
    color: #d97706;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.gc-frame-mock-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.gc-frame-mock-trigger-btn .mock-badge-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f59e0b;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .gc-frame-mock-trigger-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

[data-theme="dark"] .gc-frame-mock-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.12));
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

/* Modal Mock Container */
.gc-frame-mock-modal {
    width: 95%;
    max-width: 940px;
    max-height: 92vh;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 1rem;
    position: relative;
}

[data-theme="dark"] .gc-frame-mock-modal {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    color: #f1f5f9;
}

.gc-frame-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

[data-theme="dark"] .gc-frame-mock-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
}

.gc-frame-mock-body {
    padding: 16px 22px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Themes Gallery Grid */
.gc-mock-frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
}

.gc-mock-frame-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gc-mock-frame-card:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.gc-mock-frame-card.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .gc-mock-frame-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gc-mock-frame-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .gc-mock-frame-card.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.gc-mock-frame-card .active-check {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #22c55e;
    font-size: 1.1rem;
    line-height: 1;
}

.gc-mock-frame-card .card-title {
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 2px;
    color: #0f172a;
    line-height: 1.2;
}

[data-theme="dark"] .gc-mock-frame-card .card-title {
    color: #f8fafc;
}

.gc-mock-frame-card .card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   ATELIER DE RENDU DES CADRES RECTANGULAIRES (CSS & SVG DECORATION)
   ══════════════════════════════════════════════════════════════ */
.mini-capsule-preview {
    width: 96px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    position: relative;
    margin: 6px 0 4px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid #cbd5e1;
    overflow: visible;
}

[data-theme="dark"] .mini-capsule-preview {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.mini-capsule-preview .mini-avatar {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.mini-capsule-preview .mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-capsule-preview .mini-text-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mini-capsule-preview .mini-line-name {
    height: 5px;
    width: 85%;
    background: #0f172a;
    opacity: 0.6;
    border-radius: 3px;
}

[data-theme="dark"] .mini-capsule-preview .mini-line-name {
    background: #f8fafc;
}

.mini-capsule-preview .mini-line-sub {
    height: 4px;
    width: 50%;
    background: #38bdf8;
    border-radius: 2px;
}

/* Coin Décoratifs pour Rectangles */
.frame-decor-corner {
    position: absolute;
    z-index: 25;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-decor-corner svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.frame-decor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease;
}

.frame-decor-corner.tl {
    top: -14px;
    left: -14px;
    width: 34px;
    height: 34px;
    animation: starTwinkle 3.5s ease-in-out infinite;
}

.frame-decor-corner.tr {
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    animation: starTwinkle 3.5s ease-in-out infinite;
}

.frame-decor-corner.bl {
    bottom: -14px;
    left: -14px;
    width: 44px;
    height: 44px;
    animation: decorFloat 3s ease-in-out infinite;
}

.frame-decor-corner.br {
    bottom: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    animation: decorFloat 3s ease-in-out infinite;
}

.gc-mock-podium-card.rank-1 .frame-decor-corner.br {
    width: 48px;
    height: 48px;
    bottom: -16px;
    right: -16px;
}

.gc-mock-podium-card.rank-1 .frame-decor-corner.bl {
    width: 48px;
    height: 48px;
    bottom: -16px;
    left: -16px;
}

.gc-mock-podium-card.rank-1 .frame-decor-corner.tl {
    width: 36px;
    height: 36px;
    top: -15px;
    left: -15px;
}

.gc-mock-podium-card.rank-1 .frame-decor-corner.tr {
    width: 36px;
    height: 36px;
    top: -15px;
    right: -15px;
}

/* Animations décors */
@keyframes decorFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2.5px) rotate(2.5deg);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(0.94);
    }
}

/* ══════════════════════════════════════════════════════════════
   APPLICATION DES CADRES SUR LES CONTENEURS RECTANGULAIRES
   (Capsule Sidebar, Carte Podium, Ligne Classement, Mini Capsule)
   ══════════════════════════════════════════════════════════════ */

/* 1. FRAME DEFAULT (Standard) */
.mini-capsule-preview.frame-default,
.gc-user-frame.frame-default,
.gc-mock-podium-card.frame-default,
.gc-mock-row.frame-default {
    border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
}

/* POP CULTURE 1. FRAME HELLO KITTY */
.mini-capsule-preview.frame-hello_kitty,
.gc-user-frame.frame-hello_kitty,
.gc-mock-podium-card.frame-hello_kitty,
.gc-mock-row.frame-hello_kitty {
    border: 2.5px solid #fb7185 !important;
    background: linear-gradient(135deg, rgba(255, 228, 230, 0.45), rgba(254, 205, 211, 0.15)) !important;
    box-shadow: 0 0 18px rgba(251, 113, 133, 0.40), inset 0 0 8px rgba(255, 228, 230, 0.2) !important;
    position: relative;
    overflow: visible !important;
}

/* POP CULTURE 2. FRAME PIKACHU THUNDER */
.mini-capsule-preview.frame-pikachu_thunder,
.gc-user-frame.frame-pikachu_thunder,
.gc-mock-podium-card.frame-pikachu_thunder,
.gc-mock-row.frame-pikachu_thunder {
    border: 2.5px solid #facc15 !important;
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.35), rgba(250, 204, 21, 0.12)) !important;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.45), inset 0 0 8px rgba(254, 240, 138, 0.2) !important;
    position: relative;
    overflow: visible !important;
}

/* 2. FRAME LUMA COSMIQUE */
.mini-capsule-preview.frame-luma,
.gc-user-frame.frame-luma,
.gc-mock-podium-card.frame-luma,
.gc-mock-row.frame-luma {
    border: 2px solid #38bdf8 !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.08)) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 0 10px rgba(56, 189, 248, 0.08) !important;
    position: relative;
    overflow: visible !important;
}

/* 3. FRAME SAKURA NEKO */
.mini-capsule-preview.frame-sakura,
.gc-user-frame.frame-sakura,
.gc-mock-podium-card.frame-sakura,
.gc-mock-row.frame-sakura {
    border: 2px solid #f472b6 !important;
    background: linear-gradient(135deg, rgba(251, 207, 232, 0.35), rgba(244, 114, 182, 0.1)) !important;
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.35), inset 0 0 8px rgba(251, 207, 232, 0.15) !important;
    position: relative;
    overflow: visible !important;
}

/* 4. FRAME RETRO ARCADE 80S */
.mini-capsule-preview.frame-arcade,
.gc-user-frame.frame-arcade,
.gc-mock-podium-card.frame-arcade,
.gc-mock-row.frame-arcade {
    border: 2.5px solid #ec4899 !important;
    outline: 2px dashed #facc15 !important;
    outline-offset: -4px !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(250, 204, 21, 0.06)) !important;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.35) !important;
    position: relative;
    overflow: visible !important;
}

/* 5. FRAME FIBRE OPTIQUE CYBER PROXI */
.mini-capsule-preview.frame-cyber,
.gc-user-frame.frame-cyber,
.gc-mock-podium-card.frame-cyber,
.gc-mock-row.frame-cyber {
    border: 2px solid #06b6d4 !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(2, 132, 199, 0.08)) !important;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.45), inset 0 0 12px rgba(6, 182, 212, 0.12) !important;
    position: relative;
    overflow: visible !important;
}

/* 6. FRAME LAURIERS DE SAISON (CHAMPION OR) */
.mini-capsule-preview.frame-gold,
.gc-user-frame.frame-gold,
.gc-mock-podium-card.frame-gold,
.gc-mock-row.frame-gold {
    border: 2.5px solid #fbbf24 !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(217, 119, 6, 0.1)) !important;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.45), inset 0 0 12px rgba(251, 191, 36, 0.12) !important;
    position: relative;
    overflow: visible !important;
}

/* Mock Previews Layout */
.gc-mock-preview-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
}

@media (max-width: 860px) {
    .gc-mock-preview-grid {
        grid-template-columns: 1fr;
    }
}

.gc-mock-preview-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[data-theme="dark"] .gc-mock-preview-panel {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-mock-preview-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .gc-mock-preview-panel-title {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

/* Podium Mock Styles */
.gc-mock-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 4px 6px;
}

.gc-mock-podium-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 6px 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .gc-mock-podium-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.gc-mock-podium-card.rank-1 {
    flex: 1.15;
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 100%);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
}

.gc-mock-podium-card .rank-pill {
    position: absolute;
    top: 6px;
    right: 8px;
    font-weight: 900;
    font-size: 1.2rem;
    opacity: 0.25;
    line-height: 1;
}

.gc-mock-podium-card.rank-1 .rank-pill {
    color: #fbbf24;
    opacity: 0.5;
}

.gc-mock-podium-card .crown-icon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: #fbbf24;
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}

.gc-mock-podium-card .p-name {
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 10px;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

[data-theme="dark"] .gc-mock-podium-card .p-name {
    color: #f8fafc;
}

.gc-mock-podium-card .p-sub {
    font-size: 0.70rem;
    color: #64748b;
    margin-bottom: 6px;
}

.gc-mock-podium-card .p-score {
    font-size: 0.95rem;
    font-weight: 900;
    color: #2563eb;
}

.gc-mock-podium-card.rank-1 .p-score {
    color: #d97706;
}

[data-theme="dark"] .gc-mock-podium-card .p-score {
    color: #60a5fa;
}

[data-theme="dark"] .gc-mock-podium-card.rank-1 .p-score {
    color: #fbbf24;
}

/* Rows Mock */
.gc-mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

[data-theme="dark"] .gc-mock-row {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-mock-row .row-rank {
    font-size: 0.85rem;
    font-weight: 800;
    color: #64748b;
    width: 20px;
    text-align: center;
}

.gc-mock-row .row-info {
    flex: 1;
    min-width: 0;
}

.gc-mock-row .row-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .gc-mock-row .row-name {
    color: #f8fafc;
}

.gc-mock-row .row-hub {
    font-size: 0.70rem;
    color: #64748b;
}

.gc-mock-row .row-score {
    font-size: 0.88rem;
    font-weight: 900;
    color: #2563eb;
}

[data-theme="dark"] .gc-mock-row .row-score {
    color: #60a5fa;
}

.gc-mock-mode-btn {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #64748b;
    border: 1px solid transparent;
}

.gc-mock-mode-btn.is-active {
    background: #6366f1;
    color: #ffffff;
    border: 1px solid #4f46e5;
}

/* ── Custom Frame Dynamic Text Color (High-Contrast Theme Safeguard) ── */
.gc-mock-podium-card[style*="--frame-text-color"] .p-name,
.gc-mock-row[style*="--frame-text-color"] .row-name,
.gc-user-frame[style*="--frame-text-color"] .gc-user-name {
    color: var(--frame-text-color) !important;
}

.gc-mock-podium-card[style*="--frame-text-color"] .p-sub,
.gc-mock-row[style*="--frame-text-color"] .row-hub,
.gc-user-frame[style*="--frame-text-color"] .gc-user-subline {
    color: var(--frame-text-color) !important;
    opacity: 0.75;
}

/* ==========================================================================
   ATELIER DE PERSONNALISATION : CADRES DE PROFIL & BADGES DE TITRE
   ========================================================================== */
.gc-customization-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.gc-customization-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.gc-customization-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-card-subtle, rgba(241, 245, 249, 0.7));
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.2));
}

[data-theme="dark"] .gc-customization-tabs {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-skin="sakura"][data-theme="light"] .gc-customization-tabs {
    background: rgba(251, 207, 232, 0.25);
    border-color: rgba(236, 72, 153, 0.2);
}

[data-skin="forest"][data-theme="light"] .gc-customization-tabs {
    background: #edeae3;
    border-color: #c8c1b3;
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-customization-tabs {
    background: rgba(13, 13, 38, 0.7);
    border-color: rgba(0, 243, 255, 0.2);
}

[data-theme="cyberpunk"] .gc-customization-tabs {
    background: rgba(39, 39, 42, 0.6);
    border-color: rgba(245, 158, 11, 0.25);
}

.gc-cust-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-cust-tab-btn:hover {
    color: var(--text-main, #0f172a);
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .gc-cust-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

[data-skin="sakura"][data-theme="light"] .gc-cust-tab-btn:hover {
    color: #4a1942;
    background: rgba(236, 72, 153, 0.08);
}

[data-skin="forest"][data-theme="light"] .gc-cust-tab-btn:hover {
    color: #1a2b17;
    background: rgba(27, 94, 59, 0.08);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-cust-tab-btn:hover {
    color: #00ff9f;
    background: rgba(0, 255, 159, 0.08);
}

.gc-cust-tab-btn.active {
    background: var(--bg-card, #ffffff);
    color: #3b82f6;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

[data-theme="dark"] .gc-cust-tab-btn.active {
    background: #1e293b;
    color: #60a5fa;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

[data-skin="sakura"][data-theme="light"] .gc-cust-tab-btn.active {
    background: #ffffff;
    color: #db2777;
    box-shadow: 0 3px 10px rgba(219, 39, 119, 0.15);
}

[data-skin="forest"][data-theme="light"] .gc-cust-tab-btn.active {
    background: #faf8f4;
    color: #1b5e3b;
    border: 1px solid rgba(27, 94, 59, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-skin="cyberpunk"][data-theme="dark"] .gc-cust-tab-btn.active {
    background: #050510;
    color: #00ff9f;
    box-shadow: 0 0 12px rgba(0, 255, 159, 0.25);
}

[data-theme="cyberpunk"] .gc-cust-tab-btn.active {
    background: #18181b;
    color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.gc-cust-tab-count {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.2);
    color: inherit;
    font-weight: 800;
}

.gc-cust-tab-lock {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
}

.gc-cust-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px;
    font-size: 1rem;
    color: var(--text-muted);
}

.gc-cust-loading i {
    font-size: 2.5rem;
    color: #3b82f6;
}

/* ── Aperçu en direct (calqué sur l'aperçu avatar) ── */
.gc-cust-preview-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-panel, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .gc-cust-preview-banner {
    background: #1e293b;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

[data-skin="forest"][data-theme="light"] .gc-cust-preview-banner {
    background: #edeae3;
    border-color: #c8c1b3;
}

[data-skin="sakura"][data-theme="light"] .gc-cust-preview-banner {
    background: #ffffff;
    border-color: rgba(236, 72, 153, 0.2);
}

@media (max-width: 768px) {
    .gc-cust-preview-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.gc-user-frame.preview-frame {
    width: 290px;
    min-height: 72px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.gc-user-frame.preview-frame.frame-default {
    border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
    background: rgba(99, 102, 241, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .gc-user-frame.preview-frame.frame-default {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-skin="forest"][data-theme="light"] .gc-user-frame.preview-frame.frame-default {
    background: #faf8f4;
    border-color: #c8c1b3 !important;
    box-shadow: none;
}

.gc-cust-preview-info {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.gc-cust-preview-info h3 {
    font-size: 1.3rem;
    font-weight: 850;
    margin: 0 0 6px;
    color: var(--text-main, #0f172a);
}

[data-theme="dark"] .gc-cust-preview-info h3 {
    color: #f8fafc;
}

.gc-cust-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.gc-badge-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gc-badge-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted, #64748b);
}

/* ── Barre de filtres ── */
.gc-cust-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.gc-cust-filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.25));
    background: var(--bg-card, #ffffff);
    color: var(--text-muted, #64748b);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .gc-cust-filter-pill {
    background: #1e293b;
}

.gc-cust-filter-pill:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

.gc-cust-filter-pill.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* ── Grille des cadres ── */
.gc-frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.gc-frame-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.2));
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

[data-theme="dark"] .gc-frame-card {
    background: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gc-frame-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: rgba(99, 102, 241, 0.4);
}

.gc-frame-card.is-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.gc-frame-card-preview-area {
    padding: 28px 20px 22px;
    background: var(--bg-card-subtle, #f8fafc);
    border-bottom: 1px solid var(--border-panel, rgba(148, 163, 184, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 124px;
    overflow: visible;
    position: relative;
}

[data-theme="dark"] .gc-frame-card-preview-area {
    background: #0f172a;
}

.gc-mini-card-sample {
    width: 220px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-sizing: border-box;
    overflow: visible !important;
}

.gc-mini-card-sample.classic {
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .gc-mini-card-sample.classic {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-skin="forest"][data-theme="light"] .gc-mini-card-sample.classic {
    background: #faf8f4;
    border-color: #c8c1b3;
    box-shadow: none;
}

.gc-mini-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.gc-mini-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gc-mini-name {
    font-size: 0.80rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    max-width: 100%;
}

.gc-mini-name.name-sm {
    font-size: 0.72rem;
}

.gc-mini-name.name-xs {
    font-size: 0.65rem;
}

.gc-mini-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 5px;
    width: fit-content;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.mini-decor {
    position: absolute;
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
    z-index: 5;
}

.mini-decor.tl {
    top: -8px;
    left: -8px;
}

.mini-decor.br {
    bottom: -8px;
    right: -8px;
}

.gc-frame-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gc-frame-card-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gc-frame-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

[data-theme="dark"] .gc-frame-card-title {
    color: #f8fafc;
}

.gc-tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.gc-frame-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    margin: 4px 0 14px;
    line-height: 1.4;
    flex: 1;
}

.gc-btn-equip {
    width: 100%;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

[data-theme="dark"] .gc-btn-equip {
    color: #60a5fa;
}

.gc-btn-equip:hover:not(:disabled) {
    background: #3b82f6;
    color: #ffffff;
}

.gc-btn-equip.equipped {
    background: #10b981;
    border-color: #059669;
    color: #ffffff;
    cursor: default;
}

.gc-frame-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-frame-price-badge {
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .gc-frame-price-badge {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.2);
}

.gc-frame-owned-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

[data-theme="dark"] .gc-frame-owned-badge {
    color: #34d399;
    background: rgba(16, 185, 129, 0.2);
}

.gc-btn-buy-frame {
    width: 100%;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 850;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.gc-btn-buy-frame:hover:not(:disabled) {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.gc-btn-buy-frame:active:not(:disabled) {
    transform: translateY(0);
}

.gc-btn-buy-frame:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Theme overrides for buy button */
[data-skin="cyberpunk"][data-theme="dark"] .gc-btn-buy-frame {
    background: linear-gradient(135deg, #00ff9f, #00b4d8);
    color: #050510;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.35);
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-btn-buy-frame:hover:not(:disabled) {
    background: #00ff9f;
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.5);
}
[data-skin="sakura"][data-theme="light"] .gc-btn-buy-frame {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}
[data-skin="sakura"][data-theme="light"] .gc-btn-buy-frame:hover:not(:disabled) {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}
[data-skin="forest"][data-theme="light"] .gc-btn-buy-frame {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
[data-skin="forest"][data-theme="light"] .gc-btn-buy-frame:hover:not(:disabled) {
    background: linear-gradient(135deg, #34d399, #10b981);
}
[data-theme="cyberpunk"] .gc-btn-buy-frame {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ── Catalogue unifié : avatars, cadres et titres ── */
.gc-catalog-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.gc-catalog-tabs {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.gc-catalog-tabs .ps-tab-btn {
    padding-inline: 0.85rem;
}

.gc-title-catalog-toolbar {
    margin-top: 1rem;
}

.gc-title-catalog-search {
    width: min(320px, 100%);
    margin-left: auto;
}

.gc-category-menu {
    position: relative;
    flex: 0 0 auto;
}

.gc-category-menu > summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-panel);
    border-radius: 999px;
    background: var(--bg-body-secondary);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.gc-category-menu > summary > span {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
    font-size: 0.72rem;
}

.gc-category-menu > summary > i:first-child {
    color: var(--primary);
}

.gc-category-menu-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 100;
    width: min(420px, calc(100vw - 2rem));
    padding: 0.85rem;
    border: 1px solid var(--border-panel);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--text-main) 18%, transparent);
}

.gc-category-menu-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    color: var(--text-main);
    font-size: 0.78rem;
}

.gc-category-menu-panel header button,
.gc-catalog-empty button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

.gc-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gc-category-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border-panel);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-card) 94%, var(--text-main));
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}

.gc-category-options label.active {
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
}

.gc-category-options input {
    display: none;
}

.gc-catalog-group {
    margin-bottom: 2.5rem;
}

.gc-catalog-group-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.1rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gc-catalog-group-title > i {
    color: var(--primary);
    font-size: 1.2rem;
}

.gc-catalog-group-title > span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 550;
    letter-spacing: normal;
    text-transform: none;
}

.gc-catalog-empty {
    padding: 3rem;
    border: 1px dashed var(--border-panel);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-card) 97%, var(--text-main));
    color: var(--text-muted);
    text-align: center;
}

.gc-catalog-empty > i {
    font-size: 2.5rem;
    opacity: 0.35;
}

/* ── Aperçu contexte classement, sans agrandir le bandeau ── */
.gc-cust-preview-banner {
    min-height: 116px;
    padding-block: 0.85rem;
}

.gc-cust-preview-banner.is-trying {
    border-color: color-mix(in srgb, var(--primary) 58%, var(--border-panel));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.gc-cust-preview-primary {
    display: flex;
    align-items: center;
    flex: 0 0 290px;
    min-width: 290px;
}

.gc-cust-preview-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 170px;
}

.gc-cust-preview-info strong {
    color: var(--text-main);
    font-size: 0.96rem;
}

.gc-cust-preview-info > span:not(.gc-frame-trial-badge) {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.gc-frame-trial-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
}

.gc-cust-preview-primary .gc-avatar.has-image {
    position: relative;
    overflow: hidden;
    border-color: transparent;
    background: none;
    box-shadow: none;
}

.gc-cust-preview-primary .gc-avatar > img,
.gc-frame-ranking-previews .p-avatar > img,
.gc-frame-ranking-previews .row-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.gc-frame-ranking-previews .gc-frame-mini-podium > div[style*="position: absolute"] img,
.gc-frame-ranking-previews .gc-frame-mini-row > div[style*="position: absolute"] img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gc-user-frame.preview-frame > div:not(.gc-avatar):not(.gc-user-identity) img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gc-frame-ranking-previews {
    display: grid;
    grid-template-columns: 128px 350px;
    align-items: stretch;
    gap: 0.65rem;
    flex: 0 0 488px;
    width: 488px;
    min-width: 488px;
    max-width: 488px;
    height: 88px;
}

.gc-frame-ranking-sample {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.gc-frame-ranking-viewport {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 7px;
    overflow: visible;
}

.gc-frame-mini-podium {
    position: relative !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    inset: auto;
    box-sizing: border-box;
    width: auto;
    height: 100%;
    aspect-ratio: 0.68;
    min-height: 0;
    padding: 4px 3px 5px;
    border-radius: 10px;
    transform: none;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-panel);
    background: var(--bg-card);
}

.gc-frame-mini-podium::before,
.gc-frame-mini-row::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-image: var(--frame-pattern-img);
    background-repeat: var(--frame-pattern-repeat);
    background-size: var(--frame-pattern-size);
    background-position: var(--frame-pattern-base-x, 50%) var(--frame-pattern-base-y, 50%);
    mix-blend-mode: var(--frame-pattern-blend, normal);
    opacity: var(--frame-pattern-opacity, 0);
    pointer-events: none;
}

.gc-frame-mini-podium > *,
.gc-frame-mini-row > * {
    position: relative;
    z-index: 1;
}

.gc-frame-mini-podium .bg-rank-num {
    position: absolute;
    right: 0;
    left: 0;
    top: 2px;
    font-size: 1rem;
    font-weight: 900;
    opacity: 0.13;
}

.gc-frame-mini-podium .crown-icon {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 1px;
    font-size: 0.48rem;
    line-height: 1;
    color: var(--warning);
    transform: none;
}

.gc-frame-mini-podium .p-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0 auto 2px;
    overflow: hidden;
    border-radius: 3px;
    background: color-mix(in srgb, var(--primary) 18%, var(--bg-card));
    font-size: 0.28rem;
}

.gc-frame-mini-podium .p-name {
    display: block;
    max-width: 46px;
    overflow: hidden;
    font-size: 0.28rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-frame-mini-podium .p-hub,
.gc-frame-mini-podium .p-score {
    display: block;
    max-width: 46px;
    margin-top: 1px;
    overflow: hidden;
    font-size: 0.22rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-frame-mini-podium .p-hub .lb-badge {
    display: inline-block;
    max-width: 42px;
    padding: 1px 2px;
    border-radius: 2px;
    font-size: 0.18rem;
    line-height: 1;
}

.gc-frame-mini-podium .p-score {
    color: var(--warning);
    font-size: 0.28rem;
    font-weight: 900;
}

.gc-frame-mini-podium .p-score small {
    font-size: 0.18rem;
}

.gc-frame-mini-row {
    position: relative !important;
    inset: auto;
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    min-height: 54px;
    padding: 7px 9px;
    gap: 7px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-panel);
    background: var(--bg-card);
}

.gc-frame-mini-row .row-rank {
    width: 22px;
    font-size: 0.7rem;
}

.gc-frame-mini-row .row-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 9px;
    background: color-mix(in srgb, var(--primary) 18%, var(--bg-card));
    font-size: 0.58rem;
}

.gc-frame-mini-row .row-name {
    max-width: 90px;
    overflow: hidden;
    font-size: 0.69rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-frame-mini-row .row-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.gc-frame-mini-row .lb-badge {
    max-width: 75px;
    overflow: hidden;
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-frame-mini-row .row-score {
    margin-left: auto;
    font-size: 0.7rem;
    white-space: nowrap;
}

.gc-frame-mini-row .score-suffix {
    font-size: 0.48rem;
}

.gc-store-filterline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 1.45rem 0 1.8rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.gc-store-filterline::-webkit-scrollbar {
    display: none;
}

.gc-store-filter-segments {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 4px;
    border: 1px solid var(--border-panel);
    border-radius: 12px;
    background: var(--bg-body-secondary);
}

.gc-store-filter-segments button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.gc-store-filter-segments button.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--text-main) 10%, transparent);
}

.gc-store-category-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.45rem;
    box-sizing: border-box;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-panel);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--primary);
}

.gc-store-category-select select {
    appearance: none;
    min-width: 155px;
    padding: 0 1.1rem 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
}

.gc-store-category-select .ri-arrow-down-s-line {
    position: absolute;
    right: 0.55rem;
    pointer-events: none;
}

/* Recherche des titres : même gabarit que le sélecteur de catégorie des cadres et des avatars */
.gc-store-search input {
    min-width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
}

.gc-store-search input::placeholder {
    color: var(--text-muted);
    font-weight: 600;
}

.gc-store-search .gc-store-search-clear {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.gc-frame-preview-remove,
.gc-frame-preview-stop {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.48rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border-panel));
    border-radius: 9px;
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
    font-size: 0.76rem;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
}

.gc-frame-preview-stop {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border-panel));
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.gc-frame-card.is-previewing {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 26%, transparent);
}

.gc-frame-price-badge del {
    margin-right: 3px;
    color: var(--text-muted);
    font-weight: 600;
    opacity: .7;
}

.gc-btn-buy-frame.has-promo {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--warning) 18%, transparent), 0 6px 16px color-mix(in srgb, var(--warning) 28%, transparent);
}

.gc-frame-card-body {
    gap: 0.8rem;
}

.gc-frame-card-actions {
    display: grid;
    grid-template-columns: minmax(86px, 0.75fr) minmax(130px, 1.4fr);
    gap: 0.5rem;
    margin-top: auto;
}

.gc-frame-card-actions .gc-btn-buy-frame {
    min-width: 0;
    padding-inline: 0.65rem;
}

.gc-btn-try-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border-panel));
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.gc-btn-try-frame:hover,
.gc-btn-try-frame.active {
    background: var(--primary);
    color: var(--text-inverse);
}

@media (max-width: 1200px) {
    .gc-frame-ranking-previews {
        display: none;
    }

    .gc-cust-preview-primary {
        flex: 1;
    }
}

@media (max-width: 720px) {
    .gc-cust-preview-primary {
        min-width: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .gc-cust-preview-banner {
        align-items: stretch;
    }

    .gc-frame-preview-remove,
    .gc-frame-preview-stop {
        width: 100%;
    }
}

/* ── CARTE DE DÉBLOCAGE 5 GIGAS (BADGES) ── */
.gc-badge-unlock-card {
    position: relative;
    overflow: hidden;
    padding: 36px 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 32px;
    align-items: flex-start;
    color: #1e293b;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .gc-badge-unlock-card {
        flex-direction: column;
        padding: 24px;
    }
}

.gc-unlock-glow-orb {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.gc-unlock-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.gc-unlock-body {
    flex: 1;
}

.gc-unlock-tag {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: inline-block;
    margin-bottom: 10px;
}

.gc-unlock-body h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 10px;
    color: #78350f;
}

.gc-unlock-body p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 760px;
}

.gc-unlock-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.gc-unlock-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #334155;
}

.gc-unlock-perk i {
    color: #059669;
    font-size: 1.1rem;
}

.gc-unlock-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.gc-unlock-price-badge {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.gc-price-val {
    font-size: 1.8rem;
    font-weight: 950;
    color: #b45309;
    line-height: 1;
}

.gc-price-unit {
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
}

.gc-unlock-balance-info {
    font-size: 0.9rem;
    color: #475569;
}

.gc-unlock-balance-info strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.gc-btn-gold-unlock {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    transition: all 0.2s;
}

.gc-btn-gold-unlock:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.gc-btn-gold-unlock:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.gc-unlock-warning {
    color: #dc2626 !important;
    font-size: 0.85rem !important;
    margin-top: 12px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- THEME OVERRIDES FOR UNLOCK CARD --- */

/* 1. DARK THEME */
[data-theme="dark"] .gc-badge-unlock-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.95));
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.15);
    color: #ffffff;
}
[data-theme="dark"] .gc-unlock-glow-orb { background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%); }
[data-theme="dark"] .gc-unlock-icon-wrap { background: linear-gradient(135deg, #fbbf24, #d97706); color: #451a03; box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4); }
[data-theme="dark"] .gc-unlock-tag { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); }
[data-theme="dark"] .gc-unlock-body h2 { color: #ffffff; }
[data-theme="dark"] .gc-unlock-body p { color: #cbd5e1; }
[data-theme="dark"] .gc-unlock-perk { color: #e2e8f0; }
[data-theme="dark"] .gc-unlock-perk i { color: #10b981; }
[data-theme="dark"] .gc-unlock-price-badge { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }
[data-theme="dark"] .gc-price-val { color: #fbbf24; }
[data-theme="dark"] .gc-price-unit { color: #fde68a; }
[data-theme="dark"] .gc-unlock-balance-info { color: #cbd5e1; }
[data-theme="dark"] .gc-unlock-balance-info strong { color: #ffffff; }
[data-theme="dark"] .gc-btn-gold-unlock { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4); }
[data-theme="dark"] .gc-btn-gold-unlock:hover:not(:disabled) { background: linear-gradient(135deg, #fde047, #f59e0b); }

/* 2. SAKURA THEME */
[data-skin="sakura"][data-theme="light"] .gc-badge-unlock-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f9 50%, #fce7f3 100%);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.15), 0 4px 14px rgba(0, 0, 0, 0.03);
    color: #4a1942;
}
[data-skin="sakura"][data-theme="light"] .gc-unlock-glow-orb { background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%); }
[data-skin="sakura"][data-theme="light"] .gc-unlock-icon-wrap { background: linear-gradient(135deg, #f472b6, #db2777); color: #ffffff; box-shadow: 0 8px 20px rgba(219, 39, 119, 0.3); }
[data-skin="sakura"][data-theme="light"] .gc-unlock-tag { background: rgba(236, 72, 153, 0.12); color: #be185d; border-color: rgba(236, 72, 153, 0.35); }
[data-skin="sakura"][data-theme="light"] .gc-unlock-body h2 { color: #831843; }
[data-skin="sakura"][data-theme="light"] .gc-unlock-body p { color: #701a75; }
[data-skin="sakura"][data-theme="light"] .gc-unlock-perk { color: #701a75; }
[data-skin="sakura"][data-theme="light"] .gc-unlock-perk i { color: #db2777; }
[data-skin="sakura"][data-theme="light"] .gc-unlock-price-badge { background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.35); }
[data-skin="sakura"][data-theme="light"] .gc-price-val { color: #db2777; }
[data-skin="sakura"][data-theme="light"] .gc-price-unit { color: #9d174d; }
[data-skin="sakura"][data-theme="light"] .gc-unlock-balance-info { color: #701a75; }
[data-skin="sakura"][data-theme="light"] .gc-unlock-balance-info strong { color: #4a1942; }
[data-skin="sakura"][data-theme="light"] .gc-btn-gold-unlock { background: linear-gradient(135deg, #ec4899, #db2777); color: #ffffff; box-shadow: 0 8px 20px rgba(219, 39, 119, 0.35); }
[data-skin="sakura"][data-theme="light"] .gc-btn-gold-unlock:hover:not(:disabled) { background: linear-gradient(135deg, #f472b6, #be185d); }

/* 3. FOREST THEME */
[data-skin="forest"][data-theme="light"] .gc-badge-unlock-card {
    background: linear-gradient(135deg, rgba(26, 47, 26, 0.95), rgba(13, 31, 20, 0.95));
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(16, 185, 129, 0.12);
    color: #f0ece2;
}
[data-skin="forest"][data-theme="light"] .gc-unlock-glow-orb { background: radial-gradient(circle, rgba(52, 211, 153, 0.18) 0%, transparent 70%); }
[data-skin="forest"][data-theme="light"] .gc-unlock-icon-wrap { background: linear-gradient(135deg, #34d399, #059669); color: #064e3b; box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35); }
[data-skin="forest"][data-theme="light"] .gc-unlock-tag { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }
[data-skin="forest"][data-theme="light"] .gc-unlock-body h2 { color: #f0ece2; }
[data-skin="forest"][data-theme="light"] .gc-unlock-body p { color: #a7f3d0; }
[data-skin="forest"][data-theme="light"] .gc-unlock-perk { color: #d1fae5; }
[data-skin="forest"][data-theme="light"] .gc-unlock-perk i { color: #34d399; }
[data-skin="forest"][data-theme="light"] .gc-unlock-price-badge { background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.35); }
[data-skin="forest"][data-theme="light"] .gc-price-val { color: #34d399; }
[data-skin="forest"][data-theme="light"] .gc-price-unit { color: #a7f3d0; }
[data-skin="forest"][data-theme="light"] .gc-unlock-balance-info { color: #a7f3d0; }
[data-skin="forest"][data-theme="light"] .gc-unlock-balance-info strong { color: #ffffff; }
[data-skin="forest"][data-theme="light"] .gc-btn-gold-unlock { background: linear-gradient(135deg, #34d399, #059669); color: #064e3b; box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35); }

/* 4. NEON THEME */
[data-skin="cyberpunk"][data-theme="dark"] .gc-badge-unlock-card {
    background: linear-gradient(135deg, rgba(13, 13, 38, 0.95), rgba(5, 5, 16, 0.98));
    border-color: rgba(0, 255, 159, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 255, 159, 0.15);
    color: #f0f0ff;
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-glow-orb { background: radial-gradient(circle, rgba(0, 255, 159, 0.2) 0%, transparent 70%); }
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-icon-wrap { background: linear-gradient(135deg, #00ff9f, #00b4d8); color: #050510; box-shadow: 0 0 25px rgba(0, 255, 159, 0.4); }
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-tag { background: rgba(0, 255, 159, 0.12); color: #00ff9f; border-color: rgba(0, 255, 159, 0.35); }
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-body h2 { color: #ffffff; text-shadow: 0 0 10px rgba(0, 255, 159, 0.3); }
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-body p { color: #cbd5e1; }
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-perk { color: #e2e8f0; }
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-perk i { color: #00ff9f; }
[data-skin="cyberpunk"][data-theme="dark"] .gc-unlock-price-badge { background: rgba(0, 255, 159, 0.12); border-color: rgba(0, 255, 159, 0.35); }
[data-skin="cyberpunk"][data-theme="dark"] .gc-price-val { color: #00ff9f; }
[data-skin="cyberpunk"][data-theme="dark"] .gc-price-unit { color: #a7f3d0; }
[data-skin="cyberpunk"][data-theme="dark"] .gc-btn-gold-unlock { background: linear-gradient(135deg, #00ff9f, #00b4d8); color: #050510; box-shadow: 0 0 25px rgba(0, 255, 159, 0.4); }

/* 5. CYBERPUNK THEME */
[data-theme="cyberpunk"] .gc-badge-unlock-card {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.15);
    color: #fafafa;
}
[data-theme="cyberpunk"] .gc-unlock-glow-orb { background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%); }
[data-theme="cyberpunk"] .gc-unlock-body h2 { color: #fafafa; }
[data-theme="cyberpunk"] .gc-unlock-body p { color: #d4d4d8; }
[data-theme="cyberpunk"] .gc-unlock-perk { color: #e4e4e7; }
[data-theme="cyberpunk"] .gc-unlock-balance-info { color: #d4d4d8; }
[data-theme="cyberpunk"] .gc-unlock-balance-info strong { color: #fafafa; }

/* ── GESTIONNAIRE DES TITRES (DÉBLOQUÉ) ── */
.gc-badge-manager {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gc-active-title-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-radius: 16px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.2));
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

[data-theme="dark"] .gc-active-title-card {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.gc-active-title-label {
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    color: var(--text-muted, #64748b);
    margin-bottom: 6px;
}

.gc-active-title-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gc-user-role-badge.hero-title {
    font-size: 1rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
}

/* Bouton Retirer le titre désigné avec style */
.gc-title-unequip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 750;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-title-unequip-btn i {
    font-size: 0.95rem;
}

.gc-title-unequip-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
    transform: translateY(-1px);
}

[data-theme="dark"] .gc-title-unequip-btn {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

[data-theme="dark"] .gc-title-unequip-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.gc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.80rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.3));
    background: var(--bg-card, #ffffff);
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-btn-secondary:hover {
    background: var(--bg-card-subtle, #f1f5f9);
    color: var(--text-main, #0f172a);
}

.gc-active-title-sub {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    margin-top: 6px;
}

/* Recherche intégrée à côté du titre actif */
.gc-active-title-search {
    flex-shrink: 0;
}

.gc-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.25));
    border-radius: 12px;
    padding: 8px 14px;
    min-width: 260px;
    transition: all 0.2s ease;
}

.gc-search-box.compact {
    min-width: 250px;
    max-width: 320px;
    padding: 8px 14px;
    border-radius: 11px;
    background: var(--bg-card-subtle, rgba(241, 245, 249, 0.7));
    border: 1.5px solid var(--border-panel, rgba(148, 163, 184, 0.25));
}

.gc-search-box.compact:focus-within {
    border-color: #3b82f6;
    background: var(--bg-card, #ffffff);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .gc-search-box {
    background: #1e293b;
}

[data-theme="dark"] .gc-search-box.compact {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .gc-search-box.compact:focus-within {
    border-color: #60a5fa;
    background: #0f172a;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.gc-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-main, #0f172a);
    width: 100%;
}

[data-theme="dark"] .gc-search-box input {
    color: #f8fafc;
}

.gc-search-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.gc-search-clear-btn:hover {
    color: var(--text-main, #0f172a);
}

[data-theme="dark"] .gc-search-clear-btn:hover {
    color: #f8fafc;
}

@media (max-width: 768px) {
    .gc-active-title-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .gc-active-title-search {
        width: 100%;
    }
    .gc-active-title-search .gc-search-box.compact {
        min-width: 100%;
        max-width: 100%;
    }
}

.gc-titles-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gc-title-cats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Titres de Gloire — Sections & Paliers Finaux (Rares) */
.gc-titles-section-header {
    margin-bottom: 12px;
}

.gc-titles-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    font-weight: 850;
    color: var(--text-main, #0f172a);
}

[data-theme="dark"] .gc-titles-section-title {
    color: #f8fafc;
}

.gc-titles-section-title.standard {
    font-size: 0.92rem;
    color: var(--text-muted, #64748b);
    font-weight: 800;
}

.gc-titles-section-sub {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    margin-top: 3px;
}

.gc-rare-crown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    color: #f59e0b;
    font-size: 1rem;
}

.gc-rare-counter-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .gc-rare-counter-pill {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.gc-constellation-group {
    margin-bottom: 1.5rem;
}

.gc-constellation-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--bg-card-subtle, rgba(241, 245, 249, 0.6));
    border-radius: 11px;
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.15));
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

[data-theme="dark"] .gc-constellation-group-header {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.07);
}

.gc-constellation-group-header:hover {
    background: var(--bg-card, #ffffff);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .gc-constellation-group-header:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
}

.gc-constellation-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.90rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

[data-theme="dark"] .gc-constellation-title {
    color: #f1f5f9;
}

.gc-constellation-title i {
    color: #3b82f6;
    font-size: 1.05rem;
}

.gc-constellation-count {
    font-size: 0.70rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.gc-constellation-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.gc-constellation-group-header:hover .gc-constellation-toggle-btn {
    color: var(--text-main, #0f172a);
}

[data-theme="dark"] .gc-constellation-group-header:hover .gc-constellation-toggle-btn {
    color: #f8fafc;
}

.gc-titles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 14px;
}

.gc-title-card.is-rare {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.65), rgba(254, 252, 232, 0.95));
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .gc-title-card.is-rare {
    background: linear-gradient(135deg, rgba(40, 30, 15, 0.7), rgba(30, 41, 59, 0.9));
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.gc-title-card.is-rare:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.22);
}

.gc-title-card.is-rare.is-active {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(254, 243, 199, 0.5));
    box-shadow: 0 0 0 2px #10b981, 0 6px 18px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .gc-title-card.is-rare.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(30, 41, 59, 0.95));
}

.gc-title-card-icon.rare-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.gc-title-name.rare-name {
    font-weight: 850;
    color: #92400e;
}

[data-theme="dark"] .gc-title-name.rare-name {
    color: #fde68a;
}

.gc-rare-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    margin-right: 4px;
}

[data-theme="dark"] .gc-rare-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

.gc-title-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-panel, rgba(148, 163, 184, 0.2));
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .gc-title-card {
    background: #1e293b;
}

.gc-title-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.12);
}

.gc-title-card.is-active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 0 0 1px #10b981;
}

.gc-title-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gc-title-card.is-active .gc-title-card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.gc-title-card-content {
    flex: 1;
    min-width: 0;
}

.gc-title-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
}

[data-theme="dark"] .gc-title-name {
    color: #f8fafc;
}

.gc-title-category {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.gc-title-cat-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.gc-title-card-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.gc-title-active-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gc-title-equip-hint {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3b82f6;
    opacity: 0;
    transition: opacity 0.15s;
}

.gc-title-card:hover .gc-title-equip-hint {
    opacity: 1;
}

.gc-empty-titles-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card, #ffffff);
    border: 1px dashed var(--border-panel, rgba(148, 163, 184, 0.3));
    border-radius: 20px;
}

[data-theme="dark"] .gc-empty-titles-state {
    background: #1e293b;
}

.gc-empty-icon {
    font-size: 3rem;
    color: #60a5fa;
    margin-bottom: 12px;
}

.gc-empty-titles-state h3 {
    font-size: 1.25rem;
    font-weight: 850;
    margin: 0 0 6px;
}

.gc-empty-titles-state p {
    max-width: 500px;
    margin: 0 auto 16px;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- THEME SPECIFIC OVERRIDES FOR CUSTOMIZATION CARDS --- */

/* SAKURA */
[data-skin="sakura"][data-theme="light"] .gc-cust-preview-banner,
[data-skin="sakura"][data-theme="light"] .gc-frame-card,
[data-skin="sakura"][data-theme="light"] .gc-title-card,
[data-skin="sakura"][data-theme="light"] .gc-active-title-card,
[data-skin="sakura"][data-theme="light"] .gc-search-box,
[data-skin="sakura"][data-theme="light"] .gc-empty-titles-state {
    background: #fff5f9;
    border-color: rgba(236, 72, 153, 0.25);
    color: #4a1942;
}
[data-skin="sakura"][data-theme="light"] .gc-frame-card-preview-area {
    background: #fdf2f8;
    border-color: rgba(236, 72, 153, 0.15);
}
[data-skin="sakura"][data-theme="light"] .gc-frame-card-title,
[data-skin="sakura"][data-theme="light"] .gc-title-name,
[data-skin="sakura"][data-theme="light"] .gc-cust-preview-info h3,
[data-skin="sakura"][data-theme="light"] .gc-empty-titles-state h3 {
    color: #4a1942;
}
[data-skin="sakura"][data-theme="light"] .gc-cust-filter-pill {
    background: #fff5f9;
    border-color: rgba(236, 72, 153, 0.25);
    color: #9d174d;
}
[data-skin="sakura"][data-theme="light"] .gc-cust-filter-pill:hover {
    color: #db2777;
    border-color: #db2777;
}
[data-skin="sakura"][data-theme="light"] .gc-cust-filter-pill.active {
    background: #ec4899;
    color: #ffffff;
    border-color: #db2777;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}
[data-skin="sakura"][data-theme="light"] .gc-btn-equip {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
}
[data-skin="sakura"][data-theme="light"] .gc-btn-equip:hover:not(:disabled) {
    background: #ec4899;
    color: #ffffff;
}

/* FOREST */
[data-skin="forest"][data-theme="light"] .gc-cust-preview-banner,
[data-skin="forest"][data-theme="light"] .gc-frame-card,
[data-skin="forest"][data-theme="light"] .gc-title-card,
[data-skin="forest"][data-theme="light"] .gc-active-title-card,
[data-skin="forest"][data-theme="light"] .gc-search-box,
[data-skin="forest"][data-theme="light"] .gc-empty-titles-state {
    background: #faf8f4;
    border-color: #c8c1b3;
    color: #1a2b17;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
[data-skin="forest"][data-theme="light"] .gc-frame-card-preview-area {
    background: #f1efe8;
    border-color: rgba(27, 94, 59, 0.12);
}
[data-skin="forest"][data-theme="light"] .gc-frame-card-title,
[data-skin="forest"][data-theme="light"] .gc-title-name,
[data-skin="forest"][data-theme="light"] .gc-cust-preview-info h3,
[data-skin="forest"][data-theme="light"] .gc-empty-titles-state h3 {
    color: #1a2b17;
}
[data-skin="forest"][data-theme="light"] .gc-cust-filter-pill {
    background: #faf8f4;
    border-color: #c8c1b3;
    color: #5e7058;
}
[data-skin="forest"][data-theme="light"] .gc-cust-filter-pill:hover {
    color: #1b5e3b;
    border-color: #1b5e3b;
}
[data-skin="forest"][data-theme="light"] .gc-cust-filter-pill.active {
    background: #1b5e3b;
    color: #ffffff;
    border-color: #14472c;
    box-shadow: 0 2px 8px rgba(27, 94, 59, 0.25);
}
[data-skin="forest"][data-theme="light"] .gc-btn-equip {
    border-color: #1b5e3b;
    background: rgba(27, 94, 59, 0.08);
    color: #1b5e3b;
}
[data-skin="forest"][data-theme="light"] .gc-btn-equip:hover:not(:disabled) {
    background: #1b5e3b;
    color: #ffffff;
}
[data-skin="forest"][data-theme="light"] .gc-frame-price-badge {
    background: rgba(27, 94, 59, 0.10);
    color: #1b5e3b;
    border-color: rgba(27, 94, 59, 0.25);
}

/* NEON */
[data-skin="cyberpunk"][data-theme="dark"] .gc-cust-preview-banner,
[data-skin="cyberpunk"][data-theme="dark"] .gc-frame-card,
[data-skin="cyberpunk"][data-theme="dark"] .gc-title-card,
[data-skin="cyberpunk"][data-theme="dark"] .gc-active-title-card,
[data-skin="cyberpunk"][data-theme="dark"] .gc-search-box,
[data-skin="cyberpunk"][data-theme="dark"] .gc-empty-titles-state {
    background: #0d0d26;
    border-color: rgba(0, 243, 255, 0.25);
    color: #f0f0ff;
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-frame-card-preview-area {
    background: #050510;
    border-color: rgba(0, 243, 255, 0.15);
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-frame-card-title,
[data-skin="cyberpunk"][data-theme="dark"] .gc-title-name,
[data-skin="cyberpunk"][data-theme="dark"] .gc-cust-preview-info h3,
[data-skin="cyberpunk"][data-theme="dark"] .gc-empty-titles-state h3 {
    color: #f0f0ff;
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-cust-filter-pill {
    background: #0d0d26;
    border-color: rgba(0, 243, 255, 0.25);
    color: #a5f3fc;
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-cust-filter-pill:hover {
    color: #00ff9f;
    border-color: #00ff9f;
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-cust-filter-pill.active {
    background: #00ff9f;
    color: #050510;
    border-color: #00ff9f;
    box-shadow: 0 0 12px rgba(0, 255, 159, 0.35);
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-btn-equip {
    border-color: #00ff9f;
    background: rgba(0, 255, 159, 0.1);
    color: #00ff9f;
}
[data-skin="cyberpunk"][data-theme="dark"] .gc-btn-equip:hover:not(:disabled) {
    background: #00ff9f;
    color: #050510;
}

/* CYBERPUNK */
[data-theme="cyberpunk"] .gc-cust-preview-banner,
[data-theme="cyberpunk"] .gc-frame-card,
[data-theme="cyberpunk"] .gc-title-card,
[data-theme="cyberpunk"] .gc-active-title-card,
[data-theme="cyberpunk"] .gc-search-box,
[data-theme="cyberpunk"] .gc-empty-titles-state {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.12);
    color: #fafafa;
}
[data-theme="cyberpunk"] .gc-frame-card-preview-area {
    background: #111113;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="cyberpunk"] .gc-frame-card-title,
[data-theme="cyberpunk"] .gc-title-name,
[data-theme="cyberpunk"] .gc-cust-preview-info h3,
[data-theme="cyberpunk"] .gc-empty-titles-state h3 {
    color: #fafafa;
}
[data-theme="cyberpunk"] .gc-cust-filter-pill {
    background: #18181b;
    border-color: rgba(245, 158, 11, 0.3);
    color: #d4d4d8;
}
[data-theme="cyberpunk"] .gc-cust-filter-pill:hover {
    color: #f59e0b;
    border-color: #f59e0b;
}
[data-theme="cyberpunk"] .gc-cust-filter-pill.active {
    background: #f59e0b;
    color: #000000;
    border-color: #d97706;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
[data-theme="cyberpunk"] .gc-btn-equip {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}
[data-theme="cyberpunk"] .gc-btn-equip:hover:not(:disabled) {
    background: #f59e0b;
    color: #000000;
}

/* ── Animations Décoratives des Cadres ── */
@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.15) rotate(15deg); opacity: 0.85; }
}

@keyframes decorFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(4deg); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseSoft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes pulseSubtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.starTwinkle { animation: starTwinkle var(--anim-duration, 2.5s) infinite ease-in-out; }
.decorFloat { animation: decorFloat var(--anim-duration, 3s) infinite ease-in-out; }
.bounceSlow { animation: bounceSlow var(--anim-duration, 2s) infinite ease-in-out; }
.spinSlow { animation: spinSlow var(--anim-duration, 12s) infinite linear; }
.pulseSubtle { animation: pulseSubtle var(--anim-duration, 2s) infinite ease-in-out; }
.pulseSoft { animation: pulseSoft var(--anim-duration, 2s) infinite ease-in-out; }

/* ── TAPISSERIE & MOTIFS DE FOND SUR LES CADRES (WALLPAPERS / PATTERNS) ── */
.gc-user-frame,
.gc-mini-card-sample,
.podium-card,
.lb-row {
    position: relative;
    isolation: isolate;
}

.gc-user-frame::before,
.gc-mini-card-sample::before,
.podium-card::before,
.lb-row::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--frame-pattern-img, none);
    background-repeat: var(--frame-pattern-repeat, repeat);
    background-size: var(--frame-pattern-size, auto);
    background-position: var(--frame-pattern-base-x, 50%) var(--frame-pattern-base-y, 50%);
    opacity: var(--frame-pattern-opacity, 0);
    mix-blend-mode: var(--frame-pattern-blend, normal);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
    animation: var(--frame-pattern-animation, none) var(--frame-pattern-duration, 12s) linear infinite;
}

@keyframes framePatternDrift {
    from {
        background-position: var(--frame-pattern-base-x, 50%) var(--frame-pattern-base-y, 50%);
    }
    to {
        background-position:
            calc(var(--frame-pattern-base-x, 50%) + var(--frame-pattern-shift-x, 0px))
            calc(var(--frame-pattern-base-y, 50%) + var(--frame-pattern-shift-y, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-user-frame::before,
    .gc-mini-card-sample::before,
    .podium-card::before,
    .lb-row::before {
        animation: none;
    }
}

.gc-user-frame .gc-avatar,
.gc-user-frame .gc-user-identity,
.gc-mini-card-sample .gc-mini-avatar,
.gc-mini-card-sample .gc-mini-lines,
.podium-card .p-avatar,
.podium-card .p-name,
.podium-card .p-hub,
.podium-card .p-score,
.podium-card .crown-icon,
.podium-card .bg-rank-num,
.lb-row .row-rank,
.lb-row .row-avatar,
.lb-row .row-info,
.lb-row .row-score {
    position: relative;
    z-index: 2;
}
