/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

#playerProfileModal {
    z-index: 1100;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

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

/* ========== ПРОФИЛЬ МОДАЛЬНОЕ ОКНО ========== */
.profile-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
}

.profile-layout {
    display: flex;
    gap: 20px;
}

.profile-left {
    flex: 1;
    min-width: 0;
}

.profile-right {
    width: 220px;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
}

.custom-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-group label {
    font-size: 0.8em;
    color: #666;
}

.custom-row {
    display: flex;
    gap: 6px;
}

.custom-row input,
.custom-row select {
    flex: 1;
    padding: 6px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.85em;
    min-width: 0;
}

.custom-row .play-btn.small {
    padding: 6px 10px;
    font-size: 0.8em;
}

.play-btn.full-width {
    width: 100%;
}

/* Мобильная версия профиля */
@media (max-width: 600px) {
    .profile-layout {
        flex-direction: column;
        gap: 12px;
    }
    
    .profile-right {
        width: 100%;
    }
    
    .profile-modal {
        max-height: 95vh;
        overflow-y: scroll;
        padding: 15px;
        padding-right: 10px;
    }
    
    /* Видимый скроллбар */
    .profile-modal::-webkit-scrollbar {
        width: 6px;
    }
    
    .profile-modal::-webkit-scrollbar-track {
        background: #e9ecef;
        border-radius: 3px;
    }
    
    .profile-modal::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 3px;
    }
    
    /* Градиент-тень внизу для индикации скролла */
    .profile-modal::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        display: block;
        margin-top: -30px;
    }
}

@media (max-width: 350px) {
    .profile-modal {
        padding: 10px;
    }
    
    .profile-header {
        gap: 10px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .profile-avatar-container {
        transform: scale(0.8);
    }
    
    .profile-player-name {
        font-size: 1em;
    }
    
    .profile-stats-grid {
        gap: 4px;
    }
    
    .profile-stat {
        padding: 6px 4px;
    }
    
    .profile-stat .stat-icon {
        font-size: 1em;
    }
    
    .profile-stat .stat-value {
        font-size: 0.85em;
    }
    
    .profile-right {
        padding: 10px;
        gap: 8px;
    }
    
    .custom-row input,
    .custom-row select {
        padding: 5px 6px;
        font-size: 0.8em;
    }
    
    .badges-slots {
        gap: 4px;
    }
    
    .badge-slot {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
}

.profile-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* VIP плашка в профиле */
.profile-avatar-container .profile-vip-badge {
    margin-top: 110px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.profile-frame-display {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 4px solid #666;
    background: transparent;
    pointer-events: none;
}

.profile-avatar-container .profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('/images/photo.png');
    background-size: cover;
    background-position: center;
    border: none !important;
}

.profile-main-info {
    flex: 1;
}

.profile-player-name {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.profile-rank-badge {
    display: inline-flex;
    gap: 8px;
    padding: 5px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    margin-bottom: 10px;
}

.profile-rating {
    color: #666;
}

.profile-badges {
    margin-bottom: 12px;
}

.badges-slots {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-slot {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
}

.badge-slot .badge-empty {
    color: #ccc;
    font-size: 1em;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 500px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-stat {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 10px 8px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.profile-stat .stat-icon {
    font-size: 1.3em;
}

.profile-stat .stat-value {
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.customization-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.customization-row label {
    width: 120px;
    font-weight: 500;
}

.customization-row input,
.customization-row select {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

/* ========== MATCHMAKING ========== */
.matchmaking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.matchmaking-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 40px 50px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.3s ease;
}

.matchmaking-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid #e9ecef;
    border-top: 5px solid transparent;
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
}

.matchmaking-box h2 {
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6em;
}

.matchmaking-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.matchmaking-box .cancel-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.matchmaking-box .cancel-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

@media (max-width: 500px) {
    .matchmaking-box {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .matchmaking-spinner {
        width: 60px;
        height: 60px;
    }
    
    .matchmaking-box h2 {
        font-size: 1.4em;
    }
}

/* ========== ЭКРАН ОКОНЧАНИЯ РАУНДА ========== */
.round-end-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.round-end-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 40px 50px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    animation: scaleIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.round-end-box.victory {
    border: 3px solid #28a745;
    box-shadow: 0 20px 60px rgba(40, 167, 69, 0.3);
}

.round-end-box.defeat {
    border: 3px solid #dc3545;
    box-shadow: 0 20px 60px rgba(220, 53, 69, 0.3);
}

.round-end-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 0.6s ease;
}

.round-end-box h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.round-end-box.victory h2 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.round-end-box.defeat h2 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.round-end-box p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.round-end-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.round-end-stat {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 25px;
    border-radius: 12px;
    min-width: 100px;
}

.round-end-stat-value {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.round-end-stat-label {
    font-size: 0.85em;
    color: #888;
    margin-top: 3px;
}

.round-end-winner {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.round-end-btn {
    margin-top: 15px;
}

.round-end-box .play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.round-end-box .play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.round-end-info {
    font-size: 1em;
    margin-bottom: 8px;
    color: #555;
}

@media (max-width: 500px) {
    .round-end-box {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .round-end-icon {
        font-size: 3em;
    }
    
    .round-end-box h2 {
        font-size: 1.5em;
    }
    
    .round-end-stats {
        gap: 10px;
    }
    
    .round-end-stat {
        padding: 12px 18px;
        min-width: 80px;
    }
    
    .round-end-stat-value {
        font-size: 1.6em;
    }
}

/* ========== ПОПАП ПОДТВЕРЖДЕНИЯ ========== */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.confirm-box,
.confirm-popup {
    background: rgba(255, 255, 255, 0.98);
    padding: 35px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.3s ease;
}

.confirm-box h3,
.confirm-popup h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.confirm-box p,
.confirm-popup p {
    font-size: 1.05em;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.confirm-yes {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.confirm-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.confirm-no {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.confirm-no:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.confirm-buttons .secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

@media (max-width: 400px) {
    .confirm-box,
    .confirm-popup {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .confirm-box h3,
    .confirm-popup h3 {
        font-size: 1.2em;
    }
    
    .confirm-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirm-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ========== УВЕДОМЛЕНИЯ (TOAST) ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    animation: toastSlideIn 0.4s ease forwards;
    pointer-events: auto;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

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

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

.toast-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 3px;
    color: #333;
}

.toast-message {
    font-size: 0.95em;
    color: #666;
}

.toast.success {
    border-left: 5px solid #28a745;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error {
    border-left: 5px solid #dc3545;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning {
    border-left: 5px solid #ffc107;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info {
    border-left: 5px solid #667eea;
}

.toast.info .toast-icon {
    color: #667eea;
}

.toast.achievement {
    border-left: 5px solid #FFD700;
    background: linear-gradient(135deg, #fff 0%, #fffacd 100%);
}

.toast.achievement .toast-icon {
    color: #FFD700;
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-width: 0;
}

@media (max-width: 350px) {
    .search-input-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input-container input {
        padding: 10px;
    }
    
    .search-input-container .play-btn {
        width: 100%;
    }
}

/* ========== ОФФЛАЙН РЕЖИМ ========== */
.offline-notice {
    text-align: center;
    padding: 30px;
}

.offline-notice h3 {
    font-size: 1.5em;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.offline-notice p {
    color: #666;
    margin-bottom: 20px;
}

.reconnect-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    margin-bottom: 20px;
}

.reconnect-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.offline-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #888;
    font-size: 0.9em;
}

.offline-divider::before,
.offline-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 15px;
}

.local-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    font-size: 1.2em;
    padding: 20px 40px !important;
}

.local-desc {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

/* ========== ЕЖЕДНЕВНЫЕ НАГРАДЫ ========== */
#dailyRewardsModal {
    z-index: 1100;
}

.daily-rewards-modal {
    max-width: 700px;
    text-align: center;
}

.daily-rewards-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.daily-rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 25px;
    padding-top: 15px; /* Место для плашек "День X" */
}

.daily-reward-card {
    border-radius: 12px;
    padding: 12px 8px;
    padding-bottom: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0,0,0,0.1);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Цвета карточек по дням */
.daily-reward-card[data-day="1"],
.daily-reward-card[data-day="5"] {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
}

.daily-reward-card[data-day="2"] {
    background: linear-gradient(135deg, #e2d5f5, #d4c4f0);
    border-color: #9b59b6;
}

.daily-reward-card[data-day="3"],
.daily-reward-card[data-day="4"],
.daily-reward-card[data-day="6"] {
    background: linear-gradient(135deg, #cce5ff, #b8daff);
    border-color: #007bff;
}

.daily-reward-card[data-day="7"] {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    border-color: #ffc107;
}

.daily-reward-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* День награды (плашка) */
.daily-reward-day {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #6c757d;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
}

.daily-reward-icon {
    font-size: 2em;
    margin: 10px 0 5px;
}

.daily-reward-name {
    font-size: 0.75em;
    color: #495057;
    text-align: center;
    line-height: 1.2;
}

/* Индикатор статуса (под наградой) */
.daily-reward-status {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
}

/* Статус: выдана */
.daily-reward-card.claimed {
    opacity: 0.6;
    filter: grayscale(30%);
    cursor: default;
}

.daily-reward-card.claimed .daily-reward-day {
    background: #28a745;
}

.daily-reward-card.claimed .daily-reward-status::after {
    content: '✓';
    color: #28a745;
    font-weight: bold;
}

/* Статус: заблокирована */
.daily-reward-card.locked {
    opacity: 0.5;
    filter: grayscale(50%);
    cursor: default;
}

.daily-reward-card.locked .daily-reward-day {
    background: #adb5bd;
}

.daily-reward-card.locked .daily-reward-status::after {
    content: '🔒';
}

/* Статус: доступна сегодня */
.daily-reward-card.available {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: dailyRewardPulse 1.5s ease-in-out infinite;
    cursor: pointer;
}

.daily-reward-card.available .daily-reward-day {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

@keyframes dailyRewardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

/* Кнопка получения награды */
.daily-rewards-claim-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.daily-rewards-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

.daily-rewards-claim-btn:disabled {
    background: #dee2e6;
    color: #adb5bd;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Модальное окно полученной награды */
#rewardClaimedModal {
    z-index: 1200;
}

.reward-claimed-modal {
    max-width: 400px;
    text-align: center;
}

.reward-claimed-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #28a745;
}

.reward-claimed-content {
    padding: 30px;
    margin: 20px 0;
    background: linear-gradient(135deg, #fff8dc, #fffacd);
    border-radius: 15px;
    border: 2px solid #FFD700;
}

.reward-claimed-icon {
    font-size: 4em;
    margin-bottom: 15px;
    display: block;
}

.reward-claimed-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.reward-claimed-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reward-claimed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Кнопка наград */
.rewards-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 8px 15px;
}

.rewards-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.rewards-btn .stat-value {
    font-size: 1.3em;
}

.rewards-btn.has-reward {
    animation: rewardsBtnPulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, #fff8dc, #fffacd);
    border: 2px solid #FFD700;
}

@keyframes rewardsBtnPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

.rewards-indicator {
    font-size: 0.8em;
    color: #28a745;
}

/* Респонсивность для мобильных */
@media (max-width: 600px) {
    .daily-rewards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .daily-reward-card {
        min-height: 80px;
        padding: 10px 5px;
        padding-bottom: 25px;
    }
    
    .daily-reward-icon {
        font-size: 1.5em;
    }
    
    .daily-reward-name {
        font-size: 0.65em;
    }
    
    .daily-rewards-claim-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/* Очень узкие экраны - вертикальное расположение */
@media (max-width: 400px) {
    .daily-rewards-modal {
        padding: 20px 15px;
    }
    
    .daily-rewards-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    
    .daily-rewards-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        max-height: 50vh;
        overflow-y: scroll;
    }
    
    /* Видимый скроллбар */
    .daily-rewards-grid::-webkit-scrollbar {
        width: 8px;
    }
    
    .daily-rewards-grid::-webkit-scrollbar-track {
        background: #e9ecef;
        border-radius: 4px;
    }
    
    .daily-rewards-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #FFD700, #FFA500);
        border-radius: 4px;
    }
    
    .daily-rewards-grid::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #FFC000, #FF8C00);
    }
    
    .daily-reward-card {
        flex-direction: row;
        min-height: auto;
        padding: 12px 15px;
        padding-right: 40px;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .daily-reward-day {
        position: static;
        transform: none;
        padding: 5px 12px;
        font-size: 0.8em;
        min-width: 60px;
        text-align: center;
    }
    
    .daily-reward-icon {
        font-size: 1.8em;
        margin: 0;
    }
    
    .daily-reward-name {
        font-size: 0.85em;
        text-align: left;
        flex: 1;
    }
    
    .daily-reward-status {
        position: absolute;
        right: 10px;
        left: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .daily-rewards-claim-btn {
        padding: 10px 25px;
        font-size: 0.95em;
    }
}

/* ========== ИНФОРМАЦИОННЫЕ ПОПАПЫ ========== */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #adb5bd;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.info-btn:hover {
    background: #6c757d;
    transform: scale(1.1);
}

.info-btn::before {
    content: '?';
}

/* Информационный попап */
#infoPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.info-popup {
    background: white;
    border-radius: 16px;
    padding: 25px 30px;
    max-width: 450px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    position: relative;
}

/* Видимый скроллбар для инфо-попапа */
.info-popup::-webkit-scrollbar {
    width: 8px;
}

.info-popup::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.info-popup::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

.info-popup::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
}

.info-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.info-popup-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
}

.info-popup-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.info-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.info-popup-close:hover {
    background: #e9ecef;
    color: #333;
}

.info-popup-content {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

.info-popup-content p {
    margin-bottom: 12px;
}

.info-popup-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.info-popup-content li {
    margin-bottom: 8px;
}

.info-popup-content strong {
    color: #333;
}

.info-popup-content .highlight {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px 15px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 4px solid #667eea;
}

.info-popup-content .formula {
    font-family: monospace;
    background: #f1f3f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

@media (max-width: 500px) {
    .info-popup {
        padding: 20px;
        border-radius: 14px;
    }
    
    .info-popup-title {
        font-size: 1.1em;
    }
    
    .info-popup-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }
    
    .info-popup-content {
        font-size: 0.9em;
    }
}
