.forge-onboarding-backdrop {
    position: fixed;
    top: calc(var(--fs-fixed-top-offset, 0px) + var(--fs-common-navbar-h, 64px));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px) saturate(1.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: forgeObFadeIn 0.25s ease;
    overflow: hidden;
    overscroll-behavior: contain;
}

.forge-onboarding-modal {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - var(--fs-fixed-top-offset, 0px) - var(--fs-common-navbar-h, 64px) - 2rem);
    max-height: calc(100dvh - var(--fs-fixed-top-offset, 0px) - var(--fs-common-navbar-h, 64px) - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(160deg, #181818 0%, #242424 55%, #1f1f1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

html.forge-onboarding-open,
body.forge-onboarding-open {
    overflow: hidden;
}

.forge-onboarding-modal::before {
    content: '';
    position: absolute;
    inset: -40% -30% auto -30%;
    height: 55%;
    background: radial-gradient(circle at 35% 35%, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.0) 60%);
    pointer-events: none;
}

.forge-onboarding-modal::after {
    content: '';
    position: absolute;
    inset: auto -30% -45% -30%;
    height: 60%;
    background: radial-gradient(circle at 55% 65%, rgba(88, 101, 242, 0.14), rgba(88, 101, 242, 0.0) 62%);
    pointer-events: none;
}

/* Masque la scrollbar (mais garde le scroll si nécessaire) */
.forge-ob-scroll {
    scrollbar-width: none; /* Firefox */
}
.forge-ob-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.forge-onboarding-modal h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.forge-onboarding-modal .subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.forge-onboarding-apps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.forge-onboarding-app {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.forge-onboarding-app.recommended {
    border-color: rgba(249, 115, 22, 0.55);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.10), rgba(249, 115, 22, 0.045));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(249, 115, 22, 0.10) inset;
}

.forge-onboarding-app .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #f97316;
    background: rgba(249, 115, 22, 0.10);
    border: 1px solid rgba(249, 115, 22, 0.22);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.30);
}

.forge-onboarding-app .icon i {
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

.forge-onboarding-app.recommended .icon {
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.35),
        0 0 34px rgba(249, 115, 22, 0.16);
}

.forge-onboarding-app .meta {
    flex: 1;
    min-width: 0;
}

.forge-onboarding-app .meta strong {
    display: block;
    font-size: 0.95rem;
}

.forge-onboarding-app .meta span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.forge-onboarding-app .badge-rec {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f97316;
    font-weight: 700;
    margin-left: 0.35rem;
}

.forge-onboarding-app .status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.forge-onboarding-app .status.ok {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.forge-onboarding-app .status.pending {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.forge-onboarding-app .btn-link {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    cursor: pointer;
}

.forge-onboarding-app .btn-link.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.forge-onboarding-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

.forge-onboarding-footer .btn-skip {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
}

.forge-onboarding-footer .btn-skip:hover {
    color: white;
}

.forge-onboarding-footer .btn-all {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.forge-discord-checkout-banner {
    margin: 0 auto 1rem;
    max-width: 920px;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(88, 101, 242, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
}

.forge-discord-checkout-banner__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.16);
    color: #8ea0ff;
    font-size: 1.15rem;
}

.forge-discord-checkout-banner__body {
    min-width: 0;
}

.forge-discord-checkout-banner__title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.forge-discord-checkout-banner p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.64);
}

.forge-discord-checkout-banner__action,
.forge-discord-checkout-banner a.forge-discord-checkout-banner__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.58rem 0.85rem;
    border-radius: 9px;
    font-weight: 750;
    font-size: 0.8rem;
    line-height: 1;
    text-decoration: none;
    background: #5865f2;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.22);
}

.forge-discord-checkout-banner--inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.72);
}

.forge-discord-checkout-banner--inline .fab {
    color: #8ea0ff;
}

@media (max-width: 640px) {
    .forge-discord-checkout-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .forge-discord-checkout-banner__action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.forge-toast-linked {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10060;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #14532d;
    border: 1px solid #22c55e;
    color: #ecfdf5;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: forgeObFadeIn 0.3s ease;
}

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