/* Espace utilisateur (licences, roulette, boutique, liaison du launcher).
   Charge apres /style.css : l'en-tete flottant, les boutons .primary /
   .secondary, les titres de section et le pied de page sont ceux de
   l'accueil. Ce fichier n'ajoute que les composants propres au compte. */

.account-body {
    --c-grey: #6f7774;
    --c-blue: #4aa8ff;
    --c-violet: #9d7bff;
    --c-rose: #ff5fa8;
    --c-gold: #ffc247;
    --c-green: #4ade80;
    overflow-x: hidden;
}

.account-main {
    min-height: 70vh;
    padding-bottom: 40px;
}

[hidden] {
    display: none !important;
}

code {
    font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, monospace;
}

/* ============== EN-TETE : coins et profil ============== */
.coin-chip {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(240, 185, 74, 0.28);
    border-radius: 10px;
    background: rgba(240, 185, 74, 0.08);
    color: #ffd98a;
    font-size: 14px;
    font-weight: 700;
    transition:
        border-color 0.2s var(--ease),
        background 0.2s var(--ease);
}

.coin-chip i {
    color: var(--amber);
    font-size: 15px;
}

.coin-chip:hover {
    border-color: rgba(240, 185, 74, 0.55);
    background: rgba(240, 185, 74, 0.14);
}

.coin-chip.bump strong {
    animation: coin-bump 0.6s var(--ease);
}

@keyframes coin-bump {
    40% {
        transform: scale(1.35);
        color: #fff;
    }
}

.profile-menu {
    position: relative;
}

.profile-chip {
    min-height: 42px;
    padding: 4px 12px 4px 4px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
}

.profile-chip:hover,
.profile-menu.open .profile-chip {
    border-color: rgba(204, 86, 221, 0.4);
}

.profile-chip > i {
    color: var(--muted-2);
    font-size: 10px;
    transition: transform 0.2s var(--ease);
}

.profile-menu.open .profile-chip > i {
    transform: rotate(180deg);
}

.chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.chip-avatar.fallback {
    display: grid;
    place-items: center;
    background: var(--mint-soft);
    color: var(--mint);
    font-weight: 800;
    font-size: 13px;
}

.chip-name {
    max-width: 130px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(18, 19, 19, 0.96);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.18s var(--ease),
        transform 0.18s var(--ease),
        visibility 0.18s;
}

.profile-menu.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.profile-dropdown-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line-soft);
}

.profile-dropdown-head small {
    color: var(--muted-2);
    font-size: 11.5px;
}

.profile-dropdown a,
.profile-dropdown button {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #c7ccca;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.profile-dropdown a i,
.profile-dropdown button i {
    width: 16px;
    color: var(--muted-2);
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.profile-dropdown form {
    margin: 0;
}

.profile-dropdown button:hover i {
    color: var(--red);
}

/* ============== HERO ============== */
.account-hero {
    position: relative;
    min-height: 440px;
    padding: 136px 0 118px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.account-hero-shader {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg);
    -webkit-mask-image: radial-gradient(120% 110% at 50% 20%, #000 30%, rgba(0, 0, 0, 0.5) 60%, transparent 90%);
    mask-image: radial-gradient(120% 110% at 50% 20%, #000 30%, rgba(0, 0, 0, 0.5) 60%, transparent 90%);
}

.account-hero-shader canvas {
    opacity: 0;
    transition: opacity 0.9s var(--ease);
}

.account-hero-shader[data-shader="ready"] canvas {
    opacity: 0.85;
}

.account-hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: auto 0 -1px;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg) 92%);
    pointer-events: none;
}

.account-hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.account-hero h1 {
    margin: 20px 0 20px;
    display: grid;
    justify-items: center;
    gap: 6px;
    font-family: "Akony", "OpenSans", sans-serif;
    font-size: clamp(38px, 7vw, 92px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.account-hero h1 .solid {
    color: #f3f5f4;
}

.account-hero h1 .outline {
    color: var(--mint);
    text-shadow:
        0 0 22px rgba(204, 86, 221, 0.3),
        0 0 60px rgba(204, 86, 221, 0.2);
}

.account-hero[data-tone="gold"] h1 .outline {
    color: var(--c-gold);
    text-shadow:
        0 0 22px rgba(255, 194, 71, 0.3),
        0 0 60px rgba(255, 194, 71, 0.18);
}

.account-hero[data-tone="rose"] h1 .outline {
    color: var(--c-rose);
    text-shadow:
        0 0 22px rgba(255, 95, 168, 0.3),
        0 0 60px rgba(255, 95, 168, 0.18);
}

.account-hero-inner > p {
    max-width: 640px;
    margin: 0;
    color: #d8dcda;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 1.9vw, 20px);
    font-style: italic;
    line-height: 1.45;
}

.account-hero-inner > p em {
    color: #fff;
    font-style: normal;
    font-weight: 700;
    font-family: "OpenSans", Inter, system-ui, sans-serif;
}

.account-hero-inner > * {
    animation: item-reveal 0.62s var(--ease) both;
}

.account-hero-inner > :nth-child(2) {
    animation-delay: 0.08s;
}

.account-hero-inner > :nth-child(3) {
    animation-delay: 0.16s;
}

/* ============== BANDE DE STATS ============== */
.stat-band {
    position: relative;
    z-index: 4;
    margin-top: -72px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.stat-card {
    --tone: var(--mint);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.045);
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 60%),
        rgba(18, 19, 19, 0.78);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.stat-card[data-tone="violet"] {
    --tone: var(--c-violet);
}
.stat-card[data-tone="blue"] {
    --tone: var(--c-blue);
}
.stat-card[data-tone="amber"] {
    --tone: var(--amber);
}
.stat-card[data-tone="rose"] {
    --tone: var(--c-rose);
}

.stat-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--tone) 14%, transparent);
    color: var(--tone);
    font-size: 18px;
}

.stat-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-copy strong {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* ============== SECTIONS ============== */
.account-section {
    position: relative;
    padding-block: clamp(48px, 6vw, 72px) 0;
}

.section-heading.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading.split h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3.6vw, 44px);
}

.section-heading.split > p {
    max-width: 420px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
}

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

/* ============== BANNIERE ============== */
.notice {
    margin-top: 26px;
    padding: 13px 14px 13px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 14px;
    background: rgba(74, 222, 128, 0.08);
    color: #d9fbe6;
    font-size: 14px;
    animation: item-reveal 0.5s var(--ease) both;
}

.notice > i {
    color: var(--c-green);
    font-size: 16px;
}

.notice.error {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(248, 113, 113, 0.08);
    color: #ffe0e0;
}

.notice.error > i {
    color: var(--red);
}

.notice > span {
    flex: 1;
}

.notice code {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    user-select: all;
}

.notice.inline {
    margin: 0 0 20px;
    text-align: left;
}

.notice-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

.notice-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06);
}

/* ============== BOUTONS COMPLEMENTAIRES ============== */
.primary.discord {
    background: var(--discord);
    color: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.3);
}

.primary.discord:hover {
    box-shadow:
        0 13px 35px rgba(88, 101, 242, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.3);
}

.primary:disabled,
.primary[disabled] {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-2);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

button.secondary {
    background: transparent;
    cursor: pointer;
}

.small-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12.5px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition:
        color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        background 0.2s var(--ease);
}

.icon-btn i {
    font-size: 12px;
}

.icon-btn:hover {
    color: var(--mint);
    border-color: rgba(204, 86, 221, 0.4);
}

.icon-btn.danger:hover {
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.06);
}

.icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.icon-btn.copied {
    color: var(--c-green);
    border-color: rgba(74, 222, 128, 0.4);
}

/* ============== CARTES LICENCE ============== */
.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 15px;
}

.license-card,
.shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    transition:
        transform 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.license-card:hover,
.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 86, 221, 0.25);
}

.license-visual,
.shop-visual {
    position: relative;
    height: 118px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
}

.license-visual::after,
.shop-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(5, 7, 7, 0.3);
}

.license-visual-icon,
.shop-visual-icon {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 30px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.license-visual .pill {
    position: absolute;
    z-index: 2;
    right: 14px;
    top: 14px;
}

.license-card .download-field i:nth-child(1) {
    background: #cc56dd;
}
.license-card .download-field i:nth-child(2) {
    background: #3a1d4a;
}
.license-card .download-field i:nth-child(3) {
    background: #f0a6ff;
}
.license-card[data-status="unused"] .download-field i:nth-child(1) {
    background: #4aa8ff;
}
.license-card[data-status="unused"] .download-field i:nth-child(3) {
    background: #a8d8ff;
}
.license-card[data-status="expired"] .download-field i:nth-child(1) {
    background: #f0b94a;
}
.license-card[data-status="expired"] .download-field i:nth-child(2) {
    background: #3d2c10;
}
.license-card[data-status="expired"] .download-field i:nth-child(3) {
    background: #ffe2a8;
}
.license-card[data-status="revoked"] .download-field i:nth-child(1) {
    background: #f87171;
}
.license-card[data-status="revoked"] .download-field i:nth-child(2) {
    background: #3d1212;
}
.license-card[data-status="revoked"] .download-field i:nth-child(3) {
    background: #ffc2c2;
}
.license-card[data-status="expired"],
.license-card[data-status="revoked"] {
    opacity: 0.82;
}

.license-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.license-body h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.license-key {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -6px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.license-key code {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #c7ccca;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 10, 10, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--violet);
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.pill.active {
    color: var(--c-green);
}
.pill.unused {
    color: var(--c-blue);
}
.pill.expired {
    color: var(--amber);
}
.pill.revoked {
    color: var(--red);
}

.license-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.meta-label {
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-value {
    font-size: 14.5px;
}

.meta-sub {
    color: var(--muted-2);
    font-size: 11.5px;
}

.progress {
    height: 5px;
    margin-top: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--mint), #f0a6ff);
}

.progress.full i {
    background: var(--amber);
}

.machine-block {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.machines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.machine {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px 9px 11px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.02);
}

.machine form {
    margin: 0;
}

.machine-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--mint-soft);
    color: var(--mint);
    font-size: 13px;
}

.machine-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.machine-name {
    overflow: hidden;
    font-size: 13.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.machine-meta {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.machine-meta code {
    font-size: 10.5px;
}

.via-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
}

.via-badge[data-via="account"] {
    background: var(--mint-soft);
    color: var(--mint);
}

.via-badge i {
    font-size: 9px;
}

.cooldown-note {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 12px;
}

.empty-machines {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed var(--line);
    border-radius: 13px;
    color: var(--muted-2);
    font-size: 12.5px;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 52px 20px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.012);
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--mint-soft);
    color: var(--mint);
    font-size: 24px;
}

.empty-state h3 {
    margin: 12px 0 0;
    font-size: 20px;
}

.empty-state p {
    margin: 0 0 14px;
    max-width: 440px;
    font-size: 14px;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

/* ============== FORMULAIRES ============== */
.claim-form,
.link-form {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.input-wrap > i {
    position: absolute;
    left: 16px;
    color: var(--muted-2);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s var(--ease);
}

.input-wrap input {
    width: 100%;
    height: 49px;
    padding: 0 16px 0 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #0d0d0d;
    color: var(--text);
    font: inherit;
    font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, monospace;
    font-size: 14px;
    letter-spacing: 0.04em;
    outline: 0;
    transition:
        border-color 0.2s var(--ease),
        box-shadow 0.2s var(--ease);
}

.input-wrap input::placeholder {
    color: #4d5452;
}

.input-wrap input:focus {
    border-color: rgba(204, 86, 221, 0.5);
    box-shadow: 0 0 0 3px rgba(204, 86, 221, 0.08);
}

.input-wrap:focus-within > i {
    color: var(--mint);
}

/* ============== LAUNCHER ============== */
.launcher-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 15px;
}

.launcher-steps,
.sessions-card,
.history-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    overflow: hidden;
}

.launcher-steps-visual {
    position: relative;
    height: 96px;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--line);
}

.launcher-steps-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(5, 7, 7, 0.3);
}

.launcher-steps-visual > i {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 28px;
}

.launcher-steps .download-field i:nth-child(1) {
    background: #9286ff;
}
.launcher-steps .download-field i:nth-child(2) {
    background: #29234b;
}
.launcher-steps .download-field i:nth-child(3) {
    background: #cc56dd;
}

.launcher-steps ol {
    margin: 0;
    padding: 18px 20px 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
}

.launcher-steps li {
    display: flex;
    gap: 14px;
}

.launcher-steps li > span {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(204, 86, 221, 0.35);
    border-radius: 50%;
    color: var(--mint);
    font-size: 12px;
    font-weight: 800;
}

.launcher-steps li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.launcher-steps li strong {
    font-size: 14.5px;
}

.launcher-steps li small {
    color: var(--muted);
    font-size: 12.5px;
}

.launcher-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 16px 20px 20px;
}

.launcher-actions .secondary {
    min-height: 42px;
}

.sessions-card {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sessions-card .machine-icon {
    background: rgba(146, 134, 255, 0.14);
    color: #b3a9ff;
}

.sessions-footer {
    margin: 4px 0 0;
    display: flex;
    justify-content: flex-end;
}

/* ============== PANNEAU CENTRE (connexion, liaison) ============== */
.auth-wrap {
    padding: 132px 0 40px;
}

.auth-panel {
    --tone: var(--mint);
    width: min(540px, 100%);
    margin: 0 auto;
    padding: 42px 36px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--tone) 12%, transparent), transparent 62%),
        var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: item-reveal 0.6s var(--ease) both;
}

.auth-panel[data-tone="discord"] {
    --tone: var(--discord);
}
.auth-panel[data-tone="error"] {
    --tone: var(--red);
}
.auth-panel[data-tone="ok"] {
    --tone: var(--c-green);
}
.auth-panel[data-tone="violet"] {
    --tone: var(--c-violet);
}
.auth-panel[data-tone="muted"] {
    --tone: var(--muted);
}

.auth-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
    border-radius: 21px;
    background: color-mix(in srgb, var(--tone) 14%, transparent);
    color: var(--tone);
    font-size: 28px;
}

.auth-panel h1 {
    margin: 12px 0 12px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-panel h1 em {
    color: var(--mint);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: normal;
}

.auth-panel > p {
    max-width: 420px;
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.6;
}

.auth-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.auth-actions form {
    margin: 0;
}

.auth-actions .link-form {
    width: 100%;
}

.fineprint {
    width: 100%;
    margin: 12px 0 0;
    color: var(--muted-2);
    font-size: 11.5px;
}

.fineprint code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 10.5px;
}

.link-code {
    margin: 0 0 14px;
    padding: 14px 26px;
    border: 1px dashed rgba(204, 86, 221, 0.5);
    border-radius: 16px;
    background: rgba(204, 86, 221, 0.06);
    color: #fff;
    font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, monospace;
    font-size: clamp(28px, 6vw, 38px);
    font-weight: 700;
    letter-spacing: 0.14em;
}

.link-device {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #c7ccca;
    font-size: 14px;
    font-weight: 600;
}

.link-device i {
    color: var(--mint);
}

.link-scope {
    width: 100%;
    margin: 0 0 24px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    list-style: none;
    text-align: left;
    font-size: 13px;
}

.link-scope li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c7ccca;
}

.link-scope .fa-check {
    color: var(--c-green);
}

.link-scope .fa-xmark {
    color: var(--red);
}

/* ============== ROULETTE ============== */
.roulette-stage {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(255, 194, 71, 0.08), transparent 70%),
        var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stage-badge {
    --tone: var(--c-green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 10%, transparent);
    color: var(--tone);
    font-size: 12px;
    font-weight: 800;
}

.stage-badge[data-mode="bonus"] {
    --tone: var(--c-violet);
}
.stage-badge[data-mode="coins"] {
    --tone: var(--amber);
}
.stage-badge[data-mode="locked"] {
    --tone: var(--muted-2);
}

.stage-badge[data-mode="free"] i {
    animation: badge-wiggle 2.4s ease-in-out infinite;
}

@keyframes badge-wiggle {
    0%,
    80%,
    100% {
        transform: rotate(0);
    }
    85% {
        transform: rotate(-14deg);
    }
    90% {
        transform: rotate(12deg);
    }
    95% {
        transform: rotate(-6deg);
    }
}

.stage-note {
    font-size: 12px;
}

.reel {
    position: relative;
    height: 196px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 46px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 46px 100%,
        #0b0b0b;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
}

.reel-strip {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    will-change: transform;
}

.reel-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 3;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, transparent, #fff 18%, #fff 82%, transparent);
    box-shadow:
        0 0 14px rgba(204, 86, 221, 0.95),
        0 0 40px rgba(204, 86, 221, 0.5);
}

.reel-marker::before,
.reel-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    margin-left: -9px;
    border: 9px solid transparent;
    filter: drop-shadow(0 0 8px rgba(204, 86, 221, 0.9));
}

.reel-marker::before {
    top: -1px;
    border-top-color: var(--mint);
}

.reel-marker::after {
    bottom: -1px;
    border-bottom-color: var(--mint);
}

.reel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 24%;
    pointer-events: none;
}

.reel-fade.left {
    left: 0;
    background: linear-gradient(90deg, #0b0b0b 10%, transparent);
}

.reel-fade.right {
    right: 0;
    background: linear-gradient(270deg, #0b0b0b 10%, transparent);
}

.reel-tile {
    position: relative;
    flex: 0 0 150px;
    height: 156px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px 16px;
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
    border-radius: 16px;
    background:
        radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    text-align: center;
    overflow: hidden;
}

.reel-tile::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--c);
    box-shadow: 0 0 14px var(--c);
}

.reel-tile-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: color-mix(in srgb, var(--c) 16%, transparent);
    color: var(--c);
    font-size: 22px;
    filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--c) 35%, transparent));
}

.reel-tile strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reel-tile-kind {
    color: var(--c);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

:where(.reel-tile, .prize-card) {
    --c: var(--c-grey);
}
:where(.history-row) {
    --c: var(--c-blue);
}
:where(.reveal-card) {
    --c: var(--mint);
}
.kind-nothing {
    --c: var(--c-grey);
}
.kind-coins {
    --c: var(--c-blue);
}
.kind-emote {
    --c: var(--c-violet);
}
.kind-cosmetic {
    --c: var(--c-rose);
}
.kind-license {
    --c: var(--c-gold);
}

.reel.is-spinning .reel-tile {
    filter: blur(0.6px);
}

.reel.has-result .reel-tile:not(.is-winner) {
    opacity: 0.28;
    filter: saturate(0.4);
    transition:
        opacity 0.5s var(--ease),
        filter 0.5s var(--ease);
}

.reel.has-result .reel-tile.is-winner {
    border-color: var(--c);
    box-shadow:
        0 0 0 1px var(--c),
        0 0 36px color-mix(in srgb, var(--c) 55%, transparent);
    transform: scale(1.06);
    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s var(--ease);
}

.reel-result {
    margin: 16px 0 0;
    padding: 13px 16px;
    border: 1px solid color-mix(in srgb, var(--c, var(--mint)) 45%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--c, var(--mint)) 10%, transparent);
    text-align: center;
}

.reel-result p {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.reel-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 22px 0 0;
}

.spin-button {
    min-height: 56px;
    padding: 0 44px;
    border-radius: 14px;
    font-size: 16px;
}

.spin-button:not(:disabled) {
    background: linear-gradient(135deg, #e274f2, var(--mint) 55%, #a93bbd);
    color: #fff;
    box-shadow:
        0 14px 40px rgba(204, 86, 221, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.45);
}

.spin-button:not(:disabled):hover {
    box-shadow:
        0 18px 50px rgba(204, 86, 221, 0.45),
        inset 0 1px rgba(255, 255, 255, 0.45);
}

.spin-button i {
    font-size: 17px;
}

.spin-button.is-busy i {
    animation: dice-roll 0.7s linear infinite;
}

@keyframes dice-roll {
    to {
        transform: rotate(360deg);
    }
}

.spin-cost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.spin-cost i {
    color: var(--amber);
}

.reel-hint {
    min-height: 20px;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.reel-hint i {
    color: var(--amber);
}

/* Lots */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.prize-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line));
    border-radius: 18px;
    background:
        radial-gradient(120% 120% at 0% 50%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%),
        var(--surface);
    transition:
        transform 0.25s var(--ease),
        border-color 0.25s var(--ease);
}

.prize-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--c) 55%, transparent);
}

.prize-visual {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c) 16%, transparent);
    color: var(--c);
    font-size: 19px;
}

.prize-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.prize-kind {
    color: var(--c);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.prize-copy strong {
    overflow: hidden;
    font-size: 14.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prize-copy small {
    color: var(--muted-2);
    font-size: 11.5px;
}

.prize-chance {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #c7ccca;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.prize-card.is-owned {
    opacity: 0.7;
}

.owned-tag {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--c-green);
    color: #06170d;
    font-size: 10px;
    font-weight: 800;
}

.prize-footnote {
    margin: 14px 0 0;
    font-size: 12.5px;
}

/* Historique */
.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.history-card {
    padding: 18px 20px 20px;
}

.card-head {
    margin-bottom: 12px;
}

.history-card.wide {
    padding: 18px 20px;
}

.history-empty {
    margin: 4px 0 0;
    font-size: 13px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px 9px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.02);
}

.history-row > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.history-row strong {
    overflow: hidden;
    font-size: 13.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-row small,
.history-row time {
    color: var(--muted-2);
    font-size: 11px;
}

.history-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--c) 14%, transparent);
    color: var(--c);
    font-size: 13px;
}

.ledger-plus {
    --c: var(--c-green);
}

.ledger-minus {
    --c: var(--amber);
}

.ledger-delta {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ledger-plus .ledger-delta {
    color: var(--c-green);
}

.ledger-minus .ledger-delta {
    color: var(--amber);
}

/* ============== FENETRE DE RESULTAT ============== */
.reveal-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.reveal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 5, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fade-in 0.25s var(--ease) both;
}

.reveal-card {
    position: relative;
    width: min(440px, 100%);
    padding: 36px 30px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
    border-radius: 26px;
    background:
        radial-gradient(110% 70% at 50% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 65%),
        #121212;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px color-mix(in srgb, var(--c) 18%, transparent);
    overflow: hidden;
    animation: card-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.reveal-card.compact {
    padding-top: 30px;
}

.reveal-rays {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    background: repeating-conic-gradient(color-mix(in srgb, var(--c) 18%, transparent) 0 9deg, transparent 9deg 22deg);
    -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
    mask-image: radial-gradient(circle, #000 20%, transparent 65%);
    animation: rays-turn 14s linear infinite;
    pointer-events: none;
}

.reveal-icon {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
    border-radius: 26px;
    background: color-mix(in srgb, var(--c) 16%, #121212);
    color: var(--c);
    font-size: 34px;
    box-shadow: 0 0 40px color-mix(in srgb, var(--c) 35%, transparent);
    animation: icon-float 3s ease-in-out infinite;
}

.reveal-kind {
    position: relative;
    color: var(--c);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reveal-card h3 {
    position: relative;
    margin: 8px 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.reveal-card > p {
    position: relative;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
}

.reveal-key {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
    padding: 10px 10px 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed color-mix(in srgb, var(--c) 55%, transparent);
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.35);
}

.reveal-key code {
    flex: 1;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    user-select: all;
}

.reveal-actions {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reveal-actions .primary,
.reveal-actions .secondary {
    min-height: 46px;
}

@keyframes card-pop {
    0% {
        opacity: 0;
        transform: scale(0.82) translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes rays-turn {
    to {
        transform: rotate(360deg);
    }
}

@keyframes icon-float {
    50% {
        transform: translateY(-5px);
    }
}

/* ============== BOUTIQUE ============== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        background 0.2s var(--ease);
}

.filter-chip:hover {
    color: #fff;
}

.filter-chip.is-active {
    border-color: rgba(204, 86, 221, 0.45);
    background: var(--mint-soft);
    color: var(--mint);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.shop-card .download-field i:nth-child(1) {
    background: var(--c, #cc56dd);
}
.shop-card .download-field i:nth-child(2) {
    background: #1e1426;
}
.shop-card .download-field i:nth-child(3) {
    background: color-mix(in srgb, var(--c, #cc56dd) 50%, #fff);
}
.shop-card.kind-spins {
    --c: var(--c-violet);
}
.shop-card.kind-external {
    --c: var(--mint);
}

.shop-badge {
    position: absolute;
    z-index: 2;
    right: 14px;
    top: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--mint);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.shop-badge[data-badge="best"] {
    background: var(--c-gold);
    color: #1f1300;
}

.shop-badge[data-badge="new"] {
    background: var(--c-blue);
    color: #03141f;
}

.shop-badge[data-badge="limited"] {
    background: var(--red);
    color: #2a0707;
}

.shop-body {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.shop-body h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.shop-body > p {
    margin: 0;
    color: #a7adaa;
    font-size: 13.5px;
    line-height: 1.45;
}

.shop-facts {
    margin: 2px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.shop-facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #c0c5c3;
    font-size: 11.5px;
    font-weight: 600;
}

.shop-facts i {
    color: var(--c, var(--mint));
    font-size: 10px;
}

.shop-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line-soft);
}

.shop-foot form {
    margin: 0;
}

.shop-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.shop-price i {
    color: var(--amber);
    font-size: 16px;
}

.shop-price.external strong {
    font-size: 18px;
}

.shop-foot .primary.small {
    white-space: nowrap;
}

.shop-card.is-filtered {
    display: none;
}

.earn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.earn-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    transition:
        transform 0.25s var(--ease),
        border-color 0.25s var(--ease);
}

.earn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 86, 221, 0.3);
}

.earn-icon {
    --tone: var(--mint);
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tone) 14%, transparent);
    color: var(--tone);
    font-size: 19px;
}

.earn-icon[data-tone="amber"] {
    --tone: var(--amber);
}
.earn-icon[data-tone="violet"] {
    --tone: var(--c-violet);
}
.earn-icon[data-tone="rose"] {
    --tone: var(--c-rose);
}

.earn-card strong {
    font-size: 16px;
}

.earn-card small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* ============== PIED DE PAGE ============== */
.account-footer {
    margin-top: 80px;
    padding-top: 0;
}

.footer-inline {
    display: flex;
    gap: 18px;
}

.footer-inline a {
    color: #686f6d;
    transition: color 0.2s var(--ease);
}

.footer-inline a:hover {
    color: var(--mint);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
    .chip-name {
        display: none;
    }
}

@media (max-width: 900px) {
    .launcher-grid,
    .history-grid {
        grid-template-columns: 1fr;
    }

    .earn-grid {
        grid-template-columns: 1fr;
    }

    .header-actions [data-lang-switch] {
        display: none;
    }

    .profile-chip {
        padding: 4px 8px 4px 4px;
    }
}

@media (max-width: 720px) {
    .account-hero {
        min-height: 380px;
        padding: 112px 0 104px;
    }

    .section-heading.split {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-heading.split > p {
        text-align: left;
    }

    .license-grid,
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .claim-form,
    .link-form {
        flex-direction: column;
    }

    .claim-form .primary,
    .link-form .primary {
        width: 100%;
    }

    .reel {
        height: 176px;
    }

    .reel-tile {
        flex-basis: 128px;
        height: 140px;
    }

    .spin-button {
        width: 100%;
    }

    .auth-panel {
        padding: 34px 22px 30px;
    }

    .stage-note {
        display: none;
    }

    .coin-chip {
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .account-hero h1 {
        font-size: clamp(22px, 7vw, 46px);
    }

    .account-hero-inner > p {
        font-size: 15.5px;
    }
}

@media (max-width: 480px) {
    .stat-band {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .stat-copy strong {
        font-size: 19px;
    }

    .machine .via-badge {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-rays,
    .reveal-icon,
    .stage-badge i {
        animation: none !important;
    }
}
