* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-hover: #252535;
    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --accent-green: #00d26a;
    --accent-green-dark: #00a855;
    --accent-red: #ff4757;
    --accent-red-dark: #cc3a47;
    --accent-blue: #4a90d9;
    --border-color: #2a2a3a;
    --gradient-green: linear-gradient(135deg, #00d26a 0%, #00a855 100%);
    --gradient-red: linear-gradient(135deg, #ff4757 0%, #cc3a47 100%);
    --gradient-blue: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow-green: 0 0 20px rgba(0, 210, 106, 0.3);
    --shadow-glow-red: 0 0 20px rgba(255, 71, 87, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 120px;
}

/* Заголовок */
.header {
    --header-stack-gap: 16px;
    text-align: center;
    margin-bottom: var(--header-stack-gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--header-stack-gap);
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #8b8b9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-switch {
    display: inline-flex;
    gap: 6px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.platform-btn-label {
    display: inline-flex;
    align-items: center;
}

.platform-gear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.platform-btn:hover .platform-gear-btn {
    color: var(--text-primary);
}

.platform-gear-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.platform-btn.active .platform-gear-btn {
    color: rgba(255, 255, 255, 0.9);
}

.platform-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.platform-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.platform-btn.active {
    background: var(--gradient-blue);
    color: #fff;
    box-shadow: var(--shadow);
}

.platform-settings {
    margin-top: 0;
    display: flex;
    justify-content: center;
}

.platform-setting {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 12px;
}

.platform-setting-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.platform-setting-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.platform-setting-controls input {
    width: 52px;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
    outline: none;
    appearance: textfield;
}

.platform-setting-controls input::-webkit-outer-spin-button,
.platform-setting-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.platform-setting-controls input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.platform-setting-controls input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
}

.platform-setting-suffix {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 12px;
}

#savePlayerokFeeBtn {
    padding: 8px 14px;
    min-width: 96px;
}

.platform-setting.visible {
    display: inline-flex;
}

/* Навигация */
.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--gradient-blue);
    color: #fff;
    box-shadow: var(--shadow);
}

.tab-icon {
    font-size: 16px;
}

/* Контент вкладок */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* График */
.chart-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.chart-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-scale {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-scale .period-btn {
    min-width: 70px;
    text-align: center;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.chart-btn,
.period-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.chart-btn:hover,
.period-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.chart-btn.active,
.period-btn.active {
    background: var(--gradient-blue);
    border-color: transparent;
    color: #fff;
}

.date-range input[type="date"] {
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
}

.date-range span {
    color: var(--text-secondary);
}

.chart-container {
    height: 250px;
    position: relative;
}

/* Контролы */
.controls {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.item-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-selector label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.item-selector select {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 150px;
}

.item-type-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item-type-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.item-type-input:focus {
    border-color: rgba(74, 163, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.18);
}

.item-type-suggest {
    position: absolute;
    z-index: 2000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}

.item-type-suggest.hidden {
    display: none;
}

.item-type-suggest-item {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.item-type-suggest-item:last-child {
    border-bottom: none;
}

.item-type-suggest-item:hover,
.item-type-suggest-item.active {
    background: var(--bg-hover);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.btn-icon:disabled {
    cursor: wait;
    opacity: 0.55;
}

/* Переключатель */
.equalize-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.equalize-toggle span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--gradient-green);
    border-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

/* Карточки статистики */
.stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.income {
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.15) 0%, rgba(0, 168, 85, 0.1) 100%);
    border-color: rgba(0, 210, 106, 0.3);
}

.stat-card.expense {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, rgba(204, 58, 71, 0.1) 100%);
    border-color: rgba(255, 71, 87, 0.3);
}

.stat-icon {
    font-size: 40px;
}

.stat-info h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card.income .stat-info h3 { color: var(--accent-green); }
.stat-card.expense .stat-info h3 { color: var(--accent-red); }

.stat-info .amount {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-info .quantity {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Прибыль */
.profit-display {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.profit-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profit-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-green);
}

.profit-amount.negative {
    color: var(--accent-red);
}

/* Статистика по типам */
.item-stats {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.item-stats h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.item-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-stat-row:last-child {
    border-bottom: none;
}

.item-stat-name {
    font-weight: 600;
    flex: 1;
}

.item-stat-values {
    display: flex;
    gap: 24px;
    font-size: 13px;
}

.item-stat-bought { color: var(--accent-red); }
.item-stat-sold { color: var(--accent-green); }

/* Инвентарь */
.inventory-header {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    text-align: center;
}

.inventory-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.inventory-subtitle {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.inventory-empty {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    color: var(--text-secondary);
    text-align: center;
}

.inventory-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(74, 144, 217, 0.6);
}

.inventory-card-empty {
    opacity: 0.7;
}

.inventory-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(circle at 30% 30%, rgba(74, 144, 217, 0.18), rgba(0,0,0,0) 55%),
                linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.0));
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inventory-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 28px;
    color: rgba(255,255,255,0.75);
}

.inventory-info {
    padding: 12px 12px 14px 12px;
}

.inventory-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
    max-height: 34px;
    overflow: hidden;
}

.inventory-counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.inventory-count {
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.inventory-count.bought { color: var(--accent-red); }
.inventory-count.sold { color: var(--accent-green); }

.inventory-left {
    font-size: 12px;
    color: var(--text-secondary);
}

.inventory-left-value {
    font-weight: 800;
    color: var(--text-primary);
}

.inventory-min {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.inventory-min-value {
    font-weight: 800;
    color: var(--text-primary);
}

.inventory-card-empty .inventory-left-value {
    color: var(--accent-red);
}

.inventory-img-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(18, 18, 26, 0.7);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.inventory-img-btn:hover {
    transform: scale(1.06);
    background: rgba(37, 37, 53, 0.8);
}

/* Календарь */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.calendar-month-info {
    text-align: center;
}

.month-profit {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.month-profit.positive {
    color: var(--accent-green);
}

.month-profit.negative {
    color: var(--accent-red);
}

.month-profit.neutral {
    color: var(--text-secondary);
    opacity: 0.8;
}

.btn-nav {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.weekday {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    min-height: 60px;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.calendar-day.has-data {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
}

.calendar-day.has-data.negative {
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow-red);
}

.calendar-day .day-number {
    font-size: 14px;
    font-weight: 600;
}

.calendar-day .day-profit {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

.calendar-day .day-profit.positive,
.calendar-day .day-profit.day-profit-pos { color: var(--accent-green); }
.calendar-day .day-profit.negative,
.calendar-day .day-profit.day-profit-neg { color: var(--accent-red); }

/* Детали дня */
.day-details {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.day-details.hidden { display: none; }

.day-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.day-details h3 {
    font-size: 18px;
    margin: 0;
}

.close-day-details {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-day-details:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-red);
}

.day-rate-info {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

/* Курс юаня */
#rate h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.rate-form {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.rate-history {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.rate-summary {
    margin-bottom: 12px;
}

.rate-history h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.rate-item:last-child { border-bottom: none; }

.rate-item .rate-value {
    font-weight: 700;
    color: var(--accent-green);
    font-size: 16px;
}

.rate-item .rate-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.rate-item .delete-rate {
    background: var(--gradient-red);
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rate-item .delete-rate:hover {
    box-shadow: var(--shadow-glow-red);
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 12px;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.btn-action {
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-income {
    background: var(--gradient-green);
    color: #fff;
    box-shadow: var(--shadow-glow-green);
}

.btn-income:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 210, 106, 0.5);
}

.btn-expense {
    background: var(--gradient-red);
    color: #fff;
    box-shadow: var(--shadow-glow-red);
}

.btn-expense:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.5);
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover { color: var(--text-primary); }

.modal-content h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 22px;
    font-weight: 700;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    background: var(--gradient-blue);
    border: none;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.4);
    transform: translateY(-1px);
}

/* Добавление типа вещей */
.add-item-row {
    display: flex;
    gap: 12px;
}

.add-item-row input { flex: 1; }

.add-item-row .btn-primary {
    width: auto;
    padding: 14px 24px;
}

.set-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.alias-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.set-item-row .remove-set-item {
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    background: var(--gradient-red);
    transition: all 0.3s ease;
}

.alias-item-row .remove-alias-item {
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    background: var(--gradient-red);
    transition: all 0.3s ease;
}

.set-item-row .remove-set-item:hover {
    transform: scale(1.05);
}

.alias-item-row .remove-alias-item:hover {
    transform: scale(1.05);
}

.items-list {
    margin-top: 24px;
    max-height: 300px;
    overflow-y: auto;
}

.item-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.item-type-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.item-type-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.item-type-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.item-type-name {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-type-row .item-actions {
    display: flex;
    gap: 8px;
}

.item-type-row .edit-item,
.item-type-row .delete-item {
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.item-type-row .edit-item {
    background: var(--gradient-blue);
}

.item-type-row .delete-item {
    background: var(--gradient-red);
}

.item-type-row .edit-item:hover,
.item-type-row .delete-item:hover {
    transform: scale(1.05);
}

/* Транзакции дня */
.transaction-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid;
    gap: 12px;
}

.transaction-item.sale { border-left-color: var(--accent-green); }
.transaction-item.expense { border-left-color: var(--accent-red); }

.transaction-item span {
    font-size: 13px;
}

.transaction-item span:first-child {
    font-weight: 600;
}

.transaction-item .tx-actions {
    display: flex;
    gap: 6px;
}

.transaction-item .day-edit,
.transaction-item .day-delete {
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.transaction-item .day-edit {
    background: var(--gradient-blue);
}

.transaction-item .day-delete {
    background: var(--gradient-red);
}

.transaction-item .day-edit:hover,
.transaction-item .day-delete:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Модальное окно детализации */
.modal-wide {
    max-width: 700px;
}

.details-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.summary-card {
    flex: 1;
    min-width: 150px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.summary-card.income { border-color: rgba(0, 210, 106, 0.3); }
.summary-card.expense { border-color: rgba(255, 71, 87, 0.3); }

.summary-card .label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.summary-card .value {
    font-size: 20px;
    font-weight: 700;
}

.summary-card.income .value { color: var(--accent-green); }
.summary-card.expense .value { color: var(--accent-red); }

.details-list {
    max-height: 400px;
    overflow-y: auto;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid;
    gap: 12px;
}

.detail-item.income { border-left-color: var(--accent-green); }
.detail-item.expense { border-left-color: var(--accent-red); }

.detail-item .detail-info {
    flex: 1;
}

.detail-item .detail-type {
    font-weight: 600;
    margin-bottom: 2px;
}

.detail-item .detail-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.tx-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 6px;
}

.tx-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.tx-status.tx-used {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent-green);
}

.tx-status.tx-partial {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.tx-status.tx-carryover {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.transaction-item.carryover {
    opacity: 0.6;
    border-left: 3px solid #9b59b6;
}

.transaction-item.carryover-in {
    opacity: 0.7;
    border-left: 3px solid #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.tx-status.tx-carryover-in {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.day-separator {
    padding: 10px 0;
    margin: 10px 0;
    border-top: 1px dashed var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
}

.detail-item .detail-qty {
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-item .detail-amount {
    font-weight: 700;
    font-size: 16px;
}

.detail-item.income .detail-amount { color: var(--accent-green); }
.detail-item.expense .detail-amount { color: var(--accent-red); }

.detail-item .detail-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.detail-item .edit-btn,
.detail-item .delete-btn,
.detail-item .convert-btn {
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.detail-item .edit-btn {
    background: var(--gradient-blue);
}

.detail-item .delete-btn {
    background: var(--gradient-red);
}

.details-danger-btn {
    border: none;
    background: var(--gradient-red);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.details-danger-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.35);
}

.currency-toggle-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.currency-toggle-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.detail-item .edit-btn:hover,
.detail-item .delete-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Фильтр по датам */
.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-filter label {
    color: var(--text-secondary);
    font-size: 13px;
}

.quick-period-btns {
    display: flex;
    gap: 6px;
}

.quick-period-btn {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-period-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.quick-period-btn.active {
    background: var(--gradient-blue);
    border-color: transparent;
    color: #fff;
}

.date-filter input[type="date"] {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
}

.date-filter span {
    color: var(--text-secondary);
}

/* Кнопки данных */
.data-buttons {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--bg-hover);
    border-color: var(--accent-purple);
}

.btn-export { border-color: rgba(0, 210, 106, 0.3); }
.btn-export:hover { border-color: var(--accent-green); background: rgba(0, 210, 106, 0.1); }

.btn-import { border-color: rgba(108, 92, 231, 0.3); }
.btn-import:hover { border-color: var(--accent-purple); background: rgba(108, 92, 231, 0.1); }

.btn-sync-playerok {
    border-color: rgba(74, 163, 255, 0.35);
    color: var(--accent-blue);
    font-weight: 800;
}

.btn-sync-playerok:hover {
    border-color: var(--accent-blue);
    background: rgba(74, 163, 255, 0.1);
}

.sync-status {
    min-width: 46px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sync-status.error {
    color: var(--accent-red);
}

/* Кликабельные карточки */
.stat-card, .item-stat-row {
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.item-stat-row:hover {
    background: var(--bg-hover);
    border-radius: 12px;
    margin: 0 -12px;
    padding: 14px 12px;
}

/* ========== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ========== */

/* Планшеты */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        padding-bottom: 100px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-icon {
        font-size: 32px;
    }
    
    .stat-info .amount {
        font-size: 22px;
    }
    
    .profit-amount {
        font-size: 32px;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .chart-left, .chart-right {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .period-scale {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .period-scale .period-btn {
        flex: 1;
        min-width: 60px;
    }
    
    .date-range {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .date-range input[type="date"] {
        flex: 1;
        min-width: 120px;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .item-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .item-selector select {
        flex: 1;
        min-width: 120px;
    }
    
    .equalize-toggle {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        left: 15px;
        right: 15px;
        bottom: 15px;
        gap: 8px;
        transform: none;
        width: auto;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        text-align: center;
    }
    
    .item-selector {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .item-selector select {
        flex: 1;
        min-width: 100px;
    }
    
    .control-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .calendar-section {
        overflow-x: hidden;
    }
    
    .calendar-grid {
        min-width: 100%;
        width: 100%;
    }
    
    .item-stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-stat-values {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        width: 100%;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 55px;
    }
    
    .calendar-day .day-number {
        font-size: 12px;
    }
    
    .calendar-day .day-profit {
        font-size: 8px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .details-modal .details-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .details-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .transaction-item {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }
    
    .transaction-item .day-edit,
    .transaction-item .day-delete {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Телефоны */
@media (max-width: 480px) {
    .container {
        padding: 10px;
        padding-bottom: 90px;
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .nav-tabs {
        padding: 6px;
        gap: 4px;
        border-radius: 12px;
    }
    
    .nav-tab {
        padding: 10px 8px;
        font-size: 12px;
        border-radius: 8px;
        flex-direction: column;
        gap: 4px;
    }
    
    .tab-icon {
        font-size: 18px;
    }
    
    .chart-section {
        padding: 15px;
        border-radius: 16px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .chart-btn, .period-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .period-label {
        font-size: 11px;
    }
    
    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .controls {
        padding: 15px;
        border-radius: 12px;
    }
    
    .control-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .item-selector {
        width: 100%;
    }
    
    .item-selector label {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .item-selector select {
        padding: 10px 12px;
        font-size: 14px;
        flex: 1;
    }
    
    .control-buttons {
        justify-content: center;
        gap: 12px;
    }
    
    .control-buttons .btn-icon {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .equalize-toggle span {
        font-size: 12px;
    }
    
    .switch {
        width: 44px;
        height: 24px;
    }
    
    .slider:before {
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
    }
    
    input:checked + .slider:before {
        transform: translateX(20px);
    }
    
    .stat-card {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    .stat-info h3 {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .stat-info .amount {
        font-size: 20px;
    }
    
    .stat-info .quantity {
        font-size: 11px;
    }
    
    .profit-display {
        padding: 20px;
        border-radius: 16px;
    }
    
    .profit-label {
        font-size: 10px;
    }
    
    .profit-amount {
        font-size: 28px;
    }
    
    .item-stats {
        padding: 15px;
    }
    
    .item-stats h3 {
        font-size: 13px;
    }
    
    .item-stat-row {
        padding: 12px 0;
    }
    
    .item-stat-name {
        font-size: 13px;
    }
    
    .item-stat-values span {
        font-size: 11px;
    }
    
    .calendar-section {
        padding: 15px;
        overflow-x: hidden;
    }
    
    .calendar-header h3 {
        font-size: 14px;
    }
    
    .calendar-nav button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
        width: 100%;
    }
    
    .calendar-grid .calendar-header-cell {
        font-size: 9px;
        padding: 5px 0;
    }
    
    .calendar-day {
        padding: 4px 2px;
        min-height: 45px;
        border-radius: 6px;
    }
    
    .calendar-day .day-number {
        font-size: 10px;
    }
    
    .calendar-day .day-profit {
        font-size: 6px;
    }
    
    .day-details {
        padding: 15px;
    }
    
    .day-details-header h4 {
        font-size: 14px;
    }
    
    .transaction-item {
        font-size: 12px;
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .transaction-item > span:first-child {
        font-weight: 600;
    }
    
    .transaction-item .day-edit,
    .transaction-item .day-delete {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .action-buttons {
        bottom: 10px;
        left: 10px;
        right: 10px;
        gap: 8px;
        transform: none;
        width: auto;
    }
    
    .btn-action {
        padding: 14px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 12px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .modal-content {
        padding: 18px;
        border-radius: 16px;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 14px;
    }
    
    .details-content {
        padding: 15px;
    }
    
    .details-content h2 {
        font-size: 18px;
    }
    
    .summary-item h4 {
        font-size: 10px;
    }
    
    .summary-item p {
        font-size: 16px;
    }
    
    .details-list {
        max-height: 50vh;
    }
    
    .detail-item {
        padding: 12px;
        font-size: 12px;
    }
    
    .detail-actions button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Курсы валют */
    .rates-section {
        padding: 15px;
    }
    
    .rate-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .rate-input-group input {
        width: 100%;
    }
    
    .rates-list {
        max-height: 250px;
    }
    
    .rate-item {
        padding: 10px;
        font-size: 12px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .header h1 {
        font-size: 18px;
    }
    
    .nav-tab {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .tab-icon {
        font-size: 16px;
    }
    
    .stat-info .amount {
        font-size: 18px;
    }
    
    .profit-amount {
        font-size: 24px;
    }
    
    .calendar-day {
        min-height: 45px;
    }
    
    .calendar-day .day-number {
        font-size: 10px;
    }
}

/* =====================================================================
   Стим инвентари
   ===================================================================== */

/* Универсальная кнопка */
.steam-btn {
    background: #2d3a5c;
    color: #eaeaea;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .08s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}
.steam-btn:hover { background: #384878; border-color: #6c5ce7; }
.steam-btn:active { transform: translateY(1px); }
.steam-btn.primary {
    background: linear-gradient(135deg, #6c5ce7, #5b4cdb);
    border-color: transparent;
    color: #fff;
}
.steam-btn.primary:hover { filter: brightness(1.1); }
.steam-btn.danger {
    background: rgba(255,71,87,0.15);
    color: #ff4757;
    border-color: rgba(255,71,87,0.3);
}
.steam-btn.danger:hover { background: rgba(255,71,87,0.25); }
.steam-btn.icon {
    padding: 0;
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* Тулбар */
.steam-inv-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: var(--card-bg, #16213e);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 12px;
    padding: 12px;
}

.steam-inv-toolbar input,
.steam-inv-toolbar select {
    background: rgba(0,0,0,0.25);
    color: var(--text, #eaeaea);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color .15s;
}
.steam-inv-toolbar input:focus,
.steam-inv-toolbar select:focus { outline: none; border-color: #6c5ce7; }
.steam-inv-toolbar input { flex: 1; min-width: 220px; }

.steam-inv-stock-panel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 6px;
}

.steam-inv-stock-panel.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.steam-filter-pill,
.steam-filter-reset,
.steam-stock-mode-btn {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(0,0,0,0.22);
    color: #d8dced;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    min-height: 32px;
    padding: 8px 10px;
    transition: background .15s, border-color .15s, color .15s, transform .08s;
}

.steam-filter-pill:hover,
.steam-filter-reset:hover,
.steam-stock-mode-btn:hover {
    border-color: rgba(108, 92, 231, 0.65);
    color: #fff;
}

.steam-filter-pill.active {
    background: rgba(255, 184, 77, 0.14);
    border-color: rgba(255, 184, 77, 0.55);
    color: #ffd18a;
}

.steam-filter-reset {
    color: var(--text-secondary, #8b8b9e);
}

.steam-filter-reset.active {
    color: #d8dced;
}

.steam-filter-reset:disabled {
    opacity: 0.38;
    cursor: default;
}

.steam-stock-limit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary, #8b8b9e);
    font-size: 12px;
    font-weight: 700;
}

.steam-stock-limit input {
    flex: 0 0 58px;
    min-width: 58px;
    width: 58px;
    text-align: center;
    font-weight: 800;
    padding: 7px 8px;
}

.steam-stock-limit input::-webkit-outer-spin-button,
.steam-stock-limit input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.steam-stock-limit input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.steam-stock-mode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.steam-stock-mode-btn[data-steam-stock-mode="total"].active {
    background: rgba(108, 92, 231, 0.18);
    border-color: rgba(108, 92, 231, 0.55);
    color: #c8c2ff;
}

.steam-stock-mode-btn[data-steam-stock-mode="ban"].active {
    background: rgba(255, 71, 87, 0.14);
    border-color: rgba(255, 71, 87, 0.48);
    color: #ff9aa4;
}

.steam-stock-mode-btn[data-steam-stock-mode="noban"].active {
    background: rgba(0, 210, 106, 0.14);
    border-color: rgba(0, 210, 106, 0.45);
    color: #7dffb8;
}

/* Чтобы выпадающий список <select> не был белым на белом */
.steam-inv-toolbar select option,
.steam-cat-row select option,
.steam-detail-side select option {
    background: #16213e;
    color: #eaeaea;
}

.steam-inv-toolbar #steamInvNewSetBtn {
    background: linear-gradient(135deg, #6c5ce7, #5b4cdb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.steam-inv-toolbar #steamInvNewSetBtn:hover { filter: brightness(1.1); }

.steam-inv-toolbar-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;   /* прижимаем блок к правому краю тулбара */
    flex: 0 0 auto;
    text-align: right;
}

/* Dropdown-меню «Очистить ▾» */
.steam-inv-clear-menu { position: relative; }
.steam-inv-clear-menu.open #steamInvClearBtn {
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.35);
}
.steam-inv-clear-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 320px;
    background: var(--bg-secondary, #1f2335);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 50;
}
.steam-inv-clear-popover[hidden] { display: none; }
.steam-inv-clear-popover-item {
    text-align: left;
    background: transparent;
    color: #eaeaea;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background .12s, border-color .12s, transform .08s;
    font: inherit;
}
.steam-inv-clear-popover-item:hover {
    background: rgba(255, 71, 87, 0.10);
    border-color: rgba(255, 71, 87, 0.45);
}
.steam-inv-clear-popover-item:active { transform: translateY(1px); }
.steam-inv-clear-popover-item .title {
    font-weight: 700;
    font-size: 13px;
    color: #ff7a87;
}
.steam-inv-clear-popover-item .hint {
    font-size: 11px;
    color: var(--text-secondary, #8b8b9e);
    line-height: 1.35;
}
.steam-inv-scan-info {
    color: var(--text-secondary, #8b8b9e);
    font-size: 12px;
}
.steam-inv-count {
    color: #c8c2ff;
    font-size: 12px;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.4);
    padding: 4px 10px;
    border-radius: 999px;
}

.steam-inv-empty {
    text-align: center;
    color: var(--text-secondary, #8b8b9e);
    padding: 60px 20px;
    border: 1px dashed var(--border-color, #2d3a5c);
    border-radius: 10px;
}

/* Inline-форма "Создать набор" */
.steam-set-create {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.4);
    border-radius: 10px;
    padding: 10px;
}
.steam-set-create input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    color: #eaeaea;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}
.steam-set-create input.error,
.steam-cat-new input.error,
.steam-set-add input.error,
.steam-set-title-edit input.error {
    border-color: #ff4757;
}

/* Сетка карточек */
.steam-inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.steam-card {
    position: relative;
    background: var(--card-bg, #16213e);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: transform .15s, border-color .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.steam-card:hover {
    transform: translateY(-2px);
    border-color: #6c5ce7;
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.18);
}

.steam-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.steam-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.steam-card-name {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.5em;
}

.steam-card-counts {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}
.steam-card-counts .noban { color: #00d26a; }
.steam-card-counts .ban { color: #ff4757; }

.steam-card-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    color: #6b7280;
    border: none;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: color .15s, background .15s;
}
.steam-card-fav.on { color: #f1c40f; background: rgba(0,0,0,0.7); }
.steam-card-fav:hover { color: #f1c40f; }

/* Чипы стилей */
.steam-style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.steam-style-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.5;
    border: 1px solid;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.steam-style-chip.unlocked {
    background: rgba(0, 210, 106, 0.12);
    color: #00d26a;
    border-color: rgba(0, 210, 106, 0.4);
}
.steam-style-chip.locked {
    background: rgba(255, 71, 87, 0.12);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.4);
}
.steam-style-chips.compact .steam-style-chip { font-size: 10px; padding: 1px 6px; }

/* Quality chips (Exalted/Inscribed/...) */
.steam-quality-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.steam-quality-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--qcolor, #fff);
    background: color-mix(in srgb, var(--qcolor, #fff) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--qcolor, #fff) 55%, transparent);
}
.steam-quality-chip .steam-quality-count {
    color: var(--text-secondary, #8b8b9e);
    font-weight: 500;
    font-size: 11px;
}

/* Wins (arcana) block */
.steam-wins-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}
.steam-wins-tier {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.steam-wins-tier.gte40 {
    background: rgba(46, 213, 115, 0.18);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.45);
}
.steam-wins-tier.lt40 {
    background: rgba(255, 165, 2, 0.18);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.45);
}
.steam-wins-stats { color: var(--text-secondary, #8b8b9e); font-size: 12px; }

/* Category manager */
.steam-cat-manager {
    background: var(--bg-secondary, #1f2335);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}
.steam-cat-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.steam-cat-manager-header h3 {
    margin: 0;
    font-size: 16px;
}
.steam-cat-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.steam-cat-add-row input {
    flex: 1;
    background: var(--bg-tertiary, #181a2c);
    color: #fff;
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}
.steam-cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
}
.steam-cat-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary, #181a2c);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 8px;
    transition: background .12s, border-color .12s;
}
.steam-cat-row-item.selectable { cursor: pointer; }
.steam-cat-row-item.selectable:hover {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.55);
}
.steam-cat-row-item.selected {
    background: rgba(108, 92, 231, 0.20);
    border-color: #6c5ce7;
}
.steam-cat-row-item.selected .steam-cat-row-name > span:first-child { color: #c8c2ff; }
.steam-cat-row-name { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.steam-cat-row-name > span:first-child { font-weight: 600; }
.steam-cat-row-count {
    background: rgba(108, 92, 231, 0.18);
    color: #c8c2ff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}
.steam-cat-row-actions { display: flex; gap: 6px; align-items: center; }
.steam-cat-rename-input {
    background: var(--bg-secondary, #1f2335);
    color: #fff;
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    width: 200px;
}
.steam-cat-rename-input.error { border-color: #ff4757; }

/* Set image */
.steam-set-image { position: relative; }
.steam-set-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary, #8b8b9e);
    font-size: 12px;
    background: var(--bg-tertiary, #181a2c);
    border-radius: 8px;
}
.steam-set-image-actions {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0.85;
}
.steam-set-image:hover .steam-set-image-actions { opacity: 1; }

/* Wins-tier chip on home cards */
.steam-card-wins {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.4;
}
.steam-card-wins.gte40 {
    background: rgba(46, 213, 115, 0.18);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.45);
}
.steam-card-wins.lt40 {
    background: rgba(255, 165, 2, 0.18);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.45);
}

/* Right side actions next to back button */
.steam-detail-back-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Phantom cards (item is no longer in inventory) */
.steam-card.phantom {
    opacity: 0.7;
    border-style: dashed;
}
.steam-card.phantom .steam-card-img img { filter: grayscale(0.6) brightness(0.85); }
.steam-card-phantom-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    background: rgba(20, 10, 14, 0.88);
    color: #ff7a87;
    border: 1px solid rgba(255, 71, 87, 0.55);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    pointer-events: none;
}

/* Per-component counts in set */
.steam-set-component-counts {
    display: inline-flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}
/* Кнопку "Убрать" прижимаем к правому краю,
   а счётчики остаются рядом с названием слева. */
.steam-set-component-header .steam-set-remove {
    margin-left: auto;
}
.steam-set-component-counts .noban { color: #2ed573; }
.steam-set-component-counts .ban   { color: #ff4757; }
.steam-set-component-counts .total { color: #c8c2ff; }

/* Detail views */
.steam-detail-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.steam-detail-header {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 18px;
    margin-bottom: 22px;
    background: var(--card-bg, #16213e);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 14px;
    padding: 18px;
}

.steam-detail-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.steam-detail-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.steam-detail-meta h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}
.steam-detail-counts {
    display: flex;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.steam-detail-counts .noban { color: #00d26a; }
.steam-detail-counts .ban { color: #ff4757; }
.steam-detail-counts .total { color: #c8c2ff; }

.steam-external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.steam-external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(108, 92, 231, 0.35);
    background: rgba(108, 92, 231, 0.12);
    color: #eaeaea;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .12s, border-color .12s, background .12s;
}
.steam-external-link:hover {
    transform: translateY(-1px);
    border-color: rgba(108, 92, 231, 0.7);
    background: rgba(108, 92, 231, 0.18);
}
.steam-external-link.steam {
    border-color: rgba(102, 192, 244, 0.42);
    background: rgba(102, 192, 244, 0.12);
}
.steam-external-link.buff {
    border-color: rgba(255, 181, 71, 0.42);
    background: rgba(255, 181, 71, 0.12);
}
.steam-external-link.c5game {
    border-color: rgba(46, 213, 115, 0.42);
    background: rgba(46, 213, 115, 0.12);
}

.steam-detail-section {
    margin-top: 12px;
}
.steam-detail-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #8b8b9e);
    margin-bottom: 6px;
}

.steam-detail-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.steam-detail-side-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #8b8b9e);
    margin-bottom: 4px;
}

/* Inline category editor */
.steam-cat-row { display: flex; gap: 6px; align-items: center; }
.steam-cat-row select {
    flex: 1;
    background: rgba(0,0,0,0.25);
    color: #eaeaea;
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}
.steam-cat-row select:focus { outline: none; border-color: #6c5ce7; }
.steam-cat-new {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}
.steam-cat-new input {
    flex: 1;
    background: rgba(0,0,0,0.25);
    color: #eaeaea;
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}

/* Aliases (chip editor) */
.steam-alias-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.steam-chip-list {
    display: contents;
}
.steam-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(108, 92, 231, 0.18);
    border: 1px solid rgba(108, 92, 231, 0.45);
    color: #c8c2ff;
    padding: 3px 4px 3px 9px;
    border-radius: 999px;
    font-size: 12px;
}
.steam-chip-remove {
    background: transparent;
    color: inherit;
    border: none;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    line-height: 1;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.steam-chip-remove:hover { background: rgba(255,255,255,0.1); }
.steam-chip-input {
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 999px;
    color: #eaeaea;
    padding: 4px 10px;
    font-size: 12px;
}
.steam-chip-input:focus { outline: none; border-color: #6c5ce7; }

/* Accounts list */
.steam-acc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.steam-acc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 999px;
    padding: 3px 10px 3px 3px;
    font-size: 12px;
    line-height: 1.4;
}
.steam-acc-pill img {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.steam-acc-avatar-fallback {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #6c5ce7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.steam-acc-nick {
    color: #eaeaea;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.steam-acc-count {
    color: var(--text-secondary, #8b8b9e);
    font-weight: 600;
}

/* Set add box */
.steam-set-add {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0,0,0,0.15);
    border: 1px dashed var(--border-color, #2d3a5c);
    border-radius: 10px;
    padding: 10px;
}
.steam-set-add input {
    background: rgba(0,0,0,0.3);
    color: #eaeaea;
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}

/* Set title + inline rename */
.steam-set-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.steam-set-title-edit {
    display: flex;
    gap: 6px;
    align-items: center;
}
.steam-set-title-edit input {
    flex: 1;
    background: rgba(0,0,0,0.25);
    color: #eaeaea;
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 18px;
    font-weight: 600;
}

/* Copies grid (with +N tile) */
.steam-copies { margin-top: 4px; }

.steam-copy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.steam-copy-list.collapsed .steam-copy-extra { display: none; }
.steam-copy-list:not(.collapsed) .steam-copy-more { display: none; }

.steam-copy {
    position: relative;
    background: var(--card-bg, #16213e);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.steam-copy.banned { border-color: rgba(255, 71, 87, 0.5); }
.steam-copy.unbanned { border-color: rgba(0, 210, 106, 0.4); }

.steam-copy-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.steam-copy-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.steam-copy-name {
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.steam-copy-cd {
    font-size: 11px;
    color: #ff4757;
    line-height: 1.3;
}
.steam-copy-cd.ok { color: #00d26a; }

/* Avatar of source account on copy */
.steam-copy-acc {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    z-index: 1;
}
.steam-copy-acc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* +N tile */
.steam-copy-more {
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(108,92,231,0.05));
    border: 2px dashed rgba(108,92,231,0.45);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #c8c2ff;
    transition: background .15s, border-color .15s, transform .12s;
    min-height: 100%;
}
.steam-copy-more:hover {
    background: rgba(108,92,231,0.25);
    border-color: #6c5ce7;
    transform: translateY(-2px);
}
.steam-copy-more-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}
.steam-copy-more-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
}

.steam-copies-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* Set components */
.steam-set-component {
    margin-bottom: 22px;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color, #2d3a5c);
    border-radius: 12px;
    padding: 14px;
}
.steam-set-component-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.steam-set-component-header h3 {
    margin: 0;
    font-size: 16px;
    flex: 0 0 auto;
}
