@font-face {
    font-family: 'Insaniburger';
    src: url('https://alan-logic.github.io/Fonts/Insaniburger.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}

/* ═══ PayNow-template palette ═════════════════════════════════════════ */
:root {
    --pn-bg:       #181716;
    --pn-overlay:  #3B3B3B;
    --pn-primary:  var(--accent, #c4461a);
    --pn-text:     #ffffff;
    --pn-muted:    rgba(255,255,255,.65);
    --pn-btn:      #323232;
}

/* ═══ Store shell (below site nav + category bar) ═══════════════════════ */
.store-app {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #121314;
    color: var(--pn-text);
    font-family: 'Rajdhani', 'Poppins', sans-serif;
}
.store-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #121314;
    color: var(--pn-text);
    font-family: 'Rajdhani', 'Poppins', sans-serif;
}

/* ═══ Store sub-nav (under site nav, Rust in-game store style) ═══════ */
.store-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    min-height: 52px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.store-subnav__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.store-subnav__search {
    position: relative;
}
.store-subnav__search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: .45;
    pointer-events: none;
    display: flex;
}
.store-subnav__search .search-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.store-subnav__search .search-input {
    width: min(220px, 42vw);
    height: 30px;
    padding-left: 32px;
    border-radius: 0;
}
.store-subnav__tabs button.is-active {
    box-shadow: inset 0 -2px 0 #6db33f;
}
.store-subnav__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.store-subnav__tabs button {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: #2e2e2e;
    color: #ccc;
    cursor: pointer;
    font: 700 11px/1 'Poppins', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .15s;
}
.store-subnav__tabs button:hover { color: #fff; background: #3a3a3a; }
.store-subnav__tabs button.is-active {
    background: transparent;
    color: #fff;
}
.store-subnav__tabs button.is-active::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        0deg,
        rgba(79, 99, 54, 0.88) 0%,
        rgba(79, 99, 54, 0.42) 50%,
        rgba(79, 99, 54, 0.08) 100%
    );
    pointer-events: none;
}
.store-subnav__tabs button.is-active:hover { color: #fff; }
.store-subnav__tabs button svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.store-subnav__tab--featured.is-active svg {
    color: #b8e986;
}
.store-subnav__cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: #2e2e2e;
    color: #ccc;
    text-decoration: none;
    font: 700 11px/1 'Poppins', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.store-subnav__cart:hover { color: #fff; background: #3a3a3a; }
.store-subnav__cart svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.store-subnav__cart-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--pn-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    letter-spacing: 0;
}

/* ═══ Cart drawer (slides in from the right) ═════════════════════════ */
.store-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .22s ease, visibility 0s linear .22s;
}
.store-cart-backdrop.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .22s ease, visibility 0s;
}
.store-cart-backdrop:not(.is-open) {
    display: none;
}
.store-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    max-width: 100%;
    height: 100dvh;
    background: #0e0f10;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.65);
    transform: translateX(100%);
    transition: transform .25s ease;
    pointer-events: none;
    font-family: 'Rajdhani', 'Poppins', sans-serif;
}
.store-cart-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
}
.store-cart-drawer__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 16px;
    background: #4a5c2c;
    font: 700 14px/1 'Teko', 'Rajdhani', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}
.store-cart-drawer__head svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}
.store-cart-drawer__close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color .12s;
}
.store-cart-drawer__close:hover { color: #fff; }
.store-cart-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 14px 10px;
    background: #0e0f10;
}
.store-cart-drawer__empty {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
}
.store-cart-drawer__empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-cart-drawer__empty-icon svg {
    width: 32px;
    height: 32px;
    fill: rgba(255, 255, 255, 0.35);
}
.store-cart-drawer__empty-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}
.store-cart-drawer__lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.store-cart-drawer__line {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px 12px 12px 10px;
    background: #1a1b1c;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.store-cart-drawer__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: #252628;
    overflow: hidden;
}
.store-cart-drawer__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.store-cart-drawer__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #2e3134 0%, #1a1b1c 100%);
}
.store-cart-drawer__line-body {
    min-width: 0;
    padding-top: 2px;
}
.store-cart-drawer__line-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.store-cart-drawer__line-title {
    font: 700 15px/1.2 'Teko', 'Rajdhani', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
}
.store-cart-drawer__line-price {
    font: 700 15px/1.2 'Rajdhani', sans-serif;
    color: #a3be8c;
    white-space: nowrap;
    flex-shrink: 0;
}
.store-cart-drawer__line-sub {
    margin-top: 6px;
    font: 600 11px/1.25 'Rajdhani', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(163, 190, 140, 0.55);
}
.store-cart-drawer__remove {
    align-self: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color .12s;
}
.store-cart-drawer__remove:hover { color: #fff; }
.store-cart-drawer__foot {
    flex-shrink: 0;
    padding: 0;
    background: #0e0f10;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.store-cart-drawer__summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.store-cart-drawer__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.store-cart-drawer__stat--end {
    align-items: flex-end;
    text-align: right;
}
.store-cart-drawer__stat-label {
    font: 600 10px/1 'Rajdhani', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.store-cart-drawer__stat-value {
    font: 700 22px/1 'Teko', 'Rajdhani', sans-serif;
    letter-spacing: 0.04em;
    color: #fff;
}
.store-cart-drawer__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 18px;
    border: none;
    background: #5d7238;
    color: #fff;
    font: 700 16px/1 'Teko', 'Rajdhani', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .15s ease, background .15s ease;
}
.store-cart-drawer__checkout svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}
.store-cart-drawer__checkout:hover { filter: brightness(1.06); background: #6a8444; }
.store-cart-drawer__checkout:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pn-section { display: none; }

/* ═══ Featured tab layout (Rust in-game store style) ═════════════════ */
.rust-store-featured {
    display: grid;
    grid-template-columns: minmax(220px, 1.05fr) minmax(0, 2fr) minmax(200px, 0.95fr);
    gap: 6px;
    padding: 8px 10px 16px;
    align-items: stretch;
}
.rust-store-featured__hero .rust-store-card {
    aspect-ratio: auto;
    height: 100%;
    min-height: min(520px, 72vh);
}
.rust-store-featured__center {
    min-width: 0;
}
.rust-store-featured__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    height: 100%;
}
.rust-store-featured__side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.rust-store-card--banner {
    aspect-ratio: 16 / 7;
    width: 100%;
    flex: 1 1 0;
    min-height: 120px;
}
.rust-store-card--hero .rust-store-card__title {
    font-size: 18px;
}
.rust-store-card--hero .rust-store-card__foot {
    padding: 12px 12px 16px;
}
@media (min-width: 1280px) {
    .rust-store-featured__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 960px) {
    .rust-store-featured {
        grid-template-columns: 1fr;
    }
    .rust-store-featured__hero .rust-store-card {
        min-height: 320px;
    }
    .rust-store-featured__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ═══ Rust in-game item grid (6 columns on wide screens) ═══════════════ */
.rust-store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px 16px;
}
.rust-store-grid__empty {
    grid-column: 1 / -1;
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
}
@media (min-width: 720px)  { .rust-store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .rust-store-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .rust-store-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1600px) { .rust-store-grid { grid-template-columns: repeat(6, 1fr); } }

.rust-store-card {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    background: #1e1f20;
    transition: filter .12s ease, transform .12s ease;
    isolation: isolate;
}
.rust-store-card:hover {
    filter: brightness(1.08);
    transform: scale(1.01);
}
.rust-store-card:focus-visible {
    outline: 2px solid #6db33f;
    outline-offset: 2px;
}
.rust-store-card.is-hidden { display: none !important; }
.rust-store-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rust-store-card__img--placeholder {
    background: linear-gradient(160deg, #2a2d30 0%, #121314 100%);
}
.rust-store-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.82) 100%);
    pointer-events: none;
}
.rust-store-card__price {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    pointer-events: auto;
    display: inline-flex;
    align-items: stretch;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
    font: 700 12px/1 'Rajdhani', sans-serif;
    letter-spacing: .02em;
    color: #fff;
    background: transparent;
    transition: filter .15s ease;
}
.rust-store-card__price-icon,
.rust-store-card__price-amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rust-store-card__price-icon {
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}
.rust-store-card__price-icon--check {
    display: none;
}
.rust-store-card__price-amount {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.55);
}
.rust-store-card__price:hover:not(.rust-store-card.is-in-cart .rust-store-card__price),
.rust-store-card__price:focus-visible {
    outline: none;
}
.rust-store-card:not(.is-in-cart) .rust-store-card__price:hover .rust-store-card__price-icon,
.rust-store-card:not(.is-in-cart) .rust-store-card__price:hover .rust-store-card__price-amount,
.rust-store-card:not(.is-in-cart) .rust-store-card__price:focus-visible .rust-store-card__price-icon,
.rust-store-card:not(.is-in-cart) .rust-store-card__price:focus-visible .rust-store-card__price-amount {
    background: rgba(178, 76, 61, 0.85);
}
.rust-store-card__price-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: .9;
}
.rust-store-card__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    z-index: 4;
    background: transparent;
    pointer-events: none;
    transition: background .15s ease;
}
.rust-store-card.is-in-cart .rust-store-card__bar {
    background: #5d7238;
}
.rust-store-card.is-in-cart .rust-store-card__price-icon--cart {
    display: none;
}
.rust-store-card.is-in-cart .rust-store-card__price-icon--check {
    display: inline-flex;
    background: #4a5c2c;
    color: #b8e986;
}
.rust-store-card.is-in-cart .rust-store-card__price-amount {
    background: #5d7238;
    color: #b8e986;
}
.rust-store-card.is-in-cart .rust-store-card__price:hover .rust-store-card__price-icon--check {
    background: #556b32;
}
.rust-store-card.is-in-cart .rust-store-card__price:hover .rust-store-card__price-amount {
    background: #6a8444;
}
.rust-store-card__foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    padding: 8px 10px 12px;
    text-align: left;
    pointer-events: none;
}
.rust-store-card__title {
    display: block;
    font: 700 13px/1.15 'Teko', 'Rajdhani', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.rust-store-card__sub {
    display: block;
    margin-top: 3px;
    font: 600 10px/1.2 'Rajdhani', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ═══ Sidebar cards (modal / legacy) ═════════════════════════════════ */
.pn-side-card {
    background: var(--pn-bg);
    border-radius: .75rem;
    padding: 1rem;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.pn-side-card--muted { background: #3B3B3B; }
.pn-side-card h3 {
    font-size: .85rem; text-transform: uppercase;
    font-weight: 800; letter-spacing: .12em;
    margin-bottom: .5rem;
    display: flex; align-items: center; gap: .5rem;
}

/* View Cart card (big hero-like tile) */
.pn-cart {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.pn-cart-left {
    display: flex; flex-direction: column; gap: .35rem;
}
.pn-cart-title {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: 1.1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em;
}
.pn-cart-title svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.pn-cart-sub { color: var(--pn-muted); font-size: .85rem; }
.pn-cart-logo {
    width: 3rem; height: 3rem;
    border-radius: .6rem;
    object-fit: contain;
    background: #0f0e0d; padding: .35rem;
}

/* User / Sign-in card */
.pn-user {
    display: flex; align-items: center; gap: .7rem;
    background: #3B3B3B;
    border-radius: .75rem;
    padding: .6rem .75rem;
}
.pn-user-avatar {
    width: 2.25rem; height: 2.25rem;
    border-radius: .6rem;
    object-fit: cover; flex-shrink: 0;
    background: #0f0e0d;
}
.pn-user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pn-user-meta b {
    font-size: .9rem; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pn-user-meta span {
    font-size: .68rem; color: var(--pn-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pn-user-action {
    font-size: .75rem; font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: .1em; text-transform: uppercase;
}
.pn-user-action:hover { color: var(--pn-muted); }

.pn-signin {
    display: flex; align-items: center; gap: .5rem;
    background: var(--pn-bg);
    border-radius: .75rem;
    padding: 1rem;
    color: #fff;
    font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
    text-decoration: none;
    transition: background .15s;
}
.pn-signin:hover { background: #29221d; }
.pn-signin svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* Running cost */
.pn-goal-header {
    background: #3B3B3B;
    margin: -1rem -1rem .75rem;
    padding: .85rem 1rem;
    border-radius: .75rem .75rem 0 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: center;
}
.pn-goal-header h5 {
    font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.95);
    margin-bottom: .15rem;
}
.pn-goal-header p { font-size: 1rem; font-weight: 800; margin: 0; color: #fff; }
.pn-goal-bar {
    width: 100%; height: .5rem;
    background: #d1d5db;
    border-radius: 999px; overflow: hidden;
}
.pn-goal-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 999px;
    transition: width .4s ease;
}
.pn-goal-status {
    text-align: center; margin-top: .5rem;
    font-size: .95rem; font-weight: 700;
}

/* Supporters list */
.pn-supporters h3 svg { width: 1rem; height: 1rem; fill: #e0365c; }
.pn-supporters ul { list-style: none; }
.pn-supporters li {
    display: flex; align-items: center; gap: .7rem;
    padding: .5rem 0;
}
.pn-supporters li + li { border-top: 1px solid rgba(255,255,255,.06); }
.pn-supporters img {
    width: 2rem; height: 2rem;
    border-radius: 999px;
    object-fit: cover;
    background: #0f0e0d;
}
.pn-supporters b { display: block; font-size: .9rem; font-weight: 700; }
.pn-supporters span { font-size: .7rem; color: var(--pn-muted); }
.pn-supporters-fallback {
    width: 2rem; height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #8549e6, #e0365c);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem;
    color: #fff; flex-shrink: 0;
}
/* Empty-state for the supporters block (until webhook data wires up) */
.pn-supporters-empty {
    text-align: center;
    padding: .5rem .25rem .25rem;
}
.pn-supporters-empty-icon {
    width: 2.5rem; height: 2.5rem; margin: 0 auto .5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(133,73,230,.22), rgba(224,54,92,.22));
    display: flex; align-items: center; justify-content: center;
}
.pn-supporters-empty-icon svg {
    width: 1.25rem; height: 1.25rem; fill: #fff;
}
.pn-supporters-empty b { display: block; font-size: .95rem; font-weight: 700; }
.pn-supporters-empty span {
    display: block; font-size: .72rem;
    color: var(--pn-muted);
    margin-top: .25rem; line-height: 1.4;
}

/* ═══ Rust inventory-grid kit preview ══════════════════════════════════ */
.pn-kit-banner {
    position: relative;
    z-index: 0;
    display: flex; align-items: center; gap: .75rem;
    background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0));
    border-radius: .5rem;
    padding: .65rem .85rem;
    margin-bottom: .75rem;
}
.pn-kit-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--pn-kit-accent, var(--pn-primary)) 55%, transparent) 0%,
        color-mix(in srgb, var(--pn-kit-accent, var(--pn-primary)) 18%, transparent) 45%,
        transparent 100%
    );
    pointer-events: none;
}
.pn-kit-banner img {
    width: 42px; height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}
.pn-kit-banner-text { display: flex; flex-direction: column; }
.pn-kit-banner-cmd {
    font-family: 'Insaniburger', sans-serif;
    font-size: 1.15rem; line-height: 1;
    color: var(--pn-kit-accent, #fff);
    letter-spacing: .02em;
}
.pn-kit-banner-cd {
    font-size: .72rem;
    color: var(--pn-muted);
    margin-top: .2rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pn-kit-section { margin-bottom: .85rem; }
.pn-kit-section-title {
    font-size: .7rem;
    text-transform: uppercase; letter-spacing: .15em;
    color: rgba(255,255,255,.55);
    margin-bottom: .4rem;
}
.pn-kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: .35rem;
}
.pn-kit-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #1c1a18;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .35rem;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.pn-kit-slot:hover {
    transform: translateY(-1px);
    border-color: var(--pn-kit-accent, var(--pn-primary));
    background: #24221f;
}
.pn-kit-slot img {
    width: 82%; height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.pn-kit-slot-fallback {
    font-size: .55rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    text-align: center;
    padding: .2rem;
    line-height: 1.1;
    word-break: break-word;
}
.pn-kit-slot-qty {
    position: absolute;
    right: 3px; bottom: 2px;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px #000, 0 0 2px #000;
    pointer-events: none;
    line-height: 1;
}
.pn-kit-slot-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.85);
    color: #fff;
    font-size: .68rem;
    text-align: center;
    padding: .15rem .2rem;
    opacity: 0;
    transition: opacity .12s;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pn-kit-slot:hover .pn-kit-slot-name { opacity: 1; }

/* "+N" badge on slots that contain nested items (backpack contents,
   weapon attachments, armor inserts). */
.pn-kit-slot-contains {
    position: absolute;
    left: 3px; top: 3px;
    min-width: 16px; height: 14px;
    padding: 0 4px;
    background: var(--pn-kit-accent, var(--pn-primary));
    color: #000;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 14px;
    text-align: center;
    border-radius: 3px;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
/* Hover card listing what's inside. Uses JS-driven positioning so it
   doesn't get clipped by the modal's overflow. */
.pn-kit-contains-card {
    position: fixed;
    min-width: 180px; max-width: 260px;
    background: #141210;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .5rem;
    padding: .55rem .7rem;
    color: #fff;
    font-size: .78rem;
    line-height: 1.35;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
    z-index: 100000;
    pointer-events: none;
}
.pn-kit-contains-card b {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--pn-kit-accent, var(--pn-primary));
    margin-bottom: .3rem;
}
.pn-kit-contains-card ul { list-style: none; padding: 0; margin: 0; }
.pn-kit-contains-card li,
.pn-kit-contains-card .pn-kit-contains-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: 2px 0;
    min-width: 0;
}
.pn-kit-contains-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}
.pn-kit-contains-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pn-kit-contains-qty {
    color: rgba(255,255,255,.7);
    font-weight: 700;
    flex-shrink: 0;
}

/* ═══ Modal (product details — matches Home / Play / Leaderboard) ═════ */
.pn-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.72);
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.pn-modal.is-open {
    display: block;
    visibility: visible;
    pointer-events: auto;
}
body.pn-modal-open {
    overflow: hidden;
}
.pn-modal-box {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    max-height: calc(
        100dvh
        - max(24px, env(safe-area-inset-top, 0px))
        - max(24px, env(safe-area-inset-bottom, 0px))
    );
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-card, #181a1b);
    border: 1px solid var(--border-md, rgba(255, 255, 255, 0.08));
    border-radius: 2px;
    padding: 20px 22px 18px;
    color: var(--text, #fff);
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
    flex-shrink: 0;
}
.pn-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pn-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}
.pn-modal-header {
    padding-right: 36px;
    margin-bottom: 4px;
}
.pn-modal-top-tag {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim, rgba(255, 255, 255, 0.28));
    margin-bottom: 6px;
}
.pn-modal-rank {
    font-family: var(--font-display, 'Teko', sans-serif);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}
.pn-modal-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    line-height: 1;
}
.pn-modal-price-amount {
    font-family: var(--font-display, 'Teko', sans-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.pn-modal-price-interval {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

#pn-modal-perks-wrap { margin-top: 16px; }
.pn-modal-block { margin-top: 18px; }
#pn-modal-kit-wrap .pn-modal-section-title:first-child { margin-top: 16px; }
.pn-modal-section-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 8px;
}
.pn-modal-perks {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 14px;
    padding: 0;
    margin: 0;
}
.pn-modal-perks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}
.pn-modal-perks li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent, #c4461a);
}

.pn-modal-kits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .4rem;
}
.pn-modal-kit {
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: .5rem;
    padding: .5rem .65rem;
    font-size: .78rem;
    display: flex; justify-content: space-between;
}
.pn-modal-kit b { font-weight: 700; }
.pn-modal-kit span { color: var(--pn-muted); }

.pn-modal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.pn-modal-field { flex: 1; min-width: 160px; }
.pn-modal-field--region { flex: 0 0 auto; min-width: 0; }
.pn-modal-field--server { flex: 1 1 220px; min-width: 200px; }
.pn-modal-field-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 6px;
}

/* Pill toggles — same pattern as leaderboard .pill / store subnav */
.pn-modal-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pn-modal-pills button {
    height: 30px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pn-modal-pills button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}
.pn-modal-pills button.is-active {
    background: var(--accent, #c4461a);
    color: #fff;
    border-color: var(--accent-glow, #ff6030);
}

/* Game server picker — full-width trigger + menu (Play .sb-sort is inline-sized) */
.pn-modal-field--server .pn-server-pick {
    display: flex;
    width: 100%;
    min-width: 0;
}
.pn-modal-field--server .sb-sort__trigger {
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1;
    min-width: 0;
    gap: 10px;
    padding: 0 12px;
    text-align: left;
}
.pn-modal-field--server .sb-sort__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.pn-modal-field--server .sb-sort__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.pn-modal-field--server .sb-sort__menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    max-height: min(280px, 40vh);
    overflow-x: hidden;
    overflow-y: auto;
}
.pn-modal-field--server .sb-sort__menu .sb-sort__option,
.pn-modal-field--server .sb-sort__menu .sb-sort__group {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
/* Portaled to <body> — override global min-width:100% (would be 100vw on body) */
#pn-server-menu.pn-server-menu--portal {
    z-index: 100010;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    min-width: 0;
    max-width: none;
    overflow-x: hidden;
}
#pn-server-menu.pn-server-menu--portal .sb-sort__option,
#pn-server-menu.pn-server-menu--portal .sb-sort__group {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.pn-server-pick.sb-sort--disabled .sb-sort__trigger {
    cursor: not-allowed;
    opacity: 0.55;
}
.pn-modal-select-native {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.pn-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.pn-modal-actions__primary {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}
.pn-modal-btn {
    height: 36px;
    padding: 0 20px;
    border-radius: 2px;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.12s, color 0.12s, border-color 0.12s, opacity 0.12s;
}
.pn-modal-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.pn-modal-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}
.pn-modal-btn--primary {
    background: var(--accent, #c4461a);
    color: #fff;
    border: 1px solid var(--accent-glow, #ff6030);
    min-width: 140px;
}
.pn-modal-btn--primary:hover {
    filter: brightness(1.08);
}
.pn-modal-btn--cart {
    background: #5d7238;
    color: #fff;
    border: 1px solid #6a8444;
    min-width: 130px;
}
.pn-modal-btn--cart:hover {
    filter: brightness(1.08);
    background: #6a8444;
}
.pn-modal-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
.pn-modal-spinner {
    width: 1rem; height: 1rem;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    animation: pn-spin 1s linear infinite;
    display: none;
}
.pn-modal-btn.is-loading .pn-modal-spinner { display: inline-block; }
@keyframes pn-spin { to { transform: rotate(360deg); } }

/* ═══ Footer ══════════════════════════════════════════════════════════ */
.pn-footer {
    margin-top: 4rem;
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,.55);
    font-size: .85rem;
}
.pn-footer a { color: inherit; }
.pn-footer a:hover { color: #fff; }
.pn-footer .pn-sep { width: 1px; height: 1rem; background: rgba(255,255,255,.25); }

/* ═══ Toast ═══════════════════════════════════════════════════════════ */
#pn-toast {
    position: fixed; left: 50%; bottom: 32px;
    transform: translateX(-50%) translateY(20px);
    max-width: 520px; padding: .85rem 1.2rem;
    background: var(--pn-bg); color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.55);
    font: 600 .85rem/1.5 'Poppins', sans-serif;
    z-index: 99999;
    opacity: 0; pointer-events: none;
    transition: transform .25s ease-out, opacity .18s;
    text-align: center;
}
#pn-toast.is-visible {
    opacity: 1; transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
#pn-toast[data-kind="warn"] { border-color: rgba(206,66,43,.55); }
#pn-toast[data-kind="warn"]::before { content: '⚠  '; color: #f26a3b; font-weight: 900; }

@media (max-width: 768px) {
    .store-subnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .store-subnav::-webkit-scrollbar {
        display: none;
    }
    .store-subnav__tabs {
        flex-wrap: nowrap;
    }
    .store-subnav__tabs button {
        white-space: nowrap;
    }
    .rust-store-grid {
        padding-bottom: 24px;
    }
}