:root {
    --bg-dark: #0B0E14;
    --bg-sidebar: #12161F;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --accent-blue: #3B82F6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border-color: #1E293B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
    padding-top: 25px;
    /* Add padding for the promo banner */
}

.promo-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Semi-transparent bar aligned with deep-space / Earth backdrop */
    background: linear-gradient(90deg, rgba(6, 14, 32, 0.92), rgba(18, 42, 78, 0.72), rgba(8, 22, 48, 0.88), rgba(18, 42, 78, 0.72), rgba(6, 14, 32, 0.92));
    background-size: 300% auto;
    color: white;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
    pointer-events: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: bannerSnowPattern 15s linear infinite;
}

.promo-banner-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

@keyframes bannerSnowPattern {
    0% {
        background-position: 0% center, 0px -80px;
    }

    100% {
        background-position: 300% center, -80px 0px;
    }
}

@keyframes scrollBannerText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
    overflow: hidden;
}

.dev-credit {
    position: fixed;
    bottom: 10px;
    left: 14px;
    z-index: 50;
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #5a5f6a;
    opacity: 0.88;
    pointer-events: none;
    user-select: none;
}

/* Couches de nébuleuses */
.nebula-layer {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(circle at 20% 30%, rgba(91, 33, 182, 0.45) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(30, 27, 75, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(190, 24, 93, 0.30) 0%, transparent 40%),
        radial-gradient(circle at 65% 25%, rgba(139, 92, 246, 0.35) 0%, transparent 45%);
    filter: blur(100px);
    animation: rotateNebula 60s infinite linear;
}

@keyframes rotateNebula {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cosmic-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: pulseCloud 15s infinite alternate ease-in-out;
}

@keyframes pulseCloud {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.3) translate(5%, 5%);
        opacity: 0.5;
    }
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
}

.star.blue {
    background: #3B82F6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.9);
}

.star.dim {
    opacity: 0.3;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 280px;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.sidebar-external-link {
    text-decoration: none;
    color: var(--text-muted);
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.sidebar-external-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.sidebar-external-link:hover::after {
    width: 100%;
}

.sidebar-external-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: white;
}

.external-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.external-icon {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.arrow-icon {
    margin-left: auto;
    opacity: 0.4;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.sidebar-external-link:hover .arrow-icon {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
    color: var(--accent-blue);
}

.sidebar-external-link:hover .external-icon {
    opacity: 1;
    color: var(--accent-blue);
    transform: rotate(15deg);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-header h2 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-blue);
}

.sidebar-nav {
    padding: 24px 16px;
    overflow-y: auto;
}

.nav-section {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 12px;
}

.mt-4 {
    margin-top: 24px;
}

.nav-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-btn:hover::after,
.nav-btn.active::after,
.nav-btn:active::after {
    width: 100%;
}

.nav-btn:hover:not(.active),
.nav-btn:active:not(.active) {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    color: white;
    padding-left: 20px;
}

.nav-btn.active {
    background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(59, 130, 246, 0.4) 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.lock-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.nav-btn:hover .lock-icon {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-blue);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.nav-btn.unlocked .lock-icon {
    display: none;
}

.main-content {
    flex: 1;
    overflow-y: overlay;
    padding: 40px;
    background: transparent;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.header-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.admin-login-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s;
    background: none;
    border: none;
}

.admin-login-link:hover {
    opacity: 1;
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-glow);
}

.audio-panel {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 12px;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.audio-panel:hover {
    background: rgba(0, 0, 0, 0.4);
}

.volume-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-btn:hover {
    transform: scale(1.1);
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
}

.audio-panel:hover .volume-slider-container {
    width: 100px;
    opacity: 1;
}

#volume-slider {
    width: 100px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.main-content::-webkit-scrollbar {
    display: none;
}

.main-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#content-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-in-out;
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-step {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.guide-step h3 {
    margin-bottom: 8px;
    color: var(--accent-blue);
}

.guide-step p {
    color: var(--text-muted);
    line-height: 1.6;
}

.download-btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Splash Screen / Welcome Overlay */
#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#welcome-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    text-align: center;
    animation: welcomeIn 1.2s ease-out;
}

@keyframes welcomeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.welcome-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 8px;
    margin-bottom: 8px;
    color: white;
}

.welcome-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent-blue);
    margin-bottom: 40px;
    font-weight: 600;
}

.enter-button {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: white;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.enter-button:hover {
    background: var(--accent-blue);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* --- License Store / Redeem UI --- */
.redeem-container {
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.customer-card {
    background: rgba(18, 22, 31, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 70px rgba(45, 95, 145, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.customer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.badge-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
}

.hero-title span {
    color: #E2E8F0;
}

.hero-title .accent {
    background: linear-gradient(135deg, #D1E9FF 0%, #3B82F6 50%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
}

.hero-description {
    color: #94A3B8;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.license-section {
    max-width: 500px;
}

.input-group {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 4px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.input-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
}

.input-field-wrapper {
    flex: 1;
    padding: 0 16px;
}

.input-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.license-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.license-input::placeholder {
    color: #334155;
}

.login-submit {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #E2E8F0;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.login-submit:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent-blue);
}

.discord-btn {
    width: 100%;
    background: #5865F2;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.discord-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
    margin-right: 15px;
    animation: fadeIn 0.5s ease-out;
}

.discord-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.discord-info {
    font-size: 12px;
    font-weight: 600;
}

.discord-id-small {
    font-size: 10px;
    opacity: 0.5;
    margin-left: 4px;
}

/* --- Access Denied / Overlay --- */
.locked-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.access-denied-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.access-denied-msg {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: zoomIn 0.3s ease-out;
}

.denied-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.access-denied-msg h2 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.access-denied-msg p {
    color: #94A3B8;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Admin Panel Styles --- */
.admin-container {
    padding: 20px;
    max-width: none;
    margin: 0;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.admin-card {
    background: rgba(18, 22, 31, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    animation: fadeIn 0.4s ease-out;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-available {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-used {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-accepted {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-refused {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
    font-weight: 800;
}

.status-active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.action-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #ef4444;
    color: white;
}

.gen-box {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.gen-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    color: white;
    outline: none;
}

.gen-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.gen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.ip-text {
    font-family: monospace;
    color: var(--accent-blue);
}

.discord-text {
    font-weight: 600;
}

.logout-user-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    margin-left: 5px;
}

.logout-user-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.logout-user-btn svg {
    width: 14px;
    height: 14px;
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.copy-key-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.copy-key-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}


.admin-search {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    width: 200px;
}

.admin-search:focus {
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.9);
}

/* --- Product Selection Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    animation: fadeIn 0.5s ease-out;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card-content {
    position: relative;
    z-index: 1;
}

.product-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent-blue);
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.product-status {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.back-btn:hover {
    color: var(--accent-blue);
}

/* --- Language Selector Modal --- */
.language-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-overlay.active {
    opacity: 1;
    visibility: visible;
}

.language-modal {
    background: rgba(18, 22, 31, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.language-overlay.active .language-modal {
    transform: translateY(0) scale(1);
}

.language-modal h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-modal p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

.lang-flag {
    font-size: 28px;
}

.lang-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-blur {
    filter: blur(15px);
    transition: filter 0.8s ease;
    pointer-events: none;
}

.reset-hwid-btn-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-hwid-btn-mini:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.reset-hwid-btn-mini svg {
    transition: transform 0.5s ease;
}

.reset-hwid-btn-mini:hover svg {
    transform: rotate(180deg);
}

/* --- Stock Management Styles --- */
.stock-info-bar {
    transition: all 0.3s ease;
}

.stock-info-bar:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px);
}

.stock-badge {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.action-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    border-radius: 8px;
}

.action-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.copyable-key {
    cursor: pointer;
    transition: color 0.2s;
    font-family: monospace;
    font-weight: 600;
}

.copyable-key:hover {
    color: var(--accent-blue);
}

.discord-text {
    font-weight: 600;
    color: #5865F2;
}

.ip-text {
    font-family: monospace;
    opacity: 0.8;
    font-size: 11px;
    white-space: nowrap;
    vertical-align: middle;
}

.admin-search {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.3s;
}

.admin-search:focus {
    border-color: var(--accent-blue);
}

.stock-sub-badge {
    transition: all 0.3s ease;
}

.stock-sub-badge:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: var(--accent-blue) !important;
    transform: scale(1.02);
}
/* --- ANIMATIONS DE TRANSITION PREMIUM --- */
.page-transition {
    animation: premiumReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes premiumReveal {
    0% {
        opacity: 0;
        transform: scale(0.98);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Effet Stagger (Cascade) pour les elements internes */
.guide-step, .admin-card, .redeem-container > *, .product-card {
    opacity: 0;
    animation: staggerFadeIn 0.5s ease-out forwards;
}

.guide-step:nth-child(1), .product-card:nth-child(1) { animation-delay: 0.1s; }
.guide-step:nth-child(2), .product-card:nth-child(2) { animation-delay: 0.15s; }
.guide-step:nth-child(3), .product-card:nth-child(3) { animation-delay: 0.2s; }
.guide-step:nth-child(4), .product-card:nth-child(4) { animation-delay: 0.25s; }
.guide-step:nth-child(5), .product-card:nth-child(5) { animation-delay: 0.3s; }
.guide-step:nth-child(6), .product-card:nth-child(6) { animation-delay: 0.35s; }

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

.banner-image {
    animation: bannerReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes bannerReveal {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
