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

:root {
    /* Шрифты */
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Unbounded', 'Manrope', sans-serif;

    /* Brand */
    --green: #2ecc71;
    --green-bright: #34e07f;
    --green-dark: #27ae60;
    --green-deep: #1e9e57;
    --green-grad: linear-gradient(135deg, #34e07f 0%, #2ecc71 45%, #1e9e57 100%);
    --green-glow: 0 0 0 1px rgba(46, 204, 113, 0.25), 0 8px 30px rgba(46, 204, 113, 0.22);

    /* Surfaces */
    --bg: #0a0a0b;
    --bg-2: #0c0c0d;
    --surface: #101012;
    --surface-2: #161618;
    --surface-3: #1c1c1e;
    --elevated: #131315;

    /* Lines & text */
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.12);
    --text: #f2f4f5;
    --text-2: #aeb3b8;
    --text-3: #71767c;

    /* Effects */
    --radius: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--green-bright), var(--green-deep));
    border-radius: 8px;
    border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--green), var(--green-deep));
}

::selection {
    background: rgba(46, 204, 113, 0.3);
    color: #fff;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--green) var(--bg);
}

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(46, 204, 113, 0.10), transparent 60%),
        radial-gradient(1000px 500px at 95% 0%, rgba(46, 204, 113, 0.06), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 6px 0 3px;
    background: transparent;
}

.nav-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(17, 17, 20, 0.72);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--green);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.logo:hover {
    color: var(--green-bright);
}

.search-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 16px;
    height: 46px;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.search-bar:focus-within {
    border-color: var(--line-strong);
    background: rgba(0, 0, 0, 0.5);
}

.search-bar i {
    color: var(--text-3);
    margin-right: 12px;
    font-size: 15px;
    transition: color 0.25s var(--ease);
}

.search-bar:focus-within i {
    color: var(--green);
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    outline: none;
    font-size: 15px;
    line-height: 24px;
    caret-color: #ffffff;
}

.search-bar input::placeholder {
    color: var(--text-3);
}

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

.nav-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-2);
    transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
    font-size: 13.5px;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.nav-btn i {
    font-size: 16px;
    transition: color 0.2s var(--ease);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-btn:hover i {
    color: var(--green);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--line);
    color: #fff;
}

.nav-btn.active i {
    color: var(--green);
}

.nav-badge {
    position: absolute;
    top: 1px;
    right: 6px;
    background: var(--green);
    color: #04210f;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 17px;
    text-align: center;
}

.nav-spacer {
    flex: 1;
    min-width: 0;
}

/* Banner Section */
.banner-section {
    padding: 18px 0 5px;
}

.banner-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

.banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.banner-wrapper:first-child {
    position: relative;
}

.banner-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-image {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.banner-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(10, 10, 11, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: width 0.5s var(--ease), background 0.35s var(--ease), transform 0.25s var(--ease);
    overflow: hidden;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.dot.active {
    width: 42px;
    background: rgba(255, 255, 255, 0.18);
    cursor: default;
}

/* Прогресс-бар внутри активной точки */
.dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-container:hover .banner-arrow {
    opacity: 1;
    pointer-events: auto;
}

.banner-container:hover .banner-prev {
    transform: translateY(-50%) translateX(0);
}

.banner-container:hover .banner-next {
    transform: translateY(-50%) translateX(0);
}

.banner-arrow:hover {
    background: rgba(30, 30, 34, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-50%) scale(1.12) translateX(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.banner-arrow:active {
    transform: translateY(-50%) scale(0.95) translateX(0);
}

.banner-arrow i {
    transition: transform 0.3s ease;
}

.banner-arrow:hover i {
    transform: scale(1.2);
}

.banner-prev {
    left: 25px;
    transform: translateY(-50%) translateX(-20px);
}

.banner-next {
    right: 25px;
    transform: translateY(-50%) translateX(20px);
}

.banner-overlay {
    position: absolute;
    bottom: 26px;
    left: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-game-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.banner-overlay-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.banner-subtitle {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--green);
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.28);
}

.banner-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.05;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.banner-badge {
    background: var(--green);
    color: #04210f;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

/* Затемнение картинки баннера для читаемости оверлея */
body:not(.home-page) .banner-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 11, 0.55) 100%);
    pointer-events: none;
}

/* Categories Section */
.categories-section {
    padding: 0 0 15px;
}

.categories-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.category-btn {
    padding: 10px 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.category-btn:hover {
    background: var(--surface-3);
    color: #fff;
    border-color: var(--line-strong);
}

.category-btn.active {
    background: var(--green);
    color: #04210f;
    border-color: transparent;
}

/* Filters Section */
.filters-section {
    padding: 0 0 20px;
}

.filters-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: var(--surface-3);
    border-color: var(--line-strong);
    color: #fff;
}

.filter-btn i {
    font-size: 12px;
}

.discount-filter {
    background: #ff3366;
    color: #fff;
    border-color: transparent;
}

.discount-filter:hover {
    background: #ff4775;
    border-color: transparent;
}

.products-count {
    color: var(--text-3);
    font-size: 13px;
    margin-left: 5px;
}

.sort-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-btn:hover {
    color: var(--green);
}

/* Games Section */
.games-section {
    padding: 0 0 10px;
}

.games-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    padding: 12px 10px;
    border-radius: var(--radius);
    min-width: 96px;
    text-decoration: none;
}

.game-item:hover {
    background: var(--surface);
    transform: translateY(-3px);
}

.game-item:hover .game-icon-wrapper {
    border-color: var(--line-strong);
}

.game-item.active .game-icon-wrapper {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.game-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--line-strong);
    transition: all 0.3s var(--ease);
}

.game-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.game-item:hover .game-icon {
    transform: scale(1.08);
}

.game-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    transition: color 0.2s var(--ease);
}

.game-item:hover .game-name {
    color: #fff;
}

/* Products Section */
.products-section {
    padding: 0 0 40px;
}

.products-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px 18px;
}

.product-card {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.2s var(--ease);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: border-color 0.2s var(--ease);
}

.product-card:hover .product-image {
    border-color: var(--line-strong);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    padding: 10px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Цена + скидка + старая цена (стиль маркетплейса) */
.product-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: none;
}

.product-price {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
}

.discount-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    background: #ff3b5c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.old-price {
    color: var(--text-3);
    font-size: 13px;
    text-decoration: line-through;
}

.product-info h3 {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p {
    display: none;
}

.seller-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    align-self: flex-start;
}

.seller-rating i {
    display: none;
}

/* Подвал карточки: ник продавца + рейтинг */
.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
}

.product-foot .seller-rating {
    margin: 0;
    flex-shrink: 0;
    gap: 5px;
}

.product-foot .stars {
    width: 60px;
    height: 11px;
}

.product-foot .rate-num {
    font-size: 11.5px;
    color: var(--text-2);
    font-weight: 600;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.product-seller img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.product-seller span {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Звёздный рейтинг-бар (5 чётких SVG-звёзд с частичным заполнением) */
.stars {
    --val: 100%;
    position: relative;
    display: inline-block;
    width: 72px;
    height: 13px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 24'%3E%3Cg fill='%23fff'%3E%3Cpath d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(27 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(54 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(81 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(108 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 24'%3E%3Cg fill='%23fff'%3E%3Cpath d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(27 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(54 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(81 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3Cpath transform='translate(108 0)' d='M12 2l2.9 6.26 6.9.6-5.2 4.52 1.55 6.74L12 17.27 5.85 20.92 7.4 14.18 2.2 9.66l6.9-.6z'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--val);
    background: linear-gradient(90deg, #ffd166, #ffb02e);
}

.stars-lg {
    width: 112px;
    height: 20px;
}

.rate-num {
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Main Section */
.main-section {
    padding: 15px 0 40px;
}

.main-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.main-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 25px;
}

.games-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.game-card-main {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    border: 1px solid var(--line);
}

.game-card-main:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: var(--shadow-md);
}

.game-card-image {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141414;
    padding: 15px;
}

.game-card-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
}

.game-card-info {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card-info h3 {
    font-size: 19px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
}

.game-card-info p {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.game-card-stats {
    display: flex;
    gap: 16px;
}

.game-card-stats span {
    color: #aaa;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-card-stats i {
    color: #2ecc71;
}

/* Features Section */
.features-section {
    margin-top: 35px;
}

.features-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
    transition: all 0.25s var(--ease);
}

.feature-card:hover {
    background: var(--surface-2);
    border-color: rgba(46, 204, 113, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon i {
    font-size: 24px;
    color: #2ecc71;
}

.feature-card h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: #888;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .nav-container {
        gap: 10px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .logo {
        font-size: 17px;
        letter-spacing: 0;
    }

    .search-bar {
        height: 42px;
        padding: 8px 12px;
    }

    .nav-actions {
        gap: 2px;
        margin-left: 4px;
    }

    .nav-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        gap: 0;
        flex-shrink: 0;
    }

    .nav-btn span:not(.nav-badge) {
        display: none;
    }

    .nav-btn i {
        font-size: 17px;
    }

    .nav-badge {
        top: 3px;
        right: 3px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }
}

/* Стили только для главной страницы */
.home-page .navbar {
    padding: 4px 0 !important;
}

.home-page .banner-section {
    padding: 18px 0 4px !important;
}

.home-page .banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 6;
    max-height: 300px;
    min-height: 100px;
}

.home-page .banner-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.home-page .banner-wrapper:first-child {
    position: absolute !important;
}

.home-page .banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.home-page .banner-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 16px !important;
}

.home-page .game-icon-wrapper {
    width: 72px;
    height: 72px;
}

.home-page .game-icon {
    width: 100%;
    height: 100%;
}

.home-page .game-name {
    font-size: 14px;
    font-weight: 600;
}

.home-page .games-section {
    padding: 0 0 12px !important;
}

/* Секция преимуществ на главной */
.features-section-home {
    padding: 30px 0;
}

.features-container-home {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card-home {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.feature-card-home:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon-home {
    width: 64px;
    height: 64px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s var(--ease);
}

.feature-card-home:hover .feature-icon-home {
    background: rgba(46, 204, 113, 0.18);
}

.feature-icon-home i {
    font-size: 28px;
    color: #2ecc71;
}

.feature-card-home h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card-home p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

/* Секция статистики */
.stats-section {
    padding: 40px 0 60px;
}

.stats-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
    border-radius: var(--radius-lg);
    padding: 35px 20px;
    text-align: center;
    border: 1px solid var(--line);
    transition: all 0.3s var(--ease);
}

.stat-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--green);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
}

.home-page .products-section {
    padding: 0 0 40px !important;
}

/* Ограничение высоты баннера на странице товаров */
body:not(.home-page) .banner-section {
    padding: 5px 0 5px;
}

body:not(.home-page) .banner-wrapper {
    position: relative;
    height: 200px;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body:not(.home-page) .banner-image {
    height: 200px;
    object-fit: cover;
}

/* Чаты */
.chat-container {
    display: flex;
    height: calc(100vh - 78px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 20px 16px;
    gap: 14px;
}

.chat-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #0c0c0e;
    border: 1px solid var(--line);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-sidebar-header {
    padding: 20px 18px 10px;
}

.chat-sidebar-header h2 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.chat-search {
    margin: 0 14px 12px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.chat-search:focus-within {
    border-color: var(--line-strong);
}

.chat-search i {
    color: var(--text-3);
    font-size: 13px;
}

.chat-search input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    outline: none;
    font-size: 13.5px;
    caret-color: #fff;
}

.chat-search input::placeholder {
    color: var(--text-3);
}

.chat-list {
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-list-indicator {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 0;
    background: linear-gradient(165deg, #222228 0%, #18181d 55%, #141418 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 14px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.34s cubic-bezier(0.22, 0.95, 0.31, 1.02),
        height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, height;
}

.chat-list-indicator.is-gliding {
    border-color: rgba(255, 255, 255, 0.1);
}

.chat-list-indicator::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
    transition: opacity 0.2s var(--ease);
}

.chat-list-indicator::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    pointer-events: none;
}

.chat-list-indicator.is-gliding::after {
    opacity: 1;
}

.chat-item {
    position: relative;
    z-index: 1;
    padding: 12px 12px 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 14px;
    background: transparent;
    transition: color 0.18s var(--ease);
}

.chat-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
}

.chat-item.active .chat-name {
    color: #fff;
    letter-spacing: 0.01em;
}

.chat-avatar img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.34s cubic-bezier(0.22, 0.95, 0.31, 1.02);
}

.chat-item.active .chat-avatar img {
    transform: scale(1.04);
    box-shadow: none;
}

.status-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid #0c0c0e;
}

.chat-item.active .chat-preview {
    color: var(--text-2);
}

.chat-item.active .chat-last-message {
    color: var(--text-3);
}

.chat-item.active .chat-time {
    color: var(--text-3);
}

.chat-verified {
    color: #4a9eff;
    font-size: 12px;
    margin-left: 4px;
}

.chat-avatar {
    position: relative;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-last-message {
    font-size: 12.5px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px;
}

.chat-time {
    font-size: 11px;
    color: var(--text-3);
}

.chat-unread {
    background: #f2f4f5;
    color: #0c0c0e;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.chat-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chat-back {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
}

.chat-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-thread-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-thread-view.is-exit-forward {
    animation: chatThreadExitFwd 0.17s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.chat-thread-view.is-exit-back {
    animation: chatThreadExitBack 0.17s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.chat-thread-view.is-enter-forward {
    animation: chatThreadEnterFwd 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-thread-view.is-enter-back {
    animation: chatThreadEnterBack 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatThreadExitFwd {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.992);
        filter: blur(5px);
    }
}

@keyframes chatThreadExitBack {
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.992);
        filter: blur(5px);
    }
}

@keyframes chatThreadEnterFwd {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.988);
        filter: blur(7px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes chatThreadEnterBack {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.988);
        filter: blur(7px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.chat-messages.is-staggering .message,
.chat-messages.is-staggering .message-date {
    animation: chatMsgReveal 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes chatMsgReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.chat-main {
    flex: 1;
    min-width: 0;
    background: #0c0c0e;
    border: none;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.chat-header-text {
    min-width: 0;
    flex: 1;
}

.chat-header-info .chat-avatar img {
    width: 44px;
    height: 44px;
}

.chat-header-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.chat-header-deal {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 3px;
}

.chat-header-status {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 1px;
    min-height: 14px;
}

.chat-header-status.is-online {
    color: var(--green);
}

.chat-header-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-icon:hover {
    border-color: var(--line-strong);
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0c0c0e;
}

.chat-messages:has(.chat-thread-empty) {
    justify-content: center;
    align-items: center;
    padding: 32px 24px 48px;
}

.chat-thread-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    max-width: 280px;
    margin: auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.chat-thread-empty-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-3);
    font-size: 22px;
}

.chat-thread-empty-text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: -0.01em;
}

.chat-thread-empty-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-3);
}

.chat-messages .vb-empty {
    border: none;
    background: transparent;
    box-shadow: none;
    margin: auto;
    padding: 24px 16px;
    max-width: 280px;
}

.message-date {
    align-self: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 8px 0 12px;
}

.message {
    display: flex;
    max-width: min(68%, 480px);
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 100%;
}

.message.sent .message-content {
    align-items: flex-end;
}

.message-text {
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 11px 15px;
    border-radius: 14px 14px 14px 4px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
}

.message.sent .message-text {
    background: #f2f4f5;
    border-color: transparent;
    color: #0c0c0e;
    font-weight: 600;
    border-radius: 14px 14px 4px 14px;
}

.message-time {
    font-size: 10.5px;
    color: var(--text-3);
    padding: 0 4px;
}

.chat-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 88px;
    padding: 10px 14px !important;
}

.chat-typing-label {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}

.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 10px;
}

.chat-typing-dots i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-3);
    animation: chatTypingDot 1.2s ease-in-out infinite;
}

.chat-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots i:nth-child(3) { animation-delay: 0.3s; }

.chat-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%) translateY(12px);
    z-index: 1400;
    background: rgba(18, 18, 20, 0.96);
    border: 1px solid var(--line);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes chatTypingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.pk-booster-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pk-booster-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}

.pk-booster-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pk-booster-btn {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.pk-booster-btn:hover {
    background: var(--surface-3);
    border-color: var(--text-3);
}

.pk-booster-btn.is-primary {
    background: #f2f4f5;
    color: #0c0c0e;
    border-color: transparent;
}

.pk-booster-btn.is-primary:hover {
    background: #fff;
}

.pk-booster-offer {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.pk-booster-offer.is-open {
    display: flex;
}

.pk-booster-offer input,
.pk-booster-offer textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--bg-2);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}

.pk-booster-status {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.pk-booster-status.is-muted {
    color: var(--text-3);
}

.pk-booster-hint {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.45;
    margin: -4px 0 4px;
}

.pk-booster-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--bg-2);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}

.pk-manager-apps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pk-manager-empty {
    color: var(--text-3);
    font-size: 13px;
}

.pk-app-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pk-app-row.is-accepted {
    border-color: rgba(46, 204, 113, 0.35);
}

.pk-app-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pk-app-body {
    flex: 1;
    min-width: 0;
}

.pk-app-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.pk-app-meta {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 3px;
}

.pk-app-rating {
    color: var(--green);
}

.pk-app-price {
    font-weight: 800;
    font-size: 15px;
    margin-top: 6px;
}

.pk-app-comment {
    font-size: 12.5px;
    color: var(--text-2);
    margin-top: 4px;
    line-height: 1.45;
}

.pk-app-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    align-self: center;
}

.pk-manager-done {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-manager-label {
    font-size: 12px;
    color: var(--text-3);
}

.spf-balance-frozen {
    display: block;
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.spf-booster-stats {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.spf-booster-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.spf-booster-lottie {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.spf-booster-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.spf-booster-rating {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 4px;
}

.spf-booster-rating strong {
    color: var(--green);
    font-size: 18px;
}

.spf-stats-booster {
    margin-top: 0;
}

.chat-input-wrap {
    padding: 14px 18px 18px;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.chat-input input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    color: #fff;
    font-size: 14px;
    outline: none;
    caret-color: #fff;
}

.chat-input input::placeholder {
    color: var(--text-3);
}

.chat-input .btn-icon {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
}

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f2f4f5;
    border: none;
    color: #0c0c0e;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}

.btn-send:hover {
    background: #fff;
}

@media (max-width: 768px) {
    .chat-page .navbar .search-bar {
        display: none;
    }

    .chat-page .chat-container {
        position: relative;
        height: calc(100dvh - 62px);
        padding: 0;
        gap: 0;
        overflow: hidden;
    }

    .chat-page .chat-sidebar {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--line);
    }

    .chat-page .chat-main {
        position: fixed;
        left: 0;
        right: 0;
        top: 62px;
        bottom: 0;
        z-index: 150;
        flex: none;
        width: 100%;
        height: auto;
        border-radius: 0;
        border: none;
        transform: translateX(100%);
        transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }

    .chat-page.chat-open .chat-main {
        transform: translateX(0);
    }

    .chat-page .chat-back {
        display: inline-flex;
    }

    .chat-header-left {
        gap: 8px;
    }

    .chat-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .chat-header-name,
    .chat-header-deal {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chat-messages {
        padding: 16px 14px;
    }

    .message {
        max-width: 88%;
    }

    .chat-input-wrap {
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .chat-sidebar-header {
        padding: 16px 16px 8px;
    }

    .chat-item {
        padding: 14px 14px 14px 18px;
    }
}

/* Плавное появление контента */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-grid .product-card {
    animation: fadeUp 0.5s var(--ease) both;
}

.products-grid .product-card:nth-child(1) { animation-delay: 0.04s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.10s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.16s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.22s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.28s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.34s; }
.products-grid .product-card:nth-child(7) { animation-delay: 0.40s; }
.products-grid .product-card:nth-child(8) { animation-delay: 0.46s; }

/* Доступный фокус для клавиатуры */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.22);
    outline-offset: 2px;
    border-radius: 8px;
}

.search-bar input:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================
   Страница товара — уникальный дизайн
   ============================================================ */
.pp-section {
    padding: 16px 0 80px;
}

.pp-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb i {
    font-size: 9px;
    opacity: 0.6;
}

.breadcrumb .current {
    color: var(--text);
}

/* ===== Hero ===== */
.pp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
    background:
        radial-gradient(700px 320px at 88% 0%, rgba(46, 204, 113, 0.10), transparent 60%),
        linear-gradient(165deg, #16171b 0%, #0e0f12 100%);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    overflow: hidden;
}

.pp-hero::before {
    content: '';
    position: absolute;
    top: -140px;
    left: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.16), transparent 70%);
    pointer-events: none;
}

.pp-media {
    position: relative;
    z-index: 1;
}

.pp-image {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.pp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-image-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pp-badge-game {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(10, 10, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.pp-badge-game i {
    color: var(--green);
}

.pp-discount-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #ff3b5c;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 11px;
    border-radius: 9px;
}

/* Открыть фото на весь экран */
.pp-image {
    cursor: zoom-in;
}

.pp-zoom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(10, 10, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.pp-zoom:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
    color: var(--green-bright);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(4, 5, 7, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.96);
    transition: transform 0.3s var(--ease);
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(46, 204, 113, 0.28);
    border-color: rgba(46, 204, 113, 0.5);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-count {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 14px;
    border-radius: 999px;
}

@media (max-width: 600px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

.pp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.pp-thumb {
    width: 84px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-2);
    border: 2px solid var(--line);
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
    flex-shrink: 0;
}

.pp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-thumb:hover {
    border-color: var(--line-strong);
}

.pp-thumb.active {
    border-color: var(--green);
}

/* ===== Панель покупки ===== */
.pp-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-title {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #fff;
    line-height: 1.15;
}

.pp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-3);
    font-size: 13px;
}

.pp-meta .seller-rating {
    margin: 0;
}

.pp-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-3);
}

/* Конфигуратор буста — фишка страницы */
.pp-config {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}

.pp-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pp-config-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-3);
}

.pp-config-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.pp-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.pp-preset {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s var(--ease);
}

.pp-preset:hover {
    border-color: var(--line-strong);
}

.pp-preset.active {
    border-color: var(--green);
    background: rgba(46, 204, 113, 0.10);
}

.pp-preset b {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pp-preset span {
    display: block;
    color: var(--text-3);
    font-size: 11px;
    margin-top: 2px;
}

.pp-preset-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #04210f;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Слайдер количества */
.pp-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-3);
    outline: none;
    cursor: pointer;
}

.pp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid #0c0c0e;
    box-shadow: 0 0 0 1px var(--green);
    cursor: pointer;
    transition: transform 0.15s var(--ease);
}

.pp-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.pp-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid #0c0c0e;
    cursor: pointer;
}

.pp-qty-pill {
    min-width: 42px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 6px 8px;
}

/* Цена + покупка */
.pp-purchase {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pp-price-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.pp-price {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #fff;
}

.pp-old-price {
    font-size: 14px;
    color: var(--text-3);
    text-decoration: line-through;
    margin-top: 3px;
}

.pp-buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    background: var(--green);
    color: #04210f;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s var(--ease);
}

.pp-buy:hover {
    background: var(--green-bright);
    transform: translateY(-2px);
}

.pp-secondary-row {
    display: flex;
    gap: 10px;
}

.pp-chat-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s var(--ease);
}

.pp-chat-btn:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.pp-chat-btn i {
    color: var(--green);
}

/* Карточка продавца */
.pp-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
}

.pp-seller img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.pp-seller-info {
    flex: 1;
    min-width: 0;
}

.pp-seller-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pp-seller-name i {
    color: #4a9eff;
    font-size: 13px;
}

.pp-seller-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

.pp-seller-link {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* ===== Как это работает ===== */
.pp-steps {
    margin-top: 44px;
}

.pp-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #fff;
    margin-bottom: 20px;
}

.pp-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pp-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 18px 18px;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pp-step:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.pp-step-num {
    position: absolute;
    top: -14px;
    left: 18px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--green);
    color: #04210f;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-step i {
    font-size: 20px;
    color: var(--green);
    margin: 8px 0 12px;
    display: block;
}

.pp-step h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.pp-step p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.5;
}

/* ===== Нижние блоки: описание / отзывы ===== */
.pp-bottom {
    margin-top: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
    gap: 24px;
    align-items: start;
}

.pp-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.pp-block-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.pp-desc p {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.pp-desc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.pp-desc li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
}

.pp-desc li i {
    color: var(--green);
    margin-top: 3px;
    font-size: 13px;
}

/* Отзывы — сводка с разбивкой по звёздам */
.pp-rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.pp-rating-big {
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.pp-rating-count {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 6px;
}

.pp-rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pp-rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-3);
}

.pp-rating-bar i {
    width: 30px;
    color: var(--text-3);
}

.pp-rating-bar .bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}

.pp-rating-bar .bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--green);
}

.review {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.review:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-body {
    flex: 1;
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.review-date {
    font-size: 12px;
    color: var(--text-3);
}

.review-text {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.55;
}

@media (max-width: 960px) {
    .pp-hero {
        grid-template-columns: 1fr;
    }
    .pp-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pp-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .pp-steps-grid {
        grid-template-columns: 1fr;
    }
    .pp-purchase {
        flex-wrap: wrap;
    }
}

/* ===== Новая компоновка страницы товара (контент + липкая корзина) ===== */
.pp-head {
    margin-bottom: 22px;
}

.pp-head .pp-title {
    font-size: 30px;
    margin-bottom: 12px;
}

.pp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.pp-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pp-aside {
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-gallery .pp-image {
    box-shadow: none;
}

.pp-buy-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-buy-card .pp-price-wrap {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.pp-buy-card .pp-old-price {
    margin-top: 0;
}

.pp-save {
    align-self: center;
    background: rgba(255, 59, 92, 0.14);
    color: #ff6b84;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
}

.pp-divider {
    height: 1px;
    background: var(--line);
}

.pp-delivery {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
}

.pp-delivery i {
    color: var(--green);
    width: 16px;
    text-align: center;
}

.pp-delivery b {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 960px) {
    .pp-layout {
        grid-template-columns: 1fr;
    }
    .pp-aside {
        position: static;
    }
}

/* Кнопка гарантии */
.pp-chat-btn {
    font-family: inherit;
    cursor: pointer;
}

.pp-guarantee-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ============ Модальное окно ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 6, 8, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 410px;
    background:
        radial-gradient(420px 200px at 50% -40px, rgba(46, 204, 113, 0.12), transparent 70%),
        linear-gradient(180deg, #17181c 0%, #121317 100%);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 38px 30px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.modal-overlay.open .modal {
    transform: none;
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s var(--ease);
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.modal-shield {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-shield::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.22), transparent 68%);
}

.modal-shield img {
    position: relative;
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.modal-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.modal-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.modal-li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.4;
}

.modal-li-ic {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.14);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.modal-ok {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: #04210f;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s var(--ease);
}

.modal-ok:hover {
    background: var(--green-bright);
}

/* ============================================================
   Страница товара v2 — кинематографичный дизайн
   ============================================================ */
.pp-stage {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 540px;
    isolation: isolate;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.pp-stage-bg {
    position: absolute;
    inset: 0;
    cursor: zoom-in;
}

.pp-stage-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.6s var(--ease);
}

.pp-stage:hover .pp-stage-bg img {
    transform: scale(1.08);
}

.pp-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 360px at 92% 8%, rgba(46, 204, 113, 0.16), transparent 60%),
        linear-gradient(105deg, rgba(8, 9, 11, 0.10) 0%, rgba(8, 9, 11, 0.45) 48%, rgba(8, 9, 11, 0.90) 100%),
        linear-gradient(0deg, rgba(8, 9, 11, 0.92) 0%, rgba(8, 9, 11, 0.30) 42%, transparent 65%);
}

.pp-stage .pp-discount-tag {
    top: 22px;
    left: 22px;
    z-index: 3;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(255, 59, 92, 0.4);
}

.pp-stage .pp-zoom {
    top: 22px;
    right: 22px;
    bottom: auto;
    z-index: 3;
}

.pp-stage-inner {
    position: relative;
    z-index: 2;
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: end;
    gap: 32px;
    padding: 38px;
}

.pp-stage-text {
    align-self: end;
    pointer-events: none;
}

.pp-stage .pp-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    max-width: 620px;
}

.pp-stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f2f4f5;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 13px;
    border-radius: 999px;
}

.pp-chip i {
    color: var(--green-bright);
    font-size: 12px;
}

.pp-chip-rate b {
    color: #fff;
    font-weight: 800;
}

.pp-chip .stars {
    width: 78px;
    height: 14px;
}

/* Стеклянная карточка покупки */
.pp-buy-glass {
    align-self: center;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(14, 15, 18, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pp-buy-glass .pp-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.pp-buy-glass .pp-price {
    font-size: 34px;
    letter-spacing: -1.2px;
}

.pp-buy-glass .pp-old-price {
    margin-top: 0;
}

.pp-buy-glass .pp-buy {
    width: 100%;
    flex: initial;
    padding: 15px 20px;
    box-shadow: 0 10px 26px rgba(46, 204, 113, 0.32);
}

.pp-buy-glass .pp-chat-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e4e7ea;
}

.pp-buy-glass .pp-chat-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.pp-buy-glass .pp-divider {
    background: rgba(255, 255, 255, 0.12);
}

.pp-buy-glass .pp-delivery {
    color: #c7ccd0;
}

/* Контент под hero */
.pp-content {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 22px;
    margin-top: 28px;
    align-items: start;
}

.pp-content-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pp-content-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 86px;
}

/* Карточка продавца v2 */
.pp-seller-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.pp-seller-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.pp-seller-top img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line-strong);
}

.pp-seller-top .pp-seller-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pp-seller-top .pp-seller-name i {
    color: #4a9eff;
    font-size: 13px;
}

.pp-seller-top .pp-seller-sub {
    font-size: 12.5px;
    color: var(--green);
    margin-top: 3px;
    font-weight: 600;
}

.pp-seller-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pp-seller-stats div {
    text-align: center;
}

.pp-seller-stats b {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.pp-seller-stats span {
    display: block;
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.pp-seller-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s var(--ease);
}

.pp-seller-btn:hover {
    border-color: var(--green);
    color: var(--green-bright);
}

/* Преимущества */
.pp-perks {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-perk {
    display: flex;
    align-items: center;
    gap: 13px;
}

.pp-perk-ic {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: var(--green-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.pp-perk-tx b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.pp-perk-tx span {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* Адаптив страницы товара v2 */
@media (max-width: 980px) {
    .pp-stage {
        min-height: 0;
    }
    .pp-stage-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 26px;
        gap: 22px;
    }
    .pp-stage .pp-title {
        font-size: 34px;
        letter-spacing: -1px;
    }
    .pp-buy-glass {
        align-self: stretch;
    }
    .pp-content {
        grid-template-columns: 1fr;
    }
    .pp-content-side {
        position: static;
    }
}

@media (max-width: 520px) {
    .pp-stage .pp-title {
        font-size: 27px;
    }
    .pp-stage-inner {
        padding: 20px;
    }
}

/* ===== Модальное окно v2 — эмблема + шаги сделки ===== */
.modal.modal-lg {
    max-width: 460px;
    padding: 36px 30px 28px;
}

.modal-emblem {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 4px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-emblem::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.28), transparent 68%);
}

.modal-emblem::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.modal-emblem img {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.modal-steps {
    text-align: left;
    margin: 6px 0 20px;
}

.modal-step {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
}

.modal-step:last-child {
    padding-bottom: 0;
}

.modal-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -2px;
    width: 2px;
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.5), rgba(46, 204, 113, 0.08));
}

.modal-step:last-child::before {
    display: none;
}

.modal-step-ic {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.28);
    color: var(--green-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.modal-step-body h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.modal-step-body p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.5;
}

.modal-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    padding: 12px;
    color: var(--green-bright);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* ===== Минималистичное окно гарантии — чёрное, без цвета внутри ===== */
.modal.modal-min {
    max-width: 380px;
    padding: 30px 26px 24px;
    background: #0d0d0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.modal-min-icon {
    margin: 4px auto 16px;
}

.modal-min-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.modal-min .modal-title {
    margin-bottom: 12px;
}

.modal-min .modal-text {
    margin-bottom: 24px;
}

.modal-min .modal-ok {
    background: #f2f4f5;
    color: #0c0c0e;
    border-radius: 12px;
}

.modal-min .modal-ok:hover {
    background: #fff;
}

/* ============================================================
   Страница товара v3 — чистая раскладка в стиле Playerok
   ============================================================ */
.pk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
        "media buy"
        "info  buy";
    gap: 24px;
    align-items: start;
}

.pk-gallery {
    grid-area: media;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pk-left {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pk-right {
    grid-area: buy;
    position: sticky;
    top: 84px;
}

/* Фото */
.pk-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
}

.pk-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pk-disc {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #ff3b5c;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 11px;
    border-radius: 9px;
}

.pk-zoom {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(10, 10, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.pk-zoom:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
    color: var(--green-bright);
}

.pk-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pk-thumbs .pp-thumb {
    margin: 0;
}

/* Карточки контента */
.pk-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 22px 24px;
}

.pk-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

.pk-desc p {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.pk-desc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.pk-desc li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
}

.pk-desc li i {
    color: var(--green);
    margin-top: 3px;
    font-size: 12px;
}

/* Продавец */
.pk-seller {
    display: flex;
    align-items: center;
    gap: 13px;
}

.pk-seller img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.pk-seller-info {
    flex: 1;
    min-width: 0;
}

.pk-seller-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pk-seller-name i {
    color: var(--green);
    font-size: 13px;
}

.pk-seller-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-3);
    margin-top: 4px;
}

.pk-seller-meta b {
    color: #fff;
}

.pk-seller-link {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pk-guarantees {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pk-guarantees div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
}

.pk-guarantees i {
    color: var(--green);
    font-size: 11px;
}

/* Правая панель покупки */
.pk-buy {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.pk-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
}

.pk-price {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.pk-old {
    font-size: 15px;
    color: var(--text-3);
    text-decoration: line-through;
}

.pk-disc-pill {
    background: rgba(255, 59, 92, 0.14);
    color: #ff6b84;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
}

.pk-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.pk-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
}

.pk-rating b {
    color: #fff;
    font-weight: 700;
}

.pk-rating .pk-muted {
    color: var(--text-3);
}

.pk-buy-btn {
    margin-top: 4px;
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    background: #f2f4f5;
    color: #0c0c0e;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.18s var(--ease);
}

.pk-buy-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.pk-write {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s var(--ease);
}

.pk-write:hover {
    border-color: var(--line-strong);
    color: #fff;
}

.pk-guarantee {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-top: 12px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.pk-guarantee img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pk-guarantee i {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-3);
    transition: color 0.18s var(--ease);
}

.pk-guarantee:hover {
    border-color: var(--green);
    color: #fff;
}

.pk-guarantee:hover i {
    color: var(--green);
}

@media (max-width: 980px) {
    .pk-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "buy"
            "info";
    }
    .pk-right {
        position: static;
    }
}

/* ===== Фирменный стиль Vulboost (уникальные акценты) ===== */
.pk-card-title {
    position: relative;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 14px;
    color: #fff;
}

.pk-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--green);
}

.pk-price {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pp-rating-big {
    font-family: var(--font-display);
    font-weight: 800;
}

/* Акцентная панель покупки */
.pk-buy {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.06);
}

.pk-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green-grad);
}

.pk-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* Фирменный значок-категория поверх фото */
.pk-image::after {
    content: 'VULBOOST';
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 3;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(10, 10, 11, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 8px;
    pointer-events: none;
}

/* Ценовой блок панели покупки */
.pk-price-box {
    background: var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    padding: 14px 16px;
}

.pk-price-label {
    display: block;
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.pk-secure {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.4;
}

.pk-secure i {
    color: var(--green);
    font-size: 12px;
}

/* ============================================================
   Мобильная адаптация (общая)
   ============================================================ */
@media (max-width: 680px) {
    .nav-container,
    .banner-container,
    .games-container,
    .products-container,
    .pp-container,
    .features-container-home,
    .footer-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Баннер компактнее */
    .home-page .banner-slider {
        aspect-ratio: 16 / 7;
        max-height: 180px;
    }
    .banner-dots {
        bottom: 10px;
    }

    /* Лента игр */
    .games-container {
        gap: 10px;
    }
    .home-page .game-icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
    .home-page .game-name {
        font-size: 12px;
    }
    .game-item {
        min-width: 76px;
        padding: 8px 6px;
    }

    /* Карточки товаров: 2 колонки, плотнее */
    .products-grid {
        gap: 18px 10px;
    }
    .product-info h3 {
        font-size: 13px;
    }
    .product-seller span {
        font-size: 11px;
    }

    /* Страница товара */
    .pp-section {
        padding: 8px 0 50px;
    }
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 14px;
        gap: 6px;
    }
    .pk-grid {
        gap: 18px;
    }
    .pk-image {
        aspect-ratio: 16 / 10;
    }
    .pk-card {
        padding: 18px 16px;
    }
    .pp-rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .pp-rating-bars {
        width: 100%;
    }
    .pk-price {
        font-size: 27px;
    }
    .pk-buy-btn {
        font-size: 15px;
        padding: 14px;
    }

    /* Лайтбокс — счётчик повыше, чтобы не перекрывался */
    .lightbox img {
        max-width: 94vw;
        max-height: 80vh;
    }
}

@media (max-width: 380px) {
    .nav-btn {
        width: 38px;
        height: 38px;
    }
    .nav-btn i {
        font-size: 15px;
    }
    .search-bar {
        height: 38px;
    }
    .logo {
        font-size: 15px;
    }
}

/* Экран входа (браузер без Telegram) */
html.vb-hide-until-auth body > *:not(script):not(#vb-auth-gate):not(#vb-cookie-bar):not(#vb-ban-screen) {
    display: none !important;
}

body.vb-locked > *:not(#vb-auth-gate):not(#vb-cookie-bar) {
    display: none !important;
}

body.vb-banned > *:not(#vb-ban-screen):not(#vb-cookie-bar):not(script) {
    display: none !important;
}

body.vb-locked {
    overflow: hidden;
}

body.vb-banned {
    overflow: hidden;
}

.vb-ban-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f9 55%, #ffffff 100%);
    overflow: hidden;
}

.vb-ban-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.vb-ban-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.vb-ban-orb-1 {
    width: 520px;
    height: 520px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    background: radial-gradient(circle, rgba(244, 63, 94, 0.28) 0%, rgba(244, 63, 94, 0.08) 42%, transparent 72%);
    filter: blur(28px);
    animation: vb-ban-halo 6s ease-in-out infinite;
}

.vb-ban-orb-2 {
    width: 220px;
    height: 220px;
    bottom: 18%;
    left: 14%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.38) 0%, transparent 70%);
    filter: blur(32px);
    animation: vb-ban-float-2 7s ease-in-out infinite;
}

.vb-ban-orb-3 {
    width: 220px;
    height: 220px;
    bottom: 18%;
    right: 14%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.38) 0%, transparent 70%);
    filter: blur(32px);
    animation: vb-ban-float-3 7s ease-in-out infinite;
}

@keyframes vb-ban-halo {
    0%, 100% { transform: translate(-50%, -58%) scale(1); opacity: 0.85; }
    50% { transform: translate(-50%, -58%) scale(1.06); opacity: 1; }
}

@keyframes vb-ban-float-2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.75; }
    50% { transform: translate(10px, -8px); opacity: 0.95; }
}

@keyframes vb-ban-float-3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.75; }
    50% { transform: translate(-10px, -8px); opacity: 0.95; }
}

.vb-ban-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 8px 12px 20px;
}

.vb-ban-lottie {
    width: 220px;
    height: 220px;
    margin: 0 auto 8px;
}

.vb-ban-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    margin: 0 0 12px;
}

.vb-ban-text {
    font-size: 15px;
    line-height: 1.5;
    color: #9f1239;
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    background: rgba(255, 241, 242, 0.9);
    white-space: pre-line;
    text-align: center;
}

.vb-ban-hint {
    font-size: 13px;
    color: #8a8a8e;
    margin: 0;
    line-height: 1.45;
}

/* Баннер cookies */
.vb-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200001;
    display: flex;
    justify-content: center;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    pointer-events: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}

.vb-cookie-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.vb-cookie-bar.is-hiding {
    opacity: 0;
    transform: translateY(16px);
}

.vb-cookie-bar-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 680px;
    padding: 14px 16px 14px 14px;
    border-radius: 20px;
    background: rgba(15, 15, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
}

.vb-cookie-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.vb-cookie-copy {
    flex: 1;
    min-width: 0;
}

.vb-cookie-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 3px;
    letter-spacing: -0.2px;
}

.vb-cookie-text {
    font-size: 13px;
    line-height: 1.4;
    color: #94a3b8;
    margin: 0;
}

.vb-cookie-btn {
    flex-shrink: 0;
    padding: 11px 20px;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: #0a0a0b;
    background: var(--green);
    cursor: pointer;
    transition: background 0.2s var(--ease);
}

.vb-cookie-btn:hover {
    background: var(--green-bright);
}

.vb-cookie-btn:active {
    background: var(--green-dark);
}

@media (max-width: 560px) {
    .vb-cookie-bar-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .vb-cookie-copy {
        flex: 1 1 calc(100% - 58px);
    }

    .vb-cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

.vb-auth-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(900px 500px at 20% 0%, rgba(46, 204, 113, 0.12), transparent 60%),
        radial-gradient(700px 400px at 90% 10%, rgba(46, 204, 113, 0.06), transparent 55%),
        var(--bg);
}

.vb-auth-card {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.vb-auth-logo {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--green-bright);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.vb-auth-sub {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 28px;
    line-height: 1.45;
}

.vb-auth-widget {
    display: flex;
    justify-content: center;
    min-height: 48px;
    margin-bottom: 8px;
}

.vb-auth-or {
    margin: 18px 0 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.vb-auth-status {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-2);
    text-align: center;
    min-height: 18px;
}

.vb-auth-status.is-error {
    color: #ff8f87;
}

.vb-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.vb-auth-link:hover {
    border-color: var(--green);
    color: #fff;
}

.vb-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    background: #2aabee;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
    box-shadow: 0 8px 28px rgba(42, 171, 238, 0.35);
}

.vb-auth-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.vb-auth-btn i {
    font-size: 20px;
}

.vb-auth-hint {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.4;
}

/* Telegram Mini App */
html.tg-env {
    height: 100%;
}

body.tg-mini-app {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

body.tg-mini-app .navbar {
    top: env(safe-area-inset-top);
}

body.tg-mini-app .chat-container {
    height: calc(100dvh - 78px - env(safe-area-inset-top));
}

@media (max-width: 768px) {
    body.tg-mini-app.chat-page .chat-container {
        height: calc(100dvh - 64px - env(safe-area-inset-top));
    }
}

/* Профиль продавца */
.profile-page {
    background: var(--bg);
}

.profile-page .spf-balance-bar,
.profile-page .spf-stat,
.profile-page .spf-action:not(.spf-action-primary),
.profile-page .spf-panel,
.profile-page .spf-review-card,
.profile-page .spf-tag {
    background: #0c0c0e;
}

.profile-page .spf-tabs {
    background: #0a0a0b;
}

.profile-page .spf-tab.active {
    background: #0c0c0e;
}

.profile-page .spf-tab-panel {
    background: #0c0c0e;
}

.profile-page .spf-tab-panel:has(.vb-empty) {
    display: none;
}

.profile-page .spf-tab-panel.active:has(.vb-empty) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.profile-page .spf-tab-panel .vb-empty,
.profile-page .spf-reviews-list .vb-empty {
    border: none;
    background: transparent;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-page .spf-reviews-list:has(.vb-empty) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.profile-page .spf-cover {
    background:
        radial-gradient(800px 200px at 20% 0%, rgba(46, 204, 113, 0.12), transparent 60%),
        radial-gradient(600px 180px at 90% 20%, rgba(46, 204, 113, 0.05), transparent 55%),
        #0a0a0b;
}

.spf-page {
    padding-bottom: 40px;
}

.spf-hero {
    position: relative;
    border-bottom: 1px solid var(--line);
}

.spf-cover {
    height: 140px;
    background:
        radial-gradient(800px 200px at 20% 0%, rgba(46, 204, 113, 0.18), transparent 60%),
        radial-gradient(600px 180px at 90% 20%, rgba(46, 204, 113, 0.08), transparent 55%),
        linear-gradient(180deg, #121214 0%, #0a0a0b 100%);
}

.spf-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 22px;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: -44px;
    position: relative;
    z-index: 1;
}

.spf-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.spf-avatar-wrap img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
    background: var(--surface-2);
    box-shadow: var(--shadow-md);
}

.spf-tg-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2aabee;
    border: 3px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.spf-identity {
    min-width: 0;
    padding-bottom: 4px;
}

.spf-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spf-username {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 10px;
}

.spf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
}

.spf-tag-seller {
    color: var(--green-bright);
    border-color: rgba(46, 204, 113, 0.25);
    background: rgba(46, 204, 113, 0.08);
}

.spf-tag-admin {
    color: #b8a9ff;
    border-color: rgba(124, 108, 255, 0.28);
    background: rgba(124, 108, 255, 0.09);
}

.spf-tag-admin i {
    color: #9d8fff;
    font-size: 10px;
}

.spf-tag-premium {
    color: #f5c542;
    border-color: rgba(245, 197, 66, 0.25);
    background: rgba(245, 197, 66, 0.08);
}

.spf-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.spf-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.spf-balance-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.spf-balance-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-bright);
    font-size: 18px;
    flex-shrink: 0;
}

.spf-balance-label {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 2px;
}

.spf-balance-value {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.spf-balance-btn {
    flex-shrink: 0;
    padding: 11px 20px;
    border-radius: 12px;
    border: none;
    background: #fff;
    color: #0a0a0b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s var(--ease);
}

.spf-balance-btn:hover {
    opacity: 0.9;
}

.spf-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.spf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.spf-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.spf-stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.spf-stat-label {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
}

.spf-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spf-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.spf-action:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.spf-action-primary {
    background: #fff;
    color: #0a0a0b;
    border-color: #fff;
}

.spf-action-primary:hover {
    background: #f2f4f5;
    border-color: #f2f4f5;
}

.spf-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.spf-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.spf-tab {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.spf-tab:hover {
    color: var(--text-2);
}

.spf-tab.active {
    background: var(--surface);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.spf-tab-panel {
    display: none;
    padding: 18px;
}

.spf-tab-panel.active {
    display: block;
}

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

.spf-product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.spf-product-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.spf-product-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.spf-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spf-product-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.spf-product-status.active {
    background: rgba(46, 204, 113, 0.9);
    color: #04210f;
}

.spf-product-status.paused {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-2);
}

.spf-product-body {
    padding: 14px;
}

.spf-product-game {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spf-product-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.spf-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spf-product-price {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.spf-product-link {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
}

.spf-orders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spf-order-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
}

.spf-reviews-section {
    margin-top: 22px;
    padding-bottom: 10px;
}

.spf-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.spf-section-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.spf-section-sub {
    font-size: 13px;
    color: var(--text-3);
}

.spf-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(245, 197, 66, 0.12);
    border: 1px solid rgba(245, 197, 66, 0.25);
    color: #f5c542;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.spf-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spf-review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}

.spf-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.spf-review-buyer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.spf-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--line-strong);
}

.spf-review-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.spf-review-nick {
    font-size: 12px;
    color: var(--text-3);
}

.spf-stars-row {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.spf-stars-row i {
    font-size: 13px;
    color: var(--text-3);
}

.spf-stars-row i.filled {
    color: #f5c542;
}

.spf-stars-num {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
}

.spf-review-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 12px;
}

.spf-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.spf-review-purchase {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-bright);
}

.spf-review-purchase i {
    font-size: 11px;
    opacity: 0.8;
}

.spf-review-time {
    font-size: 12px;
    color: var(--text-3);
}

.spf-order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.spf-order-id {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
}

.spf-order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.spf-order-new {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
}

.spf-order-progress {
    background: rgba(245, 197, 66, 0.15);
    color: #f5c542;
}

.spf-order-done {
    background: rgba(46, 204, 113, 0.15);
    color: var(--green-bright);
}

.spf-order-buyer {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.spf-order-item {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 10px;
}

.spf-order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spf-order-sum {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.spf-order-time {
    font-size: 12px;
    color: var(--text-3);
}

@media (max-width: 768px) {
    .spf-cover {
        height: 100px;
    }

    .spf-hero-inner {
        margin-top: -32px;
        gap: 14px;
    }

    .spf-avatar-wrap img {
        width: 72px;
        height: 72px;
    }

    .spf-name {
        font-size: 20px;
    }

    .spf-balance-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .spf-balance-btn {
        width: 100%;
    }

    .spf-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .spf-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .spf-action-primary {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .spf-tab {
        font-size: 13px;
        padding: 10px 8px;
    }

    .spf-review-top {
        flex-direction: column;
    }

    .spf-stars-row {
        align-self: flex-start;
    }
}

/* ===== Empty states ===== */
.vb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    margin: 8px auto;
    max-width: 420px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.vb-empty-lg {
    max-width: 520px;
    padding: 64px 32px;
    margin: 24px auto 40px;
}

.vb-empty-compact {
    padding: 32px 20px;
    margin: 4px auto;
}

.vb-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    font-size: 26px;
    margin-bottom: 18px;
}

.vb-empty-lg .vb-empty-icon {
    width: 72px;
    height: 72px;
    font-size: 30px;
}

.vb-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.vb-empty-lg .vb-empty-title {
    font-size: 22px;
}

.vb-empty-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-3);
    max-width: 340px;
}

.vb-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--green);
    color: #04210f;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.vb-empty-btn:hover {
    opacity: 0.9;
}

.products-grid.vb-empty-grid,
.spf-products.vb-empty-grid,
#spfProducts:has(.vb-empty),
#spfOrders:has(.vb-empty),
#spfReviewsList:has(.vb-empty) {
    display: block;
}

.home-page.home-is-empty {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.home-page.home-is-empty .games-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 84px);
    padding: 24px 0;
}

.home-page.home-is-empty .games-container {
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.home-page.home-is-empty .vb-empty-lg {
    margin: 0 auto;
}

.games-container:has(.vb-empty) {
    justify-content: center;
}

.chat-list:has(.vb-empty) {
    padding: 12px;
}

.chat-list .vb-empty {
    max-width: none;
    border: none;
    background: transparent;
    padding: 40px 16px;
}

.chat-main-empty .chat-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-main-empty .chat-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.chat-main-empty .chat-messages .vb-empty {
    border: none;
    background: transparent;
}

/* Чаты — пустое состояние со скелетоном */
@keyframes vbSkShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.vb-sk-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.09) 45%,
        rgba(255, 255, 255, 0.04) 90%
    );
    background-size: 200% 100%;
    animation: vbSkShimmer 1.6s ease-in-out infinite;
}

.chat-page-empty .chat-list {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.chat-list-empty {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-skeleton-list {
    flex: 1;
    overflow: hidden;
    padding: 4px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0.55;
    filter: blur(0.3px);
}

.chat-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    border-radius: 14px;
}

.chat-sk-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-sk-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.chat-sk-line {
    height: 10px;
    border-radius: 6px;
}

.chat-sk-line-name {
    width: 58%;
    height: 12px;
}

.chat-sk-line-deal {
    width: 42%;
    height: 9px;
}

.chat-sk-line-msg {
    width: 72%;
    height: 9px;
}

.chat-sk-time {
    width: 28px;
    height: 9px;
    border-radius: 5px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
}

.chat-empty-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: linear-gradient(
        180deg,
        rgba(12, 12, 14, 0.35) 0%,
        rgba(12, 12, 14, 0.72) 45%,
        rgba(12, 12, 14, 0.88) 100%
    );
    pointer-events: none;
}

.chat-empty-card {
    text-align: center;
    max-width: 260px;
    padding: 22px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.chat-empty-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.12);
    color: var(--green);
    font-size: 20px;
}

.chat-empty-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.chat-empty-card-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-3);
}

.chat-main-empty-view {
    flex: 1;
    width: 100%;
    min-height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-main-empty-decor {
    position: absolute;
    inset: 0;
    padding: 56px 72px 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0.32;
    pointer-events: none;
}

.chat-decor-bubble {
    height: 58px;
    border-radius: 18px;
    flex-shrink: 0;
}

.chat-decor-in {
    width: min(440px, 46%);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.chat-decor-out {
    width: min(380px, 42%);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.chat-decor-sm {
    width: min(280px, 32%);
    height: 44px;
}

.chat-decor-md {
    width: min(320px, 36%);
    height: 50px;
}

.chat-main-empty-center {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
    padding: 36px 32px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.chat-main-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.12);
    color: var(--green);
    font-size: 24px;
}

.chat-main-empty-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.chat-main-empty-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-3);
    margin-bottom: 22px;
}

.chat-main-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--green);
    color: #04210f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.chat-main-empty-btn:hover {
    opacity: 0.9;
}

.chat-page-empty .chat-header {
    display: none !important;
}

.chat-page-empty .chat-input-wrap {
    display: none !important;
}

.chat-page-empty .chat-main,
.chat-page-empty .chat-sidebar {
    background: #0c0c0e;
}

.chat-page-empty .chat-messages {
    background: #0c0c0e;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
}

.chat-page-empty .chat-panel,
.chat-page-empty .chat-thread-view {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.chat-page-empty .chat-main {
    flex: 1;
    min-width: 0;
}

@media (min-width: 769px) {
    .chat-page-empty .chat-container {
        align-items: stretch;
    }

    .chat-page-empty .chat-main-empty-decor {
        padding: 64px 88px 56px;
    }

    .chat-main-empty-center {
        max-width: 460px;
        padding: 40px 36px;
    }
}

@media (max-width: 768px) {
    .chat-page-empty .chat-main {
        display: none !important;
    }

    .chat-page-empty .chat-sidebar {
        width: 100%;
        border: none;
        border-radius: 0;
    }

    .chat-page-empty .chat-list {
        overflow: hidden;
    }
}

.vb-loading-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-3);
    font-size: 22px;
}

.review-stars {
    color: #f5c542;
    font-size: 13px;
    letter-spacing: 1px;
    margin: 4px 0 6px;
}

.nav-badge[hidden] {
    display: none !important;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner-section[hidden] {
    display: none !important;
}

.banner-arrow[hidden],
.banner-dots:empty {
    display: none !important;
}

/* Профиль: режим гостя + поделиться */
.spf-visitor #spfBalanceBar,
.spf-visitor #spfNewProduct,
.spf-visitor #spfOrdersTab,
.spf-visitor #tab-orders {
    display: none !important;
}

.spf-share-sheet.modal {
    max-width: 440px;
    width: calc(100% - 32px);
    padding: 22px 20px 20px;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.spf-share-top {
    margin-bottom: 16px;
    padding-right: 28px;
}

.spf-share-top .spf-section-title {
    margin-bottom: 4px;
}

.spf-share-top .spf-section-sub {
    margin: 0;
}

.spf-share-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg);
}

.spf-share-profile-ava {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.spf-share-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.spf-share-profile-nick {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 2px;
}

.spf-share-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.spf-share-row-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spf-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color 0.2s var(--ease);
}

.spf-share-bar:focus-within {
    border-color: var(--line-strong);
}

.spf-share-bar-url {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spf-share-bar-btn {
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    background: #fff;
    color: #0a0a0b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.spf-share-bar-btn:hover {
    opacity: 0.92;
}

.spf-share-bar-btn.is-copied {
    background: var(--green);
    color: #04210f;
}

.spf-share-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.spf-share-foot {
    display: flex;
    gap: 10px;
}

.spf-share-foot .spf-action {
    flex: 1;
    justify-content: center;
    margin: 0;
}

.spf-share-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 1100;
    box-shadow: var(--shadow-md);
}

.spf-share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Профиль: продавец не найден */
.spf-not-found .spf-cover {
    filter: saturate(0.4) brightness(0.9);
}

.spf-not-found .spf-avatar-wrap.spf-avatar-missing img {
    object-fit: cover;
    opacity: 1;
}

.spf-not-found .spf-avatar-wrap.spf-avatar-missing::after {
    display: none;
}

.spf-tag-missing {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.08);
}

.spf-notfound-panel {
    margin-top: 4px;
}

.spf-notfound-empty {
    max-width: 480px;
    margin: 32px auto 40px;
    border: none;
    background: transparent;
}

.spf-notfound-search {
    width: 100%;
    max-width: 400px;
    margin-top: 24px;
    text-align: left;
}

.spf-notfound-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.spf-notfound-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s var(--ease);
}

.spf-notfound-bar:focus-within {
    border-color: var(--line-strong);
}

.spf-notfound-bar > i {
    color: var(--text-3);
    font-size: 14px;
    flex-shrink: 0;
}

.spf-notfound-bar:focus-within > i {
    color: var(--green);
}

.spf-notfound-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.spf-notfound-bar input::placeholder {
    color: var(--text-3);
}

.spf-notfound-go {
    flex-shrink: 0;
    padding: 9px 16px;
    border: none;
    border-radius: 9px;
    background: var(--green);
    color: #04210f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.spf-notfound-go:hover {
    opacity: 0.9;
}

.spf-notfound-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.spf-notfound-hints .spf-tag i {
    color: var(--green);
    font-size: 11px;
}

/* Профиль / чаты — без мигания до загрузки */
html.spf-pending .spf-hero,
html.spf-pending .spf-container {
    visibility: hidden;
}

.spf-boot-loader {
    display: none;
}

html.spf-pending .spf-boot-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 90px);
    color: var(--text-3);
    font-size: 28px;
}

html.chat-pending .chat-main {
    display: none !important;
}

html.chat-pending .chat-list {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.chat-list-boot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 48px 20px;
    color: var(--text-3);
    font-size: 24px;
}

.vb-empty-icon-img {
    background: #1a1a1e;
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 0;
}

.vb-empty-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ===== Admin panel ===== */
#navAdminLink {
    display: none !important;
}

#navAdminLink.is-admin {
    display: flex !important;
}

#navAdminLink.is-admin {
    color: var(--text-2);
}

#navAdminLink.is-admin i {
    color: var(--green-bright);
}

#navAdminLink.is-admin.active,
#navAdminLink.is-admin:hover {
    color: #fff;
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.18);
}

#navSellLink {
    display: none !important;
}

#navSellLink.is-seller {
    display: flex !important;
}

html.adm-pending .ax-page,
html.adm-pending .ax-denied {
    visibility: hidden;
}

.ax-denied[hidden],
.ax-page[hidden] {
    display: none !important;
    visibility: hidden !important;
}

.adm-boot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 90px);
    color: var(--text-3);
    font-size: 28px;
}

.adm-boot[hidden] {
    display: none !important;
}

.adm-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 90px);
    padding: 24px;
}

.adm-page {
    padding: 20px 0 48px;
    min-height: calc(100dvh - 72px);
}

body.admin-page {
    background: var(--bg);
}

.adm-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.adm-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.adm-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.adm-tab {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.adm-tab:hover {
    color: var(--text-2);
}

.adm-tab.active {
    background: var(--surface);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.adm-body {
    padding: 0;
}

.adm-panel {
    display: none;
    padding: 18px;
}

.adm-panel.active {
    display: block;
}

.adm-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.adm-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}

.adm-meta.is-warn {
    color: #ffc766;
}

.adm-toolbar-fill {
    flex: 1;
    min-width: 8px;
}


.adm-zone-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.adm-zone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.adm-zone-btn:hover {
    border-color: rgba(46, 204, 113, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.adm-zone-btn.active {
    border-color: rgba(46, 204, 113, 0.45);
    background: rgba(46, 204, 113, 0.12);
    color: var(--green-bright);
}

.adm-zone-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    flex-shrink: 0;
}

.adm-zone-icon i {
    font-size: 11px;
    color: inherit;
}

.adm-zone-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-limit-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adm-limit-box[hidden] {
    display: none !important;
}

.adm-limit-box label {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
}

.adm-limit-box input {
    width: 48px;
    padding: 7px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: #fff;
    font-size: 14px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color 0.25s var(--ease);
}

.adm-limit-box input:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.35);
}

.adm-limit-box input::-webkit-outer-spin-button,
.adm-limit-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
    white-space: nowrap;
}

.adm-btn:hover {
    border-color: var(--line-strong);
}

.adm-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: var(--green-glow);
}

.adm-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.adm-btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

.adm-btn-block {
    width: 100%;
    margin-top: 4px;
}

.adm-btn-primary {
    background: var(--green);
    color: #04210f;
    border-color: var(--green);
}

.adm-btn-ghost {
    background: transparent;
}

.adm-btn-danger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.08);
}

.adm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.adm-icon-btn:hover:not(:disabled) {
    border-color: var(--line-strong);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.adm-icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.adm-icon-danger:hover:not(:disabled) {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}

.adm-upload-card {
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
}

.adm-upload-card[hidden] {
    display: none !important;
}

.adm-upload-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.adm-upload-card-head h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.adm-upload-lead {
    font-size: 12px;
    color: var(--text-3);
    margin: 0;
}

.adm-upload-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 18px 18px;
}

.adm-upload-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.adm-zone-picker-inline {
    margin-bottom: 0;
}

.adm-upload-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.adm-upload-media {
    position: relative;
    min-height: 180px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.adm-upload-media.is-drag {
    border-color: rgba(46, 204, 113, 0.45);
    background: rgba(46, 204, 113, 0.06);
}

.adm-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.adm-upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: background 0.25s var(--ease);
}

.adm-upload-drop:hover {
    background: rgba(46, 204, 113, 0.05);
}

.adm-upload-drop[hidden] {
    display: none !important;
}

.adm-upload-drop i {
    font-size: 28px;
    color: var(--green);
}

.adm-upload-drop-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.adm-upload-drop-sub {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.45;
    max-width: 220px;
}

.adm-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    padding: 14px;
}

.adm-upload-preview[hidden] {
    display: none !important;
}

.adm-upload-preview img {
    width: 100%;
    max-height: 130px;
    border-radius: 10px;
    object-fit: cover;
}

.adm-upload-preview-logo {
    min-height: auto;
    padding: 12px;
}

.adm-upload-preview-logo .adm-upload-preview-frame {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
}

.adm-upload-preview-logo img {
    width: auto;
    height: auto;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 0;
}

.adm-upload-preview-banner .adm-upload-preview-frame-wide {
    width: 100%;
    max-width: 220px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
}

.adm-upload-preview-banner img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

#admGameLogoMedia {
    max-width: 180px;
}

.adm-upload-replace {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.adm-upload-replace:hover {
    border-color: rgba(46, 204, 113, 0.35);
    color: #fff;
}

.adm-upload-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-upload-fields .adm-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.adm-banner-zone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.adm-zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.adm-zone-chip:hover {
    border-color: var(--line-strong);
    color: #fff;
}

.adm-zone-chip.active {
    border-color: rgba(46, 204, 113, 0.45);
    background: rgba(46, 204, 113, 0.12);
    color: var(--green-bright);
}

.adm-zone-chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.adm-zone-chip-icon i {
    font-size: 9px;
}

.adm-zone-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-field-zone > span {
    display: block;
    margin-bottom: 6px;
}

.adm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.adm-field span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.adm-field input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: #fff;
    font-size: 14px;
    transition: border-color 0.25s var(--ease);
}

.adm-field input:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.35);
}

.adm-field-inline {
    gap: 4px;
}

.adm-banner-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-banner-row {
    display: grid;
    grid-template-columns: 40px 120px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}

.adm-banner-row:hover {
    border-color: var(--line-strong);
}

.adm-banner-row.is-off {
    opacity: 0.6;
}

.adm-banner-order-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.adm-banner-num {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-3);
    font-family: ui-monospace, monospace;
}

.adm-banner-thumb {
    position: relative;
    width: 120px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.adm-banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-banner-status {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-3);
}

.adm-banner-status.on {
    color: var(--green-bright);
    background: rgba(46, 204, 113, 0.2);
}

.adm-banner-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.adm-banner-fields input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #0a0a0b;
    color: #fff;
    font-size: 13px;
    width: 100%;
}

.adm-field-zone {
    margin-top: 2px;
}

.adm-banner-actions-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adm-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 36px 20px;
    border-radius: 14px;
    border: 1px dashed var(--line);
}

.adm-empty-card > i {
    font-size: 32px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.adm-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.adm-empty-text {
    font-size: 13px;
    color: var(--text-3);
    max-width: 280px;
    line-height: 1.45;
    margin-bottom: 8px;
}

.adm-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.adm-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color 0.25s var(--ease);
}

.adm-search-bar:focus-within {
    border-color: rgba(46, 204, 113, 0.3);
}

.adm-search-bar i {
    color: var(--text-3);
    font-size: 14px;
}

.adm-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.adm-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}

.adm-user-card:hover {
    border-color: var(--line-strong);
}

.adm-user-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-2);
    border: 2px solid var(--line);
}

.adm-user-info {
    flex: 1;
    min-width: 0;
}

.adm-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-user-nick {
    font-size: 13px;
    color: var(--green-bright);
    margin-top: 1px;
}

.adm-user-id {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
    font-family: ui-monospace, monospace;
}

.adm-you-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green-bright);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.adm-empty-note {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
    border-radius: 14px;
    border: 1px dashed var(--line);
}

.adm-list-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.adm-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(0);
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 1100;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.adm-toast[hidden] {
    display: block !important;
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

.adm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adm-modal[hidden] {
    display: none !important;
}

.adm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.adm-modal-card {
    position: relative;
    width: min(100%, 380px);
    padding: 22px 22px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.adm-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: var(--green-bright);
    font-size: 20px;
}

.adm-modal-icon.is-danger {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.25);
    color: #f87171;
}

.adm-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.adm-modal-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-3);
    margin-bottom: 18px;
}

.adm-modal-actions {
    display: flex;
    gap: 10px;
}

.adm-modal-actions .adm-btn {
    flex: 1;
}

body.adm-modal-open {
    overflow: hidden;
}

.adm-zone-picker[hidden],
.adm-upload-section[hidden] {
    display: none !important;
}

.adm-game-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.adm-game-row {
    display: grid;
    grid-template-columns: 40px 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}

.adm-game-row.is-selected {
    border-color: rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.05);
    box-shadow: inset 3px 0 0 var(--green);
}

.adm-game-row:not(.is-selected):hover {
    border-color: var(--line-strong);
}

.adm-game-row.is-off {
    opacity: 0.55;
}

.adm-game-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.adm-game-thumb-ph {
    color: var(--text-3);
    font-size: 18px;
}

.adm-game-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.adm-game-slug {
    font-size: 12px;
    color: var(--text-3);
}

.adm-game-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.adm-game-cat-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.adm-game-row.is-selected .adm-game-cat-badge {
    color: var(--green-bright);
    border-color: rgba(46, 204, 113, 0.25);
    background: rgba(46, 204, 113, 0.08);
}

.adm-game-select.active {
    border-color: rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.12);
    color: var(--green-bright);
}

.adm-cat-panel-inline {
    margin: -4px 0 10px 52px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
}

.adm-cat-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.adm-cat-panel-head .adm-section-sub strong {
    color: var(--green-bright);
    font-weight: 700;
}

.adm-game-actions-col {
    display: flex;
    gap: 6px;
}

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

.adm-game-form-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-upload-media-sm {
    min-height: 100px;
}

.adm-upload-drop-sm {
    min-height: 100px;
    padding: 14px;
}

.adm-upload-drop-sm .adm-upload-drop-title {
    font-size: 12px;
}

.adm-cat-panel {
    margin-top: 8px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg);
}

.adm-cat-panel[hidden] {
    display: none !important;
}

.adm-cat-panel-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.adm-cat-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}

.adm-section-sub {
    font-size: 12px;
    color: var(--text-3);
}

.adm-cat-add {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

.adm-cat-add input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: #fff;
    font-size: 14px;
    transition: border-color 0.25s var(--ease);
}

.adm-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-cat-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.adm-cat-row:hover {
    border-color: var(--line-strong);
}

.adm-cat-row.is-off {
    opacity: 0.55;
}

.adm-cat-name-inp {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.25s var(--ease);
}

.adm-cat-actions {
    display: flex;
    gap: 6px;
}

@media (max-width: 900px) {
    .adm-container {
        padding: 0 14px;
    }

    .adm-tab {
        padding: 10px 8px;
        font-size: 13px;
    }

    .adm-panel {
        padding: 14px;
    }

    .adm-upload-main {
        grid-template-columns: 1fr;
    }

    .adm-game-form-grid {
        grid-template-columns: 1fr;
    }

    .adm-game-row {
        grid-template-columns: 36px 48px 1fr;
        grid-template-rows: auto auto;
    }

    .adm-cat-panel-inline {
        margin-left: 0;
    }

    .adm-game-actions-col {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .adm-banner-row {
        grid-template-columns: 36px 1fr;
        grid-template-rows: auto auto;
    }

    .adm-banner-thumb {
        grid-column: 2;
        width: 100%;
        height: 80px;
    }

    .adm-banner-fields {
        grid-column: 1 / -1;
    }

    .adm-banner-actions-col {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }

    .adm-toolbar {
        gap: 8px;
    }

    .adm-search-row {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .adm-limit-box label {
        display: none;
    }
}

/* ===== Admin v73 — site-native ===== */
.admin-page .adm-main {
    padding-bottom: 48px;
}

.admin-page .spf-container {
    padding-bottom: 0;
}

.admin-page .spf-panel {
    background: #0c0c0e;
}

.admin-page .spf-tabs {
    background: #0a0a0b;
}

.admin-page .spf-tab.active {
    background: #0c0c0e;
}

.admin-page .adm-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-page .adm-bar-search {
    gap: 8px;
}

.admin-page .adm-bar-fill {
    flex: 1;
    min-width: 8px;
}

.admin-page .adm-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}

.admin-page .adm-count.is-warn {
    color: #ffc766;
}

.admin-page .adm-inline-search.search-bar {
    flex: 1;
    min-width: 0;
    height: 44px;
}

.admin-page .adm-inline-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.admin-page .adm-limit-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-page .adm-limit-box label {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
}

.admin-page .adm-limit-box input {
    width: 44px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0a0a0b;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.admin-page .adm-mini-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0a0a0b;
    color: var(--text-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-page .adm-mini-btn:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.admin-page .adm-drawer {
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #0a0a0b;
    overflow: hidden;
}

.admin-page .adm-drawer[hidden] {
    display: none !important;
}

.admin-page .adm-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: #fff;
    font-size: 14px;
}

.admin-page .adm-drawer-body {
    padding: 14px;
}

.admin-page .adm-form-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.admin-page .adm-game-split .adm-game-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-page .adm-form-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-page .adm-form-submit {
    width: 100%;
    justify-content: center;
}

.admin-page .adm-inp {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0c0c0e;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.admin-page .adm-inp:focus {
    outline: none;
    border-color: var(--line-strong);
}

.admin-page .adm-drop {
    position: relative;
    min-height: 140px;
    border-radius: 14px;
    border: 1px dashed var(--line-strong);
    background: #0c0c0e;
    overflow: hidden;
}

.admin-page .adm-drop-sm {
    min-height: 100px;
}

.admin-page .adm-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.admin-page .adm-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: inherit;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
}

.admin-page .adm-drop-zone i {
    font-size: 22px;
    color: var(--green);
}

.admin-page .adm-drop-zone[hidden],
.admin-page .adm-drop-preview[hidden] {
    display: none !important;
}

.admin-page .adm-drop-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.admin-page .adm-drop-preview img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 10px;
    object-fit: contain;
}

.admin-page .adm-drop-preview-wide img {
    width: 100%;
    max-height: 72px;
    object-fit: cover;
}

.admin-page .adm-drop-preview-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.admin-page .adm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-page .adm-game-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.admin-page .adm-game-item {
    cursor: default;
    pointer-events: auto;
}

.admin-page .adm-game-item.is-off {
    opacity: 0.55;
}

.admin-page .adm-game-item.is-open {
    border-color: rgba(46, 204, 113, 0.35);
}

.admin-page .adm-game-item .game-card-info p {
    margin-bottom: 10px;
}

.admin-page .adm-game-ph {
    font-size: 28px;
    color: var(--text-3);
}

.admin-page .adm-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #0c0c0e;
}

.admin-page .adm-item.is-off {
    opacity: 0.55;
}

.admin-page .adm-item-thumb {
    width: 120px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0b;
}

.admin-page .adm-item-thumb img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
}

.admin-page .adm-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-page .adm-item-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.admin-page .adm-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.admin-page .adm-text-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.admin-page .adm-text-btn:hover:not(:disabled) {
    color: #fff;
}

.admin-page .adm-text-btn.is-on,
.admin-page .adm-text-btn.adm-game-select.is-on {
    color: var(--green-bright);
}

.admin-page .adm-text-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-page .adm-text-danger {
    color: #f87171;
}

.admin-page .adm-text-danger:hover:not(:disabled) {
    color: #fca5a5;
}

.admin-page .adm-zone-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-page .adm-zone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #0a0a0b;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.admin-page .adm-zone-btn.active {
    border-color: rgba(46, 204, 113, 0.35);
    color: var(--green-bright);
}

.admin-page .adm-zone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-page .adm-zone-chip {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #0a0a0b;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.admin-page .adm-zone-chip.active {
    border-color: rgba(46, 204, 113, 0.35);
    color: var(--green-bright);
}

.admin-page .adm-user-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-page .adm-user-row {
    cursor: default;
    border-radius: 14px;
}

.admin-page .adm-user-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.admin-page .adm-you {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-bright);
    flex-shrink: 0;
}

.admin-page .adm-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.admin-page .adm-cat-block {
    margin-top: -4px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #0a0a0b;
}

.admin-page .adm-cat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 14px;
}

.admin-page .adm-cat-head strong {
    flex: 1;
    min-width: 0;
}

.admin-page .adm-cat-add {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-page .adm-cat-add .spf-action {
    padding: 11px 16px;
}

.admin-page .adm-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-page .adm-cat-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 8px;
    align-items: center;
}

.admin-page .adm-cat-item.is-off {
    opacity: 0.55;
}

.admin-page .adm-cat-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}

.admin-page .adm-confirm-btns {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.admin-page .adm-confirm-btns .spf-action,
.admin-page .adm-confirm-btns .modal-ok {
    flex: 1;
}

@media (max-width: 768px) {
    .admin-page .adm-form-split,
    .admin-page .adm-game-split .adm-game-uploads {
        grid-template-columns: 1fr;
    }

    .admin-page .adm-item-fields {
        grid-template-columns: 1fr;
    }

    .admin-page .adm-item {
        flex-direction: column;
    }

    .admin-page .adm-item-thumb {
        width: 100%;
    }

    .admin-page .adm-item-thumb img {
        height: 120px;
    }

    .admin-page .adm-cat-item {
        grid-template-columns: 1fr;
    }
}
