* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1e24 0%, #0d0f14 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Hero секция */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffd700, #ffb700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.subtitle {
    font-size: 20px;
    color: #b0b8c5;
    margin-bottom: 40px;
}

/* Навигация */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 40px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    text-decoration: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd700;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffb700);
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #00c853, #00b34a);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: #ffffff;
}

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

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Формы */
.auth-box {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: #b0b8c5;
    cursor: pointer;
    font-size: 16px;
}

.tab.active {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b8c5;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #b0b8c5;
    font-size: 12px;
}

/* Карточки */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 215, 0, 0.1);
}

.feature h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-title {
    color: #b0b8c5;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
}

/* Матчи */
.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.match-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.match-code {
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 10px;
}

.match-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.status-waiting {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-live {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-finished {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

/* Команды */
.teams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.player-item.empty {
    color: #b0b8c5;
    font-style: italic;
}

.player-elo {
    font-size: 12px;
    color: #ffd700;
}

.captain-badge {
    font-size: 12px;
    color: #ffd700;
}

.confirmed-badge {
    color: #4caf50;
    font-size: 12px;
}

/* Счет */
.scoreboard {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.team-score {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-width: 150px;
}

.team-score.winner {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 183, 0, 0.2));
    border: 1px solid #ffd700;
}

.score {
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    display: block;
    margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .teams-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links a {
        margin-left: 15px;
    }
}

.no-data {
    text-align: center;
    color: #b0b8c5;
    padding: 40px;
}

.warning {
    color: #ff9800;
    font-size: 12px;
    margin-top: 10px;
}

/* Профиль */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ffd700, #ffb700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #000000;
}
/* Уведомления о приглашениях */
.invite-notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    max-width: 350px;
    width: 100%;
}

.invite-notification-content {
    background: linear-gradient(135deg, #1a1e24, #0d0f14);
    border: 2px solid #ff4d4d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.invite-notification-header {
    background: rgba(255,77,77,0.1);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,77,77,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #ff4d4d;
}

.invite-notification-close {
    background: transparent;
    border: none;
    color: #b0b8c5;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.invite-notification-close:hover {
    color: #ff4d4d;
}

.invite-notification-body {
    padding: 20px;
    color: #fff;
}

.invite-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.invite-player-avatar {
    width: 50px;
    height: 50px;
    border: 2px solid #ff4d4d;
    object-fit: cover;
}

.invite-player-name {
    font-weight: bold;
    color: #ff4d4d;
    font-size: 18px;
}

.invite-lobby-name {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.invite-notification-footer {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(255,77,77,0.2);
}

.invite-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.invite-btn.accept {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
}

.invite-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.invite-btn.decline {
    background: linear-gradient(45deg, #ff4d4d, #cc3333);
    color: white;
}

.invite-btn.decline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,77,77,0.4);
}

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