@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{color-scheme:dark;--bg:#110e17;--surface:#191520;--surface-raised:#201b2a;--surface-soft:#241e30;--line:#30293b;--text:#f5f2fa;--muted:#a49bac;--subtle:#766e7f;--purple:#b78aff;--purple-deep:#8c5be6;--green:#b8ed73;--coral:#ff987f;--shadow:0 22px 60px #09070d99;--radius:12px}
:root[data-theme="light"]{color-scheme:light;--bg:#f6f3fb;--surface:#fff;--surface-raised:#f0ebf8;--surface-soft:#ebe4f6;--line:#ded6e9;--text:#20182b;--muted:#665d71;--subtle:#847a90;--purple:#793ed0;--purple-deep:#6730ba;--green:#7cb82b;--coral:#d86148;--shadow:0 20px 50px #28173a24}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 'DM Sans',Arial,sans-serif;transition:background .2s,color .2s}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}.topbar{height:74px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 clamp(20px,6vw,94px);gap:56px;background:color-mix(in srgb,var(--bg) 92%,transparent);position:sticky;top:0;z-index:5;backdrop-filter:blur(18px)}.brand{display:inline-flex;align-items:center;gap:9px;font:800 23px 'Manrope',sans-serif;letter-spacing:-.7px;white-space:nowrap}.brand-mark{width:31px;height:31px;display:grid;place-items:center;background:var(--purple);border-radius:9px;color:#17101f}.brand-mark svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.brand-dot{color:var(--purple)}.main-nav{display:flex;align-items:center;gap:28px;height:100%;flex:1}.nav-link{font-size:14px;color:var(--muted);background:none;border:0;padding:9px 0;cursor:pointer}.nav-link.active{color:var(--text);position:relative}.nav-link.active:after{content:"";position:absolute;height:2px;background:var(--purple);bottom:-19px;left:0;right:0}.top-actions{display:flex;gap:12px;align-items:center}.icon-button,.cart-button,.account-button{height:40px;border:1px solid var(--line);background:var(--surface);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.16s}.icon-button:hover,.cart-button:hover,.account-button:hover{border-color:var(--purple);transform:translateY(-1px)}.icon-button{width:40px}.icon-button svg,.cart-button svg,.search-box svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.cart-button{padding:0 12px;gap:8px;font-size:13px}.cart-count{font-size:11px;background:var(--surface-soft);width:20px;height:20px;border-radius:6px;display:grid;place-items:center}.account-button{gap:8px;padding:0 11px;font-size:13px}.avatar{height:23px;width:23px;border-radius:7px;display:grid;place-items:center;background:var(--purple);color:#160f20;font-weight:800}.market-heading,main,.seller-strip,footer{width:min(1120px,calc(100% - 48px));margin-inline:auto}.market-heading{padding:42px 0 35px;display:flex;justify-content:space-between;align-items:end}.eyebrow,.section-kicker,.catalog-eyebrow{font-size:10px;font-weight:700;color:var(--muted);letter-spacing:1.1px}.eyebrow{display:flex;align-items:center;gap:8px}.live-dot{height:7px;width:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px color-mix(in srgb,var(--green) 80%,transparent)}h1,h2,h3,p{margin-top:0}h1{font:800 39px/1.15 'Manrope',sans-serif;letter-spacing:-1.4px;margin:10px 0 7px}h1 span{color:var(--purple)}.market-heading p{color:var(--muted);margin:0;font-size:14px}.trust-summary{display:flex;gap:12px;align-items:center;padding:10px 14px;border:1px solid var(--line);background:var(--surface);border-radius:10px;margin-bottom:1px}.trust-icon{height:34px;width:34px;display:grid;place-items:center;background:color-mix(in srgb,var(--purple) 18%,var(--surface));border-radius:8px;color:var(--purple);font-size:20px}.trust-summary strong,.trust-summary span{display:block}.trust-summary strong{font-size:12px}.trust-summary span{font-size:11px;color:var(--muted);margin-top:2px}.games-section{padding:4px 0 41px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}.section-kicker{color:var(--purple);font-size:9px}.section-heading h2,.catalog-topline h2{font:700 21px 'Manrope',sans-serif;margin:3px 0 0;letter-spacing:-.4px}.text-button{background:none;border:0;color:var(--muted);font-size:12px;cursor:pointer;padding:7px 2px}.text-button span{color:var(--purple);font-size:16px;margin-left:5px}.game-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.game-card{position:relative;isolation:isolate;border:1px solid var(--line);height:122px;border-radius:10px;overflow:hidden;text-align:left;padding:0;background:var(--surface);cursor:pointer;transition:border .17s,transform .17s}.game-card:before{position:absolute;inset:0;z-index:-1;content:"";background-image:linear-gradient(0deg,#100b16 0%,#100b1630 75%,#100b1612),var(--game-image);background-position:center;background-size:cover;opacity:.83;transition:transform .28s}.game-card:hover{transform:translateY(-2px);border-color:var(--purple)}.game-card:hover:before{transform:scale(1.04)}.game-card.selected{border:2px solid var(--purple)}.game-meta{position:absolute;bottom:0;left:0;right:0;padding:30px 11px 10px;color:#fff}.game-meta strong{font:700 13px 'Manrope',sans-serif;display:block}.game-meta span{font-size:10px;color:#ded6e6}.game-mark{position:absolute;top:9px;left:10px;font-size:9px;line-height:20px;font-weight:700;letter-spacing:.7px;color:#fff;text-shadow:0 1px 7px #111}.catalog-section{border-top:1px solid var(--line);padding:30px 0 45px}.catalog-topline{display:flex;align-items:end;justify-content:space-between;gap:20px}.catalog-eyebrow{font-size:9px}.catalog-eyebrow span{padding:0 7px;color:var(--subtle)}.search-box{display:flex;align-items:center;gap:9px;width:270px;height:39px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:0 10px;color:var(--muted)}.search-box input{min-width:0;flex:1;background:none;border:0;outline:none;color:var(--text);font-size:12px}.search-box input::placeholder{color:var(--subtle)}.search-box kbd{font:10px 'DM Sans';padding:2px 6px;background:var(--surface-raised);border-radius:4px}.filters-row{display:flex;align-items:center;justify-content:space-between;margin-top:23px;gap:15px}.category-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.category-tabs::-webkit-scrollbar{display:none}.category-tab{white-space:nowrap;padding:8px 13px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:11px;color:var(--muted);cursor:pointer;transition:.15s}.category-tab:hover{border-color:var(--purple);color:var(--text)}.category-tab.active{background:var(--purple);border-color:var(--purple);color:#1b1025;font-weight:700}.filter-controls{display:flex;align-items:center;gap:8px;white-space:nowrap}.sort-label{font-size:11px;color:var(--muted)}.filter-controls select{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:8px 25px 8px 9px;color:var(--text);font-size:11px;outline:none}.result-line{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);padding:17px 0 13px}.clear-filter{font-size:11px;border:0;background:none;color:var(--purple);cursor:pointer}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);min-width:0;transition:transform .16s,border-color .16s}.product-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--purple) 62%,var(--line))}.product-visual{height:133px;background-position:center;background-size:cover;position:relative;display:flex;align-items:flex-end;padding:10px}.product-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0d0a12bb,transparent 65%)}.product-game-tag,.favorite-button{z-index:1}.product-game-tag{padding:4px 7px;background:#16101bd9;border:1px solid #ffffff20;border-radius:5px;color:#f1eafa;font-size:9px}.favorite-button{position:absolute;right:9px;top:9px;border:1px solid #ffffff38;border-radius:6px;height:29px;width:29px;background:#160f20a8;color:#fff;cursor:pointer;font-size:16px;line-height:1}.favorite-button.is-favorite{color:#ff8e9a}.product-info{padding:12px 12px 11px}.product-title{font:600 13px/1.4 'Manrope',sans-serif;min-height:37px;margin:0 0 9px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.seller-line{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-bottom:12px}.seller-check{height:15px;width:15px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--green) 19%,var(--surface));color:var(--green);font-size:9px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px}.price{font:800 17px 'Manrope',sans-serif;white-space:nowrap}.price small{font-size:11px;color:var(--muted);font-weight:500}.buy-button{border:0;border-radius:6px;background:var(--purple);color:#1b1025;padding:8px 10px;font-size:10px;font-weight:700;cursor:pointer;white-space:nowrap}.buy-button:hover{background:color-mix(in srgb,var(--purple) 84%,white)}.empty-state{text-align:center;padding:56px 20px 68px}.empty-state h3{font:700 17px 'Manrope';margin:12px 0 6px}.empty-state p{color:var(--muted);font-size:12px}.empty-symbol{font-size:28px;color:var(--purple)}.secondary-button{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:9px 13px;font-size:11px;cursor:pointer}.seller-strip{margin-bottom:42px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:18px 22px;display:flex;align-items:center;gap:14px}.seller-emblem{width:41px;height:41px;border-radius:10px;background:var(--surface-soft);display:grid;place-items:center;color:var(--purple);font:800 20px 'Manrope'}.seller-emblem span{color:var(--green)}.seller-strip strong{font:700 13px 'Manrope'}.seller-strip p{margin:3px 0 0;color:var(--muted);font-size:11px}.seller-cta{margin-left:auto;border:0;background:none;color:var(--purple);font-size:12px;font-weight:700;cursor:pointer}.seller-cta span{margin-left:8px}footer{border-top:1px solid var(--line);padding:20px 0 27px;display:flex;align-items:center;gap:20px;color:var(--muted);font-size:10px}.footer-brand{font-size:17px;color:var(--text);gap:6px}.footer-brand .brand-mark{width:25px;height:25px;border-radius:7px}.footer-brand .brand-mark svg{width:18px;height:18px}footer>span:last-child{margin-left:auto}.overlay{position:fixed;inset:0;z-index:10;background:#08060dbb;backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}.modal{position:relative;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;width:min(480px,100%);max-height:min(86vh,780px);overflow:auto;padding:29px}.modal:has(.wide-modal){width:min(810px,100%)}.modal-close{position:absolute;top:13px;right:13px;width:31px;height:31px;border:0;background:var(--surface-raised)}.modal-close svg{width:15px}.modal h2{font:800 23px 'Manrope';margin:2px 0 5px}.modal-lead{color:var(--muted);font-size:12px;margin:0 0 21px}.auth-tabs{display:flex;gap:5px;background:var(--bg);border-radius:8px;padding:4px;margin:18px 0}.auth-tab{flex:1;border:0;background:none;color:var(--muted);border-radius:6px;padding:8px;font-size:12px;cursor:pointer}.auth-tab.active{background:var(--surface-raised);color:var(--text);font-weight:700}.form-stack{display:grid;gap:12px}.field-label{display:grid;gap:6px;font-size:11px;color:var(--muted)}.field-label input,.field-label select,.field-label textarea,.admin-field{width:100%;height:39px;padding:0 11px;background:var(--bg);border:1px solid var(--line);color:var(--text);border-radius:7px;outline:none;font-size:12px}.field-label textarea{height:76px;padding-top:9px;resize:vertical}.field-label input:focus,.field-label select:focus,.field-label textarea:focus,.admin-field:focus{border-color:var(--purple)}.primary-button{width:100%;height:41px;border:0;border-radius:7px;background:var(--purple);color:#1b1025;font-weight:700;font-size:12px;cursor:pointer;margin-top:4px}.primary-button:hover{filter:brightness(1.08)}.demo-note{border:1px solid var(--line);border-radius:7px;padding:10px;font-size:10px;line-height:1.55;color:var(--muted);margin-top:15px}.demo-note strong{color:var(--text)}.account-summary{border:1px solid var(--line);background:var(--surface-raised);border-radius:9px;padding:14px;display:flex;gap:12px;align-items:center;margin:17px 0}.account-big-avatar{width:42px;height:42px;border-radius:10px;background:var(--purple);color:#1b1025;display:grid;place-items:center;font-weight:800;font-size:19px}.account-summary strong,.account-summary span{display:block}.account-summary span{font-size:11px;color:var(--muted);margin-top:3px}.account-actions{display:flex;gap:8px}.account-actions button{flex:1}.dashboard-links{display:flex;border-bottom:1px solid var(--line);gap:16px;margin:15px 0}.dashboard-tab{background:none;border:0;padding:9px 0;font-size:11px;color:var(--muted);cursor:pointer}.dashboard-tab.active{color:var(--purple);border-bottom:2px solid var(--purple)}.wide-modal h2{font-size:20px}.admin-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:15px 0 17px;overflow:auto}.admin-tab{white-space:nowrap;border:0;background:none;padding:10px 13px;color:var(--muted);font-size:11px;cursor:pointer;border-bottom:2px solid transparent}.admin-tab.active{color:var(--purple);border-color:var(--purple)}.admin-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.admin-toolbar strong{font:700 13px 'Manrope'}.admin-add{border:0;background:var(--purple);color:#1b1025;border-radius:6px;padding:8px 11px;font-size:10px;font-weight:700;cursor:pointer}.admin-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px}.admin-table{width:100%;border-collapse:collapse;min-width:480px;text-align:left}.admin-table th{background:var(--surface-raised);font-size:9px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);font-weight:600}.admin-table td,.admin-table th{padding:10px;border-bottom:1px solid var(--line);font-size:10px}.admin-table tr:last-child td{border-bottom:0}.table-title{font-weight:600}.table-sub{font-size:9px;color:var(--muted);margin-top:2px}.row-actions{display:flex;gap:5px}.row-action{border:1px solid var(--line);background:var(--surface);border-radius:5px;padding:5px 7px;font-size:9px;cursor:pointer}.row-action.delete{color:var(--coral)}.admin-form{display:grid;gap:11px}.admin-form h3{font:700 14px 'Manrope';margin:0 0 2px}.admin-form-actions{display:flex;gap:8px}.admin-form-actions>*{flex:1}.hidden{display:none!important}.toast-region{position:fixed;right:20px;bottom:20px;z-index:20;display:grid;gap:8px}.toast{background:var(--surface-raised);border:1px solid var(--line);border-radius:8px;padding:11px 14px;box-shadow:var(--shadow);font-size:12px;animation:toast-in .2s ease-out}.toast.success:before{content:"✓";color:var(--green);margin-right:8px;font-weight:800}.toast.error:before{content:"!";color:var(--coral);margin-right:8px;font-weight:800}@keyframes toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.product-buy-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.quantity-control{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:32px;padding:2px;border:1px solid var(--line);border-radius:7px;background:var(--bg);flex:none}.quantity-button{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:5px;background:var(--surface-raised);font-size:16px;line-height:1;cursor:pointer}.quantity-button:hover:not(:disabled){background:var(--purple);color:#1b1025}.quantity-button:disabled{opacity:.42;cursor:default}.quantity-value{display:grid;place-items:center;min-width:20px;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}.buy-button{min-height:32px}.cart-added{font-size:10px;font-weight:700;color:var(--green);white-space:nowrap}.cart-quantity-control{height:29px}.cart-quantity-control .quantity-button{width:23px;height:23px}.cart-quantity-control .quantity-value{min-width:18px}
@media(max-width:900px){.topbar{padding-inline:25px;gap:33px}.game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-card{height:118px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.topbar{height:62px;padding-inline:16px;gap:15px}.brand{font-size:20px}.main-nav{display:none}.top-actions{margin-left:auto;gap:7px}.cart-button{width:39px;padding:0;gap:0}.cart-button>span{display:none}.cart-count{position:absolute;transform:translate(11px,-12px);width:16px;height:16px;font-size:9px}.account-button{padding:0 8px}.market-heading,main,.seller-strip,footer{width:calc(100% - 32px)}.market-heading{padding:30px 0 26px;align-items:start}.market-heading h1{font-size:32px}.market-heading p{font-size:12px;max-width:275px}.trust-summary{display:none}.section-heading h2,.catalog-topline h2{font-size:18px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.game-card{height:111px}.games-section{padding-bottom:29px}.catalog-section{padding-top:23px}.catalog-topline{align-items:start;display:grid}.search-box{width:100%}.filters-row{align-items:start;flex-direction:column;margin-top:15px}.category-tabs{width:calc(100vw - 32px);padding-bottom:2px}.filter-controls{margin-left:auto}.sort-label{display:none}.result-line{padding-top:13px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-visual{height:112px;padding:8px}.product-info{padding:10px}.product-title{font-size:12px;min-height:34px}.seller-line{font-size:9px;margin-bottom:10px}.price{font-size:15px}.product-card .product-bottom{align-items:flex-start;flex-direction:column;gap:8px}.product-buy-controls{width:100%;justify-content:space-between;gap:4px}.quantity-control{height:30px;gap:1px}.quantity-button{width:24px;height:24px}.quantity-value{min-width:17px}.buy-button{font-size:9px;padding:6px 7px;min-height:30px}.seller-strip{padding:14px;gap:10px;margin-bottom:30px}.seller-emblem{width:34px;height:34px;flex:none}.seller-strip strong{font-size:11px}.seller-strip p{font-size:10px}.seller-cta{font-size:10px;white-space:nowrap}footer{gap:10px;flex-wrap:wrap;padding-bottom:22px}footer>span:nth-child(2){display:none}.footer-brand{margin-right:auto}.modal{padding:25px 19px 20px}.modal:has(.wide-modal){padding:24px 14px}.overlay{padding:12px}.toast-region{left:14px;right:14px;bottom:14px}.toast{width:fit-content;max-width:100%}}
@media(max-width:380px){.product-buy-controls{display:grid;grid-template-columns:1fr;justify-items:stretch}.product-buy-controls .quantity-control{justify-self:start}.product-buy-controls .buy-button{width:100%}}
@media(max-width:370px){.account-button #account-label{display:none}.game-card{height:99px}.product-grid{gap:7px}.product-info{padding:8px}.product-bottom{align-items:end}.buy-button{padding:7px 6px}.price{font-size:14px}}
.nav-link{display:inline-flex;align-items:center;gap:7px}.nav-unread{min-width:17px;height:17px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:var(--coral);color:#231217;font-size:9px;font-weight:800;line-height:1;white-space:nowrap}
.support-status-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line)}.support-status-heading{display:grid;gap:4px}.support-status-heading span{color:var(--muted);font-size:10px}.support-status-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.support-status-button{min-height:30px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);font-size:10px;cursor:pointer}.support-status-button:hover{border-color:var(--purple);color:var(--text)}.support-status-button.active{border-color:var(--purple);background:color-mix(in srgb,var(--purple) 15%,var(--surface));color:var(--text);font-weight:700}.support-list-status{font-size:9px;color:var(--purple)}.support-unread-count{min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:9px;background:var(--coral);color:#231217;font-size:9px;font-weight:800}.support-chat-list-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.support-status-badge{display:inline-flex;width:max-content;padding:4px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:10px;font-weight:700}.support-status-badge[data-status="В работе"]{color:var(--purple);border-color:color-mix(in srgb,var(--purple) 50%,var(--line))}.support-status-badge[data-status="Решён"]{color:var(--green);border-color:color-mix(in srgb,var(--green) 45%,var(--line))}.support-status-badge[data-status="Закрыт"]{color:var(--coral);border-color:color-mix(in srgb,var(--coral) 45%,var(--line))}
.product-description{font-size:10px;line-height:1.4;color:var(--muted);height:28px;margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:640px){.support-status-panel{align-items:flex-start;flex-direction:column;gap:9px}.support-status-actions{justify-content:flex-start}.support-status-button{padding-inline:8px}.main-nav .nav-link{gap:5px}}
.orders-table{min-width:690px}.order-status-select{width:155px;max-width:100%;height:30px;padding:0 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);font-size:10px}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 18px}.stat-item{min-width:0;border:1px solid var(--line);background:var(--surface-raised);border-radius:8px;padding:11px 12px}.stat-item span,.stat-item strong{display:block}.stat-item span{font-size:10px;color:var(--muted)}.stat-item strong{margin-top:5px;font:700 15px 'Manrope',sans-serif;overflow-wrap:anywhere}.admin-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:5px}.admin-stats .stat-item strong{font-size:14px}.logout-inline{margin-top:12px}.chat-preview{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.chat-back{margin:-7px 0 9px}.chat-messages{height:min(45vh,390px);min-height:190px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:12px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}.chat-message{max-width:min(82%,560px);align-self:flex-start;border:1px solid var(--line);border-radius:9px 9px 9px 3px;background:var(--surface-raised);padding:9px 11px}.chat-message.mine{align-self:flex-end;border-color:color-mix(in srgb,var(--purple) 55%,var(--line));background:color-mix(in srgb,var(--purple) 14%,var(--surface));border-radius:9px 9px 3px 9px}.chat-message-meta{font-size:9px;color:var(--muted);margin-bottom:5px}.chat-message-text{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-empty{text-align:center;color:var(--muted);font-size:11px;margin:auto}.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) 125px;gap:8px;margin-top:10px;align-items:stretch}.chat-composer textarea{width:100%;min-height:43px;max-height:120px;resize:vertical;padding:10px 11px;background:var(--bg);border:1px solid var(--line);color:var(--text);border-radius:7px;outline:none;font:12px/1.4 'DM Sans',Arial,sans-serif}.chat-composer textarea:focus{border-color:var(--purple)}.chat-composer .primary-button{height:auto;min-height:43px;margin:0}.row-action:disabled,.primary-button:disabled{opacity:.6;cursor:wait}
@media(max-width:640px){.stats-grid,.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stat-item{padding:9px}.stat-item strong{font-size:13px}.chat-composer{grid-template-columns:1fr}.chat-composer .primary-button{height:40px}.chat-message{max-width:92%}.chat-messages{height:42vh}.chat-preview{max-width:150px}}
.modal:has(.wide-modal){width:min(1100px,calc(100vw - 48px));max-height:min(92vh,940px);padding:30px 32px}.wide-modal h2{font-size:23px}.wide-modal .admin-tabs{gap:8px;margin:19px 0 21px}.wide-modal .admin-tab{padding:12px 15px;font-size:12px}.wide-modal .admin-toolbar strong{font-size:14px}.wide-modal .admin-table td,.wide-modal .admin-table th{padding:13px 14px;font-size:12px}.wide-modal .admin-table th{font-size:10px}.wide-modal .order-status-select{height:36px;font-size:12px}.wide-modal .row-action{padding:7px 9px;font-size:10px}
@media(max-width:900px){.modal:has(.wide-modal){width:calc(100vw - 40px);padding:26px 24px}}
@media(max-width:640px){.modal:has(.wide-modal){width:calc(100vw - 24px);max-height:94dvh;padding:22px 14px}.wide-modal .admin-tabs{gap:5px;margin:14px 0 16px}.wide-modal .admin-tab{padding:10px 11px;font-size:11px}.wide-modal .admin-table td,.wide-modal .admin-table th{padding:10px;font-size:11px}}
.overlay:has(.admin-fullscreen){padding:0;place-items:stretch}
.modal:has(.admin-fullscreen){width:100vw;height:100vh;height:100dvh;max-height:none;padding:30px clamp(20px,4vw,56px);border:0;border-radius:0;overflow:auto}
.admin-fullscreen{width:100%;min-height:100%;max-width:none;margin-inline:auto}
@media(max-width:640px){.modal:has(.admin-fullscreen){padding:22px 14px 24px}.admin-fullscreen .admin-tabs{overflow-x:auto;scrollbar-width:thin}.admin-fullscreen .admin-tab{flex:0 0 auto}}

.workspace-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-right:48px;margin-bottom:22px}
.workspace-header h2{margin:5px 0 3px;font-size:27px}
.workspace-eyebrow{font-size:10px;font-weight:700;color:var(--purple);letter-spacing:1px}
.workspace-subtitle{margin:0;color:var(--muted);font-size:13px}
.account-fullscreen,.admin-fullscreen{max-width:1440px}
.account-summary{margin:10px 0 18px;padding:0;border:0;background:none}
.account-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.account-stats .stat-item,.admin-stats .stat-item{padding:16px;background:var(--surface);border-color:var(--line)}
.account-stats .stat-item strong,.admin-stats .stat-item strong{font-size:19px}
.account-section{border-top:1px solid var(--line);padding-top:22px}
.account-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}
.account-section-head h3{font:700 20px 'Manrope',sans-serif;margin:4px 0 0}
.account-count{color:var(--muted);font-size:13px}
.purchase-list{display:grid}
.purchase-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,180px) minmax(185px,220px);align-items:center;gap:24px;padding:19px 16px;border-bottom:1px solid var(--line);transition:background .15s}
.purchase-row:first-child{border-top:1px solid var(--line)}
.purchase-row:hover{background:color-mix(in srgb,var(--surface-raised) 72%,transparent)}
.purchase-main{min-width:0}
.purchase-main h4{font:600 14px/1.4 'Manrope',sans-serif;margin:0 0 5px;overflow-wrap:anywhere}
.purchase-main>span,.purchase-total>span{font-size:11px;color:var(--muted)}
.purchase-total strong{display:block;margin-top:3px;font:700 17px 'Manrope',sans-serif}
.purchase-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.status-badge{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border:1px solid var(--line);border-radius:6px;font-size:10px;white-space:nowrap}
.status-badge:before{content:"";width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--purple)}
.status-badge.done:before{background:var(--green)}
.status-badge.cancelled:before{background:var(--coral)}
.purchases-empty,.chat-placeholder{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}
.purchases-empty h3,.chat-placeholder h3{font:700 18px 'Manrope';margin:10px 0 5px}
.purchases-empty p,.chat-placeholder p{font-size:12px;color:var(--muted);margin:0 0 16px}
.purchases-empty .text-button{margin-top:8px}
.admin-fullscreen .admin-toolbar{margin:20px 0 14px}
.admin-fullscreen .admin-table-wrap{background:var(--surface)}
.admin-fullscreen .admin-table tbody tr:hover{background:color-mix(in srgb,var(--surface-raised) 66%,transparent)}
.admin-fullscreen .admin-table td,.admin-fullscreen .admin-table th{padding:15px 16px}
.admin-fullscreen .admin-table td{font-size:12px}
.admin-fullscreen .table-sub{font-size:10px}
.overlay:has(.account-fullscreen),.overlay:has(.chat-workspace){padding:0;place-items:stretch}
.modal:has(.account-fullscreen),.modal:has(.chat-workspace){width:100vw;height:100vh;height:100dvh;max-height:none;padding:30px clamp(20px,4vw,56px);border:0;border-radius:0;overflow:hidden}
.modal:has(.account-fullscreen) .modal-close,.modal:has(.chat-workspace) .modal-close{position:fixed;z-index:12;top:16px;right:18px}
.account-fullscreen{height:100%;overflow:auto;padding:0 0 30px}
.chat-workspace{height:100%;display:flex;flex-direction:column;min-height:0}
.chat-workspace-header{flex:none;margin-bottom:16px}
.chat-new-button{margin-right:0}
.chat-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);border-top:1px solid var(--line)}
.chat-sidebar{min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}
.chat-sidebar-heading{height:53px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid var(--line)}
.chat-sidebar-heading strong{font:700 13px 'Manrope'}
.chat-sidebar-heading span{font-size:11px;color:var(--muted)}
.chat-list{overflow:auto;min-height:0}
.chat-list-item{width:100%;min-height:76px;display:flex;align-items:center;gap:11px;padding:12px 15px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer}
.chat-list-item:hover,.chat-list-item.active{background:var(--surface-raised)}
.chat-list-avatar,.chat-peer-avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--purple) 20%,var(--surface));color:var(--purple);font-weight:800}
.chat-list-copy{min-width:0;flex:1;display:grid;gap:5px}
.chat-list-copy strong,.chat-peer strong{font-size:12px}
.chat-list-copy span,.chat-peer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted)}
.chat-order-dot{color:var(--purple);font-size:20px;line-height:1}
.chat-sidebar-empty{padding:17px;color:var(--muted);font-size:11px;line-height:1.5}
.chat-thread{min-height:0;min-width:0;display:flex;flex-direction:column;padding:0 22px 12px}
.chat-thread-header{display:flex;align-items:center;gap:11px;min-height:68px;border-bottom:1px solid var(--line)}
.chat-peer{min-width:0;display:grid;gap:4px}
.chat-peer strong,.chat-peer span{display:block}
.chat-order-context{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 15px;padding:13px 0;border-bottom:1px solid var(--line)}
.chat-order-context>.workspace-eyebrow{grid-column:1/-1}
.chat-order-context>strong{align-self:center;font-size:12px;overflow-wrap:anywhere}
.chat-order-context>div{display:flex;align-items:center;gap:12px}
.chat-order-context>div>b{font:700 14px 'Manrope';white-space:nowrap}
.chat-direct-context{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}
.chat-direct-context span:first-child{font-weight:700}
.chat-direct-context span:last-child{color:var(--muted)}
.chat-messages{flex:1;height:auto;min-height:100px;margin:12px 0;border:0;border-radius:0;background:transparent;padding:8px 0}
.chat-composer{flex:none;grid-template-columns:minmax(0,1fr) 140px;margin:0;padding-top:12px;border-top:1px solid var(--line)}
.chat-composer textarea{min-height:48px;max-height:150px}
.chat-composer .primary-button{min-height:48px}
.chat-mobile-back{display:none;width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);cursor:pointer}
.chat-layout:has(.chat-placeholder){grid-template-columns:minmax(260px,330px) minmax(0,1fr)}
.chat-layout:has(.chat-placeholder) .chat-sidebar{border-right:1px solid var(--line)}
@media(max-width:900px){.purchase-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 18px}.purchase-total{grid-column:1}.purchase-actions{grid-column:2;grid-row:1/3;flex-direction:column;align-items:flex-end}.chat-layout,.chat-layout:has(.chat-placeholder){grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:640px){
  .topbar{height:auto;min-height:62px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:8px 16px 0}
  .topbar>.brand{grid-column:1;grid-row:1}
  .topbar>.main-nav{grid-column:1/-1;grid-row:2;display:flex;gap:20px;overflow:auto;align-items:center;height:35px;padding-bottom:6px;scrollbar-width:none}
  .topbar>.main-nav::-webkit-scrollbar{display:none}
  .topbar>.top-actions{grid-column:2;grid-row:1;margin:0;gap:7px}
  .main-nav .nav-link{flex:0 0 auto;font-size:12px}
  .main-nav .nav-link.active:after{bottom:-7px}
  .workspace-header{padding-right:42px;margin-bottom:16px}
  .workspace-header h2{font-size:23px}
  .workspace-subtitle{font-size:11px}
  .modal:has(.account-fullscreen),.modal:has(.chat-workspace){padding:20px 14px 16px}
  .account-fullscreen{padding-bottom:18px}
  .account-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .account-stats .stat-item{padding:11px}
  .account-stats .stat-item strong{font-size:15px}
  .purchase-row{grid-template-columns:minmax(0,1fr) auto;padding:15px 6px;gap:9px 12px}
  .purchase-main h4{font-size:12px}
  .purchase-main>span{font-size:10px}
  .purchase-total strong{font-size:15px}
  .purchase-actions{gap:7px}
  .purchase-actions .row-action{font-size:9px;padding:6px}
  .status-badge{font-size:9px;padding:4px 6px}
  .chat-workspace{padding-bottom:0}
  .chat-workspace-header{margin-bottom:12px}
  .chat-layout,.chat-layout:has(.chat-placeholder){display:block;position:relative;min-height:0;overflow:hidden}
  .chat-sidebar{height:100%;border-right:0}
  .chat-layout:has(.chat-thread) .chat-sidebar{display:none}
  .chat-thread{height:100%;padding:0 2px 8px}
  .chat-mobile-back{display:grid}
  .chat-messages{min-height:80px}
  .chat-composer{grid-template-columns:1fr}
  .chat-composer .primary-button{height:42px;min-height:42px}
  .chat-order-context{grid-template-columns:minmax(0,1fr);gap:7px}
  .chat-order-context>.workspace-eyebrow{grid-column:auto}
  .chat-order-context>div{justify-content:space-between}
  .chat-direct-context{flex-direction:column;gap:5px}
  .chat-placeholder{min-height:220px}
  .admin-fullscreen .admin-table-wrap{max-width:calc(100vw - 56px)}
  .admin-fullscreen .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.hosting-panel{display:grid;gap:16px;padding-bottom:22px}
.host-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.host-metric,.host-chart-panel{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:17px}
.host-metric-heading,.host-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.host-metric-heading strong{font:700 13px 'Manrope',sans-serif}
.host-metric-heading span{font-size:12px;font-weight:700;color:var(--purple)}
.host-meter{height:7px;overflow:hidden;margin:15px 0 12px;border-radius:5px;background:var(--surface-soft)}
.host-meter span{display:block;height:100%;border-radius:inherit;background:var(--purple);transition:width .25s ease}
.host-metric:nth-child(2) .host-meter span{background:var(--green)}
.host-metric:nth-child(3) .host-meter span{background:var(--coral)}
.host-metric-value{font:700 15px 'Manrope',sans-serif;overflow-wrap:anywhere}
.host-metric-detail,.host-chart-heading>div>span{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.host-chart-heading h3{margin:0;font:700 15px 'Manrope',sans-serif}
.host-range-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:7px;background:var(--bg)}
.host-range-tabs button{border:0;border-radius:5px;background:transparent;color:var(--muted);padding:7px 10px;font-size:11px;white-space:nowrap;cursor:pointer}
.host-range-tabs button.active{background:var(--surface-raised);color:var(--text);font-weight:700}
.host-chart-wrap{width:100%;margin-top:12px;overflow:hidden}
.host-chart{display:block;width:100%;height:300px;overflow:visible}
.host-chart-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 5}
.host-chart-axis{fill:var(--muted);font:11px 'DM Sans',Arial,sans-serif}
.host-chart-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.host-chart-point{stroke:var(--surface);stroke-width:2;vector-effect:non-scaling-stroke}
.host-chart-legend{display:flex;justify-content:center;gap:22px;color:var(--muted);font-size:11px}
.host-chart-legend span{display:flex;align-items:center;gap:7px}
.host-chart-legend i{width:9px;height:9px;border-radius:50%}
.host-meta{display:flex;flex-wrap:wrap;gap:10px 24px;padding:14px 2px 0;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.host-meta strong{color:var(--text);font-weight:600}
.host-state{padding:26px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);font-size:13px}
.host-state.error{color:var(--coral)}
@media(max-width:760px){.host-metrics{grid-template-columns:1fr}.host-chart-heading{align-items:flex-start;flex-direction:column}.host-range-tabs{width:100%;justify-content:space-between}.host-range-tabs button{flex:1;padding-inline:5px}.host-chart{height:230px}.host-meta{flex-direction:column;gap:7px}}

.admin-image-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);align-items:end;gap:14px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.admin-image-controls{display:grid;gap:9px}
.admin-image-controls input[type=file]{height:auto;min-height:40px;padding:8px}
.image-hint{font-size:10px;color:var(--muted)}
.image-clear{justify-self:start}
.admin-image-preview{aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border:1px dashed var(--line);border-radius:6px;background:var(--bg);color:var(--muted);font-size:11px}
.admin-image-preview img{width:100%;height:100%;object-fit:cover}
.support-delete-button{flex:none}
@media(max-width:640px){.admin-image-field{grid-template-columns:minmax(0,1fr);gap:10px}.admin-image-preview{aspect-ratio:2.3}.support-delete-button{margin-top:1px}}
.chat-message-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.product-visual{isolation:isolate;background:var(--bg)}
.product-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0}
.product-visual:after{z-index:1;pointer-events:none}
.product-visual-item{height:auto;aspect-ratio:1}
.product-visual-item .product-image{object-fit:contain;padding:12px;background:var(--bg)}
.product-game-tag,.favorite-button{z-index:2}
.message-delete-button{flex:none;padding:1px 2px;border:0;background:transparent;color:#d45c62;font:inherit;cursor:pointer;text-decoration:underline}
.subcategory-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 5px;padding-bottom:2px}
.subcategory-tab{white-space:nowrap;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:10px;color:var(--muted);cursor:pointer}
.subcategory-tab:hover,.subcategory-tab.active{border-color:var(--purple);color:var(--text)}
.subcategory-tab.active{background:color-mix(in srgb,var(--purple) 18%,var(--surface));font-weight:700}
.product-subcategory-label{display:inline-block;max-width:100%;margin:-4px 0 7px;padding:3px 6px;border-radius:4px;background:color-mix(in srgb,var(--purple) 14%,var(--surface));color:var(--purple);font-size:9px;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:640px){.subcategory-tabs{width:calc(100vw - 32px);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.subcategory-tabs::-webkit-scrollbar{display:none}}
