/* =====================================================================
   InSell — стили главной страницы (яркая неоновая тема)
   ===================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* фон и панели — чуть светлее и «синее», чтобы неон лучше читался */
    --bg: #04071A;
    --surface: #0A1134;
    --surface-2: #0F1A48;
    --surface-3: #16245F;
    --line: rgba(96, 150, 255, .18);
    --line-strong: rgba(96, 170, 255, .45);

    /* основные неоновые цвета */
    --blue: #2F7BFF;
    --blue-hover: #4D91FF;
    --blue-light: #5FB0FF;
    --cyan: #22D3FF;
    --violet: #9B6BFF;
    --pink: #FF4FD8;
    --glow: rgba(47, 123, 255, .6);
    --glow-cyan: rgba(34, 211, 255, .45);

    /* градиенты, которые используются в кнопках, ценах и заголовке */
    --grad-btn: linear-gradient(135deg, #2F7BFF 0%, #22D3FF 100%);
    --grad-title: linear-gradient(90deg, #22D3FF 0%, #5F8BFF 45%, #B26BFF 75%, #FF4FD8 100%);

    --text: #F2F5FF;
    --muted: #A3B3DE;
    --dim: #7282B3;
    --red: #FF4D6A;
    --gold: #FFC94B;

    --radius: 14px;
    --radius-lg: 18px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    background:
        radial-gradient(1000px 500px at 80% -200px, rgba(31, 107, 255, .14), transparent 70%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Общая «панель» ---------- */

.panel {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 14px;
}

.panel__title svg {
    color: var(--blue-light);
}

.panel__link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-light);
}

.panel__link:hover {
    color: var(--text);
}

/* ---------- Логотип ---------- */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -.02em;
    flex-shrink: 0;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2F7BFF, #1749E0);
    box-shadow: 0 0 18px var(--glow);
    font-size: 21px;
}

.logo--sm {
    font-size: 21px;
}

.logo--sm .logo__mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 8px;
}

/* ---------- Шапка ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(6, 10, 28, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav {
    display: flex;
    gap: 4px;
    margin-left: 32px;
}

.nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 68px;
    padding: 0 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s;
}

.nav__link:hover {
    color: var(--text);
}

.nav__link.is-active {
    color: var(--blue-light);
}

.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    height: 3px;
    border-radius: 3px;
    background: var(--blue);
    box-shadow: 0 0 12px var(--glow);
}

.nav__count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.icon-btn {
    position: relative;
    margin-left: auto;   /* прижимает колокольчик и профиль к правому краю */
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--muted);
    transition: color .2s, background .2s;
}

.icon-btn:hover {
    color: var(--text);
    background: var(--surface-2);
}

.icon-btn__badge {
    position: absolute;
    top: 4px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 2px var(--bg);
}

.user {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 4px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(11, 18, 48, .7);
    transition: border-color .2s;
}

.user:hover {
    border-color: var(--blue);
}

.user__ava {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2F7BFF, #1749E0);
}

.user__ava svg {
    width: 17px;
    height: 17px;
}

.user__balance {
    font-weight: 700;
    font-size: 14px;
}

.user__chev {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

/* ---------- Hero ---------- */

.main {
    flex: 1;
    padding-top: 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr) 150px;
    gap: 28px;
    align-items: center;
    padding: 32px 36px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(520px 260px at 100% 50%, rgba(31, 107, 255, .35), transparent 70%),
        radial-gradient(300px 200px at 92% 100%, rgba(139, 92, 246, .35), transparent 70%),
        linear-gradient(120deg, #0A1236 0%, #0B1640 60%, #0E1E5A 100%);
    margin-bottom: 20px;
}

.hero__text,
.hero__side {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.hero__title span {
    display: block;
    background: linear-gradient(90deg, #3D8BFF 0%, #6F7BFF 55%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.hero__search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 6px 0 16px;
    border-radius: 999px;
    background: #EAF0FF;
    color: #4A5A85;
    box-shadow: 0 0 0 4px rgba(31, 107, 255, .18), 0 10px 30px rgba(0, 0, 0, .35);
}

.hero__search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    color: #0B1230;
    font-size: 15px;
}

.hero__search input::placeholder {
    color: #6A78A0;
}

.hero__search-btn {
    width: 52px;
    height: 40px;
    border: none;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    transition: background .2s, box-shadow .2s;
}

.hero__search-btn:hover {
    background: var(--blue-hover);
    box-shadow: 0 0 16px var(--glow);
}

.features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(31, 107, 255, .16);
    border: 1px solid var(--line-strong);
    color: var(--blue-light);
    flex-shrink: 0;
}

.feature__icon svg {
    width: 18px;
    height: 18px;
}

.feature b {
    display: block;
    font-size: 12.5px;
    white-space: nowrap;
    font-weight: 700;
}

.feature small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--muted);
}

/* декоративная часть справа */
.hero__art {
    position: relative;
    align-self: stretch;
    margin: -32px -36px -32px 0;
}

.hero__beam {
    position: absolute;
    border-radius: 22px;
    transform: skewX(-24deg);
}

.hero__beam--1 {
    top: -20px;
    bottom: -20px;
    left: 30px;
    width: 70px;
    background: linear-gradient(180deg, rgba(76, 155, 255, .55), rgba(31, 107, 255, .05));
    box-shadow: 0 0 40px rgba(31, 107, 255, .4);
}

.hero__beam--2 {
    top: -20px;
    bottom: -20px;
    left: 125px;
    width: 34px;
    background: linear-gradient(180deg, rgba(139, 92, 246, .7), rgba(139, 92, 246, .05));
}

.hero__beam--3 {
    top: 40%;
    bottom: -20px;
    left: 180px;
    width: 90px;
    background: linear-gradient(180deg, rgba(31, 107, 255, .35), transparent);
}

.hero__pad {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 120px;
    height: 80px;
    transform: translateY(-50%) rotate(-12deg);
    color: #9CC4FF;
    stroke-width: 2.4;
    filter: drop-shadow(0 0 10px rgba(76, 155, 255, .9));
}

/* ---------- Раскладка 3 колонки ---------- */

.layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 250px;
    gap: 20px;
    align-items: start;
    scroll-margin-top: 88px;
}

.layout > * {
    min-width: 0;
}

/* ---------- Категории ---------- */

.sidebar {
    position: sticky;
    top: 88px;
}

.cats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cats__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    color: #C9D3F2;
    transition: background .2s, color .2s, border-color .2s;
}

.cats__link svg {
    color: var(--blue-light);
}

.cats__link:hover {
    background: var(--surface-3);
}

.cats__link.is-active {
    background: linear-gradient(90deg, rgba(31, 107, 255, .45), rgba(31, 107, 255, .18));
    border-color: rgba(76, 155, 255, .5);
    color: #fff;
    box-shadow: 0 0 18px rgba(31, 107, 255, .25);
}

.cats__link.is-active svg {
    color: #fff;
}

.cats__count {
    margin-left: auto;
    font-size: 12px;
    color: var(--dim);
}

.cats__link.is-active .cats__count {
    color: #CFE0FF;
}

.bonus {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(31, 107, 255, .35), rgba(139, 92, 246, .22));
    border: 1px solid var(--line-strong);
    transition: border-color .2s;
}

.bonus:hover {
    border-color: var(--blue-light);
}

.bonus__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(6, 10, 28, .35);
    color: #CFE0FF;
    flex-shrink: 0;
}

.bonus__text b {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.bonus__text small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: #C3CCEB;
}

.bonus__arrow {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    flex-shrink: 0;
}

.bonus__arrow svg {
    width: 16px;
    height: 16px;
}

/* ---------- Вкладки сортировки ---------- */

.tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs__btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 14px;
    border: none;
    background: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: color .2s;
}

.tabs__btn svg {
    width: 17px;
    height: 17px;
    color: #FF8A3D;
}

.tabs__btn:hover {
    color: var(--text);
}

.tabs__btn.is-active {
    color: var(--blue-light);
}

.tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--blue);
    box-shadow: 0 0 12px var(--glow);
}

.tabs__count {
    margin-left: auto;
    padding-left: 12px;
    font-size: 12px;
    color: var(--dim);
    white-space: nowrap;
}

/* ---------- Карточки ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 14px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 6px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    transition: transform .2s, border-color .2s, box-shadow .2s;
    animation: card-in .3s ease both;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(76, 155, 255, .55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 22px rgba(31, 107, 255, .2);
}

.card__cover {
    position: relative;
    aspect-ratio: 16 / 7;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* заглушка, если картинки нет */
.card__cover-title {
    position: relative;
    padding: 0 12px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.card__fav {
    position: absolute;
    z-index: 1;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(6, 10, 28, .6);
    backdrop-filter: blur(4px);
    color: #fff;
    transition: color .2s, transform .2s;
}

.card__fav:hover {
    transform: scale(1.1);
}

.card__fav svg {
    width: 15px;
    height: 15px;
}

.card__fav[aria-pressed="true"] {
    color: var(--red);
}

.card__fav[aria-pressed="true"] svg {
    fill: currentColor;
}

.card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 8px 6px;
}

.card__tag {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(31, 107, 255, .18);
    border: 1px solid rgba(76, 155, 255, .35);
    color: #9CC4FF;
    font-size: 11px;
    font-weight: 700;
}

.card__title {
    margin-top: 7px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.card__attrs {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--muted);
}

.card__seller {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--dim);
}

.card__rating {
    color: var(--gold);
    font-weight: 700;
}

.card__bottom {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-light);
    white-space: nowrap;
}

.card__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    flex: 0 1 112px;
    border: none;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s, box-shadow .2s;
}

.card__buy svg {
    width: 17px;
    height: 17px;
}

.card__buy:hover {
    background: var(--blue-hover);
    box-shadow: 0 0 18px var(--glow);
}

.card__buy.is-added {
    background: #17A86B;
}

/* пусто / показать ещё */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 48px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--muted);
}

.empty b {
    color: var(--text);
    font-size: 16px;
}

.btn-ghost,
.more {
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-weight: 700;
    font-size: 14px;
    transition: border-color .2s, background .2s;
}

.btn-ghost {
    margin-top: 10px;
}

.btn-ghost:hover,
.more:hover {
    border-color: var(--blue);
    background: var(--surface-2);
}

.more {
    display: block;
    width: 100%;
    margin-top: 14px;
}

/* ---------- Правая колонка ---------- */

.aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(6, 10, 28, .35);
    border: 1px solid var(--line);
}

.step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(31, 107, 255, .2);
    border: 1px solid rgba(76, 155, 255, .5);
    color: var(--blue-light);
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(31, 107, 255, .25);
}

.step b {
    display: block;
    font-size: 13.5px;
}

.step small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}

.sellers {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seller {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller__ava {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 14px;
}

.seller__name {
    font-weight: 700;
    font-size: 14px;
}

.seller__meta {
    display: block;
    font-size: 12px;
    color: var(--dim);
}

.seller__rating {
    margin-left: auto;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
}

/* ---------- Футер (компактный) ---------- */

.footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(11, 18, 48, .55);
}

.footer__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer__brand p {
    font-size: 12.5px;
    color: var(--dim);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    flex: 1;
}

.footer__links a {
    font-size: 13.5px;
    color: var(--muted);
    transition: color .2s;
}

.footer__links a:hover {
    color: var(--text);
}

.footer__social {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(31, 107, 255, .16);
    border: 1px solid var(--line-strong);
    color: #CFE0FF;
    font-weight: 800;
    font-size: 12px;
    transition: background .2s, box-shadow .2s;
}

.social:hover {
    background: var(--blue);
    box-shadow: 0 0 14px var(--glow);
}

.social svg {
    width: 18px;
    height: 18px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1240px) {
    .layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .aside {
        grid-column: 1 / -1;
        position: static;
        flex-direction: row;
    }

    .aside > .panel {
        flex: 1;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }

    .hero__art {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 260px;
        margin: 0;
        opacity: .5;
    }

    .hero__pad {
        display: none;
    }

    .feature small {
        display: none;
    }

    .feature b {
        white-space: normal;
    }
}

@media (max-width: 1100px) {
    .nav {
        margin-left: 12px;
    }

    .nav__link {
        padding: 0 10px;
    }

    .nav__link.is-active::after {
        left: 10px;
        right: 10px;
    }

}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 28px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        padding: 10px;
    }

    .sidebar .panel__title,
    .cats__count {
        display: none;
    }

    .cats {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        scrollbar-width: none;
    }

    .cats::-webkit-scrollbar {
        display: none;
    }

    .cats__link {
        white-space: nowrap;
        border-color: var(--line);
    }

    .bonus {
        display: none;
    }

    .footer__inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .footer__brand {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 760px) {
    /* меню переезжает во второй ряд и прокручивается пальцем */
    .header__inner {
        height: auto;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 6px;
    }

    .nav {
        order: 3;
        flex: 0 0 100%;
        margin: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav__link {
        flex: none;
    }

    .aside {
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature small {
        display: inline;
        margin: 0 0 0 6px;
    }

    .feature b {
        display: inline;
    }

    .feature__icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .header__inner {
        min-height: 56px;
        gap: 8px;
    }

    .logo {
        font-size: 22px;
    }

    .logo__mark {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .main {
        padding-top: 16px;
    }

    .hero {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__search {
        height: 48px;
    }

    .hero__search-btn {
        width: 44px;
        height: 36px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card__cover {
        aspect-ratio: 16 / 5.5;
    }

    .tabs__count {
        display: none;
    }
}

/* ---------- Уведомление ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 50;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--surface-3);
    border: 1px solid var(--line-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.toast.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* =====================================================================
   ЯРКИЕ НЕОНОВЫЕ АКЦЕНТЫ
   Здесь только цвета, свечение и анимации — размеры и раскладку
   этот блок не трогает. Он стоит в конце файла, поэтому переопределяет
   цвета из блоков выше (в CSS при равной силе селектора побеждает тот,
   что написан позже).
   ===================================================================== */

/* цветные «пятна» света на фоне страницы */
body {
    background:
        radial-gradient(700px 420px at 85% 0%, rgba(47, 123, 255, .18), transparent 70%),
        radial-gradient(600px 400px at 0% 35%, rgba(155, 107, 255, .12), transparent 70%),
        radial-gradient(600px 400px at 100% 75%, rgba(34, 211, 255, .08), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}

/* логотип и кнопки — градиент синий → бирюзовый */
.logo__mark,
.user__ava,
.hero__search-btn,
.card__buy,
.bonus__arrow {
    background: var(--grad-btn);
}

.logo__mark {
    box-shadow: 0 0 22px var(--glow), 0 0 40px var(--glow-cyan);
}

.card__buy,
.hero__search-btn {
    box-shadow: 0 4px 16px rgba(47, 123, 255, .45);
}

.card__buy:hover,
.hero__search-btn:hover {
    background: var(--grad-btn);
    filter: brightness(1.15);
    box-shadow: 0 0 22px var(--glow-cyan), 0 0 8px var(--glow);
}

/* активные пункты меню и вкладок светятся бирюзовым */
.nav__link.is-active,
.tabs__btn.is-active {
    color: var(--cyan);
    text-shadow: 0 0 12px var(--glow-cyan);
}

.nav__link.is-active::after,
.tabs__btn.is-active::after {
    background: var(--grad-btn);
    box-shadow: 0 0 14px var(--glow-cyan);
}

/* ---------- Баннер ---------- */

.hero {
    border: 1px solid transparent;
    background:
        radial-gradient(520px 260px at 100% 50%, rgba(47, 123, 255, .42), transparent 70%),
        radial-gradient(320px 220px at 90% 100%, rgba(255, 79, 216, .26), transparent 70%),
        radial-gradient(360px 240px at 0% 0%, rgba(34, 211, 255, .12), transparent 70%),
        linear-gradient(120deg, #08113A 0%, #0A1648 60%, #0F1E62 100%) padding-box,
        /* второй слой даёт градиентную рамку */
        linear-gradient(120deg, rgba(34, 211, 255, .7), rgba(155, 107, 255, .5), rgba(255, 79, 216, .7)) border-box;
    box-shadow: 0 0 34px rgba(47, 123, 255, .18);
}

.hero__title span {
    background: var(--grad-title);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: title-shine 6s linear infinite;
}

/* переливание градиента в заголовке */
@keyframes title-shine {
    to { background-position: 200% center; }
}

.hero__search {
    box-shadow: 0 0 0 4px rgba(34, 211, 255, .25), 0 0 30px rgba(47, 123, 255, .45);
}

.feature__icon {
    background: rgba(34, 211, 255, .14);
    border-color: rgba(34, 211, 255, .5);
    color: var(--cyan);
    box-shadow: 0 0 14px var(--glow-cyan);
}

.hero__beam--1 {
    background: linear-gradient(180deg, rgba(34, 211, 255, .7), rgba(47, 123, 255, .05));
    box-shadow: 0 0 50px rgba(34, 211, 255, .5);
}

.hero__beam--2 {
    background: linear-gradient(180deg, rgba(255, 79, 216, .8), rgba(155, 107, 255, .05));
    box-shadow: 0 0 30px rgba(255, 79, 216, .4);
}

.hero__pad {
    color: #A8E8FF;
    filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 18px rgba(47, 123, 255, .9));
    animation: pad-float 4s ease-in-out infinite;
}

/* джойстик плавно «парит» */
@keyframes pad-float {
    50% { transform: translateY(calc(-50% - 8px)) rotate(-8deg); }
}

/* ---------- Категории: у каждой свой цвет иконки ---------- */

.cats li:nth-child(1) .cats__link { --cat: #5FB0FF; }
.cats li:nth-child(2) .cats__link { --cat: #22D3FF; }
.cats li:nth-child(3) .cats__link { --cat: #FF6B9A; }
.cats li:nth-child(4) .cats__link { --cat: #FFC94B; }
.cats li:nth-child(5) .cats__link { --cat: #B26BFF; }
.cats li:nth-child(6) .cats__link { --cat: #3DE8A0; }
.cats li:nth-child(7) .cats__link { --cat: #A3B3DE; }

.cats__link svg {
    color: var(--cat);
    filter: drop-shadow(0 0 6px var(--cat));
}

.cats__link.is-active {
    background: linear-gradient(90deg, rgba(47, 123, 255, .6), rgba(34, 211, 255, .2));
    border-color: rgba(34, 211, 255, .6);
    box-shadow: 0 0 22px rgba(47, 123, 255, .4), inset 0 0 12px rgba(34, 211, 255, .15);
}

.bonus {
    background: linear-gradient(135deg, rgba(47, 123, 255, .55), rgba(155, 107, 255, .45) 60%, rgba(255, 79, 216, .35));
    border-color: rgba(255, 79, 216, .45);
    box-shadow: 0 0 24px rgba(155, 107, 255, .3);
}

/* ---------- Карточки ---------- */

.card {
    background: linear-gradient(180deg, #111D4E, var(--surface));
}

.card:hover {
    border-color: rgba(34, 211, 255, .7);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 26px rgba(34, 211, 255, .3);
}

/* обложка ярче и с бликом сверху */
.card__cover {
    filter: saturate(1.25) brightness(1.08);
}

.card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 45%);
    pointer-events: none;
}

/* цена — светящийся градиентный текст */
.card__price {
    background: var(--grad-btn);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(34, 211, 255, .35));
}

/* метки категорий разными цветами (класс добавляет script.js) */
.card__tag--accounts { color: #8FE7FF; background: rgba(34, 211, 255, .16); border-color: rgba(34, 211, 255, .5); }
.card__tag--items    { color: #FFA3C2; background: rgba(255, 107, 154, .16); border-color: rgba(255, 107, 154, .5); }
.card__tag--currency { color: #FFDA85; background: rgba(255, 201, 75, .14); border-color: rgba(255, 201, 75, .5); }
.card__tag--boost    { color: #D2B0FF; background: rgba(178, 107, 255, .18); border-color: rgba(178, 107, 255, .55); }
.card__tag--gifts    { color: #8DF5C6; background: rgba(61, 232, 160, .14); border-color: rgba(61, 232, 160, .5); }
.card__tag--other    { color: #C9D3F2; }

/* ---------- Правая колонка ---------- */

.step__num {
    background: var(--grad-btn);
    border: none;
    color: #fff;
    box-shadow: 0 0 16px var(--glow-cyan);
}

.panel__link {
    color: var(--cyan);
}

.icon-btn__badge {
    box-shadow: 0 0 0 2px var(--bg), 0 0 12px rgba(255, 77, 106, .8);
}

.social:hover {
    background: var(--grad-btn);
    box-shadow: 0 0 16px var(--glow-cyan);
}

/* у тех, кто отключил анимации в системе, — без движения */
@media (prefers-reduced-motion: reduce) {
    .hero__title span,
    .hero__pad {
        animation: none;
    }
}

/* =====================================================================
   ДЕКОР ФОНА: мерцающие звёзды
   Псевдоэлемент у body, закреплённый на весь экран (position: fixed).
   z-index: -1 кладёт их под весь контент, pointer-events: none —
   чтобы они не мешали кликам.
   ===================================================================== */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* звёзды: несколько слоёв точек с разным шагом, чтобы не было видно повтора */
body::after {
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .9), transparent 70%),
        radial-gradient(1.5px 1.5px at 70% 15%, rgba(140, 220, 255, .95), transparent 70%),
        radial-gradient(2.5px 2.5px at 45% 80%, rgba(200, 170, 255, .85), transparent 70%),
        radial-gradient(1.5px 1.5px at 85% 60%, rgba(255, 255, 255, .8), transparent 70%),
        radial-gradient(2px 2px at 10% 75%, rgba(140, 220, 255, .8), transparent 70%),
        radial-gradient(1.5px 1.5px at 60% 45%, rgba(255, 170, 230, .8), transparent 70%);
    background-size: 380px 380px, 290px 290px, 470px 470px, 330px 330px, 520px 520px, 610px 610px;
    animation: stars-twinkle 4s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
    from { opacity: .4; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}

/* =====================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ: Продажа, Заказы, Избранное, Поддержка, FAQ,
   Уведомления, Профиль
   ===================================================================== */

.toast a { color: var(--cyan); margin-left: 8px; text-decoration: underline; }
.icon-btn.is-active { color: var(--text); background: var(--surface-2); }
.user.is-active { border-color: var(--blue); }

.page { padding-bottom: 40px; }
.page--narrow { max-width: 860px; }
.page__head { margin-bottom: 20px; }
.page__title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.page__sub { margin-top: 6px; color: var(--muted); }
.link { color: var(--cyan); font-weight: 700; }
.link:hover { text-decoration: underline; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; padding: 0 20px; border: 0; border-radius: 10px;
    background: var(--grad-btn); color: #04122e; font-weight: 800; font-size: 14px;
    cursor: pointer; transition: filter .2s, transform .1s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--blue); filter: none; }
.btn--danger { background: rgba(255, 77, 106, .12); color: var(--red); border: 1px solid rgba(255, 77, 106, .45); }
.btn--danger:hover { background: rgba(255, 77, 106, .22); filter: none; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* формы */
.form, .stack { display: flex; flex-direction: column; gap: 14px; }
.stack--tight { gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select, .field textarea, .review-text {
    width: 100%; padding: 11px 13px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
    font: inherit; font-weight: 500; font-size: 14px; outline: none;
}
.field textarea, .review-text { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .review-text:focus {
    border-color: var(--cyan); box-shadow: 0 0 0 3px var(--glow-cyan);
}
.form__error { color: var(--red); font-size: 13px; font-weight: 600; min-height: 0; }
.form__error:empty { display: none; }
.form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.form--inline .field { flex: 1 1 160px; }

/* раскладка */
.split { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.split--wide { grid-template-columns: 1fr 1fr; }
.panel + .panel { margin-top: 0; }

/* статистика */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat {
    padding: 16px 18px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px;
}
.stat b { font-size: 24px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13px; }

/* строки списков */
.rows { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.row {
    display: flex; gap: 14px; align-items: center; padding: 12px;
    border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.row__cover, .order__cover {
    flex: none; width: 52px; height: 52px; border-radius: 12px;
    display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff;
    overflow: hidden; text-align: center; letter-spacing: -.01em;
}
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 700; overflow-wrap: anywhere; }
.row__meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.row__side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.row__price { font-weight: 800; color: var(--cyan); white-space: nowrap; }
.row__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* бейджи статусов */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; background: rgba(163, 179, 222, .15); color: var(--muted);
}
.badge--paid { background: rgba(255, 201, 75, .15); color: var(--gold); }
.badge--delivered, .badge--answered { background: rgba(34, 211, 255, .15); color: var(--cyan); }
.badge--completed, .badge--active { background: rgba(60, 220, 140, .15); color: #3CDC8C; }
.badge--disputed { background: rgba(255, 77, 106, .15); color: var(--red); }
.badge--open { background: rgba(255, 201, 75, .15); color: var(--gold); }
.badge--refunded, .badge--paused, .badge--sold_out { background: rgba(163, 179, 222, .15); color: var(--muted); }

/* заказы */
.order {
    display: flex; gap: 16px; padding: 16px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
}
.order + .order { margin-top: 12px; }
.order__cover { width: 60px; height: 60px; }
.order__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.order__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.order__title { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.order__meta { color: var(--muted); font-size: 12.5px; }
.order__price { font-weight: 800; font-size: 18px; color: var(--cyan); }
.secret {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
    border-radius: 10px; background: var(--bg); border: 1px dashed var(--line-strong);
}
.secret span { color: var(--muted); font-size: 12px; font-weight: 700; }
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; color: var(--text); }
.review-form { display: flex; flex-direction: column; gap: 8px; }
.review-view p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.stars { display: flex; gap: 2px; }
.star { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--surface-3); cursor: pointer; transition: color .15s, transform .1s; }
.star:hover { transform: scale(1.15); }
.star.is-on { color: var(--gold); }
.stars-static { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-row > div { display: flex; gap: 8px; flex-wrap: wrap; }
.page .tabs { margin-bottom: 16px; flex-wrap: wrap; }

/* FAQ */
.faq-search { margin-bottom: 20px; }
.faq-section { margin-bottom: 24px; }
.faq-section h2 { font-size: 18px; margin-bottom: 10px; }
.faq-item { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
    cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none;
    display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 16px 14px; color: var(--muted); line-height: 1.6; }
.faq-cta { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); text-align: center; }
.faq-cta .btn { margin-top: 12px; }
.quick { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.quick a { color: var(--cyan); font-weight: 600; }

/* поддержка */
.ticket { padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ticket + .ticket { margin-top: 10px; }
.ticket__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ticket__meta { color: var(--muted); font-size: 12.5px; margin: 4px 0 8px; }
.ticket__text { overflow-wrap: anywhere; }
.ticket__reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 211, 255, .08); border-left: 3px solid var(--cyan); }
.ticket__reply p { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* уведомления */
.notif {
    display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer;
    transition: border-color .2s;
}
.notif:hover, .notif:focus-visible { border-color: var(--blue); outline: none; }
.notif.is-unread { background: var(--surface-2); border-color: var(--line-strong); }
.notif__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--cyan); }
.notif__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif--sale .notif__icon { color: #3CDC8C; }
.notif--support .notif__icon { color: var(--violet); }
.notif--wallet .notif__icon { color: var(--gold); }
.notif__text { font-weight: 600; line-height: 1.45; }
.notif.is-unread .notif__text::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.notif__time { margin-top: 3px; color: var(--dim); font-size: 12.5px; }

/* профиль */
.profile-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-ava { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; background: var(--grad-btn); color: #04122e; box-shadow: 0 0 24px var(--glow); }
.profile-name { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.profile-since { color: var(--muted); font-size: 13px; }
.balance-big { font-size: 34px; font-weight: 800; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--cyan); }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; margin-top: 8px; }
.mini-stats .stat { padding: 10px; text-align: center; }
.mini-stats .stat b { font-size: 20px; }
.tx-list { list-style: none; display: flex; flex-direction: column; }
.tx { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx__title { font-weight: 600; overflow-wrap: anywhere; }
.tx__time { color: var(--dim); font-size: 12px; margin-top: 2px; }
.tx__sum { white-space: nowrap; }
.tx__sum.plus { color: #3CDC8C; }
.tx__sum.minus { color: var(--text); }

@media (max-width: 960px) {
    .split, .split--wide { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .page__title { font-size: 24px; }
    .stats { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .order { flex-direction: column; }
    .row { flex-wrap: wrap; }
    .row__side { align-items: flex-start; text-align: left; width: 100%; }
}

/* --- доводка внутренних страниц --- */
.page .panel { display: flex; flex-direction: column; gap: 14px; }
.page .panel > .panel__title { margin: 0; }
.page .panel > .panel__link { align-self: flex-start; }

.faq-search {
    display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
    margin-bottom: 22px; border-radius: 12px; background: var(--surface);
    border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.faq-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--glow-cyan); }
.faq-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.faq-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.faq-search input::placeholder { color: var(--dim); }

.mini-stats > div {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 12px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.mini-stats b { font-size: 22px; font-weight: 800; }
.mini-stats span { color: var(--muted); font-size: 12.5px; }
.profile-card { gap: 12px; }
.profile-card > div { display: flex; flex-direction: column; gap: 2px; }
.page .panel > .btn { align-self: flex-start; }
.page .panel > form .btn, .page .panel > .form .btn { align-self: auto; }

/* вкладки-фильтры остаются в одну строку (общее правило .page .panel делало из них столбик) */
.page .panel.tabs { flex-direction: row; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ---------- Вкладки-фильтры на внутренних страницах: объёмные «таблетки» ---------- */
.page .panel.tabs {
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .3);
}

.page .panel.tabs .tabs__btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}

.page .panel.tabs .tabs__btn:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 5px 0 rgba(0, 0, 0, .35), 0 8px 18px rgba(47, 123, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.page .panel.tabs .tabs__btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

.page .panel.tabs .tabs__btn.is-active {
    color: #04122e;
    text-shadow: none;
    border-color: transparent;
    background: var(--grad-btn);
    box-shadow: 0 3px 0 #1a5fc4, 0 8px 22px var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.page .panel.tabs .tabs__btn.is-active::after { display: none; }

@media (max-width: 560px) {
    .page .panel.tabs { gap: 8px; padding: 8px; }
    .page .panel.tabs .tabs__btn { padding: 0 14px; height: 38px; font-size: 13px; }
}

/* =====================================================================
   СТРАНИЦА ЛОТА и ЧАТ С ПРОДАВЦОМ
   ===================================================================== */

.back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-weight: 700; font-size: 14px; transition: color .2s; }
.back:hover { color: var(--cyan); }

.lot { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }

/* карточка лота */
.lot__cover {
    position: relative; aspect-ratio: 16 / 8; border-radius: 14px; overflow: hidden;
    display: grid; place-items: center; font-weight: 800; font-size: 30px; letter-spacing: .04em;
    text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .35);
}
.lot__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 50%); pointer-events: none; }
.lot__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lot__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.page .lot__info .card__tag { align-self: flex-start; }
.lot__game { margin-top: -8px; color: var(--muted); font-weight: 600; }
.lot__attrs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lot__attrs li { position: relative; padding-left: 20px; color: #C9D3F2; line-height: 1.4; }
.lot__attrs li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-btn); box-shadow: 0 0 8px var(--glow-cyan); }
.lot__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lot__facts div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.lot__facts dt { color: var(--dim); font-size: 12px; }
.lot__facts dd { margin-top: 3px; font-weight: 700; font-size: 13px; line-height: 1.3; }
.lot__buy { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.lot__price { font-size: 34px; font-weight: 800; background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(34, 211, 255, .35)); }
.lot__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.lot__buttons .btn:first-child { flex: 1 1 160px; height: 48px; font-size: 16px; }
.lot__fav { height: 48px; gap: 8px; }
.lot__fav svg { width: 18px; height: 18px; }
.lot__fav[aria-pressed="true"] { color: var(--red); border-color: rgba(255, 77, 106, .5); }
.lot__fav[aria-pressed="true"] svg { fill: currentColor; }

/* чат */
.page .chat { gap: 12px; height: 640px; max-height: calc(100vh - 110px); min-height: 460px; position: sticky; top: 88px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; font-size: 16px; }
.chat__sub { color: var(--gold); font-size: 12.5px; font-weight: 600; }
.chat__ava { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; flex: none; }
.chat__log {
    flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
    padding: 14px; border-radius: 14px; background: rgba(4, 7, 26, .55); border: 1px solid var(--line);
    scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.chat__empty { margin: auto; max-width: 280px; text-align: center; color: var(--dim); font-size: 14px; line-height: 1.5; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; line-height: 1.4; animation: card-in .25s ease both; }
.msg__text { overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14.5px; }
.msg__time { margin-top: 3px; font-size: 11px; opacity: .65; text-align: right; }
.msg--me { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--grad-btn); color: #04122e; font-weight: 600; box-shadow: 0 4px 14px rgba(47, 123, 255, .3); }
.msg--seller { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-strong); }
.msg--typing { display: flex; gap: 5px; padding: 12px 14px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__quick { display: flex; gap: 8px; flex-wrap: wrap; }
.chat__form { display: flex; gap: 10px; align-items: flex-end; }
.chat__form textarea {
    flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 14.5px; outline: none;
    field-sizing: content; min-height: 46px;
}
.chat__form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--glow-cyan); }
.chat__form .btn { height: 46px; }
.chat__demo { font-size: 12px; color: var(--dim); }
.notif--chat .notif__icon { color: var(--pink); }

@media (max-width: 960px) {
    .lot { grid-template-columns: minmax(0, 1fr); }
    .page .chat { position: static; height: 520px; }
}
@media (max-width: 560px) {
    .lot__facts { grid-template-columns: 1fr; }
    .lot__title { font-size: 22px; }
    .msg { max-width: 92%; }
}

/* кнопка «Написать продавцу» в карточке заказа */
.order__chat { margin-top: 2px; }
.order__chat .btn { gap: 8px; }
.order__chat svg { width: 16px; height: 16px; }
#chat { scroll-margin-top: 96px; }


/* =====================================================================
   Вход, сообщения, админка (версия с настоящей базой)
   ===================================================================== */

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* правая часть шапки: сообщения, уведомления, профиль (или кнопка «Войти») */
.header__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header__right .icon-btn { margin-left: 0; }

.field__hint { font-weight: 500; color: var(--dim); font-size: 12px; }
.panel__subtitle { margin: 18px 0 8px; font-size: 15px; }
.role-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgba(155, 107, 255, .18); color: var(--violet); font-size: 11.5px; font-weight: 800; vertical-align: middle; }
.lot__desc { color: var(--muted); line-height: 1.55; white-space: pre-line; }

/* вход */
.page--auth { display: grid; place-items: start center; }
.auth { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth__title { font-size: 26px; font-weight: 800; }
.auth__tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.auth__tabs .tabs__btn { flex: 1; }
.auth__note { padding: 16px; border-radius: 14px; background: rgba(60, 220, 140, .1); border: 1px solid rgba(60, 220, 140, .35); line-height: 1.5; }
.auth__note b { display: block; margin-bottom: 4px; }

/* форма спора в заказе */
.dispute-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dispute-form textarea { min-height: 80px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; }
.dispute-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--glow-cyan); }

/* сообщения: список переписок слева, чат справа */
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: stretch; min-height: 520px; }
.inbox__list { padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 70vh; }
.inbox__thread { max-height: 70vh; }
.inbox__thread .chat__log { flex: 1; min-height: 280px; }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.conv:hover { background: var(--surface-2); }
.conv.is-active { background: var(--surface-3); border-color: var(--line-strong); }
.conv__ava { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #2F7BFF, #1749E0); flex: none; }
.conv__main { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.conv__top { display: flex; justify-content: space-between; gap: 8px; }
.conv__top time { color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.conv__lot { color: var(--gold); font-size: 12px; }
.conv__lot, .conv__last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__last { color: var(--muted); font-size: 13px; }
.conv__badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.chat__back { display: none; margin-left: 0; }
.chat__sub a { text-decoration: underline; }
.inbox__thread .chat__sub { color: var(--muted); }

@media (max-width: 820px) {
    .inbox { grid-template-columns: 1fr; }
    .inbox.has-thread .inbox__list { display: none; }
    .inbox:not(.has-thread) .inbox__thread { display: none; }
    .chat__back { display: grid; }
}

/* админка */
.dispute { display: flex; flex-direction: column; gap: 12px; }
.dispute__reason { padding: 10px 12px; border-radius: 12px; background: rgba(255, 77, 106, .08); border: 1px solid rgba(255, 77, 106, .3); line-height: 1.5; }
.dispute__chat { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.dispute__chat summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.dispute__msg { margin-top: 8px; font-size: 14px; line-height: 1.45; }
.dispute__msg--buyer b { color: var(--cyan); }
.dispute__msg--seller b { color: var(--gold); }
.admin-search { width: 100%; height: 44px; padding: 0 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; }
.admin-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-inline--col { flex-direction: column; align-items: flex-start; }
.admin-inline input, .admin-inline textarea, .row__side select { height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; }
.admin-inline textarea { height: auto; width: 100%; padding: 8px 10px; }
.admin-inline input[name="amount"] { width: 120px; }
.admin-inline input[name="comment"] { flex: 1; min-width: 140px; }
.inbox .chat { position: static; height: auto; max-height: 70vh; }
.badge--banned { background: rgba(255, 77, 106, .15); color: var(--red); }

/* плашка «бета-версия» в подвале */
.footer__beta { border-top: 1px solid var(--line); background: rgba(255, 201, 75, .06); padding: 10px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.footer__beta b { color: var(--gold); }
.auth__warn { padding: 10px 12px; border-radius: 12px; background: rgba(255, 201, 75, .08); border: 1px solid rgba(255, 201, 75, .3); font-size: 13px; }
.auth__warn b { color: var(--gold); }
