/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.logo h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #ff4757;
}

.notification.info {
    background: #2196F3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Стили для профиля */
.profile-block {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.profile-header h2 {
    font-size: 1.5rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    overflow: hidden;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.profile-details p {
    color: #666;
    margin-bottom: 5px;
}

.user-id {
    font-size: 0.9rem;
    color: #888;
}

.balance-card {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin-top: 15px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.balance-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.currency-selector select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.currency-selector select option {
    background: #667eea;
    color: white;
}

.balance-buttons {
    display: flex;
    gap: 10px;
}

.btn-deposit, .btn-promo {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-deposit {
    background: #4CAF50;
    color: white;
}

.btn-promo {
    background: #ff9500;
    color: white;
}

.btn-deposit:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-promo:hover {
    background: #e68900;
    transform: translateY(-2px);
}

/* Стили для истории заказов */
.orders-list {
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.order-item:hover {
    background: #f9f9f9;
}

.order-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-right: 15px;
}

.order-details {
    flex: 1;
}

.order-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.order-date {
    font-size: 0.85rem;
    color: #888;
}

.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 5px;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-price {
    font-weight: bold;
    color: #ff9500;
    font-size: 1.1rem;
}

.btn-show-more {
    width: 100%;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-show-more:hover {
    background: #e0e0e0;
}

/* Стили для информационных ссылок */
.info-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.info-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.info-link i:first-child {
    width: 30px;
    font-size: 1.2rem;
    color: #667eea;
}

.info-link span {
    flex: 1;
    margin-left: 10px;
}

.info-link i:last-child {
    color: #888;
}

/* Стили для попапов пополнения */
.deposit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.deposit-option {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 1.2rem;
}

.deposit-option:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.custom-amount {
    display: flex;
    gap: 10px;
}

.custom-amount input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.custom-amount input:focus {
    outline: none;
    border-color: #667eea;
}

.custom-amount button {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.promo-info {
    margin-top: 15px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0066cc;
    font-size: 0.9rem;
}

#promoCode {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
}

#promoCode:focus {
    outline: none;
    border-color: #667eea;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    overflow: hidden;
}

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

.currency-menu {
    display: none;
}

/* Стили для баланса с выпадающим меню */
.balance {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.balance:hover {
    background: linear-gradient(135deg, #e668ff 0%, #ff4757 100%);
}

.balance-amount {
    font-size: 1.1rem;
}

.currency-symbol {
    font-size: 0.9rem;
    opacity: 0.9;
}

.currency-dropdown {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s;
}

.balance:hover .currency-dropdown {
    transform: rotate(180deg);
}


.currency-menu.show {
    display: block;
}

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

.currency-options {
    max-height: 300px;
    overflow-y: auto;
}

/* Выпадающее меню валют */
.currency-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 5px;
    border: 1px solid transparent;
}


.currency-option:hover {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-color: #667eea;
    transform: translateX(-5px);
}

.currency-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.currency-option.active:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4192 100%);
}

.currency-option .currency-name {
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-option .currency-balance {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 15px;
}

.currency-option.active .currency-balance {
    background: rgba(255, 255, 255, 0.3);
}

/* Иконки валют */
.currency-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}


.currency-name {
    font-weight: bold;
}

.currency-balance {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Колесо рулетки */
.roulette-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    perspective: 1000px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.wheel-pointer {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff4757;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.wheel-sectors {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.wheel-sector {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0% 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.wheel-sector:nth-child(odd) {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.wheel-sector:nth-child(even) {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.sector-content {
    position: absolute;
    top: 20%;
    right: 20%;
    transform: rotate(45deg);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.wheel-info {
    text-align: center;
    margin-top: 20px;
}

.spinning-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    font-family: monospace;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}


.roulette-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .roulette-main {
        grid-template-columns: 1fr;
    }
}

/* Панель ставок */
.bet-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bet-panel h3 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

/* Кнопки ставок */
.bet-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 480px) {
    .bet-buttons-grid {
        grid-template-columns: 1fr;
    }
}

.bet-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.bet-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.bet-amount {
    font-size: 1.8rem;
    font-weight: bold;
}

.bet-currency {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Выбор валюты */
.currency-selector {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-info i {
    font-size: 1.5rem;
    color: #26a17b;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.currency-details {
    display: flex;
    flex-direction: column;
}

.currency-name {
    font-weight: bold;
    color: #333;
}

.currency-change {
    font-size: 0.85rem;
    color: #667eea;
    cursor: pointer;
}

.currency-change:hover {
    text-decoration: underline;
}

.currency-balance {
    text-align: right;
}

.currency-balance #current-currency-balance {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: block;
}

.balance-label {
    font-size: 0.85rem;
    color: #666;
}

/* Управление */
.roulette-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.control-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.auto-spin {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.auto-spin:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.spin-main {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.spin-main:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Отображение результата */
.result-display {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

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

.result-header h4 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-history {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-history:hover {
    text-decoration: underline;
}

.result-box {
    min-height: 100px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    color: #666;
}

.result-placeholder i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

/* История ставок */
.bet-history {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bet-history h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.history-item {
    background: #f8f9fa;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid transparent;
}

.history-item.win {
    border-left-color: #4CAF50;
}

.history-item.loss {
    border-left-color: #ff4757;
}

.history-item.placeholder {
    justify-content: center;
    text-align: center;
    color: #666;
    background: transparent;
    border: 2px dashed #e0e0e0;
}

.history-details {
    flex: 1;
}

.history-time {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
}

.history-bet {
    font-weight: bold;
    color: #333;
}

.history-result {
    font-weight: bold;
    font-size: 0.9rem;
}

.history-result.win {
    color: #4CAF50;
}

.history-result.loss {
    color: #ff4757;
}

/* Панель статистики */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.win {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.stat-icon.loss {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}

.stat-icon.profit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stats-panel {
        grid-template-columns: 1fr;
    }
    
    .bet-btn {
        padding: 15px 10px;
    }
    
    .bet-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .roulette-controls {
        flex-direction: column;
    }
    
    .control-btn {
        width: 100%;
    }
}

/* Анимации для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

/* Эффект победы */
.win-effect {
    animation: winPulse 0.5s ease-in-out;
}

@keyframes winPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Уведомления */
.roulette-notification {
    z-index: 10000;
}

/* Кнопки управления балансом (для админа) */
.balance-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.balance-control-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.balance-control-btn:hover {
    transform: scale(1.05);
}

.balance-control-btn.reset {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}


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

.result-win {
    text-align: center;
    color: #4CAF50;
}

.result-loss {
    text-align: center;
    color: #ff4757;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.result-text h3 {
    margin: 10px 0;
    font-size: 1.5rem;
}

.multiplier, .try-again {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Баннер приветствия */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.welcome-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1.2rem;
}

/* Категории */
.section-selector {
    margin-bottom: 30px;
}

.section-selector h2 {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
}

.steam {
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
}

.games {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #333;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Контент */
.content {
    margin-bottom: 80px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Карточки товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.product-badge.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
}

.product-badge.steam {
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
}

.product-badge.games {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #0088cc;
    font-size: 1.1rem;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Нижняя навигация */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn.active,
.nav-btn:hover {
    color: #667eea;
}

.nav-btn.active {
    transform: translateY(-5px);
}

/* Попап */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.popup-body {
    padding: 25px;
}

.popup-info {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.popup-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
}
.section-selector.compact {
    margin-bottom: 20px;
}

.section-selector.compact h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-grid.compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-card.compact {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card.compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.category-icon.compact {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.category-card.compact h3 {
    font-size: 0.9rem;
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* Цены в рублях */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ff9500;
    font-size: 1.1rem;
}

.product-price i {
    color: #ff9500;
}

.product-price .fa-ruble-sign {
    font-size: 0.9rem;
}

/* Адаптивность для компактных категорий */
@media (max-width: 768px) {
    .categories-grid.compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card.compact {
        padding: 12px;
        height: 80px;
    }
    
    .category-icon.compact {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .category-card.compact h3 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Убираем звезды из цен */
.product-price .fa-star {
    display: none;
}

/* Добавляем знак рубля */
.product-price::before {
    content: "₽";
    font-weight: bold;
    margin-right: 5px;
}

.product-price span {
    margin-left: 5px;
}

/* В попапе покупки */
#popupProductPrice::after {
    content: " ₽";
    font-weight: bold;
}

#popupBalance::after {
    content: " ₽";
    font-weight: bold;
}