/* ==========================================================================
   Thème Unscripted — unscripted.fr (thème clair)
   ========================================================================== */

:root {
    --uns-bg: #0b0e14;
    --uns-bg-soft: #10141d;
    --uns-bg-softer: #171c28;
    --uns-card: #131826;
    --uns-card-hi: #1a2030;
    --uns-border: rgba(255, 255, 255, 0.07);
    --uns-border-strong: rgba(255, 255, 255, 0.15);
    --uns-text: #e5e9f0;
    --uns-text-soft: #c5ccda;
    --uns-muted: #8b93a7;
    --uns-primary: #10b981;
    --uns-primary-bright: #34d399;
    --uns-primary-dark: #6ee7b7;
    --uns-primary-soft: rgba(16, 185, 129, 0.14);
    --uns-gold: #fbbf24;
    --uns-radius: 16px;
    --uns-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --uns-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --uns-shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
    --uns-font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --uns-mono: 'JetBrains Mono', 'Consolas', monospace;
    --uns-nav-h: 62px;
    --uns-shopbar-h: 58px;
}

/* ---------- 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.08), transparent 60%),
        radial-gradient(900px 450px at 0% 15%, rgba(59, 130, 246, 0.06), transparent 55%),
        var(--uns-bg);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--uns-primary-dark);
}

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.3rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
}

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

.uns-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

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

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

.uns-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28);
}

.uns-btn-primary:hover {
    color: #fff;
    box-shadow: 0 10px 26px rgba(5, 150, 105, 0.36);
}

.uns-btn-ghost {
    background: var(--uns-card);
    border-color: var(--uns-border-strong);
    color: var(--uns-text);
}

.uns-btn-ghost:hover {
    background: var(--uns-bg-soft);
    border-color: #c3c8d3;
    color: var(--uns-text);
}

.uns-btn-glass {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.uns-btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.uns-btn-icon {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.uns-btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.uns-btn.is-added {
    background: linear-gradient(135deg, #334155, #1e293b);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

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

.uns-card {
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: var(--uns-radius);
    box-shadow: var(--uns-shadow-sm);
    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.92);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--uns-border);
    z-index: 1030;
}

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

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

.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: var(--uns-text) !important;
    background: var(--uns-bg-softer);
}

.uns-dropdown {
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: 14px;
    box-shadow: var(--uns-shadow);
    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,
.uns-dropdown .dropdown-item.active {
    background: var(--uns-bg-softer);
    color: var(--uns-text);
}

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

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

@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;
    }
}

/* ---------- Hero (accueil, vidéo en fond) ---------- */

.uns-hero {
    position: relative;
    min-height: calc(100vh - var(--uns-nav-h));
    min-height: calc(100svh - var(--uns-nav-h));
    display: flex;
    align-items: center;
    padding: 5rem 0 6rem;
    overflow: hidden;
    color: #fff;
    background: #0b0f14;
    isolation: isolate;
}

.uns-hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.uns-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 480px at 50% 45%, rgba(4, 8, 14, 0.25), rgba(4, 8, 14, 0.55) 70%),
        linear-gradient(180deg, rgba(4, 8, 14, 0.45) 0%, rgba(4, 8, 14, 0.2) 35%, rgba(4, 8, 14, 0.45) 80%, rgba(4, 8, 14, 0.7) 100%);
}

.uns-hero-inner {
    width: 100%;
}

.uns-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

.uns-hero-title {
    font-size: clamp(3rem, 11vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}

.uns-hero-subtitle {
    max-width: 640px;
    margin: 0 auto 2.2rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.uns-ip-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

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

.uns-ip-pill:hover {
    border-color: rgba(16, 185, 129, 0.55);
    transform: translateY(-2px);
    box-shadow: var(--uns-shadow-lg);
}

.uns-ip-pill > i {
    color: var(--uns-primary);
    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);
    font-weight: 600;
}

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

.uns-version-pill {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: var(--uns-mono);
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.uns-bedrock-info {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.uns-bedrock-info strong {
    color: #fff;
    font-family: var(--uns-mono);
    font-weight: 700;
}

.uns-bedrock-port {
    position: relative;
    padding: 0.08rem 0.5rem;
    margin-left: 0.15rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--uns-mono);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.uns-bedrock-port:hover {
    background: rgba(255, 255, 255, 0.24);
}

.uns-bedrock-port.copied::after {
    content: "Copié !";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: var(--uns-card);
    color: var(--uns-primary-dark);
    font-family: var(--uns-font);
    font-size: 0.75rem;
    white-space: nowrap;
}

.uns-hero-status {
    margin-top: 1.1rem;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.uns-hero-status strong {
    color: #6ee7b7;
    font-size: 1.15rem;
}

.uns-hero-status .uns-status-offline {
    display: none;
    color: #fca5a5;
    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-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}

.uns-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    animation: uns-bob 2.4s ease-in-out infinite;
}

.uns-hero-scroll:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

@keyframes uns-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

.uns-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    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); }
}

/* ---------- 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.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--uns-primary-dark);
    background: var(--uns-primary-soft);
    border: 1px solid rgba(16, 185, 129, 0.25);
    margin-bottom: 1rem;
}

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

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

/* ---------- 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);
    box-shadow: var(--uns-shadow-sm);
    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: var(--uns-text);
    border-color: color-mix(in srgb, var(--sc) 50%, transparent);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--sc) 16%, 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 0 4px color-mix(in srgb, var(--sc) 18%, transparent);
    margin-bottom: 0.35rem;
}

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

.uns-server-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--uns-border);
    background: var(--uns-bg-soft);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--sc) 18%, transparent);
}

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

.uns-clip-player {
    aspect-ratio: 16 / 9;
    background: #0b0f14;
}

.uns-clip-player video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uns-clip-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.2rem 1rem 0.9rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.uns-clip-label {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.uns-clip-steps {
    display: flex;
    gap: 6px;
    pointer-events: auto;
}

.uns-clip-step {
    width: 26px;
    height: 16px;
    padding: 6px 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.uns-clip-step span {
    position: relative;
    display: block;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.uns-clip-step span::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--uns-card);
    border-radius: 4px;
}

.uns-clip-step.is-done span::after {
    width: 100%;
}

.uns-clip-step.is-active span::after {
    width: var(--p, 0%);
    transition: width 0.25s linear;
}

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

.uns-server-heading {
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--uns-text);
    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) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--sc) 24%, transparent);
    font-size: 1rem;
}

.uns-feature-list li strong {
    display: block;
    color: var(--uns-text);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

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

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

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

.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: var(--uns-card);
}

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

.uns-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--uns-shadow);
}

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

.uns-post-title a {
    color: var(--uns-text);
    font-weight: 700;
}

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

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

.uns-cta {
    border-radius: 24px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background:
        radial-gradient(620px 240px at 50% 0%, rgba(16, 185, 129, 0.12), transparent 70%),
        var(--uns-bg-soft);
}

/* ==========================================================================
   BOUTIQUE
   ========================================================================== */

.uns-shop-wrap {
    position: relative;
}

/* ---------- Barre des catégories ---------- */

.uns-shopbar {
    position: sticky;
    top: var(--uns-nav-h);
    z-index: 1020;
    background: rgba(11, 14, 20, 0.92);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--uns-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.uns-shopbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: var(--uns-shopbar-h);
    position: relative;
}

.uns-shopbar-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
    padding: 0.5rem 0;
}

.uns-shopbar-nav::-webkit-scrollbar {
    display: none;
}

.uns-shopbar-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    color: var(--uns-muted);
    font-weight: 600;
    font-size: 0.98rem;
    transition: color 0.2s ease;
}

.uns-shopbar-link:hover {
    color: var(--uns-text);
}

.uns-shopbar-link.active {
    color: #fff;
}

.uns-shopbar-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    height: 40px;
    margin-top: -20px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), width 0.35s cubic-bezier(.4, 0, .2, 1);
    z-index: 0;
}

.uns-shopbar-user {
    position: absolute;
    right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--uns-text-soft);
}

.uns-shopbar-avatar {
    border-radius: 8px;
}

.uns-shopbar-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uns-shopbar-action {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--uns-border);
    background: var(--uns-card);
    color: var(--uns-muted);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.uns-shopbar-action:hover {
    color: var(--uns-text);
    border-color: var(--uns-border-strong);
}

@media (max-width: 991.98px) {
    .uns-shopbar-user {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .uns-shopbar-inner {
        justify-content: flex-start;
    }

    .uns-shopbar-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.92rem;
    }
}

/* ---------- Contenu ---------- */

.uns-shop {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.uns-shop-intro {
    text-align: center;
    color: var(--uns-muted);
    font-size: 0.95rem;
    margin: 0 auto 1rem;
    max-width: 720px;
}

.uns-shop-intro i {
    color: #f43f5e;
    margin-right: 0.3rem;
}

.uns-shop-section {
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
    scroll-margin-top: calc(var(--uns-nav-h) + var(--uns-shopbar-h) + 16px);
}

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

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

.uns-shop-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 900;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    color: var(--uns-text);
    margin: 0;
}

.uns-shop-section-desc {
    max-width: 680px;
    margin: 0.5rem auto 0;
}

.uns-shop-section-desc p:last-child {
    margin-bottom: 0;
}

.uns-shop-subtitle {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--uns-text);
    margin: 2.2rem 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.uns-lootbox-tables > .uns-shop-subtitle + p {
    text-align: center;
}

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

.uns-product {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: 20px;
    box-shadow: var(--uns-shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.uns-product:hover {
    transform: translateY(-4px);
    border-color: var(--uns-border-strong);
    box-shadow: var(--uns-shadow-lg);
}

.uns-product-discount {
    position: absolute;
    top: 14px;
    right: 14px;
    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 16px rgba(239, 68, 68, 0.3);
}

.uns-product-media {
    display: block;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(70% 70% at 50% 45%, var(--uns-card-hi), var(--uns-bg-soft));
    border-bottom: 1px solid var(--uns-border);
}

.uns-product-img {
    display: block;
    width: 100%;
    transition: transform 0.35s ease;
}

.uns-product--pack .uns-product-media {
    aspect-ratio: 16 / 9;
}

.uns-product--pack .uns-product-img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

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

.uns-product--kit .uns-product-media {
    aspect-ratio: 1 / 1;
    background: #0b0f14;
}

.uns-product--kit .uns-product-img {
    height: 100%;
    object-fit: cover;
}

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

.uns-product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem 1.35rem 1.35rem;
}

.uns-product-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--uns-text);
    margin-bottom: 0.35rem;
}

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

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

.uns-rarity-chip {
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rarity, var(--uns-muted));
    background: color-mix(in srgb, var(--rarity, #6b7280) 9%, var(--uns-card));
    border: 1px solid color-mix(in srgb, var(--rarity, #6b7280) 28%, transparent);
}

.uns-product-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.uns-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

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

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

.uns-price-period {
    color: var(--uns-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.uns-product-actions {
    display: flex;
    gap: 0.5rem;
}

/* ---------- Fenêtres (produit, kits) ---------- */

.uns-body .modal-content {
    border: 1px solid var(--uns-border);
    border-radius: 20px;
    box-shadow: var(--uns-shadow-lg);
}

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

#itemModal .modal-content {
    background: var(--uns-bg-soft);
}

#itemModal .modal-title {
    font-weight: 800;
}

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

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

.uns-modal-header .modal-title > i {
    color: var(--kit-color);
}

.uns-kit-modal-price {
    margin-left: 0.4rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--kit-color);
    background: color-mix(in srgb, var(--kit-color) 12%, var(--uns-card));
}

/* ---------- Kits : cartes (si aucun produit) ---------- */

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

.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) 12%, var(--uns-card));
}

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

/* ---------- Inventaire Minecraft (aperçu des kits) ---------- */

.mc-inventory {
    --slot: 46px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    padding: 1.1rem;
    border-radius: 6px;
    background: #c6c6c6;
    border: 3px solid;
    border-color: #fff #555 #555 #fff;
    box-shadow: 0 0 0 2px #1b1b1b;
}

.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: #3f3f3f;
    font-weight: 600;
}

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

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

.mc-slot {
    position: relative;
    width: var(--slot);
    height: var(--slot);
    background: #8b8b8b;
    border: 2px solid;
    border-color: #373737 #fff #fff #373737;
    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: #a5a5a5;
    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 #3f3f3f;
    pointer-events: none;
}

.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, var(--uns-card));
    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);
}

.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;
}

.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, #6b6b6b, #4a4a4a);
    color: #eee;
    font-family: var(--uns-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.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;
    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; }
}

@media (max-width: 576px) {
    .mc-inventory {
        --slot: 31px;
        padding: 0.7rem;
    }

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

/* ---------- Lootboxes à l'unité : colonnes de probabilités ---------- */

.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) 9%, var(--uns-card));
    border: 1px solid color-mix(in srgb, var(--rc) 28%, transparent);
}

.uns-lootbox-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(236px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    scroll-snap-type: x proximity;
}

.uns-lb-col {
    display: flex;
    flex-direction: column;
    max-height: 680px;
    min-width: 0;
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-top: 3px solid var(--lb);
    border-radius: 16px;
    box-shadow: var(--uns-shadow-sm);
    overflow: hidden;
    scroll-snap-align: start;
}

.uns-lb-head {
    flex-shrink: 0;
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--uns-border);
    background:
        radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--lb) 9%, var(--uns-card)), var(--uns-card));
    text-align: center;
}

.uns-lb-illustration {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: contain;
    margin: 0 auto 0.4rem;
}

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

.uns-lb-subtitle {
    color: var(--uns-muted);
    font-size: 0.84rem;
    margin: 0.3rem 0 0.45rem;
    min-height: 2.5em;
}

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

.uns-lb-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--uns-border);
}

.uns-lb-buy .uns-btn {
    width: auto !important;
}

.uns-lb-price {
    white-space: nowrap;
    font-size: 1.25rem;
}

.uns-lb-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--uns-bg-soft);
}

.uns-lb-row {
    flex-shrink: 0;
    position: relative;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--uns-card);
    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.87rem;
    font-weight: 500;
    color: var(--uns-text);
}

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

.uns-lb-gauge {
    height: 5px;
    border-radius: 999px;
    background: var(--uns-bg-softer);
    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);
}

.uns-lb-row.is-mythic {
    border-color: color-mix(in srgb, var(--rc) 45%, transparent);
    background: color-mix(in srgb, var(--rc) 6%, var(--uns-card));
    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) 35%, 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 {
    font-weight: 700;
    color: #fff;
}

@media (max-width: 576px) {
    .uns-lootbox-columns {
        grid-template-columns: repeat(5, 80vw);
    }
}

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

.uns-grades-wrap {
    max-width: 1060px;
    margin: 0 auto;
    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.8rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--uns-border);
}

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

.uns-grades-table tbody tr:hover > * {
    background-color: var(--uns-bg-soft);
}

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

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

.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.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.uns-grade-col-head {
    position: relative;
    vertical-align: bottom;
    min-width: 175px;
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-bottom: 3px solid var(--gc) !important;
    border-radius: 16px 16px 0 0;
    overflow: visible;
}

.uns-grade-col-head + .uns-grade-col-head {
    border-left: none;
}

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

.uns-grade-glint {
    display: none;
}

.uns-grade-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: var(--gc);
    color: #fff;
    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: 16px;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: var(--gc);
    background: color-mix(in srgb, var(--gc) 11%, var(--uns-card));
    border: 1px solid color-mix(in srgb, var(--gc) 26%, 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: var(--uns-text);
}

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

.uns-btn-grade {
    background: var(--gc);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--gc) 30%, transparent);
}

.uns-btn-grade:hover {
    color: #fff;
    filter: brightness(1.06);
}

.uns-grade-prefix-row td {
    background: var(--uns-bg-soft);
}

.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) 10%, var(--uns-card));
    border: 1px solid color-mix(in srgb, var(--gc) 30%, 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) 12%, var(--uns-card));
    font-size: 1rem;
}

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

.uns-cell-text {
    font-weight: 700;
    color: var(--uns-text);
    font-size: 0.9rem;
}

/* Immortal : noir / rouge avec reflet (glint) */

.uns-grade-col-head.is-grade-immortal {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(239, 68, 68, 0.5), transparent 72%),
        linear-gradient(180deg, #3d0f14, #1a090b);
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.22);
    overflow: hidden;
}

.uns-grade-col-head.is-grade-immortal .uns-grade-name {
    color: #fff;
    letter-spacing: 0.04em;
}

.uns-grade-col-head.is-grade-immortal .uns-grade-price {
    color: #f87171;
}

.uns-grade-col-head.is-grade-immortal .uns-grade-emblem {
    color: #fca5a5;
    background: linear-gradient(135deg, #6b161e, #2e0b0f);
    border-color: rgba(248, 113, 113, 0.45);
    box-shadow: 0 0 22px rgba(220, 38, 38, 0.45);
}

.uns-grade-col-head.is-grade-immortal .uns-grade-badge {
    top: 8px;
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

.uns-grade-col-head.is-grade-immortal .uns-btn-grade {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.is-grade-immortal .uns-grade-glint,
.uns-grade-prefix.is-grade-immortal::after {
    /* Une seule bande de lumière qui traverse puis attend hors du cadre. */
    content: "";
    display: block;
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 0;
    width: 45%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 220, 220, 0), rgba(255, 220, 220, 0.38) 50%, rgba(255, 220, 220, 0));
    transform: translateX(-130%) skewX(-18deg);
    animation: uns-glint 3.6s ease-in-out infinite;
    z-index: 1;
}

.uns-grade-col-head.is-grade-immortal > *:not(.uns-grade-glint) {
    position: relative;
    z-index: 2;
}

.uns-grade-col-head.is-grade-immortal > .uns-grade-badge {
    position: absolute;
}

@keyframes uns-glint {
    0% { transform: translateX(-130%) skewX(-18deg); }
    55%, 100% { transform: translateX(360%) skewX(-18deg); }
}

.uns-grade-prefix.is-grade-immortal {
    position: relative;
    overflow: hidden;
    color: #fecaca;
    background: linear-gradient(135deg, #4a1218, #22090c);
    border-color: #7f1d1d;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

td.is-grade-immortal .uns-cell-yes {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

td.is-grade-immortal .uns-cell-text {
    color: #f87171;
}

/* ==========================================================================
   PANIER FLOTTANT
   ========================================================================== */

.uns-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 370px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - var(--uns-nav-h) - 40px);
    display: flex;
    flex-direction: column;
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: opacity 0.2s ease;
}

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

.uns-cart.is-entering {
    animation: uns-cart-in 0.45s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes uns-cart-in {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.uns-cart.is-busy {
    cursor: progress;
}

.uns-cart.is-busy .uns-cart-body {
    opacity: 0.6;
    pointer-events: none;
}

.uns-cart-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--uns-border);
    background: var(--uns-card);
    color: var(--uns-text);
    text-align: left;
    cursor: pointer;
}

.uns-cart-head-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.uns-cart-head-icon.is-bump {
    animation: uns-bump 0.5s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes uns-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.uns-cart-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: #0b0e14;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    border: 2px solid var(--uns-card);
}

.uns-cart-head-title {
    font-weight: 800;
    font-size: 1rem;
}

.uns-cart-head-total {
    margin-left: auto;
    font-weight: 800;
    font-size: 1rem;
}

.uns-cart-chevron {
    color: var(--uns-muted);
    transition: transform 0.25s ease;
}

.uns-cart.is-collapsed .uns-cart-chevron {
    transform: rotate(180deg);
}

.uns-cart.is-collapsed .uns-cart-body {
    display: none;
}

.uns-cart.is-collapsed .uns-cart-head {
    border-bottom: 0;
}

.uns-cart-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: opacity 0.15s ease;
}

.uns-cart-items {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    overflow-y: auto;
    max-height: 290px;
}

.uns-cart-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    grid-template-areas:
        "thumb info total"
        "thumb qty total";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    padding: 0.55rem;
    border-radius: 14px;
    transition: background 0.3s ease;
}

.uns-cart-item + .uns-cart-item {
    margin-top: 2px;
}

.uns-cart-item.is-new {
    animation: uns-cart-item-in 0.55s cubic-bezier(.2, .9, .3, 1.15) both, uns-cart-flash 1.4s ease 0.2s;
}

.uns-cart-item.is-updated {
    animation: uns-cart-flash 1.2s ease;
}

@keyframes uns-cart-item-in {
    from { opacity: 0; transform: translateX(28px); max-height: 0; }
    to { opacity: 1; transform: none; max-height: 120px; }
}

@keyframes uns-cart-flash {
    0% { background: rgba(16, 185, 129, 0.16); }
    100% { background: transparent; }
}

.uns-cart-thumb {
    grid-area: thumb;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--uns-bg-soft);
    border: 1px solid var(--uns-border);
    overflow: hidden;
    color: var(--uns-muted);
}

.uns-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uns-cart-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.uns-cart-name {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uns-cart-unit {
    color: var(--uns-muted);
    font-size: 0.78rem;
}

.uns-cart-qty {
    grid-area: qty;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.uns-cart-qty-btn {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid var(--uns-border);
    background: var(--uns-card);
    color: var(--uns-text-soft);
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.uns-cart-qty-btn:hover:not(:disabled) {
    background: var(--uns-bg-soft);
    border-color: var(--uns-border-strong);
}

.uns-cart-qty-btn:disabled {
    opacity: 0.4;
}

.uns-cart-qty-value {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.uns-cart-line-total {
    grid-area: total;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

.uns-cart-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0 1rem 0.5rem;
}

.uns-cart-code {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--uns-primary-dark);
    background: var(--uns-primary-soft);
}

.uns-cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--uns-border);
    font-weight: 600;
}

.uns-cart-total del {
    color: var(--uns-muted);
    font-size: 0.85rem;
    margin-right: 0.35rem;
}

.uns-cart-total strong {
    font-size: 1.3rem;
    font-weight: 900;
}

.uns-cart-checkout {
    padding: 0 1rem 0.6rem;
}

.uns-cart-terms {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
    color: var(--uns-muted);
    cursor: pointer;
}

.uns-cart-terms .form-check-input {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.uns-cart-links {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 1rem 0.85rem;
    font-size: 0.8rem;
}

.uns-cart-links a,
.uns-cart-links button {
    color: var(--uns-muted);
    background: none;
    border: 0;
    padding: 0;
}

.uns-cart-links a:hover,
.uns-cart-links button:hover {
    color: var(--uns-text);
}

.uns-cart-ghost {
    position: fixed;
    z-index: 2000;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--uns-card);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.uns-cart-ghost.is-dot {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
}

@media (max-width: 575.98px) {
    .uns-cart {
        right: 10px;
        left: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
    }
}

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

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

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

.uns-body .card,
.uns-body .modal-content {
    background: var(--uns-card);
    color: var(--uns-text);
}

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

.uns-body .form-check-input:checked {
    background-color: var(--uns-primary);
    border-color: var(--uns-primary);
}

.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);
}

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

/* Sidebar (encore utilisée par la page d'identification boutique) */

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

.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;
}

.uns-shop-nav-link:hover {
    background: var(--uns-bg-soft);
    color: var(--uns-text);
}

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

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

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

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

.uns-progress {
    height: 9px;
    border-radius: 999px;
    background: var(--uns-bg-softer);
    overflow: hidden;
}

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

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

.uns-footer {
    background: var(--uns-bg-soft);
    border-top: 1px solid var(--uns-border);
}

.uns-footer-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--uns-text);
}

.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-dark);
    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: var(--uns-card);
    border: 1px solid var(--uns-border);
    color: var(--uns-text-soft);
    font-size: 1.1rem;
    margin-left: 0.5rem;
    transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.uns-social-link:hover {
    transform: translateY(-3px);
    color: var(--uns-primary);
    border-color: rgba(16, 185, 129, 0.4);
}

.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);
}

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

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

/* Laisse la place au panier flottant en bas de la boutique */
.uns-shop-page .uns-footer {
    padding-bottom: 1rem;
}

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

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

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

/* Les cartes produit gardent leur propre transition au survol une fois apparues. */
.uns-product.reveal.revealed {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .uns-live-dot,
    .uns-hero-scroll,
    .mc-slot.is-ench::before,
    .uns-lb-row.is-mythic::after,
    .is-grade-immortal .uns-grade-glint,
    .uns-grade-prefix.is-grade-immortal::after,
    .uns-cart.is-entering,
    .uns-cart-item.is-new,
    .uns-cart-item.is-updated {
        animation: none;
    }
}

.uns-grade-col-head.is-grade-immortal.is-featured {
    padding-top: 2.2rem;
}

/* La couleur Immortal ne dépend pas de la config admin : noir / rouge partout. */
.is-grade-immortal {
    --gc: #dc2626 !important;
}

/* La navbar est dans <header> : c'est lui qui doit rester collé en haut. */
#app > header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

#itemModal .modal-footer > span {
    font-size: 1.35rem;
    font-weight: 900;
}

.uns-shop-login {
    max-width: 520px;
    margin: 2rem auto;
}


/* Emplacement mis en avant (Lootbox Immortal du Kit Finale) : halo rouge + reflet. */
.mc-slot.is-highlight {
    background: radial-gradient(circle at 50% 40%, #5a141b, #1c0709 80%);
    border-color: #3b0a0f #f87171 #f87171 #3b0a0f;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.55), 0 0 16px rgba(239, 68, 68, 0.6);
    animation: mc-slot-pulse 2.2s ease-in-out infinite;
    overflow: hidden;
}

.mc-slot.is-highlight img {
    width: calc(var(--slot) - 6px);
    height: calc(var(--slot) - 6px);
    image-rendering: auto;
    position: relative;
    z-index: 1;
    filter: brightness(1.25) drop-shadow(0 0 5px rgba(255, 110, 110, 0.75));
}

.mc-slot.is-highlight::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 55%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 230, 230, 0), rgba(255, 230, 230, 0.75) 50%, rgba(255, 230, 230, 0));
    transform: translateX(-140%) skewX(-18deg);
    animation: mc-slot-glint 2.4s ease-in-out infinite;
    z-index: 2;
}

.mc-slot.is-highlight:hover {
    background: radial-gradient(circle at 50% 40%, #7a1a22, #2a0a0d 80%);
}

@keyframes mc-slot-glint {
    0% { transform: translateX(-140%) skewX(-18deg); }
    55%, 100% { transform: translateX(300%) skewX(-18deg); }
}

@keyframes mc-slot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5), 0 0 12px rgba(239, 68, 68, 0.45); }
    50% { box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.9), 0 0 22px rgba(239, 68, 68, 0.85); }
}

@media (prefers-reduced-motion: reduce) {
    .mc-slot.is-highlight,
    .mc-slot.is-highlight::before {
        animation: none;
    }
}

/* Ligne d'avantage mise en avant (option « en avant » dans la config des grades) :
   contour rouge/noir dont le dégradé tourne autour de la ligne, façon cote très jouée. */
@property --uns-hot-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.uns-grades-wrap {
    position: relative;
}

.uns-hot-ring--row {
    inset: auto;
    top: 0;
    left: 0;
}

.uns-grades-table tr.uns-grade-row-hot > * {
    background-color: rgba(239, 68, 68, 0.07);
}

.uns-grades-table tr.uns-grade-row-hot > th[scope="row"] {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.07)), var(--uns-bg);
}

.uns-hot-icon {
    color: #f87171;
    margin-right: 0.35rem;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.7));
}

.uns-hot-ring {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 12px;
    padding: 2px;
    pointer-events: none;
    background: conic-gradient(from var(--uns-hot-angle),
        #ef4444 0deg, #0b0b0d 70deg, #0b0b0d 110deg, #ff6b6b 180deg,
        #0b0b0d 250deg, #0b0b0d 290deg, #ef4444 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.55));
    animation: uns-hot-spin 2.6s linear infinite;
}

@keyframes uns-hot-spin {
    to { --uns-hot-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .uns-hot-ring {
        animation: none;
    }
}

/* Produit mis en avant (Pack Lootboxes Demon) : même contour animé + badge. */
.uns-product--best {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 34px rgba(239, 68, 68, 0.18);
}

.uns-hot-ring--card {
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    z-index: 4;
    background: conic-gradient(from var(--uns-hot-angle),
        #ef4444 0deg, #ff8a8a 30deg, #b91c1c 60deg, #0b0b0d 100deg, #0b0b0d 125deg,
        #ef4444 180deg, #ff8a8a 210deg, #b91c1c 240deg, #0b0b0d 280deg, #0b0b0d 305deg, #ef4444 360deg);
    animation-duration: 3.2s;
}

.uns-product-best {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}


/* Le fond teinté s'arrête au contour arrondi de la ligne. */
.uns-grades-table tr.uns-grade-row-hot > * {
    border-bottom-color: transparent;
}

.uns-grades-table tr.uns-grade-row-hot > :first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.uns-grades-table tr.uns-grade-row-hot > :last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Survol d'une ligne mise en avant : on garde le rouge sur toute la ligne (un peu plus marqué). */
.uns-grades-table tbody tr.uns-grade-row-hot:hover > * {
    background-color: rgba(239, 68, 68, 0.12);
}

.uns-grades-table tbody tr.uns-grade-row-hot:hover > th[scope="row"] {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.12)), var(--uns-bg);
}

/* ================= FAQ ================= */
.uns-faq {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.uns-faq-item {
    background: var(--uns-card);
    border: 1px solid var(--uns-border);
    border-radius: var(--uns-radius);
    transition: border-color .2s ease, background .2s ease;
}
.uns-faq-item[open] {
    border-color: var(--uns-border-strong);
    background: var(--uns-card-hi);
}
.uns-faq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--uns-text);
}
.uns-faq-item summary::-webkit-details-marker { display: none; }
.uns-faq-item summary:focus-visible {
    outline: 2px solid var(--uns-primary);
    outline-offset: 2px;
    border-radius: var(--uns-radius);
}
.uns-faq-icon {
    flex: 0 0 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--uns-primary-soft);
    color: var(--uns-primary-bright);
}
.uns-faq-q { flex: 1; }
.uns-faq-chevron {
    color: var(--uns-muted);
    transition: transform .2s ease;
}
.uns-faq-item[open] .uns-faq-chevron { transform: rotate(180deg); }
.uns-faq-a {
    padding: 0 20px 20px 70px;
    color: var(--uns-text-soft);
    line-height: 1.65;
}
.uns-faq-a code {
    font-family: var(--uns-mono);
    background: var(--uns-bg-softer);
    border: 1px solid var(--uns-border);
    border-radius: 6px;
    padding: 1px 6px;
    color: var(--uns-primary-dark);
}
@media (max-width: 576px) {
    .uns-faq-item summary { padding: 14px 16px; gap: 10px; }
    .uns-faq-a { padding: 0 16px 16px 16px; }
}
