.shop-page { min-height: 100vh; background: #0b090f; }
.shop-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.shop-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 180px 0 100px;
    background: linear-gradient(90deg, #0b090faa, #0b090f15 65%),
                linear-gradient(to bottom, #0b090f25 40%, #0b090f 100%),
                url('/images/shop-background.png') center 45% / cover no-repeat;
}
.shop-hero-content { width: min(1360px, 92%); margin: 0 auto; }
.shop-hero-kicker { color: #d7a9ff; font-size: 12px; font-weight: 900; letter-spacing: 3px; }
.shop-hero h1 { margin-top: 16px; font-size: clamp(58px, 7vw, 96px); line-height: 1; letter-spacing: -3px; text-shadow: 0 4px 30px #08060b88; }
.shop-container { width: min(1360px, 92%); margin: 0 auto; padding: 28px 0 90px; }
.shop-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 62px; }
.shop-filter { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border: 1px solid #ffffff08; border-radius: 11px; background: #1c1922; color: #e4dfea; font: inherit; font-size: 14px; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s; }
.shop-filter:hover { background: #2c2138; border-color: #b77af759; }
.shop-filter.is-active { background: #9148df; color: #fff; border-color: #b97af1; box-shadow: 0 5px 24px #994deb22; }
.shop-filter:focus-visible { outline: 2px solid #dbb9ff; outline-offset: 4px; }
.shop-filter svg, .shop-heading svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.shop-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid #ffffff14; }
.shop-heading h2 { display: flex; align-items: center; gap: 13px; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.shop-heading > span { color: #938a9e; font-size: 13px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.shop-card { overflow: hidden; border-radius: 14px; background: #1c1922; border: 1px solid #ffffff0a; transition: transform .2s, border-color .2s, box-shadow .2s; }
.shop-card[hidden] { display: none; }
.shop-card:hover { transform: translateY(-5px); border-color: #b77af755; box-shadow: 0 18px 40px #0004; }
.shop-art { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1.18; overflow: hidden; }
.shop-art::before { content: ''; position: absolute; width: 240px; height: 240px; border: 1px solid #ffffff12; transform: rotate(45deg); z-index: -1; }
.shop-art-sponsor { background: radial-gradient(ellipse at 50% 35%, #c68aff, #8742ce 65%, #59249a); }
.shop-art-vip { background: radial-gradient(ellipse at 50% 35%, #99b3ff, #6462cb 65%, #44438f); }
.shop-art-essence { background: radial-gradient(ellipse at 50% 35%, #f7a2eb, #b54ac6 65%, #763095); }
.shop-art-spawner { background: radial-gradient(ellipse at 50% 35%, #819bb2, #465b70 65%, #293746); }
.shop-art-word { position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-size: clamp(30px, 3.8vw, 60px); font-weight: 900; letter-spacing: .04em; color: #ffffff24; z-index: -1; }
.shop-art img { width: 96%; height: auto; filter: drop-shadow(0 18px 12px #1b072d55); transition: transform .3s; }
.shop-card:hover .shop-art img { transform: translateY(-4px) rotate(-2deg); }
.shop-card-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 27px 25px; }
.shop-card-content h2 { font-size: 24px; font-weight: 800; }
.shop-category { padding: 6px 9px; border-radius: 5px; background: #ffffff08; color: #b7a9c5; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.shop-card-actions { padding: 0 25px 25px; }
.shop-add { width: 100%; padding: 14px 16px; border: 1px solid #bb7ef344; border-radius: 10px; background: linear-gradient(110deg, #8841d2, #a65ee8); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.shop-add:hover { background: #ad6bef; }
.shop-add:focus-visible, .shop-cart-toggle:focus-visible, .shop-cart-close:focus-visible, .shop-cart-remove:focus-visible { outline: 2px solid #dbb9ff; outline-offset: 4px; }
.shop-cart-toggle { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid #b77af74d; border-radius: 12px; background: #a855f71f; color: #eee1ff; cursor: pointer; }
.shop-cart-toggle:hover { background: #a855f744; }
.shop-cart-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-cart-badge { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 20px; background: #b56df2; color: #fff; font-size: 12px; line-height: 22px; font-weight: 800; box-shadow: 0 0 0 3px #110c18; }
.shop-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shop-cart-wrapper { position: relative; flex-shrink: 0; }
.shop-cart {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 10;
    width: min(420px, 90vw);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #ba80ed44;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #241a32, #100d19);
    box-shadow: 0 20px 60px #0009;
    clip-path: inset(0 -60px 100% -60px);
    visibility: hidden;
    pointer-events: none;
}
.shop-cart.is-open { clip-path: inset(0 -60px -60px -60px); visibility: visible; pointer-events: auto; }
.shop-cart-toggle[aria-expanded="true"] { background: #a855f744; border-color: #c28bf1; }
.shop-cart-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #ffffff14; }
.shop-cart-header h2 { font-size: 25px; }
.shop-cart-close { width: 38px; height: 38px; border: none; border-radius: 8px; background: #ffffff0a; color: #e3d2f3; font-size: 28px; cursor: pointer; }
.shop-cart-empty { text-align: center; padding: 40px 0; color: #bfb1cd; }
.shop-cart-items { list-style: none; }
.shop-cart-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid #ffffff0d; }
.shop-cart-image { width: 70px; height: 64px; object-fit: contain; border-radius: 9px; background: #a855f715; }
.shop-cart-details { flex: 1; min-width: 0; }
.shop-cart-details h3 { font-size: 17px; margin-bottom: 7px; }
.shop-cart-details p { font-size: 13px; color: #bfb1cd; }
.shop-cart-remove { padding: 9px 8px; background: transparent; border: 0; color: #d5abf6; font: inherit; font-size: 12px; cursor: pointer; }
.shop-cart-remove:hover { color: #fff; }
.shop-cart-footer { margin-top: 24px; }
.shop-cart-remove-form { flex: 0 0 auto; }
.shop-cart-remove-form .shop-cart-remove { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; font: 24px/1 Arial, sans-serif; background: #ffffff08; }
.shop-cart-remove-form .shop-cart-remove:hover { color: #ffb4c3; background: #ed537226; }
.shop-cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shop-cart-total strong { color: #20db83; }
.shop-cart-recurring { margin: 10px 0 16px; color: #bfb1cd; font-size: 12px; line-height: 1.5; }
.shop-cart-footer .shop-add:disabled { opacity: .55; cursor: not-allowed; }
.shop-nick-dialog { position: fixed; inset: 0; margin: auto; width: min(460px, calc(100% - 32px)); max-height: 85dvh; overflow-y: auto; padding: 28px; border: 1px solid #ba80ed44; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #241a32, #100d19); box-shadow: 0 30px 100px #0009; }
.shop-nick-dialog::backdrop { background: #08060bcc; backdrop-filter: blur(6px); }
.shop-nick-product { margin: 22px 0 14px; color: #d5abf6; font-weight: 700; }
#shop-nick, #shop-spawner-fields input { width: 100%; padding: 15px; margin-bottom: 18px; border: 1px solid #ffffff25; border-radius: 10px; background: #09071180; color: #fff; font: inherit; font-size: 15px; }
#shop-spawner-fields { border: 0; padding: 0; min-width: 0; }
#shop-nick-form label { display: block; margin-bottom: 9px; color: #ded2e9; font-size: 14px; }
#shop-nick-form label[hidden] { display: none; }
#shop-spawner-fields input::placeholder { color: #aaa3b2; opacity: 1; }
#shop-spawner-fields input:focus-visible { outline: 2px solid #c99aff; outline-offset: 2px; }
#shop-nick::placeholder { color: #aaa3b2; opacity: 1; }
#shop-nick:focus-visible { outline: 2px solid #c99aff; outline-offset: 2px; }
.shop-nick-error { margin-bottom: 18px; color: #ffabab; font-size: 14px; line-height: 1.5; }
.shop-cart-nick { margin-top: 6px; overflow-wrap: anywhere; }
html:has(.shop-nick-dialog[open]) { overflow: hidden; }
.shop-order-container { width: min(850px, 92%); margin: auto; padding: 170px 0 80px; }
.shop-order-card { padding: clamp(22px, 4vw, 40px); border: 1px solid #ba80ed44; border-radius: 20px; background: linear-gradient(145deg, #241a32, #100d19); }
.shop-order-card h1 { margin-bottom: 24px; font-size: clamp(26px, 4vw, 38px); }
.shop-order-card p, .shop-order-form p, .shop-order-login p { margin: 18px 0; color: #c6b7d3; line-height: 1.7; }
.shop-order-card a, .shop-order-links a, .shop-order-login a { color: #d7b0f7; text-decoration: underline; text-underline-offset: 4px; }
.shop-order-details { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr); gap: 16px; margin: 26px 0; }
.shop-order-details dt { color: #b9a7c8; }
.shop-order-details dd { overflow-wrap: anywhere; }
.shop-order-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.shop-order-list { list-style: none; margin: 24px 0; }
.shop-order-list li { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid #ffffff15; overflow-wrap: anywhere; }
.shop-order-list span { color: #c6b7d3; }
.shop-order-form label { display: block; margin: 16px 0 9px; }
.shop-order-form input, .shop-order-form select { width: 100%; padding: 14px; margin-bottom: 12px; border: 1px solid #ffffff25; border-radius: 10px; background: #100c18; color: white; font: inherit; }
.shop-order-form input:focus-visible, .shop-order-form select:focus-visible { outline: 2px solid #c99aff; outline-offset: 2px; }
.shop-order-form button { margin: 12px 0 24px; }
.shop-order-form button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1200px) {
    .shop-page .navbar { gap: 18px; padding-inline: 4%; }
    .shop-page .nav-links { gap: 5px; }
    .shop-page .nav-links a { font-size: 15px; padding: 9px; white-space: nowrap; }
    .shop-page .nav-logo img { width: 160px; }
}
@media (max-width: 900px) {
    .shop-page .navbar { height: auto; min-height: 112px; flex-wrap: wrap; padding-block: 12px; gap: 10px; }
    .shop-page .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .shop-hero { min-height: 450px; padding-top: 180px; padding-bottom: 70px; }
    .shop-grid { gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-card-content { padding: 22px; }
    .shop-art-word { font-size: 42px; }
}
@media (max-width: 560px) {
    .shop-container { width: 90%; }
    .shop-hero { min-height: 400px; background-position: center, center, 55% center; }
    .shop-hero-content { width: 90%; }
    .shop-filters { gap: 8px; margin-bottom: 38px; }
    .shop-filter { gap: 7px; font-size: 12px; min-height: 48px; }
    .shop-filter svg { width: 16px; height: 16px; }
    .shop-grid { grid-template-columns: 1fr; gap: 24px; }
    .shop-heading h2 { font-size: 21px; }
    .shop-art { aspect-ratio: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-filter, .shop-card, .shop-art img, .shop-cart { transition: none; }
    .shop-card:hover, .shop-card:hover .shop-art img { transform: none; }
}

.shop-product-price { padding: 0 25px; color: #e3c6ff; font-size: 20px; font-weight: 800; }

.shop-card { display: flex; flex-direction: column; }
.shop-card-actions { margin-top: auto; }
.shop-notice { margin-bottom: 20px; padding: 14px 18px; background: #62dcb518; border: 1px solid #62dcb544; border-radius: 10px; color: #b9ffe3; }
.shop-cart-pay, .shop-login-link { display: inline-block; color: #d7a9ff; margin: 12px 0; font-weight: 700; }
.shop-cart-details form { margin-top: 4px; }
.shop-order-form label { display: block; margin-bottom: 8px; }
.shop-order-form [hidden] { display: none; }
.shop-order-section { margin: 24px 0 16px; }
.shop-subscription-cancel { margin: 24px 0; }
.shop-subscription-cancel button { padding: 12px 18px; background: #38233e; border: 1px solid #b77af759; border-radius: 8px; color: #f0ddff; cursor: pointer; }

@font-face { font-family: 'Chakra Petch'; src: url('/fonts/ChakraPetch-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
.shop-container, .shop-cart, .shop-nick-dialog, .purchase-history { font-family: 'Chakra Petch', sans-serif; font-weight: 600; }
.shop-grid, .shop-filters, .shop-heading { max-width: 1200px; margin-left: auto; margin-right: auto; }
.shop-grid { gap: 22px; }
.shop-card { border-radius: 12px; }
.shop-art { aspect-ratio: 1.25; }
.shop-art img { width: 86%; }
.shop-art::before { width: 210px; height: 210px; }
.shop-art-word { top: 20px; font-size: clamp(28px, 3.2vw, 48px); font-weight: 600; }
.shop-card-content { padding: 20px 22px 12px; gap: 12px; }
.shop-card-content h2 { font-size: 20px; font-weight: 600; }
.shop-category { font-size: 10px; padding: 5px 7px; }
.shop-product-price { padding: 0 22px 18px; color: #20db83; font-size: 16px; font-weight: 600; }
.shop-card-actions { padding: 0 22px 22px; }
.shop-card .shop-add { padding: 11px 12px; font-size: 13px; font-weight: 600; border-radius: 9px; }
.shop-filter, .shop-heading h2, .shop-cart-details h3 { font-weight: 600; }
.shop-cart { width: min(380px, 90vw); padding: 20px; }
.shop-cart-header h2 { font-size: 22px; }
.shop-nick-dialog { width: min(430px, calc(100% - 32px)); padding: 24px; }
.shop-nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.shop-nav-actions .nav-account { margin-left: 0; }
.purchase-history { width: min(1000px, 92%); }
.purchase-history h1 { font-size: 28px; margin-bottom: 28px; }
.purchase-empty { color: #b7a9c5; }
.purchase-list { list-style: none; }
.purchase-list li + li { margin-top: 12px; }
.purchase-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 155px; align-items: center; gap: 20px; padding: 16px 22px; border: 1px solid #ffffff0d; border-radius: 12px; background: #1c1922; text-decoration: none; color: #f4eef9; }
.purchase-row:hover { background: #261d30; border-color: #b77af755; }
.purchase-row:focus-visible { outline: 2px solid #dbb9ff; outline-offset: 3px; }
.purchase-row img { width: 64px; height: 56px; object-fit: contain; background: #a855f712; border-radius: 8px; }
.purchase-name { font-size: 17px; }
.purchase-price { color: #20db83; font-size: 15px; white-space: nowrap; }
.purchase-row time { font-size: 13px; color: #ac9dbb; text-align: right; }
@media (max-width: 560px) {
    .shop-nav-actions { margin-left: auto; gap: 12px; }
    .shop-cart { position: fixed; top: 100px; left: 16px; right: 16px; width: auto; max-height: calc(100dvh - 116px); }
    .shop-grid { max-width: 370px; }
    .shop-card-content { padding: 18px 20px 10px; }
    .shop-product-price { padding: 0 20px 16px; }
    .shop-card-actions { padding: 0 20px 20px; }
    .purchase-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; }
    .purchase-row img { width: 52px; height: 48px; grid-row: span 2; }
    .purchase-name { font-size: 15px; }
    .purchase-row time { grid-column: 2 / -1; text-align: left; }
}

.shop-cart-error { margin: 14px 0; padding: 12px; border: 1px solid #ed537255; border-radius: 8px; color: #ffc0cc; background: #ed537215; font-size: 13px; line-height: 1.5; }
.shop-cart-error[hidden] { display: none; }
.shop-cart-remove:disabled { opacity: .45; cursor: wait; }

.shop-key-packages { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.shop-key-packages legend { margin-bottom: 12px; color: #cbb9dc; }
.shop-key-packages .shop-key-package { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0; border: 1px solid #ffffff20; border-radius: 12px; background: #ffffff05; cursor: pointer; }
.shop-key-package:has(input:checked) { border-color: #bc83ff; background: #a855f71a; }
.shop-key-package:focus-within { outline: 2px solid #dbb9ff; outline-offset: 2px; }
.shop-key-packages input { width: 18px; height: 18px; padding: 0; margin: 0; flex-shrink: 0; accent-color: #bb81ff; }
.shop-key-package-info, .shop-key-package-price { display: grid; gap: 5px; }
.shop-key-package-price { margin-left: auto; text-align: right; white-space: nowrap; }
.shop-key-package small { font-size: 12px; color: #b7a9c5; }
.shop-key-package-price small { color: #20db83; }
