/* ==========================================================================
   Thème Unscripted — unscripted.fr
   ========================================================================== */

:root {
    --uns-bg: #0b0e14;
    --uns-bg-soft: #10141d;
    --uns-card: #131826;
    --uns-border: rgba(255, 255, 255, 0.07);
    --uns-text: #e5e9f0;
    --uns-muted: #8b93a7;
    --uns-primary: #10b981;
    --uns-primary-soft: rgba(16, 185, 129, 0.14);
    --uns-primary-bright: #34d399;
    --uns-gold: #fbbf24;
    --uns-radius: 16px;
    --uns-font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --uns-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ---------- Base ---------- */

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body.uns-body {
    font-family: var(--uns-font);
    color: var(--uns-text);
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(16, 185, 129, 0.09), transparent 60%),
        radial-gradient(900px 450px at 0% 15%, rgba(59, 130, 246, 0.07), transparent 55%),
        var(--uns-bg);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--uns-primary-bright);
}

a:hover {
    color: #6ee7b7;
}

img {
    max-width: 100%;
    height: auto;
}

.uns-muted {
    color: var(--uns-muted);
}

.uns-page {
    min-height: 60vh;
}

::selection {
    background: rgba(16, 185, 129, 0.35);
}

/* ---------- Boutons ---------- */

.uns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.65rem 1.4rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    line-height: 1.4;
}

.uns-btn:hover {
    transform: translateY(-2px);
}

.uns-btn-lg {
    padding: 0.85rem 1.9rem;
    font-size: 1.05rem;
}

.uns-btn-sm {
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
}

.uns-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #06281c;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.uns-btn-primary:hover {
    color: #06281c;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.uns-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--uns-border);
    color: var(--uns-text);
}

.uns-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* ---------- Cartes ---------- */

.uns-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: var(--uns-radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ---------- Navbar ---------- */

.uns-navbar {
    background: rgba(11, 14, 20, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--uns-border);
}

.uns-brand {
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff !important;
}

.uns-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
}

.uns-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uns-nav-link {
    font-weight: 500;
    color: var(--uns-muted) !important;
    border-radius: 10px;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.15s ease, background 0.15s ease;
}

.uns-nav-link:hover,
.uns-nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

.uns-dropdown {
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: 14px;
    overflow: hidden;
    padding: 0.4rem;
}

.uns-dropdown .dropdown-item {
    border-radius: 9px;
    padding: 0.55rem 0.9rem;
    color: var(--uns-text);
}

.uns-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.uns-online-pill[data-offline] {
    display: none;
}

.uns-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: var(--uns-primary-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--uns-primary-bright);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.uns-hero {
    position: relative;
    min-height: 88vh;
    padding: 7rem 0 5rem;
    overflow: hidden;
}

.uns-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 340px at 50% 0%, rgba(16, 185, 129, 0.16), transparent 65%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 42px);
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000 55%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.uns-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: var(--uns-primary-soft);
    color: var(--uns-primary-bright);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.6rem;
}

.uns-hero-title {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff, #9fb2c8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 20px 60px rgba(16, 185, 129, 0.25);
}

.uns-hero-subtitle {
    max-width: 640px;
    margin: 0 auto 2.4rem;
    color: var(--uns-muted);
    font-size: 1.15rem;
}

/* IP pill */

.uns-ip-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--uns-border);
    border-radius: 14px;
    color: var(--uns-text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.uns-ip-pill:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.07);
    transform: translateY(-2px);
}

.uns-ip-pill > i {
    color: var(--uns-primary-bright);
    font-size: 1.2rem;
}

.uns-ip-text {
    font-family: var(--uns-mono);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.uns-ip-copy {
    color: var(--uns-muted);
}

.uns-ip-copied {
    color: var(--uns-primary-bright);
    font-weight: 600;
}

.uns-ip-pill.copied .uns-ip-copy {
    display: none;
}

/* Statut serveur (hero) */

.uns-hero-status {
    font-size: 1.02rem;
    color: var(--uns-muted);
}

.uns-hero-status strong {
    color: var(--uns-primary-bright);
    font-size: 1.15rem;
}

.uns-hero-status .uns-status-offline {
    display: none;
    color: #f87171;
    font-weight: 600;
}

.uns-hero-status[data-offline] .uns-status-online {
    display: none;
}

.uns-hero-status[data-offline] .uns-status-offline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.uns-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--uns-primary-bright);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: uns-pulse 2s infinite;
}

@keyframes uns-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.uns-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.4rem;
}

/* ---------- Sections ---------- */

.uns-section {
    padding: 4.5rem 0.75rem;
}

.uns-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.uns-section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--uns-primary-bright);
    background: var(--uns-primary-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 1rem;
}

.uns-section-title {
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    color: #fff;
}

.uns-section-desc {
    color: var(--uns-muted);
    font-size: 1.05rem;
}

/* ---------- Serveurs ---------- */

.uns-server-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4);
}

.uns-server-name {
    font-weight: 700;
    font-size: 1.25rem;
}

.uns-server-count strong {
    font-size: 1.7rem;
    color: var(--uns-primary-bright);
}

.uns-server-address {
    font-family: var(--uns-mono);
    color: var(--uns-muted);
    cursor: pointer;
    font-size: 0.92rem;
}

.uns-server-address:hover {
    color: var(--uns-primary-bright);
}

.uns-badge-offline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
    font-weight: 600;
    font-size: 0.9rem;
}

.uns-progress {
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.uns-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.6s ease;
}

/* ---------- Features ---------- */

.uns-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
}

.uns-feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--fi, var(--uns-primary-bright));
    background: color-mix(in srgb, var(--fi, var(--uns-primary-bright)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--fi, var(--uns-primary-bright)) 30%, transparent);
    margin-bottom: 1.1rem;
}

.uns-feature h4 {
    font-weight: 700;
    font-size: 1.15rem;
}

.uns-feature p {
    color: var(--uns-muted);
    margin-bottom: 0;
}

/* ---------- Galerie ---------- */

.uns-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.uns-gallery-item {
    margin: 0;
    border-radius: var(--uns-radius);
    overflow: hidden;
    border: 1px solid var(--uns-border);
    aspect-ratio: 16 / 10;
    background: var(--uns-card);
}

.uns-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.uns-gallery-item:hover img {
    transform: scale(1.06);
}

.uns-gallery-item[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .uns-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- News ---------- */

.uns-post:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
}

.uns-post-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.uns-post-title a {
    color: #fff;
    font-weight: 700;
}

.uns-post-title a:hover {
    color: var(--uns-primary-bright);
}

/* ---------- CTA ---------- */

.uns-cta {
    border-radius: 22px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background:
        radial-gradient(600px 220px at 50% 0%, rgba(16, 185, 129, 0.16), transparent 70%),
        var(--uns-card);
}

/* ---------- Kits ---------- */

.uns-kit-card {
    --kit-color: var(--uns-primary-bright);
}

.uns-kit-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--kit-color) 55%, transparent);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--kit-color) 18%, transparent);
}

.uns-kit-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    font-size: 1.7rem;
    color: var(--kit-color);
    background: color-mix(in srgb, var(--kit-color) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--kit-color) 35%, transparent);
}

.uns-kit-name {
    font-weight: 800;
    color: var(--kit-color);
}

/* ---------- Inventaire Minecraft ---------- */

.uns-kit-modal .uns-modal-content {
    background: var(--uns-bg-soft);
    border: 1px solid color-mix(in srgb, var(--kit-color, #34d399) 40%, transparent);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.uns-modal-header {
    border-bottom: 1px solid var(--uns-border);
}

.uns-modal-header .modal-title {
    font-weight: 800;
    color: var(--kit-color, #fff);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mc-inventory {
    --slot: 46px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    padding: 1.1rem;
    border-radius: 12px;
    background: #181b22;
    border: 2px solid #262b36;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.04), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.mc-equipment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    width: 100%;
    padding-bottom: 4px;
}

.mc-armor {
    display: grid;
    grid-template-columns: repeat(4, var(--slot));
    gap: 4px;
}

.mc-offhand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--uns-muted);
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(9, var(--slot));
    gap: 4px;
}

.mc-hotbar {
    padding-top: 10px;
    border-top: 2px solid #262b36;
}

.mc-slot {
    position: relative;
    width: var(--slot);
    height: var(--slot);
    background: #10131a;
    border: 2px solid;
    border-color: #05070b #2e3442 #2e3442 #05070b;
    border-radius: 3px;
    display: grid;
    place-items: center;
}

.mc-slot img {
    width: calc(var(--slot) - 14px);
    height: calc(var(--slot) - 14px);
    object-fit: contain;
    image-rendering: pixelated;
}

.mc-slot.has-item {
    cursor: pointer;
}

.mc-slot.has-item:hover {
    background: #1d2330;
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: -2px;
    z-index: 5;
}

.mc-count {
    position: absolute;
    right: 2px;
    bottom: 0;
    font-family: var(--uns-mono);
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    text-shadow: 1.5px 1.5px 0 #000;
    pointer-events: none;
}

/* Tooltip façon Minecraft */

.mc-slot.has-item::after {
    content: attr(data-name);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
    background: rgba(16, 0, 16, 0.95);
    border: 2px solid rgba(80, 0, 255, 0.55);
    border-radius: 4px;
    color: var(--tip-color, #fff);
    font-family: var(--uns-mono);
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, transform 0.12s ease;
    pointer-events: none;
    z-index: 50;
}

.mc-slot.has-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Fallback icône item : carré coloré avec initiales */

.mc-item-fallback {
    display: grid;
    place-items: center;
    width: calc(var(--slot) - 14px);
    height: calc(var(--slot) - 14px);
    border-radius: 4px;
    background: linear-gradient(135deg, #2b3242, #1a1f2b);
    color: #aab3c5;
    font-family: var(--uns-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .mc-inventory {
        --slot: 32px;
    }

    .mc-equipment {
        flex-direction: column;
        gap: 12px;
    }
}

/* ---------- Boutique ---------- */

.uns-shop-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.uns-product {
    position: relative;
    display: flex;
    flex-direction: column;
}

.uns-product:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.uns-product-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.uns-product-img-wrap {
    display: block;
    background: #0d1017;
    border-bottom: 1px solid var(--uns-border);
}

.uns-product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.uns-product:hover .uns-product-img {
    transform: scale(1.07);
}

.uns-product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.uns-product-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.uns-rarity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0.75rem;
}

.uns-rarity-chip {
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rarity, var(--uns-muted));
    background: color-mix(in srgb, var(--rarity, #9ca3af) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--rarity, #9ca3af) 40%, transparent);
}

.uns-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem;
}

.uns-price {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--uns-primary-bright);
}

.uns-price-old {
    color: var(--uns-muted);
    font-size: 1rem;
}

.uns-price-period {
    color: var(--uns-muted);
    font-size: .9rem;
    font-weight: 600;
    margin-left: .15rem;
}

.uns-product-actions {
    margin-top: auto;
}

/* Sidebar boutique */

.uns-shop-sidebar .uns-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    padding: 0.9rem 1rem 0.6rem;
    color: #fff;
}

.uns-shop-nav {
    display: flex;
    flex-direction: column;
    padding: 0 0.6rem 0.8rem;
    gap: 2px;
}

.uns-shop-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    color: var(--uns-muted);
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.uns-shop-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.uns-shop-nav-link.active {
    background: var(--uns-primary-soft);
    color: var(--uns-primary-bright);
    font-weight: 700;
}

.uns-shop-nav-sub {
    padding-left: 2rem;
    font-size: 0.93rem;
}

.uns-avatar {
    border-radius: 10px;
}

.uns-sidebar-username {
    font-size: 1.05rem;
    font-weight: 700;
}

.uns-recent-item + .uns-recent-item {
    border-top: 1px solid var(--uns-border);
}

/* Modal package (contenu chargé en AJAX par le plugin shop) */

#itemModal .modal-content {
    background: var(--uns-bg-soft);
    border: 1px solid var(--uns-border);
    border-radius: 18px;
}

#itemModal .modal-header {
    border-bottom-color: var(--uns-border);
}

#itemModal .modal-footer {
    border-top-color: var(--uns-border);
}

#itemModal .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    font-weight: 700;
}

/* ---------- Cartes Bootstrap génériques (auth, profil, pages…) ---------- */

.uns-body .card {
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: var(--uns-radius);
}

.uns-body .form-control,
.uns-body .form-select {
    background: #0d1017;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--uns-text);
    border-radius: 10px;
}

.uns-body .form-control:focus,
.uns-body .form-select:focus {
    border-color: var(--uns-primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2);
    background: #0d1017;
    color: var(--uns-text);
}

.uns-body .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    font-weight: 600;
}

.uns-body .btn-primary:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
}

/* ---------- Footer ---------- */

.uns-footer {
    background: rgba(9, 11, 17, 0.9);
    border-top: 1px solid var(--uns-border);
}

.uns-footer-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.uns-footer-tagline {
    color: var(--uns-muted);
    font-size: 0.92rem;
}

.uns-footer-ip {
    font-family: var(--uns-mono);
    font-weight: 700;
    color: var(--uns-primary-bright);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.uns-social-link {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--uns-border);
    color: var(--uns-text);
    font-size: 1.1rem;
    margin-left: 0.5rem;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.uns-social-link:hover {
    transform: translateY(-3px);
    background: var(--uns-primary-soft);
    color: var(--uns-primary-bright);
}

.uns-footer-bottom {
    border-top: 1px solid var(--uns-border);
    color: var(--uns-muted);
    font-size: 0.9rem;
}

.uns-footer-link {
    color: var(--uns-muted);
    text-decoration: none;
}

.uns-footer-link:hover {
    color: var(--uns-primary-bright);
    text-decoration: underline;
}

.uns-footer-disclaimer {
    font-size: 0.78rem;
    opacity: 0.75;
}

/* ---------- Animations d'apparition ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .uns-live-dot,
    .mc-slot.is-ench::before,
    .uns-lb-row.is-mythic::after {
        animation: none;
    }
}

/* ==========================================================================
   AJOUTS — réseau 3-en-1, sections serveurs, vidéo, lootboxes, grades
   ========================================================================== */

/* ---------- Navbar : onglets centrés ---------- */

@media (min-width: 768px) {
    .uns-navbar .container {
        position: relative;
    }

    .uns-nav-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .uns-nav-right {
        margin-left: auto;
    }
}

/* ---------- Version pill ---------- */

.uns-version-pill {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--uns-border);
    color: var(--uns-muted);
    font-family: var(--uns-mono);
    font-size: 0.85rem;
    vertical-align: middle;
}

/* ---------- Chips 3-en-1 ---------- */

.uns-chip-3in1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    color: var(--uns-text);
    font-weight: 700;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.uns-chip-3in1:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: color-mix(in srgb, var(--sc) 55%, transparent);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--sc) 18%, transparent);
}

.uns-chip-3in1 small {
    color: var(--uns-muted);
    font-family: var(--uns-mono);
    font-size: 0.78rem;
    font-weight: 500;
}

.uns-chip-3in1-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sc);
    box-shadow: 0 0 12px var(--sc);
    margin-bottom: 0.35rem;
}

/* ---------- Sections serveurs ---------- */

.uns-server-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--sc) 30%, var(--uns-border));
    background:
        radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--sc) 16%, transparent), transparent 60%),
        var(--uns-bg-soft);
}

.uns-server-visual img {
    display: block;
    width: 100%;
}

.uns-server-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sc);
    background: color-mix(in srgb, var(--sc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--sc) 35%, transparent);
    margin-bottom: 0.9rem;
}

.uns-server-heading {
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #fff;
    margin-bottom: 0.6rem;
}

.uns-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uns-feature-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.uns-feature-check {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--sc);
    background: color-mix(in srgb, var(--sc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent);
    font-size: 1rem;
}

.uns-feature-list li strong {
    display: block;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.uns-feature-list li span {
    color: var(--uns-muted);
    font-size: 0.95rem;
}

/* ---------- Vidéo / live ---------- */

.uns-video {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--uns-border);
    background: #000;
}

.uns-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
}

.uns-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.uns-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: radial-gradient(circle at 50% 40%, #2a1745, #120a1f);
}

.uns-video-live {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.uns-video-live .uns-live-dot {
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

/* ---------- Kit : icône de slot spéciale + glint enchantement ---------- */

.mc-slot-icon {
    display: grid;
    place-items: center;
    width: calc(var(--slot) - 12px);
    height: calc(var(--slot) - 12px);
    font-size: calc(var(--slot) - 22px);
}

.mc-slot.is-ench::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 2px;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 32%, rgba(190, 130, 255, 0.6) 50%, transparent 68%);
    background-size: 220% 100%;
    animation: mc-glint 2.6s linear infinite;
    mix-blend-mode: screen;
    z-index: 2;
}

@keyframes mc-glint {
    0% { background-position: 220% 0; }
    100% { background-position: -220% 0; }
}

.mc-slot.has-item[data-sub]::after {
    content: attr(data-name) "\A" attr(data-sub);
    white-space: pre;
    text-align: center;
    line-height: 1.35;
}

/* ---------- Lootboxes ---------- */

.uns-lootbox-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.uns-lb-legend-item {
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rc);
    background: color-mix(in srgb, var(--rc) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
}

.uns-lootbox-columns {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x proximity;

    /* Casse la largeur contrainte du parent (colonne + .container) pour utiliser
       toute la largeur de l'écran : il n'y a rien à gauche à cet endroit de la
       page (le sidebar de catégories est plus court), donc autant réduire le
       scroll horizontal. Petite marge + fondu sur les côtés pour indiquer que
       ça déborde.
       Largeur/position exactes posées en JS (voir elements/lootboxes.blade.php) :
       100vw inclut la scrollbar sur la plupart des navigateurs, ce qui décale
       tout vers la droite et ajoute une scrollbar globale — on mesure donc la
       vraie largeur visible en JS plutôt que d'utiliser vw. */
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.uns-lb-col {
    flex: 0 0 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    max-height: 660px;
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
}

.uns-lb-head {
    flex-shrink: 0;
    padding: 16px;
    border-bottom: 1px solid var(--uns-border);
    background: color-mix(in srgb, var(--lb) 10%, transparent);
}

.uns-lb-illustration {
    display: block;
    width: 100%;
    max-height: 130px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.uns-lb-title {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--lb);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uns-lb-subtitle {
    color: var(--uns-muted);
    font-size: 0.85rem;
    margin: 0.35rem 0 0.5rem;
}

.uns-lb-count {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lb);
}

.uns-lb-buy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--uns-border);
}

.uns-lb-price {
    /* Taille/couleur/police viennent de .uns-price (même style que les autres
       prix de la boutique) ; on ne garde ici que l'ajustement de layout. */
    white-space: nowrap;
}

.uns-lb-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.uns-lb-row {
    flex-shrink: 0;
    position: relative;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--uns-border);
}

.uns-lb-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 6px;
}

.uns-lb-item-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--uns-text);
}

.uns-lb-proba {
    flex-shrink: 0;
    font-family: var(--uns-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--rc);
}

.uns-lb-gauge {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.uns-lb-gauge-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--rc);
}

.uns-lb-rarity {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rc);
}

/* items rares : effet animé tape-à-l'œil */
.uns-lb-row.is-mythic {
    border-color: color-mix(in srgb, var(--rc) 55%, transparent);
    background:
        linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
        color-mix(in srgb, var(--rc) 10%, transparent);
    overflow: hidden;
}

.uns-lb-row.is-mythic::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, var(--rc) 40%, transparent) 50%, transparent 65%);
    background-size: 250% 100%;
    animation: uns-mythic 3s linear infinite;
}

@keyframes uns-mythic {
    0% { background-position: 250% 0; }
    100% { background-position: -250% 0; }
}

.uns-lb-row.is-mythic .uns-lb-item-name {
    color: #fff;
    font-weight: 700;
}

/* ---------- Boutique : sections & titres ---------- */

.uns-shop-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 90px;
}

.uns-shop-section-head {
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--uns-border);
}

.uns-shop-section-title {
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.uns-shop-section-desc {
    margin: 0.4rem 0 0;
}

.uns-shop-subtitle {
    font-weight: 700;
    color: #fff;
    margin: 2.2rem 0 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uns-shop-welcome {
    color: var(--uns-text);
}

.uns-product-desc {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

/* ---------- Grades : tableau comparatif ---------- */

.uns-grades-wrap {
    overflow-x: auto;
    padding-top: 22px;
    padding-bottom: 6px;
}

.uns-grades-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
}

.uns-grades-table th,
.uns-grades-table td {
    padding: 0.85rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--uns-border);
}

.uns-grades-table tbody th[scope="row"] {
    text-align: left;
    font-weight: 600;
    color: var(--uns-text);
    background: var(--uns-bg-soft);
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 190px;
}

.uns-grades-corner {
    background: transparent;
    border-bottom: none !important;
}

.uns-grade-category-row th {
    text-align: left;
    position: sticky;
    left: 0;
    padding-top: 1.6rem;
    padding-bottom: 0.5rem;
    background: var(--uns-bg);
    color: var(--uns-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--uns-border) !important;
}

.uns-grades-corner-label {
    color: var(--uns-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.uns-grade-col-head {
    vertical-align: bottom;
    min-width: 170px;
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-bottom: 3px solid var(--gc);
    border-radius: 14px 14px 0 0;
    position: relative;
}

.uns-grade-col-head.is-featured {
    background:
        radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--gc) 16%, transparent), transparent 70%),
        var(--uns-card);
}

.uns-grade-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--gc);
    color: #1a1300;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.uns-grade-emblem {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0.4rem auto 0.7rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: var(--gc);
    background: color-mix(in srgb, var(--gc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--gc) 32%, transparent);
    overflow: hidden;
}

.uns-grade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uns-grade-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.uns-grade-price {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--gc);
    margin-bottom: 0.7rem;
}

.uns-grade-prefix-row td {
    background: rgba(255, 255, 255, 0.02);
}

.uns-grade-prefix {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    font-family: var(--uns-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gc);
    background: color-mix(in srgb, var(--gc) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--gc) 35%, transparent);
}

.uns-cell-yes {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--gc);
    background: color-mix(in srgb, var(--gc) 15%, transparent);
    font-size: 1rem;
}

.uns-cell-no {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.uns-cell-text {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .uns-lb-col {
        flex-basis: 82vw;
        max-width: 82vw;
    }
}
