.market{background:#0b0811;color:#f4eef8}.market-hero{min-height:420px;display:flex;align-items:center;padding:clamp(32px,7vw,110px);background:linear-gradient(90deg,#100b1cf7 5%,#120b20c9 40%,#100b1c19),url('/assets/avenue.webp') center 46%/cover;border-bottom:1px solid #72552d}.market-hero h1{font:clamp(52px,7vw,110px)/.95 Georgia,serif;margin:16px 0;color:#fff}.market-hero em{color:#e8bc75}.market-hero p:not(.eyebrow){color:#d3c9df;margin:24px 0}.eyebrow{color:#e8bc75;font-size:12px;letter-spacing:.22em;font-weight:700}.catalog{max-width:1440px;margin:auto;padding:64px clamp(20px,5vw,70px)}.catalog-head,.filter{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.catalog h2,.dialog-inner h2{font:clamp(26px,4vw,48px) Georgia,serif;margin:12px 0 24px}.tools,.categories{display:flex;gap:10px;flex-wrap:wrap}.filter{border-block:1px solid #30253d;padding:18px 0;margin:22px 0}.categories button{background:#191222;border:1px solid #41314f;color:#eee;padding:11px 15px;border-radius:30px;cursor:pointer}.categories button.active{color:#f9d88e;border-color:#e8bc75;background:#38263a}.filter input{background:#191222;color:white;border:1px solid #503c60;border-radius:12px;padding:13px 16px;min-width:220px}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:20px}.product{border:1px solid #493653;border-radius:18px;overflow:hidden;background:linear-gradient(145deg,#271734,#100d18);transition:transform .2s,border-color .2s;display:flex;flex-direction:column}.product:hover{transform:translateY(-4px);border-color:#d3a85b}.product img,.placeholder{width:100%;aspect-ratio:16/10;object-fit:contain;background:#110c1b}.placeholder{display:grid;place-items:center;color:#d7b16c;font:italic 24px Georgia}.product-info{padding:20px;display:flex;flex:1;flex-direction:column;gap:12px}.product-info h3{font-size:20px;margin:0}.product-info p{color:#bdb1ca;line-height:1.5;margin:0}.price{color:#f4d18d;font-size:22px;font-weight:700}.product-info button{margin-top:auto}.store-fine{color:#b7a9c2;font-size:13px;line-height:1.6;margin-top:25px}.store-fine a{color:#e8bc75}.market button,.dialog-inner button{cursor:pointer}dialog{color:#f5eff9;background:#191122;border:1px solid #9e7743;border-radius:18px;width:min(620px,94vw);max-height:90vh;overflow:auto;padding:0}dialog::backdrop{background:#08050cbd;backdrop-filter:blur(5px)}.dialog-inner{padding:32px;position:relative}.close{position:absolute;right:12px;top:10px;background:none;border:0;color:white;font-size:30px}.basket{margin:0 0 0 auto;height:100%;max-height:100%;border-radius:18px 0 0 18px}.basket-line{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #493653}.basket-line button{background:none;color:#f0c778;border:0;text-decoration:underline}.detail-image{width:100%;max-height:260px;object-fit:contain}.detail-description{white-space:pre-wrap;color:#d9cce4;line-height:1.6;margin:20px 0}.dialog-inner .metal-button{margin-top:16px}#status,#basket-status{color:#d3c2df;line-height:1.6}button:disabled{opacity:.45;cursor:not-allowed!important}@media(max-width:600px){.market-hero{min-height:360px}.catalog{padding-top:35px}.dialog-inner{padding:24px}.filter input{width:100%}}
/* V15 marketplace sections and right-hand basket */
.products{display:block}.category-section{margin:36px 0 52px}.category-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 14px;margin-bottom:20px;border-bottom:1px solid #59452f}.category-heading h3{font:32px Georgia,serif;color:#f4d18d;margin:0}.category-heading span{color:#bdb1ca;font-size:13px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:20px}.quick-add{background:#24182e;border:1px solid #886a43;border-radius:7px;color:#f5d797;padding:12px;font-weight:700;letter-spacing:.08em}.quick-add:hover{background:#3d2946}.tools #cart{gap:14px;white-space:nowrap}.cart-count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:50%;background:#28190c;color:#ffe2a4;font:700 13px/1 system-ui;letter-spacing:0;box-shadow:inset 0 0 0 1px #996c32}.basket{position:fixed;inset:0 0 0 auto;margin:0;width:min(460px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border-radius:18px 0 0 18px;box-shadow:-20px 0 70px #0009;overflow:auto;background:linear-gradient(155deg,#241731,#100c19 60%)}.basket[open]{animation:cart-slide .28s cubic-bezier(.2,.8,.2,1)}@keyframes cart-slide{from{transform:translateX(100%)}to{transform:translateX(0)}}.basket .dialog-inner{min-height:100%;display:flex;flex-direction:column;box-sizing:border-box}.basket #basket-items{flex:1}.basket-line{justify-content:flex-start;align-items:center}.cart-thumb{width:76px;height:76px;flex:0 0 76px;background:#100b19;border:1px solid #59452f;border-radius:10px;display:grid;place-items:center;overflow:hidden;color:#e8bc75;font:26px Georgia}.cart-thumb img{width:100%;height:100%;object-fit:contain}.cart-info{flex:1;min-width:0;display:grid;gap:7px}.cart-price{color:#f4d18d}.cart-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.basket-line .qty-button{border:1px solid #73563a;border-radius:5px;min-width:28px;height:28px;text-decoration:none;background:#22182d}.basket-line .remove-item{font-size:12px;margin-left:auto}.basket #basket-total{padding:22px 0 8px;font-size:18px;color:#f4d18d;font-weight:700}.basket #checkout{width:100%}.empty-cart{padding:32px 0;color:#bdb1ca}.basket .store-fine{margin:10px 0}.basket #basket-status:empty{display:none}@media(prefers-reduced-motion:reduce){.basket[open]{animation:none}}

/* V16 account identity */
.header-account{display:flex;align-items:center;gap:10px;min-width:0;max-width:200px;padding:8px 12px;border:1px solid #645032;border-radius:12px;color:#f8dfaa;background:linear-gradient(135deg,#271b34,#14101c);cursor:pointer;text-align:left;flex-shrink:0}.header-account:hover{border-color:#e8bc75}.account-avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#2f2439;color:#e8bc75;border:1px solid #785d42}.account-avatar svg{width:22px;height:22px}.account-text{display:grid;gap:3px;min-width:0}.account-text small,.account-profile small{font:700 9px/1.3 system-ui;letter-spacing:.1em;color:#c7a86c}.account-text strong{font:600 13px/1.3 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-account.is-linked .account-avatar{box-shadow:0 0 0 2px #69d7a052}.account-profile{display:flex;gap:13px;align-items:center;padding:16px;background:#251a33;border:1px solid #59452f;border-radius:12px;margin:0 0 16px}.account-profile[hidden]{display:none}.account-profile>div{display:grid;gap:6px;min-width:0}.account-profile strong{overflow-wrap:anywhere}.account-profile button{justify-self:start;background:none;border:0;padding:0;color:#e8bc75;text-decoration:underline;font-size:12px}.basket #basket-status:not(:empty){border-left:2px solid #e8bc75;padding-left:12px;overflow-wrap:anywhere}.basket #basket-status a{display:block;color:#e8bc75;margin-top:5px}.tools #login{max-width:260px;overflow-wrap:anywhere}.header-account:focus-visible{outline:2px solid #e8bc75;outline-offset:3px}@media(max-width:1000px){.header-account{max-width:170px}.header-account .account-text strong{max-width:110px}}@media(max-width:600px){.header-account{max-width:120px;padding:6px}.header-account .account-avatar{display:none}.header-account .account-text strong{max-width:105px}}

/* V18 receipt */
.receipt{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;color:#f4edf8;background:radial-gradient(ellipse at top,#302039,#120e1b 70%);border:1px solid #b18443;border-radius:24px;box-shadow:0 24px 100px #000a;text-align:center;overflow:auto}.receipt::backdrop{background:#08060cbb;backdrop-filter:blur(6px)}.receipt .dialog-inner{padding:36px;display:grid;gap:15px}.receipt h2{font-size:clamp(28px,5vw,45px);margin:0}.receipt p{margin:0;line-height:1.55;color:#d0c2db}.receipt .eyebrow{color:#e8bc75}.receipt-mark{margin:auto;width:64px;height:64px;display:grid;place-items:center;border:1px solid #b18443;border-radius:50%;background:#382a20;color:#f4d18d;font-size:34px}.receipt-copy{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.receipt-copy input{min-width:0;flex:1;padding:12px;background:#100c19;color:#f5d58f;border:1px solid #68513b;border-radius:7px;font-size:14px}.receipt label{font-size:11px;letter-spacing:.12em;color:#e8bc75}.receipt-check{background:none;border:0;color:#e8bc75;text-decoration:underline;cursor:pointer}.receipt [hidden]{display:none!important}.receipt .metal-button{justify-self:center}.receipt #copy-result:empty{display:none}@media(max-width:480px){.receipt .dialog-inner{padding:22px}.receipt-copy input{flex-basis:100%}}

/* V19 verified receipt */
#receipt-summary{background:#100c19;border:1px solid #66513c;border-radius:14px;padding:18px;text-align:left}#receipt-summary h3{color:#e8bc75;margin:0 0 10px;font-size:17px}.receipt-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #392c43}.receipt-line span:last-child{color:#e8bc75;white-space:nowrap}#receipt-total{display:block;text-align:right;color:#f4d18d;margin-top:16px;font-size:19px}#receipt-id-wrap{padding:14px;border:1px solid #68513b;border-radius:12px;background:#100c19}#last-receipt[hidden],#pending-receipt[hidden]{display:none!important}.account-profile a{color:#e8bc75}.receipt .receipt-check{padding:7px}@media print{body:has(#receipt[open])>*:not(#receipt){display:none!important}#receipt[open]{position:static!important;display:block!important;width:100%!important;max-width:none!important;max-height:none!important;color:#111!important;background:white!important;border:0!important;box-shadow:none!important;overflow:visible!important}#receipt[open] *{color:#111!important;background:white!important;box-shadow:none!important}#receipt[open] button,#receipt[open] .receipt-mark{display:none!important}#receipt[open]::backdrop{display:none!important}}

/* V20: brand the surroundings, not Tebex's protected payment form. */
body.avenue-checkout-active > header,body.avenue-checkout-active > main,body.avenue-checkout-active > footer{filter:blur(5px) brightness(.55);transition:filter .25s ease}body.avenue-checkout-active{background:#100a19}.receipt-next{padding:16px;text-align:left;border:1px solid #695237;border-radius:12px;background:linear-gradient(135deg,#261a33,#15101e)}.receipt-next h3{margin:0 0 8px;color:#f0c77e;font-size:17px}.receipt-next p{font-size:13px}.receipt-discord{display:inline-block;margin-top:12px;color:#e8bc75;font-weight:700;font-size:11px;letter-spacing:.08em;text-decoration:underline}.receipt[open]{animation:receipt-enter .28s ease-out}@keyframes receipt-enter{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.receipt[open]{animation:none}body.avenue-checkout-active > header,body.avenue-checkout-active > main,body.avenue-checkout-active > footer{transition:none}}

/* V21 account linking */
.link-panel{border:1px solid #755735;background:linear-gradient(145deg,#2b1e38,#15101e);border-radius:16px;padding:18px;margin:0 0 16px}.link-panel h3{font-size:24px;color:#f6e9f9;margin:5px 0 8px}.link-panel p{font-size:13px;color:#cbbdd4;line-height:1.5}.link-panel a{color:#e8bc75;font-size:12px}.link-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-top:1px solid #493653}.link-row>div{flex:1;min-width:0;display:grid;gap:4px}.link-row small{font-size:10px;color:#e8bc75;letter-spacing:.08em}.link-row strong{overflow-wrap:anywhere;font-size:14px}.discord-avatar{background:#29274b!important;color:#b2b8ff!important}.discord-link{background:#5865f2;color:white;border:1px solid #8c95ff;border-radius:8px;padding:10px;font-weight:700;font-size:11px;cursor:pointer}.discord-link:disabled{opacity:.5}.discord-header{max-width:145px}.link-panel button{white-space:nowrap}.link-panel .quick-add{font-size:11px}.link-panel .account-avatar{flex-shrink:0}.link-panel #discord-link-note{margin:8px 0}.link-panel .eyebrow{color:#e8bc75}.navwrap{flex-wrap:wrap}.discord-header .account-text strong{max-width:100px}@media(max-width:600px){.discord-header{max-width:115px}.link-panel{padding:12px}.link-row{gap:7px}.link-row .account-avatar{width:30px;height:30px}.discord-link{padding:8px 6px}}

/* V22: immediate payment verification state */
.receipt-mark.is-processing::after{content:"";width:30px;height:30px;border:3px solid #775b36;border-top-color:#f4d18d;border-right-color:#f4d18d;border-radius:50%;animation:avenue-payment-spin .85s linear infinite;}
@keyframes avenue-payment-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.receipt-mark.is-processing::after{animation:none;}}
