/* =========================================================
   MARBLESMP — STYLE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(3, 255, 133, 0.07), transparent 38%),
        #050505;
    color: #ffffff;
    font-family: Inter, Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

body.cart-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    background: rgba(5, 5, 5, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(18px);
}

.logo {
    color: #ffffff;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: -0.02em;

    cursor: pointer;

    transition:
        color 0.18s ease;
}

.logo:hover {
    color: #03FF85;
}

nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

nav a {
    color: rgba(255, 255, 255, 0.48);

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.18s ease;
}

nav a:hover {
    color: #03FF85;
}

nav a.active {
    color: #ffffff;
}

.shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 92px;
    height: 38px;

    padding: 0 16px;

    border: 1px solid rgba(3, 255, 133, 0.35);
    border-radius: 9px;

    background: rgba(3, 255, 133, 0.07);
    color: #03FF85;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.shop-button:hover {
    background: rgba(3, 255, 133, 0.13);

    border-color: #03FF85;

    box-shadow:
        0 0 20px rgba(3, 255, 133, 0.12);
}

.shop-button:active {
    transform: scale(0.97);
}


/* =========================================================
   COPY NOTIFICATION
   ========================================================= */

.copy-notification {
    position: fixed;

    left: 50%;
    top: 92px;

    z-index: 1000;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 11px 15px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    background: rgba(15, 15, 15, 0.94);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35);

    color: #ffffff;

    font-size: 13px;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, -10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.copy-notification.show {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}

.copy-notification span:first-child {
    color: #03FF85;
    font-weight: 700;
}


/* =========================================================
   HOME
   ========================================================= */

.hero {
    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 24px;
}

.hero-content {
    width: min(860px, 100%);

    text-align: center;
}

.small-title {
    margin: 0 0 14px;

    color: #03FF85;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 0;

    font-size: clamp(58px, 9vw, 110px);

    line-height: 0.95;

    letter-spacing: -0.065em;

    font-weight: 800;
}

.description {
    max-width: 560px;

    margin: 26px auto 0;

    color: rgba(255, 255, 255, 0.52);

    font-size: 16px;
    line-height: 1.7;
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    height: 46px;

    padding: 0 20px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.primary-button {
    background: #03FF85;
    color: #050505;
}

.primary-button:hover {
    background: #20ff98;

    box-shadow:
        0 0 28px rgba(3, 255, 133, 0.18);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.03);

    color: #ffffff;
}

.secondary-button:hover {
    border-color: rgba(3, 255, 133, 0.35);

    background: rgba(3, 255, 133, 0.06);
}

.primary-button:active,
.secondary-button:active {
    transform: scale(0.97);
}

.about {
    max-width: 840px;

    margin: 0 auto;

    padding: 80px 24px 120px;
}

.about h2 {
    margin: 0;

    font-size: clamp(34px, 5vw, 58px);

    letter-spacing: -0.05em;
}

.about > p:last-child {
    max-width: 560px;

    margin-top: 22px;

    color: rgba(255, 255, 255, 0.5);

    line-height: 1.7;
}


/* =========================================================
   STORE
   ========================================================= */

.store-page {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    padding: 82px 0 100px;
}

.store-header {
    margin-bottom: 54px;
}

.store-header h1 {
    margin: 0;

    font-size: clamp(42px, 6vw, 70px);

    line-height: 1;

    letter-spacing: -0.055em;

    font-weight: 500;
}

.store-description {
    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: 15px;

    line-height: 1.7;
}

.store-description-main {
    display: block;
}

.store-description-link {
    display: inline-block;

    margin-top: 3px;

    color: rgba(3, 255, 133, 0.28);

    cursor: pointer;

    transition:
        color 0.18s ease,
        text-shadow 0.18s ease;
}

.store-description-link:hover {
    color: #03FF85;

    text-shadow:
        0 0 15px rgba(3, 255, 133, 0.18);
}

.store-section {
    margin-top: 62px;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.section-line {
    flex: 1;

    height: 1px;

    background: rgba(255, 255, 255, 0.06);
}


/* =========================================================
   PRODUCT GRIDS
   ========================================================= */

/*
   Marble+ :
   une seule grande case
*/

.products.rank-products {
    display: grid;

    grid-template-columns: 1fr;

    gap: 14px;
}


/*
   KEYS :
   exactement 5 cases côte à côte sur PC
*/

.products.keys-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    position: relative;

    width: 100%;
    min-width: 0;

    min-height: 275px;

    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.025);

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}


/* =========================================================
   KEY CARD
   ========================================================= */

.key-card {
    min-width: 0;
}


/* =========================================================
   PRODUCT HOVER COLORS
   ========================================================= */

.rank-card:hover {
    border-color: rgba(3, 255, 133, 0.55);

    box-shadow:
        0 0 0 1px rgba(3, 255, 133, 0.08),
        0 0 35px rgba(3, 255, 133, 0.1);
}

.key-card.prime:hover {
    border-color: rgba(1, 165, 252, 0.55);

    box-shadow:
        0 0 0 1px rgba(1, 165, 252, 0.08),
        0 0 35px rgba(1, 165, 252, 0.1);
}

.key-card.amethyst:hover {
    border-color: rgba(165, 3, 252, 0.6);

    box-shadow:
        0 0 0 1px rgba(165, 3, 252, 0.08),
        0 0 35px rgba(165, 3, 252, 0.1);
}

.key-card.crimson:hover {
    border-color: rgba(180, 25, 25, 0.6);

    box-shadow:
        0 0 0 1px rgba(180, 25, 25, 0.08),
        0 0 35px rgba(180, 25, 25, 0.1);
}

.key-card.gold:hover {
    border-color: rgba(255, 190, 60, 0.6);

    box-shadow:
        0 0 0 1px rgba(255, 190, 60, 0.08),
        0 0 35px rgba(255, 190, 60, 0.1);
}

.key-card.common:hover {
    border-color: rgba(17, 160, 54, 0.6);

    box-shadow:
        0 0 0 1px rgba(17, 160, 54, 0.08),
        0 0 35px rgba(17, 160, 54, 0.1);
}


/* =========================================================
   ADD CART "+"
   ========================================================= */

.add-cart-button {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 1px solid rgba(3, 255, 133, 0.45);

    border-radius: 10px;

    background: rgba(3, 255, 133, 0.08);

    color: #03FF85;

    font-size: 26px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 10;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.product-card:hover .add-cart-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/*
   Marble+
   Coin supérieur droit
*/

.rank-card .add-cart-button {
    top: 18px;
    right: 18px;
}


/*
   KEYS
   Le + reste à droite du Tripwire Hook
*/

.key-card .add-cart-button {
    top: 34px;
    left: 102px;
    right: auto;
}

.add-cart-button:hover {
    background: rgba(3, 255, 133, 0.16);

    border-color: #03FF85;

    box-shadow:
        0 0 18px rgba(3, 255, 133, 0.25);
}

.add-cart-button:active {
    transform: scale(0.94);
}


/* =========================================================
   PRODUCT ICONS
   ========================================================= */

.product-icon,
.key-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-bottom: 20px;

    border-radius: 10px;
}

.product-icon {
    background: rgba(3, 255, 133, 0.1);

    border: 1px solid rgba(3, 255, 133, 0.2);

    color: #03FF85;

    font-size: 25px;
    font-weight: 700;
}

.key-icon {
    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.07);
}

.key-icon img {
    width: 34px;
    height: 34px;

    object-fit: contain;

    image-rendering: pixelated;
}


/* =========================================================
   PRODUCT INFO
   ========================================================= */

.product-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin: 0;

    color: #ffffff;

    font-size: 19px;

    font-weight: 650;

    line-height: 1.2;

    letter-spacing: -0.025em;

    overflow-wrap: anywhere;
}

.product-info p {
    margin: 8px 0 0;

    color: rgba(255, 255, 255, 0.43);

    font-size: 13px;

    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* =========================================================
   PRODUCT BOTTOM
   ========================================================= */

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: 34px;
}

.price {
    display: flex;
    align-items: baseline;

    gap: 7px;

    color: #ffffff;

    font-size: 15px;
}

.price strong {
    color: #ffffff;

    font-size: 22px;
    font-weight: 700;
}

.price span {
    color: rgba(255, 255, 255, 0.35);

    font-size: 12px;
}

.buy-button {
    height: 40px;

    padding: 0 17px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.045);

    color: #ffffff;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.buy-button:hover {
    background: rgba(3, 255, 133, 0.08);

    border-color: rgba(3, 255, 133, 0.35);

    color: #03FF85;
}

.buy-button:active {
    transform: scale(0.97);
}


/* =========================================================
   CART BUTTON
   ========================================================= */

.cart-button {
    height: 38px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.035);

    color: #ffffff;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.cart-button:hover {
    background: rgba(3, 255, 133, 0.06);

    border-color: rgba(3, 255, 133, 0.3);
}

.cart-button:active {
    transform: scale(0.97);
}

.cart-icon {
    font-size: 14px;
}


/* =========================================================
   ACCOUNT BUTTON
   ========================================================= */

.account-button {
    height: 38px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 0 14px 0 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.035);

    color: #ffffff;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.account-button:hover {
    background: rgba(3, 255, 133, 0.06);

    border-color: rgba(3, 255, 133, 0.3);
}

.account-button:active {
    transform: scale(0.97);
}

.account-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 6px;

    color: rgba(255, 255, 255, 0.55);

    background: rgba(255, 255, 255, 0.06);
}

.account-button.logged-in .account-icon {
    background: transparent;
}

.account-avatar {
    width: 22px;
    height: 22px;

    display: block;

    image-rendering: pixelated;

    object-fit: cover;

    border-radius: 6px;

    border: 1px solid rgba(255, 255, 255, 0.12);
}

.account-label {
    max-width: 120px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   ACCOUNT MENU
   ========================================================= */

.account-menu {
    position: fixed;
    top: 84px;
    right: 42px;
    z-index: 500;
    width: 170px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transition:
        opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.16s ease;
}

.account-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.account-menu-item {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.16s ease,
        color 0.16s ease;
}

.account-menu-item:hover {
    background: rgba(3, 255, 133, 0.08);
    color: #03FF85;
}

.account-menu-arrow {
    color: rgba(255, 255, 255, 0.32);
    font-size: 14px;
    transition: color 0.16s ease;
}

.account-menu-item:hover .account-menu-arrow {
    color: #03FF85;
}


.header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.cart-count {
    min-width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: rgba(3, 255, 133, 0.13);

    color: #03FF85;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   CART OVERLAY
   ========================================================= */

.cart-overlay {
    position: fixed;
    inset: 0;

    z-index: 180;

    background: rgba(0, 0, 0, 0.56);

    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   CART PANEL
   ========================================================= */

.cart-panel {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 200;

    width: min(430px, 100%);
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 28px;

    background: #0a0a0a;

    border-left: 1px solid rgba(255, 255, 255, 0.07);

    transform: translateX(100%);

    transition: transform 0.25s ease;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding-bottom: 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-small-title {
    margin: 0 0 8px;

    color: #03FF85;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.16em;
}

.cart-header h2 {
    margin: 0;

    font-size: 25px;

    letter-spacing: -0.035em;
}

.cart-close {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.03);

    color: rgba(255, 255, 255, 0.75);

    cursor: pointer;

    font-size: 23px;

    line-height: 1;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(255, 255, 255, 0.15);

    color: #ffffff;
}

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 22px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 17px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h3 {
    margin: 0;

    font-size: 15px;
}

.cart-item-info p {
    margin: 5px 0 8px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 12px;

    line-height: 1.45;
}

.cart-item-info strong {
    color: #03FF85;

    font-size: 13px;
}

.cart-item-actions {
    display: flex;
    align-items: center;

    gap: 7px;
}

.quantity-button,
.cart-item-remove {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.03);

    color: #ffffff;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.quantity-button:hover {
    background: rgba(3, 255, 133, 0.07);

    border-color: rgba(3, 255, 133, 0.3);

    color: #03FF85;
}

.cart-item-remove:hover {
    background: rgba(255, 70, 70, 0.07);

    border-color: rgba(255, 70, 70, 0.25);

    color: #ff6565;
}

.quantity-button:active,
.cart-item-remove:active {
    transform: scale(0.95);
}

.cart-quantity {
    min-width: 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
}

.cart-empty {
    flex: 1;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-cart-icon {
    font-size: 34px;
    opacity: 0.45;
}

.cart-empty h3 {
    margin: 15px 0 7px;

    font-size: 17px;
}

.cart-empty p {
    max-width: 270px;

    margin: 0;

    color: rgba(255, 255, 255, 0.38);

    font-size: 12px;

    line-height: 1.6;
}

.cart-footer {
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 13px;
}

.cart-total-row strong {
    color: #ffffff;

    font-size: 19px;
}

.checkout-button {
    width: 100%;
    height: 46px;

    border: none;

    border-radius: 10px;

    background: #03FF85;

    color: #050505;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.checkout-button:hover {
    background: #20ff98;

    box-shadow:
        0 0 25px rgba(3, 255, 133, 0.14);
}

.checkout-button:active {
    transform: scale(0.98);
}

.clear-cart {
    width: 100%;
    height: 42px;

    margin-top: 9px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    background: transparent;

    color: rgba(255, 255, 255, 0.42);

    cursor: pointer;

    font-size: 12px;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.clear-cart:hover {
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.14);

    background: rgba(255, 255, 255, 0.025);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 30px 24px 40px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    text-align: center;

    color: rgba(255, 255, 255, 0.25);

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .products.keys-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {

    .account-menu {
        right: 20px;
    }

    header {
        padding: 0 20px;
    }

    nav {
        gap: 17px;
    }

    nav a {
        font-size: 12px;
    }

    .store-page {
        width: min(100% - 32px, 1180px);
    }

    .products.keys-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .account-button {
        padding: 0;
        width: 38px;

        justify-content: center;
    }

    .account-label {
        display: none;
    }
}

@media (max-width: 580px) {

    header {
        height: 68px;
    }

    .logo {
        font-size: 15px;
    }

    nav {
        gap: 12px;
    }

    nav a:nth-child(3) {
        display: none;
    }

    .hero {
        min-height: calc(100vh - 68px);

        padding: 50px 18px;
    }

    .products.keys-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 23px;
    }

    .add-cart-button {
        top: 15px;
        right: 15px;
    }

    .rank-card .add-cart-button {
        top: 15px;
        right: 15px;
    }

    .key-card .add-cart-button {
        top: 29px;
        left: 98px;
        right: auto;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .buy-button {
        width: 100%;
    }

    .cart-panel {
        padding: 22px;
    }
}


/* =========================================================
   CHECKOUT / PRE-PURCHASE
   ========================================================= */

.checkout-page {
    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 24px;
}


.checkout-box {
    width: min(520px, 100%);

    padding: 42px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35);

    text-align: center;
}


.checkout-box h1 {
    margin: 0;

    font-size: clamp(30px, 5vw, 44px);

    line-height: 1.05;

    letter-spacing: -0.045em;

    font-weight: 700;
}


.checkout-description {
    max-width: 390px;

    margin: 18px auto 0;

    color: rgba(255, 255, 255, 0.45);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   JAVA ONLY
   ========================================================= */

.java-only {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 8px;

    margin: 25px auto 30px;

    padding: 8px 12px;

    border: 1px solid rgba(3, 255, 133, 0.2);

    border-radius: 999px;

    background: rgba(3, 255, 133, 0.05);

    color: rgba(3, 255, 133, 0.8);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.13em;
}


.java-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #03FF85;

    box-shadow:
        0 0 10px rgba(3, 255, 133, 0.6);
}


/* =========================================================
   USERNAME
   ========================================================= */

.username-field {
    text-align: left;
}


.username-field label {
    display: block;

    margin-bottom: 9px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 12px;

    font-weight: 600;
}


.username-field input {
    width: 100%;
    height: 50px;

    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    outline: none;

    background: rgba(255, 255, 255, 0.035);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.username-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}


.username-field input:hover {
    border-color: rgba(255, 255, 255, 0.16);
}


.username-field input:focus {
    border-color: rgba(3, 255, 133, 0.5);

    background: rgba(3, 255, 133, 0.025);

    box-shadow:
        0 0 0 3px rgba(3, 255, 133, 0.06);
}


/* =========================================================
   ERROR
   ========================================================= */

.username-error {
    display: none;

    margin: 9px 0 0;

    color: #ff6565;

    font-size: 11px;

    text-align: left;
}


.username-error.show {
    display: block;
}


/* =========================================================
   CONTINUE
   ========================================================= */

.continue-button {
    width: 100%;
    height: 48px;

    margin-top: 20px;

    border: none;

    border-radius: 10px;

    background: #03FF85;

    color: #050505;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.continue-button:hover {
    background: #20ff98;

    box-shadow:
        0 0 28px rgba(3, 255, 133, 0.16);
}


.continue-button:active {
    transform: scale(0.98);
}


/* =========================================================
   BACK
   ========================================================= */

.back-store {
    display: inline-block;

    margin-top: 20px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 12px;

    transition:
        color 0.18s ease;
}


.back-store:hover {
    color: #ffffff;
}


/* =========================================================
   CHECKOUT MOBILE
   ========================================================= */

@media (max-width: 580px) {

    .checkout-page {
        min-height: calc(100vh - 68px);

        padding: 35px 18px;
    }


    .checkout-box {
        padding: 30px 22px;

        border-radius: 13px;
    }

}


/* =========================================================
   CHECKOUT / CONFIRMATION
   ========================================================= */

.checkout-main {
    min-height: calc(100vh - 76px - 90px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;
}


.checkout-box {
    width: min(480px, 100%);

    padding: 42px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);

    text-align: center;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.3);
}


.checkout-small-title {
    margin: 0 0 12px;

    color: #03FF85;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.18em;
}


.checkout-box h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(28px, 5vw, 38px);
    font-weight: 650;

    letter-spacing: -0.045em;
}


.checkout-description {
    margin: 15px auto 0;

    max-width: 370px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 13px;
    line-height: 1.65;
}


.java-only {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-top: 24px;

    padding: 8px 12px;

    border: 1px solid rgba(3, 255, 133, 0.2);
    border-radius: 999px;

    background: rgba(3, 255, 133, 0.05);

    color: #03FF85;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.1em;
}


.java-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #03FF85;

    box-shadow:
        0 0 10px rgba(3, 255, 133, 0.7);
}


.username-field {
    margin-top: 30px;

    text-align: left;
}


.username-field label {
    display: block;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 12px;
    font-weight: 600;
}


.username-field input {
    width: 100%;
    height: 48px;

    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;

    outline: none;

    background: rgba(255, 255, 255, 0.035);

    color: #ffffff;

    font-size: 14px;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.username-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}


.username-field input:focus {
    border-color: rgba(3, 255, 133, 0.55);

    background: rgba(3, 255, 133, 0.025);

    box-shadow:
        0 0 0 3px rgba(3, 255, 133, 0.06);
}


.username-error {
    min-height: 18px;

    margin: 8px 0 0;

    color: #ff6565;

    font-size: 12px;

    opacity: 0;
}


.username-error.show {
    opacity: 1;
}


.continue-button {
    width: 100%;
    height: 48px;

    margin-top: 18px;

    border: none;
    border-radius: 10px;

    background: #03FF85;

    color: #050505;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.continue-button:hover {
    background: #20ff98;

    box-shadow:
        0 0 28px rgba(3, 255, 133, 0.18);
}


.continue-button:active {
    transform: scale(0.98);
}


.back-store {
    display: inline-block;

    margin-top: 18px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 12px;

    transition:
        color 0.18s ease;
}


.back-store:hover {
    color: #03FF85;
}


/* =========================================================
   PLAYER CONFIRMATION
   ========================================================= */

.player-confirmation {
    margin-top: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.player-head {
    width: 180px;
    height: 180px;

    display: block;

    image-rendering: pixelated;

    object-fit: cover;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.03);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.35);
}


.player-confirmation h2 {
    margin: 18px 0 0;

    color: #ffffff;

    font-size: 22px;
    font-weight: 650;

    letter-spacing: -0.025em;
}


.confirmation-question {
    margin: 18px 0 0;

    color: rgba(255, 255, 255, 0.42);

    font-size: 12px;
}


@media (max-width: 580px) {

    .checkout-main {
        min-height: calc(100vh - 68px - 80px);

        padding: 40px 16px;
    }

    .checkout-box {
        padding: 30px 22px;
    }

    .player-head {
        width: 150px;
        height: 150px;
    }

}


/* =========================================================
   CHECKOUT + CONFIRMATION — ISOLATED STYLES
   Add this block at the VERY END of style.css.
   ========================================================= */

.checkout-screen,
.confirm-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.checkout-screen .checkout-content,
.confirm-screen .confirm-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.checkout-screen .checkout-card,
.confirm-screen .confirm-card {
    width: min(470px, 100%);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.checkout-screen .checkout-brand,
.confirm-screen .confirm-brand {
    margin-bottom: 13px;
    color: #03FF85;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.checkout-screen .checkout-card h1,
.confirm-screen .confirm-card h1 {
    margin: 0;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 650;
    letter-spacing: -0.045em;
}

.checkout-screen .checkout-text,
.confirm-screen .confirm-text {
    max-width: 360px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    line-height: 1.65;
}

.checkout-screen .checkout-java,
.confirm-screen .confirm-java {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(3, 255, 133, 0.2);
    border-radius: 999px;
    background: rgba(3, 255, 133, 0.05);
    color: #03FF85;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.checkout-screen .checkout-java span,
.confirm-screen .confirm-java span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #03FF85;
    box-shadow: 0 0 10px rgba(3, 255, 133, 0.7);
}

.checkout-screen .checkout-input-container {
    margin-top: 30px;
    text-align: left;
}

.checkout-screen .checkout-input-container label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
}

.checkout-screen .checkout-input-container input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.checkout-screen .checkout-input-container input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.checkout-screen .checkout-input-container input:focus {
    border-color: rgba(3, 255, 133, 0.55);
    box-shadow: 0 0 0 3px rgba(3, 255, 133, 0.06);
}

.checkout-screen .checkout-error {
    min-height: 18px;
    margin: 8px 0 0;
    color: #ff6565;
    font-size: 12px;
    opacity: 0;
}

.checkout-screen .checkout-error.show {
    opacity: 1;
}

.checkout-screen .checkout-continue,
.confirm-screen .confirm-button {
    width: 100%;
    height: 48px;
    margin-top: 18px;
    border: none;
    border-radius: 10px;
    background: #03FF85;
    color: #050505;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.checkout-screen .checkout-continue:hover,
.confirm-screen .confirm-button:hover {
    background: #20ff98;
    box-shadow: 0 0 28px rgba(3, 255, 133, 0.18);
}

.checkout-screen .checkout-continue:active,
.confirm-screen .confirm-button:active {
    transform: scale(0.98);
}

.checkout-screen .checkout-back,
.confirm-screen .confirm-back {
    display: inline-block;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    transition: color 0.18s ease;
}

.checkout-screen .checkout-back:hover,
.confirm-screen .confirm-back:hover {
    color: #03FF85;
}

.confirm-screen .player-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 28px;
}

.confirm-screen .player-head {
    width: 180px;
    height: 180px;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.confirm-screen .player-confirmation h2 {
    margin: 16px 0 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.confirm-screen .confirm-question {
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

@media (max-width: 580px) {
    .checkout-screen .checkout-content,
    .confirm-screen .confirm-content {
        padding: 35px 16px;
    }

    .checkout-screen .checkout-card,
    .confirm-screen .confirm-card {
        padding: 30px 22px;
    }

    .checkout-screen .checkout-card h1,
    .confirm-screen .confirm-card h1 {
        font-size: 29px;
    }

    .confirm-screen .player-head {
        width: 150px;
        height: 150px;
    }
}

/* =========================================================
   ACCOUNT MENU
   ========================================================= */

.account-button {
    position: relative;
}

.account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;

    min-width: 180px;
    padding: 8px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    background: rgba(17, 17, 17, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    pointer-events: none;

    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.account-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.account-menu-name {
    padding: 8px 10px 9px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu button {
    width: 100%;
    height: 34px;
    padding: 0 10px;

    border: 0;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;

    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;

    transition:
        background 0.16s ease,
        color 0.16s ease;
}

.account-menu button:hover {
    background: rgba(3, 255, 133, 0.1);
    color: #03FF85;
}

.header-actions {
    position: relative;
}


/* =========================================================
   SUPPORT PAGE
   ========================================================= */

.support-screen .support-card {
    width: min(560px, 100%);
    text-align: left;
}

.support-screen .support-card .checkout-brand,
.support-screen .support-card h1,
.support-screen .support-card > .checkout-back {
    text-align: center;
}

.support-screen .support-card > .checkout-back {
    display: block;
}

.support-screen [hidden] {
    display: none !important;
}

.support-screen .support-card .checkout-text {
    text-align: center;
}

.support-screen .checkout-input-container select,
.support-screen .checkout-input-container textarea {
    width: 100%;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-screen .checkout-input-container select {
    height: 48px;
}

.support-screen .checkout-input-container select option {
    background: #111111;
    color: #ffffff;
}

.support-screen .checkout-input-container textarea {
    padding: 13px 15px;
    resize: vertical;
    min-height: 130px;
    line-height: 1.55;
}

.support-screen .checkout-input-container input[type="date"] {
    color-scheme: dark;
}

.support-screen .checkout-input-container select:focus,
.support-screen .checkout-input-container textarea:focus {
    border-color: rgba(3, 255, 133, 0.55);
    box-shadow: 0 0 0 3px rgba(3, 255, 133, 0.06);
}

.support-screen .checkout-input-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.support-screen .support-form .checkout-input-container {
    margin-top: 20px;
}

.support-screen .support-form.locked {
    opacity: 0.45;
    pointer-events: none;
}

.support-screen .checkout-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.support-screen .support-counter {
    display: block;
    margin-top: 6px;
    text-align: right;
    color: rgba(255, 255, 255, 0.28);
    font-size: 11px;
}

.support-screen .support-note {
    margin: 14px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

.support-screen .support-player {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.support-screen .support-head {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    image-rendering: pixelated;
}

.support-screen .support-player-label {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.support-screen .support-player strong {
    font-size: 14px;
}

.support-screen .support-cooldown,
.support-screen .support-success {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.support-screen .support-cooldown {
    border: 1px solid rgba(255, 190, 70, 0.3);
    background: rgba(255, 190, 70, 0.06);
    color: #ffc857;
}

.support-screen .support-success {
    border: 1px solid rgba(3, 255, 133, 0.25);
    background: rgba(3, 255, 133, 0.06);
    color: #03FF85;
}

.support-screen .support-cooldown span,
.support-screen .support-success span {
    color: rgba(255, 255, 255, 0.65);
}

.support-screen .support-cooldown b,
.support-screen .support-success b {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

/* Support hero button + nav spacing */
.buttons .support-button {
    order: 3;
}
