:root { 
    --main: #5c67f2; 
    --bg: #f4f7f6; 
    --online: #2ecc71; 
    --danger: #ff4d4d;
    --bg-dark: #1a1a1d;
    --text-gray: #b0b0b0;
    --border-color: #333;
}

/* Базовые стили */
* {
    box-sizing: border-box;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #1a1a2e, #0f0f1e); 
    margin: 0 auto; 
    padding: 0; 
    color: #fff; 
    overflow-x: hidden;
}

.site-footer {
    margin-top: 36px;
    padding: 0 16px 22px;
    position: relative;
    z-index: 10;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top left, rgba(125, 222, 147, 0.13), transparent 28%),
        linear-gradient(180deg, rgba(28, 31, 40, 0.98), rgba(18, 20, 27, 0.98));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.site-footer__logo {
    display: block;
    flex-shrink: 0;
}

.site-footer__title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
}

.site-footer__text {
    margin: 6px 0 0;
    color: #b9c0cf;
    font-size: 13px;
    line-height: 1.5;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.site-footer__link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #eef2fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer__link:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 222, 147, 0.4);
    background: rgba(125, 222, 147, 0.08);
}

@media (max-width: 640px) {
    .site-footer {
        padding: 0 12px 18px;
    }

    .site-footer__inner {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .site-footer__brand {
        align-items: flex-start;
    }

    .site-footer__links {
        grid-template-columns: 1fr;
    }
}

/* Стили для хедера */
.header {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #ffd700;
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.nav-link.active {
    color: #ffd700;
    background: rgba(255,215,0,0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ffd700;
}

.balance-label {
    color: #ddd;
    font-size: 14px;
}

.balance {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
}

.balance-currency {
    color: #ffd700;
    font-size: 14px;
}

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

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

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #5f4bb6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid #ffd700;
}

.username {
    color: #fff;
    font-weight: 500;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.page-subtitle {
    text-align: center;
    font-size: 18px;
    color: #ddd;
    margin-bottom: 40px;
}

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

.case-card {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.case-card:hover::before {
    left: 100%;
}

.case-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.case-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.case-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.case-price {
    font-size: 16px;
    color: #ffd700;
    font-weight: bold;
}

.open-btn {
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.open-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}

.open-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.case-opening-container {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.roulette-track-container {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Меняем на visible чтобы блюр не обрезался */
}

.roulette-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 4px solid #ffd700;
    border-radius: 20px;
    background: rgba(255,215,0,0.1);
    z-index: 1000; /* Увеличиваем еще больше чтобы быть точно поверх всего */
    box-shadow: 
        0 0 30px rgba(255,215,0,0.8),
        0 0 60px rgba(255,215,0,0.4),
        inset 0 0 20px rgba(255,215,0,0.3);
    transition: all 0.3s ease;
    -webkit-transform: translate(-50%, -50%) translateZ(0);
    transform: translate(-50%, -50%) translateZ(0);
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.roulette-cursor.spinning {
    animation: cursorPulse 1s ease-in-out infinite;
}

@keyframes cursorPulse {
    0%, 100% {
        -webkit-transform: translate(-50%, -50%) scale(1) translateZ(0);
        transform: translate(-50%, -50%) scale(1) translateZ(0);
        box-shadow: 
            0 0 30px rgba(255,215,0,0.8),
            inset 0 0 20px rgba(255,215,0,0.3);
    }
    50% {
        -webkit-transform: translate(-50%, -50%) scale(1.05) translateZ(0);
        transform: translate(-50%, -50%) scale(1.05) translateZ(0);
        box-shadow: 
            0 0 50px rgba(255,215,0,1),
            inset 0 0 30px rgba(255,215,0,0.5);
    }
}

.roulette-cursor::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #ffd700;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
}

.roulette-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
}

.roulette-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Оптимизация анимаций для Chrome */
* {
    box-sizing: border-box;
}

/* Улучшение рендеринга */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Оптимизация для transform и opacity */
.optimize-animations {
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* РУЛЕТКА - ДВИГАЕТСЯ ТОЛЬКО ПО КЛИКУ */
.roulette-track {
    display: flex;
    width: fit-content;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.roulette-item {
    min-width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border: 2px solid transparent;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.roulette-icon {
    font-size: 40px;
    margin-bottom: 5px;
}

.roulette-amount {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.roulette-item.item-common {
    border-color: #6c5ce7;
    background: linear-gradient(135deg, #6c5ce7, #5f4bb6);
}

.roulette-item.item-rare {
    border-color: #00cec9;
    background: linear-gradient(135deg, #00cec9, #00b894);
}

.roulette-item.item-epic {
    border-color: #a29bfe;
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.roulette-item.item-legendary {
    border-color: #fdcb6e;
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
}

.win-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.win-popup.show {
    opacity: 1;
}

.win-popup-content {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    max-width: 400px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: scale(0.9) translateY(20px) translateZ(0);
    transform: scale(0.9) translateY(20px) translateZ(0);
}

.win-popup.show .win-popup-content {
    -webkit-transform: scale(1) translateY(0) translateZ(0);
    transform: scale(1) translateY(0) translateZ(0);
    opacity: 1;
}

.win-popup-header {
    margin-bottom: 20px;
}

.win-popup-title {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
}

.win-popup-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid;
    margin-bottom: 20px;
}

.win-popup-icon {
    font-size: 60px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

.win-popup-info {
    flex: 1;
    text-align: left;
}

.win-popup-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.win-popup-rarity {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 8px;
}

.win-popup-value {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
}

.win-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

.win-popup-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.history-section {
    margin-top: 40px;
}

.history-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.history-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.history-item {
    min-width: 120px;
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border-top: 3px solid;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
}

.history-item-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.history-item-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.history-item-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.history-item-date {
    font-size: 12px;
    color: #999;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.card { 
    background: #fff; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    margin-bottom: 20px; 
}

input { 
    width: 100%; 
    padding: 12px; 
    margin: 8px 0; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    box-sizing: border-box; 
    outline: none;
}

button { 
    width: 100%; 
    padding: 12px; 
    background: var(--main); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    margin-top: 10px; 
    transition: 0.2s;
}

button:hover { 
    opacity: 0.9; 
}

/* Навигация */
.nav { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 20px; 
    justify-content: center; 
    align-items: center; 
}

.nav a { 
    text-decoration: none; 
    color: var(--main); 
    font-weight: bold; 
}

/* Аватарки */
.avatar-img, .profile-avatar { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    cursor: pointer; 
    border: 2px solid var(--main); 
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.mini-av, .friend-avatar, .search-item-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover;
    flex-shrink: 0; 
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Окно чата */
#chat-win { 
    height: 400px; 
    overflow-y: auto; 
    overflow-x: hidden;
    display: flex; 
    flex-direction: column; 
    padding: 15px; 
    background: #fdfdfd; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    gap: 10px; 
}

.msg { 
    padding: 10px 15px; 
    border-radius: 15px; 
    max-width: 80%; 
    word-wrap: break-word;
    font-size: 14px; 
    line-height: 1.4;
}

.msg-in { 
    align-self: flex-start; 
    background: #f0f0f0; 
    border: 1px solid #e0e0e0;
    color: #333; 
}

.msg-out { 
    align-self: flex-end; 
    background: var(--main); 
    color: white; 
}

.msg-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.msg-in .msg-time {
    justify-content: flex-start;
}

.read-status {
    font-size: 12px;
    margin-left: 4px;
}

/* Список друзей */
.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
}

.friend-item:hover {
    background: #f5f5f5;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.online {
    background: var(--online);
    box-shadow: 0 0 5px var(--online);
}

.badge, .unread-badge {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Сделки (Офферы) */
.offer, .offer-box {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    color: #333;
    border: 2px solid #eee;
    margin-top: 5px;
}

.offer.accepted, .offer-box.accepted { 
    border-color: var(--online); 
    background: #f0fff4; 
}
.offer.declined, .offer-box.declined { 
    border-color: var(--danger); 
    background: #fff5f5; 
}

.offer-box button {
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 12px;
    width: auto;
}

.offer-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.offer-btn-accept {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 12px;
}

.offer-btn-decline {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 12px;
}

/* Конструктор сделки */
.offer-builder {
    background: #f9faff;
    border: 2px dashed var(--main);
    padding: 15px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
}

.offer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.off-input { 
    width: 80px !important; 
    text-align: center; 
    font-weight: bold; 
    margin: 0 !important;
}

.btn-sq { 
    width: 40px !important; 
    height: 40px; 
    padding: 0; 
    margin: 0; 
    font-size: 20px;
    background: #eee;
    color: #333;
}

.btn-sq:hover { background: #ddd; }

/* Медиа в чате */
.chat-media { 
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 5px;
}

.chat-media video {
    max-width: 250px;
    max-height: 200px;
    border-radius: 10px;
}

/* Дуэль */
.duel-accepted {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

.msg-out.duel-accepted {
    background: linear-gradient(135deg, #5c67f2, #4a55e0) !important;
}

.duel-vote-btn:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 28px;
    width: 450px;
    max-width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: #667eea;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-btn.cancel {
    background: #e0e0e0;
    color: #333;
}

/* Оффер контролы */
.offer-amount-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.offer-btn-control {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    background: #f0f0f0;
}

.offer-amount-input {
    width: 120px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 12px;
    outline: none;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* Поиск на главной */
.hero-search-input-wrapper {
    display: flex;
    gap: 12px;
}

.hero-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: white;
}

.hero-search-submit {
    display: flex;
    width: 54px;
    background: #5c67f2;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    justify-content: center;
    align-items: center;
}

.hero-search-submit:hover {
    background: #4a55e0;
    transform: scale(1.02);
}

.hero-search-result {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.search-result-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #5c67f2;
}

.search-result-info {
    flex: 1;
    text-align: left;
}

.search-result-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.search-result-id {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-family: monospace;
}

.search-result-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.search-result-add-btn {
    background: #5c67f2;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: 0.2s;
}

.search-result-add-btn:hover {
    background: #4a55e0;
    transform: scale(1.02);
}

.hero-search-not-found {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    color: #666;
}

/* Уведомления */
.notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background:
        radial-gradient(circle at top left, rgba(114, 150, 99, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        rgba(34, 36, 43, 0.97);
    color: #f4f7fb;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(46, 204, 113, 0.24);
    z-index: 2000;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
    animation: slideIn 0.3s ease;
}

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

/* Поддержка */
.support-ticket {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.support-ticket:hover {
    background: #f5f5f5;
}

.support-ticket.closed {
    opacity: 0.6;
    background: #f9f9f9;
}

.support-message {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    max-width: 80%;
}

.support-message.user {
    background: rgba(46, 204, 113, 0.14);
    color: #f4f7fb;
    border: 1px solid rgba(46, 204, 113, 0.3);
    margin-left: auto;
}

.support-message.admin {
    background: #262830;
    color: #f4f7fb;
    margin-right: auto;
}

.new-ticket-btn {
    width: 100%;
    padding: 12px;
    background: rgba(46, 204, 113, 0.14);
    color: #f4f7fb;
    border: 1px solid rgba(46, 204, 113, 0.36);
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 16px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Адаптивность */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }
    .friends-list {
        width: 100%;
        max-height: 200px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Кнопки в сообщениях */
.offer-box button {
    width: auto;
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
    display: inline-block;
}

.offer-box .offer-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Админ-панель спорных дуэлей */
.disputed-duels-panel {
    background: #fff3cd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}

.disputed-duel-card {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.disputed-duel-card:last-child {
    margin-bottom: 0;
}

.disputed-duel-header {
    font-weight: bold;
    margin-bottom: 8px;
}

.disputed-duel-players {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
}

.admin-duel-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.admin-duel-buttons button {
    width: auto;
    padding: 6px 12px;
    margin: 0;
}

.btn-resolve {
    background: #2ecc71;
    color: white;
}

.btn-cancel-duel {
    background: #e74c3c;
    color: white;
}

.btn-view-video {
    background: #3498db;
    color: white;
}

/* Админ-панель спорных дуэлей */
.disputed-duels-panel {
    background: #fff3cd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}

.disputed-duel-card {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.disputed-duel-card:last-child {
    margin-bottom: 0;
}

.view-video-btn, .admin-duel-buttons button {
    width: auto;
    margin: 0;
}
.notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background:
        radial-gradient(circle at top left, rgba(114, 150, 99, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        rgba(34, 36, 43, 0.97);
    color: #f4f7fb;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(46, 204, 113, 0.24);
    z-index: 2000;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
    animation: slideIn 0.3s ease;
    max-width: 350px;
    white-space: pre-line;
}

.notification-toast.warning {
    border-color: rgba(231, 76, 60, 0.28);
    background:
        radial-gradient(circle at top left, rgba(231, 76, 60, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        rgba(34, 36, 43, 0.97);
}

.notification-toast.success {
    border-color: rgba(46, 204, 113, 0.28);
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        rgba(34, 36, 43, 0.97);
}

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

@media (max-width: 768px) {
    .notification-toast {
        top: calc(66px + env(safe-area-inset-top));
        left: 8px;
        right: 8px;
        width: auto;
        max-width: 420px;
        margin: 0 auto;
        animation: none;
    }
}

@media (max-width: 480px) {
    .notification-toast {
        top: calc(62px + env(safe-area-inset-top));
        left: 6px;
        right: 6px;
        max-width: 360px;
        padding: 11px 12px;
        border-radius: 13px;
    }
}

/* Стили для подсказки рейтинга */
#rating-tooltip {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid #5c67f2;
}

/* Стили для бейджей результатов */
.duel-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.duel-status-finished {
    background: #2ecc71;
    color: white;
}

.duel-status-disputed {
    background: #e74c3c;
    color: white;
}

.duel-status-waiting {
    background: #f39c12;
    color: white;
}

/* Стиль для рейтинга с "?" */
.rating-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    transition: all 0.2s;
}

.rating-value[data-empty="true"] {
    font-size: 28px;
    font-weight: bold;
    color: #95a5a6;
}

.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.info-modal.active {
    display: flex;
}

.info-modal-content {
    background: white;
    border-radius: 24px;
    width: 550px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.info-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.info-modal-close:hover {
    color: #333;
}

.info-modal-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 16px;
}

.info-modal-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 24px;
}

.info-modal-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.info-modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-modal-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #5c67f2;
    margin-bottom: 12px;
}

.info-modal-section p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 8px;
}

.info-modal-section ul {
    font-size: 14px;
    line-height: 1.5;
}

.info-example {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #2c3e50;
    margin-top: 8px;
    border-left: 3px solid #5c67f2;
}

.info-formula {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    margin: 12px 0;
    font-family: monospace;
    font-size: 16px;
}

.info-note {
    font-size: 12px;
    color: #e74c3c;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.info-modal-buttons {
    margin-top: 24px;
    text-align: center;
}

.info-modal-btn {
    background: #5c67f2;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
}

.info-modal-btn:hover {
    background: #4a55e0;
    transform: scale(1.02);
}
