.sidebar { overflow-y: auto; }
.economy-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.economy-header .page-title { margin-bottom: 12px; }
.economy-muted { color: var(--text-muted); line-height: 1.7; }
.economy-link { display: inline-block; color: #a5b4fc; margin-top: 12px; text-decoration: none; }
.economy-balance { padding: 18px 24px; border: 1px solid rgba(16,185,129,.3); background: rgba(16,185,129,.07); border-radius: 18px; }
.economy-balance strong { display: block; font-size: 2rem; color: #6ee7b7; }
.economy-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.economy-tabs a { color: #c7d2fe; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; }
.economy-tabs a.active { background: var(--accent); color: white; }
.shop-heading { margin: 40px 0 20px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.shop-card { display: flex; flex-direction: column; gap: 18px; border-top: 3px solid var(--product-color); }
.shop-card h3 { font-size: 1.25rem; }
.shop-icon { display: inline-flex; padding: 14px; border: 1px solid var(--border); border-radius: 14px; width: fit-content; color: var(--product-color); }
.shop-card form { margin-top: auto; display: grid; gap: 12px; }
.shop-card label, .economy-form label { display: grid; gap: 8px; font-size: .85rem; color: #cbd5e1; }
.shop-card select, .economy-form select { color-scheme: dark; }
.shop-card .btn { justify-content: center; }
.shop-card .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.economy-section { margin: 32px 0; }
.economy-section h2 { margin-bottom: 20px; font-size: 1.3rem; }
.economy-table-wrap { overflow-x: auto; }
.economy-table { min-width: 660px; text-align: left; font-size: .9rem; }
.economy-table th, .economy-table td { padding: 14px; vertical-align: top; }
.economy-table th { color: var(--text-muted); font-size: .8rem; }
.economy-table td p { margin-top: 6px; }
.economy-table .input-field { padding: 10px; min-width: 100px; }
.economy-positive { color: #6ee7b7; }
.economy-negative { color: #fda4af; }
.order-status { padding: 6px 10px; display: inline-block; border-radius: 10px; font-size: .8rem; white-space: nowrap; }
.order-status.pending { color: #fcd34d; background: rgba(245,158,11,.12); }
.order-status.fulfilled { color: #6ee7b7; background: rgba(16,185,129,.12); }
.order-status.cancelled { color: #fda4af; background: rgba(239,68,68,.12); }
.economy-form { display: grid; gap: 10px; min-width: 220px; }
.economy-form .btn { padding: 10px 14px; justify-content: center; }
.economy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.economy-danger { color: #fda4af; background: rgba(239,68,68,.12); }
.economy-empty { padding: 24px 0; color: var(--text-muted); }
.store-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 38px; border: 1px solid var(--border); border-radius: 28px; background: radial-gradient(ellipse at top right, rgba(99,102,241,.22), transparent 65%), #0e1020; }
.store-eyebrow { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .16em; color: #a5b4fc; margin-bottom: 16px; }
.store-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 16px; }
.store-hero p { color: #a4a8ba; line-height: 1.6; }
.store-rewards { display: flex; gap: 12px; margin-top: 22px; }
.store-rewards span { padding: 8px 12px; font-size: .8rem; color: #a4a8ba; background: rgba(255,255,255,.04); border-radius: 8px; }
.store-rewards b { color: #c7d2fe; margin-left: 8px; }
.store-wallet { display: flex; gap: 16px; align-items: flex-start; min-width: 225px; padding: 24px; background: rgba(6,7,13,.6); border: 1px solid rgba(129,140,248,.25); border-radius: 20px; text-decoration: none; color: #a4a8ba; font-size: .8rem; }
.store-wallet > svg { color: #a5b4fc; width: 22px; }
.store-wallet strong { display: block; font-size: 2.8rem; color: white; margin: 8px 0; letter-spacing: -.05em; white-space: nowrap; }
.store-wallet small { font-size: 1.6rem; color: #818cf8; }
.store-wallet span > span { color: #a5b4fc; font-size: .7rem; }
.store-toolbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin: 32px 0 24px; }
.store-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: #0c0e19; }
.store-tabs button { padding: 12px 18px; border: 0; border-radius: 10px; color: #a4a8ba; background: transparent; cursor: pointer; font-weight: 700; }
.store-tabs button.active { color: white; background: #292c4e; }
.store-tabs button span { margin-left: 8px; font-size: .7rem; color: #a5b4fc; }
.store-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; color: #6d728b; }
.store-search svg { width: 18px; height: 18px; }
.store-search input { color: white; border: 0; outline: 0; background: transparent; width: 180px; }
.store-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; color: #777e98; font-size: .7rem; }
.store-section-heading h2 { color: #cbd5e1; font-size: .9rem; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.store-product { min-width: 0; gap: 0; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--product-color) 9%, transparent), transparent 60%), #10121e; transition: border-color .2s, transform .2s; }
.store-product[hidden], .store-section[hidden] { display: none; }
.store-product:hover { border-color: color-mix(in srgb, var(--product-color) 45%, transparent); transform: translateY(-3px); }
.store-product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.store-product-top > span { font-size: .65rem; text-transform: uppercase; color: #8c91a7; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.store-product .shop-icon { background: color-mix(in srgb, var(--product-color) 12%, transparent); border: 0; }
.store-product h3 { font-size: 1.35rem; line-height: 1.35; color: var(--product-color); margin-bottom: 10px; }
.store-product > p { font-size: .8rem; color: #989eb4; line-height: 1.8; margin-bottom: 24px; }
.store-product form { gap: 0; }
.store-options { border: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.store-options legend { font-size: .7rem; color: #8c91a7; margin-bottom: 10px; }
.store-options label { cursor: pointer; position: relative; display: block; min-width: 0; }
.store-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.store-options label > span { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 12px 3px; border: 1px solid #292d41; border-radius: 10px; }
.store-options b { font-size: .66rem; font-weight: 600; color: #9da3ba; }
.store-options small { font-size: .72rem; color: #cbd5e1; white-space: nowrap; }
.store-options input:checked + span { border-color: var(--product-color); background: color-mix(in srgb, var(--product-color) 9%, transparent); }
.store-options input:checked + span b { color: white; }
.store-options input:focus-visible + span { outline: 2px solid white; outline-offset: 3px; }
.store-options-cases { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.store-options-cases b { font-size: .6rem; }
.store-options-cases small { font-size: .63rem; }
.store-price-row { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 18px; }
.store-price { font-size: 2rem; letter-spacing: -.04em; }
.store-selected-label { font-size: .7rem; color: #8c91a7; }
.store-product .store-buy, .store-checkout .store-buy { display: flex; justify-content: space-between; width: 100%; padding: 14px 18px; border-radius: 10px; border: 1px solid #5559bd; color: white; font-size: .85rem; background: #5558d8; box-shadow: none; }
.store-product .store-buy:disabled { background: #25283b; border-color: #34384c; color: #838ba7; opacity: 1; }
.store-product .shop-shortage { min-height: 16px; margin-top: 10px; color: #b5a0a8; font-size: .68rem; }
.store-footer { display: flex; align-items: center; gap: 14px; padding: 24px 0; color: #858ca5; font-size: .75rem; line-height: 1.8; }
.store-footer svg { flex-shrink: 0; color: #818cf8; }
.store-checkout { position: fixed; inset: 0; margin: auto; width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; border: 1px solid #343955; border-radius: 24px; color: white; background: #111421; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.store-checkout::backdrop { background: rgba(3,4,10,.8); backdrop-filter: blur(6px); }
.store-checkout h2 { margin-bottom: 8px; padding-right: 20px; }
.store-close { position: absolute; right: 16px; top: 12px; padding: 4px 10px; font-size: 1.5rem; background: transparent; color: #a5acc3; border: 0; cursor: pointer; }
.store-checkout-row { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; font-size: .85rem; color: #969eb9; }
.store-checkout-row strong { color: white; }
.store-checkout label { display: grid; gap: 10px; font-size: .8rem; color: #a5acc3; }
.store-checkout #checkout-total { font-size: 1.5rem; }
.store-checkout #checkout-remaining { font-size: .75rem; margin-bottom: 20px; }
.store-checkout-note { text-align: center; font-size: .65rem; line-height: 1.8; color: #858da6; margin-top: 14px; }
@media (max-width: 600px) {
    .economy-header .page-title { font-size: 1.8rem; }
    .shop-card { padding: 22px; }
    .store-hero { padding: 20px; flex-direction: column; align-items: stretch; gap: 20px; }
    .store-hero h1 { font-size: 1.8rem; }
    .store-hero p { font-size: .85rem; }
    .store-wallet { min-width: 0; padding: 16px; gap: 12px; }
    .store-wallet strong { font-size: 2rem; }
    .store-wallet small { font-size: 1.1rem; }
    .store-search { width: 100%; }
    .store-search input { width: 100%; }
    .store-tabs button { padding: 12px; }
}
@media (max-width: 1024px) {
    .sidebar .user-profile > div { justify-content: center; }
    .sidebar .user-profile > div > div:last-child { display: none; }
    .sidebar .user-profile > div > div:first-child { flex-shrink: 0; }
}
