@font-face {
    font-family: Montserrat;
    src: local("Montserrat");
    font-display: swap;
}
:root {
    color-scheme: dark;
    --background: #100f16;
    --surface: #191826;
    --raised: #211e30;
    --border: #39344a;
    --text: #f8f6ff;
    --muted: #c0b9d0;
    --accent: #bdadff;
    --button: #d0c4ff;
    --on-button: #201839;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: radial-gradient(ellipse at 65% 0, #241b38 0, transparent 53rem), var(--background);
    color: var(--text);
    font: 400 1rem/1.5 Montserrat, system-ui, sans-serif;
}
a { color: var(--accent); }
a:hover { color: #e0d7ff; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d3c5ff; outline-offset: 4px; }
.shop-wrap { width: min(1100px, 100% - 48px); margin-inline: auto; }
.shop-header { background: #100f16dc; border-bottom: 1px solid var(--border); }
.shop-nav, .shop-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 17px; }
.shop-brand { text-decoration: none; color: var(--text); font-size: 1.3rem; font-weight: 850; letter-spacing: .12em; }
.shop-brand span { color: var(--accent); }
.shop-heading { padding: clamp(32px, 6vw, 72px) 0 30px; }
.shop-heading h1 { margin: 0; font-size: clamp(2.65rem, 8vw, 4.7rem); line-height: 1.02; letter-spacing: -.065em; }
.shop-heading p { color: var(--muted); margin: 13px 0 0; max-width: 38rem; }
.shop-featured, .shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-product {
    --product-accent: var(--accent);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--product-accent);
    border-radius: 17px;
}
.shop-product.premium { background: linear-gradient(135deg, #342757, #201b2e); }
.shop-product.coins { --product-accent: #7addbf; background: linear-gradient(135deg, #203c37, #192624); }
.shop-product.neizzir_blue { --product-accent: #9695ff; }
.shop-product.neizzir_azure { --product-accent: #88e1ff; }
.shop-product.neizzir_gray { --product-accent: #b6c5d3; }
.shop-product.neizzir_fiol { --product-accent: #d8a3f5; }
.shop-product h2, .shop-product h3, .shop-collection h2 { line-height: 1.18; margin: 0; letter-spacing: -.027em; }
.shop-product h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.shop-product h3 { font-size: 1.13rem; }
.shop-product p { margin: 9px 0 0; color: var(--muted); font-size: .92rem; }
.shop-product-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    align-self: stretch; margin-top: auto; padding-top: 20px; gap: 12px;
}
.shop-product-actions strong { color: var(--product-accent); font-size: 1.2rem; }
.shop-collection { margin-block: 37px 25px; }
.shop-collection > h2 { margin-bottom: 15px; }
.shop-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: .52rem 1rem; color: var(--on-button); background: var(--button);
    border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750;
    cursor: pointer;
}
.shop-button:hover { background: #ede6ff; color: var(--on-button); }
.shop-button.secondary { color: var(--text); background: var(--raised); border-color: var(--border); }
.shop-button.secondary:hover { border-color: var(--accent); background: #312944; }
.shop-button:disabled { cursor: wait; opacity: .56; }
.shop-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.shop-footer { color: var(--muted); border-top: 1px solid var(--border); font-size: .88rem; margin-top: 38px; }
.quiet { color: var(--muted); }
#shop-dialog {
    width: min(530px, calc(100% - 28px)); max-height: min(92vh, 920px);
    padding: 21px; border: 1px solid var(--border); border-radius: 19px;
    background: var(--surface); color: var(--text);
}
#shop-dialog::backdrop { background: #080711ac; }
.shop-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.shop-dialog-heading h2 { font-size: 1.4rem; line-height: 1.18; letter-spacing: -.035em; margin: 0; }
#shop-dialog-body > :first-child { margin-top: 0; }
#shop-dialog-body > a.shop-button { margin-top: 12px; background: var(--raised); color: var(--text); border-color: var(--border); }
.shop-fields { display: grid; gap: 13px; }
.shop-fields label { display: grid; gap: 6px; font-weight: 650; font-size: .94rem; }
.shop-fields input, .shop-fields select {
    width: 100%; min-height: 44px; max-width: 100%; border: 1px solid var(--border);
    border-radius: 9px; color: var(--text); background: var(--background); padding: 8px 10px; font-size: 1rem;
}
.shop-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 15px; }
.shop-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 13px; margin: 14px 0; }
.shop-facts dt { color: var(--muted); }
.shop-facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.shop-total { display: block; font-weight: 800; font-size: 2rem; color: var(--accent); letter-spacing: -.04em; }
#shop-status { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); }
#shop-status.error { color: #ffb6bb; border-color: #874450; }
.shop-order { padding: 13px 0; border-bottom: 1px solid var(--border); }
.shop-order p { margin: 4px 0; }
.shop-order-heading { color: var(--text); font-size: 1.05rem; font-weight: 750; margin-bottom: 0; }
.shop-access { overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .shop-wrap { width: calc(100% - 28px); }
    .shop-featured, .shop-grid { grid-template-columns: 1fr; }
    .shop-product { padding: 16px; }
    .shop-heading { padding-top: 31px; }
    #shop-dialog { padding: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
    .shop-button { transition: background .15s, border-color .15s; }
}
