:root {
    --primary-color: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;

    --secondary-color: #1e293b;
    --secondary-light: #475569; /* светлее для границ/лейблов */
    --secondary-dark: #0f172a;

    --background-light: #0f172a;
    --background-dark: #020617;

    --text-light: #f1f5f9;  /* основной текст */
    --text-dark: #cbd5e1;   /* второстепенный */

    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;

    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
	
    --rarity-consumer-rgb:        148,163,184;   /* серый */
    --rarity-industrial-rgb:      96,165,250;    /* голубой */
    --rarity-milspec-rgb:         59,130,246;    /* синий */
    --rarity-restricted-rgb:      147,51,234;    /* фиолетовый */
    --rarity-classified-rgb:      236,72,153;    /* розовый */
    --rarity-covert-rgb:          239,68,68;     /* красный */
    --rarity-exotic-rgb:          196,69,255;    /* фиолетово-розовый */
    --rarity-extraordinary-rgb:   250,204,21;    /* золотой */
    --rarity-base-rgb:            255,255,255;   /* нейтральный */
    --rarity-other-rgb:           255,255,255;   /* слабый нейтральный */	
}
[hidden] {
	display: none !important;
}
/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Убираем стрелки у input type=number во всех браузерах */
input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-dark);
	position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='noise'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/></filter><rect width='200' height='200' filter='url(%23noise)'/></svg>");
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    color: var(--text-light);
}

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

/* ===== Header ===== */
.site-header {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oxanium', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
	max-height: 50px;
}
.logo img {
	height: 50px;
}

/* Контейнер навигации */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-right: auto;
    margin-left: 40px;	
}

/* Ссылки */
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    position: relative;
    font-weight: 500;
    transition: color .2s ease;
}

.nav-links a:has(.nav-soon) {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hover — лёгкое выделение */
.nav-links a:hover {
    color: var(--primary-light);
}

/* Активный пункт меню */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Стили для бейджа "Скоро" */
.nav-soon {
    background: var(--primary-color);
    color: #fff;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* Чуть темнее при наведении */
.nav-links a:hover .nav-soon {
    background: var(--primary-dark);
    opacity: 1;
}

/* Иконки FontAwesome делаем чуть ровнее */
.nav-links a i {
    font-size: 14px;
    opacity: 0.9;
    transition: opacity .2s ease;
}

.nav-links a:hover i {
    opacity: 1;
}


.nav-actions { display: flex; gap: 15px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 9px 18px;

    border-radius: var(--border-radius);
    cursor: pointer;

    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Лёгкое сияние + плавная заливка */
.btn-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(124, 58, 237, 0.25),
        rgba(124, 58, 237, 0.05)
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 14px rgba(124,58,237,0.35);
}


.btn-block { width: 100%; display: block; }

.btn-disabled { background-color: var(--secondary-light); color: var(--text-dark); cursor: not-allowed; }

/* ===== Main / Title ===== */
.main-content { padding: 40px 0; }

.page-title {
    margin-bottom: 30px;
    font-size: 32px;
    color: var(--text-light);
	text-align: center;
}

/* ===== Marketplace Grid ===== */
.marketplace-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* ===== Filters Sidebar ===== */
.filters-sidebar {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.filter-section { margin-bottom: 25px; }

.filter-section .filter-title{
    margin-bottom: 10px;
	display: flex;
    justify-content: space-between;
    align-items: center;
	cursor: pointer;
}

.filter-section .filter-title h3 {
    font-size: 18px;
	color: var(--text-light);
}

.filter-section .filter-title i {
    font-size: 18px;
	opacity: 0.25;
	transition: var(--transition);
}

.filter-section.active .filter-title i {
	transform: rotate(180deg);
}

.filter-section .filter-items {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition:	max-height 0.35s ease,	opacity 0.3s ease;
}

.filter-section.active .filter-items {
	max-height: 500px;
	opacity: 1;
}

.price-range { margin-bottom: 20px; }

.price-inputs { display: flex; gap: 15px; }
.price-input { flex: 1; }

.price-input label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-dark);
}

.filter-section input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--secondary-light);
    border-radius: var(--border-radius);
    font-size: 14px;
    background-color: var(--secondary-dark);
    color: var(--text-light);
}
.filter-section input:focus { outline: none; border-color: var(--primary-color); }

/* ===== Checkbox ===== */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    color: var(--text-light);
}

.checkbox-container input {
    position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0;
}

.checkmark {
    position: absolute; top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: var(--secondary-dark);
    border: 2px solid var(--secondary-light);
    border-radius: 4px;
    transition: var(--transition);
}
.checkbox-container:hover input ~ .checkmark { border-color: var(--primary-color); }
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after {
    left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ===== Skins Grid ===== */
.skins-grid {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;	
}

.skins-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count { color: var(--text-dark); font-size: 14px; }
.results-count i {
	color: var(--primary-light);
}
.sort-options select {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-light);
    background-color: var(--secondary-dark);
    color: var(--text-light);
    font-size: 14px;
}
.sort-options select:focus {
	outline: none; 
	border-color: var(--primary-color);
}


/* Контейнер карточек */
.skins-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
	position: relative;
	height: 100%;
}

/* Карточка */
.skin-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.85); /* secondary-color с прозрачностью */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    backdrop-filter: blur(6px);
}

/* Hover эффект */
.skin-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0px 12px 28px rgba(0,0,0,0.35);
}

/* Блок изображения */
.skin-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
	overflow: hidden;
}

.skin-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0px 10px 12px rgba(0,0,0,0.6));
    transition: transform .25s ease;
}

.skin-card:hover .skin-image img {
    transform: scale(1.05);
}

/* БАЗОВЫЙ glow слоя */
.skin-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.40;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.05) 0,
            rgba(255,255,255,0.05) 1px,
            transparent 2px,
            transparent 8px
        );
}

.skin-image::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.35;
    filter: blur(26px);
    transition: .3s ease;
}

.skin-card:hover .skin-image::before {
    opacity: 0.55;
    filter: blur(34px);
}

/* -------- RARITY GLOW -------- */

.skin-card.rarity-consumer .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-consumer-rgb), 0.65),
        transparent 70%
    );
}

.skin-card.rarity-industrial .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-industrial-rgb), 0.65),
        transparent 70%
    );
}

.skin-card.rarity-milspec .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-milspec-rgb), 0.65),
        transparent 70%
    );
}

.skin-card.rarity-restricted .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-restricted-rgb), 0.65),
        transparent 70%
    );
}

.skin-card.rarity-classified .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-classified-rgb), 0.65),
        transparent 70%
    );
}

.skin-card.rarity-covert .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-covert-rgb), 0.65),
        transparent 70%
    );
}

.skin-card.rarity-exotic .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-exotic-rgb), 0.65),
        transparent 70%
    );
}

.skin-card.rarity-extraordinary .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-extraordinary-rgb), 0.7),
        transparent 70%
    );
}

.skin-card.rarity-base .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-base-rgb), 0.15),
        transparent 70%
    );
}

.skin-card.rarity-other .skin-image::before {
    background: radial-gradient(circle,
        rgba(var(--rarity-other-rgb), 0.1),
        transparent 70%
    );
}

/* Информация */
.skin-info {
    padding: 14px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Название */
.skin-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.4;
    min-height: 40px;
}

/* Цена */
.skin-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0;
}

/* Блок кнопки и цены */
.skin-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Кнопка */
.skin-actions .btn {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
}

/* ===== FAQ ===== */
.faq-container {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 15px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
}
.faq-question h3 { font-size: 18px; color: var(--text-light); }

.toggle-icon { transition: var(--transition); color: var(--text-light); }

.faq-answer {
    overflow: hidden; padding-top: 0; display: none; 
}
.faq-answer p { padding-top: 10px; color: var(--text-dark); }

.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .toggle-icon { transform: rotate(180deg); }

/* ===== Contact Support ===== */
.contact-support {
    text-align: center;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.contact-support h2 { color: var(--text-light); }
.contact-support p { color: var(--text-dark); }
.contact-support a {
	margin-top: 10px;
}
/* ===== Profile ===== */
.profile-container {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);  
}

.profile-header {
    display: flex; align-items: center; gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.user-avatar {
    width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--primary-color); flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-main-info { flex-grow: 1; }
.user-main-info h2 { font-size: 24px; margin-bottom: 10px; color: var(--text-light); }

.steam-id {
    display: flex; align-items: center; gap: 5px;
    color: var(--text-dark); margin-bottom: 15px;
}

.trade-url { display: flex; gap: 10px; }
.trade-url input {
    flex-grow: 1; padding: 10px 15px;
    border: 1px solid var(--secondary-light);
    border-radius: var(--border-radius);
    font-size: 14px;
    background-color: var(--secondary-dark);
    color: var(--text-light);
}
.trade-url input:focus { outline: none; border-color: var(--primary-color); }

.trade-url-container {
    background-color: var(--background-light);
    padding: 15px; border-radius: var(--border-radius); width: 100%;
}
.trade-url-container h3 { font-size: 14px; color: var(--text-dark); margin-bottom: 10px; }
.trade-url-container a {
	color: var(--primary-color);
	opacity: 0.8;
	text-decoration: none;
	transition: opacity .2s ease;
}
.trade-url-container a:hover {
	opacity: 1;
}

/* Tabs */
.profile-tabs { display: flex; gap: 10px; margin-bottom: 20px; }

.tab-btn {
    padding: 10px 20px; background-color: transparent; border: none;
    border-radius: var(--border-radius); cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-dark); transition: var(--transition);
}
.tab-btn:hover { background-color: var(--background-light); }
.tab-btn.active { background-color: var(--primary-color); color: #fff; }

/* Profile content */
.profile-content {
    background-color: var(--secondary-dark);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
	position: relative;
	min-height: 250px;
}

.content-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.content-header h2 { font-size: 24px; color: var(--text-light); }

/* Inventory */
/* Один предмет = одна строка */
.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* БАЗОВАЯ КАРТОЧКА */
.inventory-item {
    display: flex;
    align-items: stretch;
    width: 100%;

    background: rgba(30,41,59,0.85);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);

    overflow: hidden;
    transition: .25s ease;

    /* базовое значение rarity, переопределяется ниже */
    --rarity-rgb: var(--rarity-base-rgb);
}

.inventory-item:hover {
    border-color: rgba(124,58,237,0.35);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* ИЗОБРАЖЕНИЕ */
.item-image {
    width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 6px;
    background: radial-gradient(circle at 50% 30%, #1b1f2e, #0f172a 80%);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;

    z-index: 0; /* ВАЖНО! Создаёт новый контекст наложения */
}

/* --- LAYER 1: сетка + тинт + цветная полоска */
.item-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    background-image:
        /* очень мягкая диагональная сетка */
        repeating-linear-gradient(
            45deg,
            rgba(var(--rarity-rgb), 0.07) 0px,
            rgba(var(--rarity-rgb), 0.07) 1px,
            transparent 2px,
            transparent 8px
        ),
        /* мягкий rarity-тинт */
        radial-gradient(
            circle at 50% 30%,
            rgba(var(--rarity-rgb), 0.12),
            rgba(var(--rarity-rgb), 0) 60%
        );

    background-size:
        auto,
        100% 100%;

    background-repeat: repeat, no-repeat;
    background-position: center, center;
}


/* --- LAYER 2: нижний fade */
.item-image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 45%;
    pointer-events: none;
    z-index: 2; /* поверх сетки */

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0.45) 100%
    );
}

/* IMG */
.item-image img {
    position: relative;
    z-index: 3; /* картинка всегда сверху */

    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0,0,0,0.55));
    transition: .25s ease;
}

.inventory-item:hover .item-image img {
    transform: scale(1.05);
}

/* ИНФО */
.item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 6px 16px;
    gap: 6px;
}

.item-info h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
}

.item-price {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-light);
}

/* ACTION BUTTONS */
.item-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 6px 16px;
    flex-shrink: 0;
    min-width: 220px;
}

.item-actions .btn {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
}

/* === RARITY: привязка переменных === */
.inventory-item.rarity-consumer      { --rarity-rgb: var(--rarity-consumer-rgb); }
.inventory-item.rarity-industrial    { --rarity-rgb: var(--rarity-industrial-rgb); }
.inventory-item.rarity-milspec       { --rarity-rgb: var(--rarity-milspec-rgb); }
.inventory-item.rarity-restricted    { --rarity-rgb: var(--rarity-restricted-rgb); }
.inventory-item.rarity-classified    { --rarity-rgb: var(--rarity-classified-rgb); }
.inventory-item.rarity-covert        { --rarity-rgb: var(--rarity-covert-rgb); }
.inventory-item.rarity-exotic        { --rarity-rgb: var(--rarity-exotic-rgb); }
.inventory-item.rarity-extraordinary { --rarity-rgb: var(--rarity-extraordinary-rgb); }
.inventory-item.rarity-base          { --rarity-rgb: var(--rarity-base-rgb); }
.inventory-item.rarity-other         { --rarity-rgb: var(--rarity-other-rgb); }

/* ===== Footer ===== */
.site-footer {
    background-color: var(--secondary-dark);
    color: var(--text-dark);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-section p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-dark); /* мягкий светло-серый */
    text-decoration: none;
    font-size: 15px;
    transition: color .2s ease, padding-left .2s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-light); /* фиолетовый ховер */
    padding-left: 4px; /* лёгкий сдвиг вправо */
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.9;
}

.footer-payment img {
    height: 22px;
    opacity: 0.45;
    transition: opacity .25s ease, transform .25s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.footer-payment img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
	text-align: center;
}

/*docs*/
.privacy p {
	text-wrap: pretty;
}
.privacy h2 {
	text-align: center;
}
.privacy h3 {
	display: inline-block;
}

.privacy ol li {
    line-height: 1.5;
    margin-bottom: 10px;
}

.privacy ol li ol {
    margin-top: 10px;
    padding-left: 20px
}

.privacy ol li ul{
	padding-left: 20px;
    list-style: disc;
}
.privacy ul li{
    list-style: disc;
}

.privacy ol {
	counter-reset: item;
	list-style: none;
}
.privacy ol li:before {
    content: counters(item,".") ". ";
    counter-increment: item;
    color: var(--links-hover);
}
.privacy ol li ul li:before{
    display: none;
}
.privacy_table {
	margin: 20px 0;
}
.privacy_table h3{
	display: block;
	text-align: center;
}

.privacy_table table {
	width: 100%;
}
.privacy_table td, .privacy_table th{
	border: 1px solid var(--text-light);
    padding: 2px;
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 6px;

    background: rgba(255,255,255,0.05);
    padding: 8px 14px;
    border-radius: 10px;

    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;

    border: 1px solid rgba(255,255,255,0.12);

    transition: all 0.25s ease;

    backdrop-filter: blur(6px);
}

.header-balance i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Hover эффект */
.header-balance:hover {
    border-color: rgba(124,58,237,0.45);
    background: rgba(124,58,237,0.12);
    box-shadow: 0 0 12px rgba(124,58,237,0.35);
}

.balance-amount {
    white-space: nowrap;
}

.btn-w142px {
	width: 142px;
}

/* === ДВУХКОЛОНОЧНЫЙ МАКЕТ === */
.topup-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    max-width: 900px;
    margin: 0 auto;	
}

.topup-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.topup-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    min-width: 280px;
}

/* === ТАБЛИЦА === */
.topup-summary h3 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 17px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);	
}

.summary-table td {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-dark);
}

.summary-table .total td {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    color: var(--text-light);
}

/* === EMAIL === */
.topup-email {
    margin-top: 20px;
}

.topup-email label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.topup-email input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--secondary-light);
    background-color: var(--secondary-dark);
    color: var(--text-light);
    font-size: 15px;
    outline: none;
    transition: .25s;
}

.topup-email input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(124,58,237,0.35);
}

/* === КНОПКА === */
.topup-right .topup-submit {
    margin-top: 25px;
}

/* Ввод суммы */
.topup-field label {
    display: block;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.topup-input-wrapper {
    position: relative;
}

.topup-input-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border-radius: 10px;
    border: 1px solid var(--secondary-light);
    background-color: var(--secondary-dark);
    color: var(--text-light);
    font-size: 18px;
    outline: none;
    transition: .25s;
}

.topup-input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(124,58,237,0.35);
}

.topup-input-wrapper .currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-light);
    font-size: 16px;
}

/* Пресеты сумм */
.topup-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text-light);
    transition: .25s ease;
    font-size: 15px;
	flex: 1 1 30%;
}

.preset-btn:hover {
    background: rgba(124,58,237,0.22);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Методы */
.topup-methods h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.method-card {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.method-card input {
    display: none;
}

.method-card-empty {
	padding: 15px;
    background-color: #F44336;
    border-radius: 8px;
    text-align: center;	
}

.method-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    transition: .25s;
}

.method-content i {
    color: var(--primary-color);
    font-size: 18px;
}

.method-card input:checked + .method-content {
    border-color: var(--primary-color);
    background: rgba(124,58,237,0.18);
    box-shadow: 0 0 12px rgba(124,58,237,0.25);
}

/* Кнопка */
.topup-submit {
    margin-top: 20px;
}

.topup-submit button {
	width: 100%;
	padding: 15px;
	font-size: 1rem;
}

/* ==========================================================================
   ITEM PAGE LAYOUT
   ========================================================================== */

.item-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 25px;

    /* default rarity value */
    --rarity-rgb: var(--rarity-base-rgb);
}

@media (max-width: 900px) {
    .item-page {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   LEFT IMAGE BOX CONTAINER
   ========================================================================== */

.item-image-box {
    background: rgba(30,41,59,0.75);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    overflow: hidden;
    position: relative;
}

/* сетка поверх контейнера */
.item-image-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    opacity: 0.45;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05) 0,
        rgba(255,255,255,0.05) 1px,
        transparent 2px,
        transparent 8px
    );
}


/* ==========================================================================
   IMAGE + RARITY GLOW
   ========================================================================== */

.item-main-image {
    position: relative;
    z-index: 2;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* важно */
}

/* GLOW (как в skin-card) */
.item-main-image::before {
    content: "";
    position: absolute;
    inset: -25px;              /* glow выходит за рамки */
    z-index: -1;
    border-radius: 18px;

    opacity: 0.65;
    filter: blur(40px);
    transition: .35s ease;

    background: radial-gradient(
        circle,
        rgba(var(--rarity-rgb), 0.75) 0%,
        rgba(var(--rarity-rgb), 0.25) 40%,
        transparent 75%
    );
}

/* сетка поверх glow */
.item-main-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    opacity: 0.35;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05) 0,
        rgba(255,255,255,0.05) 1px,
        transparent 2px,
        transparent 8px
    );
}

/* Hover — glow усиливается */
.item-image-box:hover .item-main-image::before {
    opacity: 1;
    filter: blur(55px);
}

/* IMAGE */
.item-main-image img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 15px 12px rgba(0,0,0,0.55));
    transition: .25s ease;
}

.item-image-box:hover img {
    transform: scale(1.03);
}


/* ==========================================================================
   RIGHT INFO BOX
   ========================================================================== */

.item-info-box {
    background: rgba(30,41,59,0.8);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
	display: flex;
    flex-direction: column;
    justify-content: space-between;	
}


/* ==========================================================================
   PARAM BADGES (Категория / Качество / Редкость)
   ========================================================================== */

.item-params {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.param-pill,
.item-params li {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 8px 14px;
    border-radius: 8px;

    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;

    backdrop-filter: blur(4px);
}

.item-params li span {
    color: var(--text-light);
}

/* редкость */
.item-params .rarity-line {
    font-weight: 600;
    border-color: rgba(var(--rarity-rgb), 0.35);
    background: rgba(var(--rarity-rgb), 0.15);
    color: rgb(var(--rarity-rgb));
}


/* ==========================================================================
   PRICE + BUTTON
   ========================================================================== */

/* БЛОК ЦЕНЫ */
.item-price-box {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 25px 0 35px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);

    padding: 18px 25px;
    border-radius: 14px;

    backdrop-filter: blur(6px);

    position: relative;
    overflow: hidden;
}

/* слабая сетка внутри блока, как на изображениях */
.item-price-box::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    z-index: -1;

    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05) 0,
        rgba(255,255,255,0.05) 1px,
        transparent 2px,
        transparent 8px
    );
}

/* сама цена */
.item-price-big {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary-color);
}

.item-page .item-actions .btn {
    font-size: 18px;
    padding: 14px 0;
}


/* ==========================================================================
   RARITY DEFINITIONS
   ========================================================================== */

.item-page.rarity-consumer      { --rarity-rgb: var(--rarity-consumer-rgb); }
.item-page.rarity-industrial    { --rarity-rgb: var(--rarity-industrial-rgb); }
.item-page.rarity-milspec       { --rarity-rgb: var(--rarity-milspec-rgb); }
.item-page.rarity-restricted    { --rarity-rgb: var(--rarity-restricted-rgb); }
.item-page.rarity-classified    { --rarity-rgb: var(--rarity-classified-rgb); }
.item-page.rarity-covert        { --rarity-rgb: var(--rarity-covert-rgb); }
.item-page.rarity-exotic        { --rarity-rgb: var(--rarity-exotic-rgb); }
.item-page.rarity-extraordinary { --rarity-rgb: var(--rarity-extraordinary-rgb); }
.item-page.rarity-base          { --rarity-rgb: var(--rarity-base-rgb); }
.item-page.rarity-other         { --rarity-rgb: var(--rarity-other-rgb); }


/* ==== FULL BLOCK LOADER ==== */
.loader-container {
    width: 100%;
    min-height: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);

    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);

    position: absolute;
	inset: 0;
	z-index: 50;
    overflow: hidden;
}

/* подсветка фона */
.loader-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(124, 58, 237, 0.12),
        transparent 70%
    );
    z-index: 0;
}

/* ==== SPINNER ==== */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(124,58,237,0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
    z-index: 1;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==== TEXT ==== */
.loader-text {
    margin-top: 14px;
    font-size: 15px;
    color: var(--text-light);
    opacity: 0.65;
    letter-spacing: 0.3px;
    z-index: 1;
}

/* ==== UNIVERSAL EMPTY BLOCK ==== */
.empty-block {
    width: 100%;
    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);

    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);

    position: relative;
    overflow: hidden;
    text-align: center;

    padding: 30px 20px;
	grid-column: 1 / -1;
}

/* мягкая подсветка */
.empty-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(124, 58, 237, 0.10),
        transparent 70%
    );
    z-index: 0;
}

/* иконка */
.empty-block-icon {
    font-size: 48px;
    color: var(--primary-light);
    opacity: 0.85;
    margin-bottom: 12px;
    z-index: 1;
}

/* текст */
.empty-block-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-light);
    opacity: 0.85;
    z-index: 1;
}

.inventory-action {
	display: flex;
    justify-content: center;
    align-items: center;
	grid-column: 1 / -1;
}

.loader-dots {
  display: inline-block;
  animation: dots-blink 1s infinite steps(3, end);
}

@keyframes dots-blink {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

/* === ОБЩАЯ ОСНОВА MODAL/CONFIRM=== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	backdrop-filter: blur(6px);
}

.modal-overlay.show {
	opacity: 1;
	pointer-events: auto;
}

.modal-box {
	background: var(--secondary-color);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 25px 30px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	max-width: 380px;
	width: 90%;
	color: var(--text-light);
	backdrop-filter: blur(8px);
	transform: scale(0.95);
	transition: transform 0.25s ease;
}

.modal-overlay.show .modal-box {
	transform: scale(1);
}

.modal-actions {
	margin-top: 18px;
	display: flex;
	justify-content: center;
	gap: 15px;
}

.hidden {
	display: none !important;
}

.modal-text {
	font-size: 15px;
	opacity: 0.85;
}

/* === МОДАЛКА ПОКУПКИ === */
.modal-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.modal-item-image {
	width: 120px;
	height: 120px;
	object-fit: contain;
	filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.5));
}

.modal-item-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-light);
}

body:has(.modal-overlay.show) {
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: contain;
}