/* Базов ресет и общи настройки */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body, html {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #e0e0e0;
    overflow-x: hidden;
}





/* Хедър и навигация */
.main-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0,0,0,0.6);
    border-bottom: 1px solid rgba(255,0,68,0.4);
}
.navbar .logo {
    font-size: 32px;
    font-weight: 700;
    color: #ff0044;
    letter-spacing: 2px;
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin: 0 15px;
}
.nav-links li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 18px;
    transition: color 0.3s;
}
.nav-links li a:hover {
    color: #ff0044;
}
.user-actions a.btn {
    margin-left: 15px;
    padding: 8px 20px;
    background: #ff0044;
    border: 1px solid #ff0044;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background 0.3s;
}
.user-actions a.btn:hover {
    background: #e60039;
}

/* Геройска секция с оригиналния бекраунд */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    
}
.hero-content {
    z-index: 10;
}
.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ff0044;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
}
.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}
.hero-btn {
    padding: 15px 30px;
    background: #ff0044;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
}
.hero-btn:hover {
    transform: scale(1.05);
    background: #e60039;
}

/* Секция "За играта" */
.about-section {
    padding: 60px 50px;
    text-align: center;
    background-color: #111;
    border-top: 1px solid rgba(255,0,68,0.2);
}
.about-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff0044;
}
.about-section p {
    font-size: 18px;
    line-height: 1.6;
}

/* Секция "Функции" */
.features-section {
    padding: 60px 50px;
    text-align: center;
    background-color: #0d0d0d;
}
.features-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff0044;
}
.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.feature-cards .card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.9);
}
.feature-cards .card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff0044;
}
.feature-cards .card p {
    font-size: 16px;
    line-height: 1.4;
}

/* Футър */
.main-footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    font-size: 14px;
    border-top: 1px solid rgba(255,0,68,0.2);
}

/* Responsive дизайн */
@media screen and (max-width: 768px) {
    .navbar {
        display: none !important; /* Принудително скриване на менюто */
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    .hero-content p {
        font-size: 20px;
    }
    .feature-cards {
        flex-direction: column;
        gap: 20px;
    }
}







 /* Регистрационната кутия */
        .register-box {
            position: relative;
            z-index: 1;
            background: rgba(0, 0, 0, 0.85);
            background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(34,34,34,0.9));
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 0 25px rgba(255, 0, 68, 0.4);
            text-align: center;
            width: 350px;
        }
        
        .register-box h2 {
            margin-bottom: 20px;
            color: #ff0044;
            font-size: 28px;
        }
        
        /* Стилове за входните полета */
        .register-box input[type="text"],
        .register-box input[type="email"],
        .register-box input[type="password"] {
            width: 100%;
            padding: 12px;
            margin: 10px 0;
            border: none;
            border-radius: 5px;
            background: #222;
            color: #fff;
            font-size: 16px;
        }
        
        .register-box input::placeholder {
            color: #999;
        }
        
        /* Бутона за регистрация */
        .register-box button.game-btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            background: #ff0044;
            color: #fff;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s, transform 0.2s;
        }
        
        .register-box button.game-btn:hover {
            background: #e60039;
            transform: scale(1.02);
        }
        
        /* Стил за линка към входа */
        .register-box a.game-btn {
            display: inline-block;
            margin-top: 15px;
            padding: 10px 20px;
            background: #ff0044;
            color: #fff;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background 0.3s, transform 0.2s;
        }
        
        .register-box a.game-btn:hover {
            background: #e60039;
            transform: scale(1.02);
        }
        
        /* Съобщения за грешка */
        .error-box p {
            background-color: rgba(255, 0, 68, 0.2);
            padding: 8px;
            margin-bottom: 10px;
            border-radius: 5px;
            font-size: 14px;
        }
        
        /* Съобщение за успешна регистрация (VIP стил) */
        .vip-label {
            padding: 10px;
            background: #22bb33;
            border-radius: 5px;
            font-size: 16px;
            color: #fff;
            margin-bottom: 15px;
        }
		
		
		.login-box {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.85);
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(34,34,34,0.9));
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 0, 68, 0.4);
    text-align: center;
    width: 350px;
}

.login-box h2 {
    margin-bottom: 20px;
    color: #ff0044;
    font-size: 28px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 16px;
}

.login-box input::placeholder {
    color: #999;
}

.login-box button.game-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #ff0044;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.login-box button.game-btn:hover {
    background: #e60039;
    transform: scale(1.02);
}

.login-box a.game-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff0044;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.login-box a.game-btn:hover {
    background: #e60039;
    transform: scale(1.02);
}

.error-box {
    background-color: rgba(255, 0, 68, 0.2);
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #ff0044;
}

.login-note {
    margin-top: 15px;
    font-size: 14px;
    color: #ccc;
}

.login-note a {
    color: #ff0044;
    font-weight: bold;
    text-decoration: none;
}

.login-note a:hover {
    text-decoration: underline;
}
body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: 'Roboto', sans-serif;
            background-color: #000;
        }

        .register-wrapper {
            background: url('/assets/images/bg.jpg') no-repeat center center/cover;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding-top: 80px;
        }

        .register-box-outer {
            background: rgba(0, 0, 0, 0.8);
            padding: 40px;
            border-radius: 20px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 0 30px rgba(255, 0, 68, 0.4);
        }

        .register-box-outer h2 {
            text-align: center;
            color: #ff0044;
            margin-bottom: 25px;
        }

        .register-box-outer form input {
            width: 100%;
            padding: 14px;
            margin-bottom: 15px;
            background: #1a1a1a;
            color: white;
            border: 1px solid #333;
            border-radius: 5px;
            font-size: 16px;
        }

        .register-box-outer form input::placeholder {
            color: #999;
        }

        .register-box-outer button {
            width: 100%;
            background: #ff0044;
            color: white;
            padding: 14px;
            border: none;
            border-radius: 5px;
            font-weight: bold;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .register-box-outer button:hover {
            background: #e60039;
        }

        .error-box, .vip-label {
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 5px;
        }

        .error-box {
            background: rgba(255, 0, 68, 0.15);
            color: #ff0044;
        }

        .vip-label {
            background: rgba(34, 187, 51, 0.15);
            color: #22bb33;
        }

        .register-box-outer a {
            color: #ff0044;
            text-decoration: none;
            font-weight: bold;
            display: block;
            text-align: center;
            margin-top: 15px;
        }
		
		/* Профилна страница – стилове */

.layout-wrapper {
    display: flex;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.profile-center {
    flex: 1;
}

.section-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 68, 0.3);
    margin-bottom: 30px;
}

.section-box h2,
.section-box h3 {
    color: #ff0044;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 1px solid rgba(255,0,68,0.3);
    padding-bottom: 10px;
}

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

.profile-left {
    flex: 1 1 250px;
    text-align: center;
}

.profile-left .avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #ff0044;
    object-fit: cover;
    margin-bottom: 10px;
}

.vip-banner {
    background: #ff0044;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.location-label {
    margin-top: 10px;
    color: #ccc;
    font-size: 14px;
}

.profile-right {
    flex: 2 1 500px;
}

.progress-block {
    margin-bottom: 20px;
}

.progress-bar {
    background: #222;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0044, #e60039);
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.stat-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 15px;
}

.stat-table td:first-child {
    color: #aaa;
    font-weight: bold;
    width: 35%;
}

.inventory-preview img {
    width: 60px;
    height: 60px;
    margin: 5px;
    border: 2px solid #ff0044;
    border-radius: 8px;
    background: #111;
}

.action-panel,
.profile-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.extra-sections ul {
    list-style: none;
    padding-left: 0;
}

.extra-sections li {
    padding: 5px 0;
    color: #e0e0e0;
    font-size: 14px;
}


/* Стилизация на профилния блок */
.section-box {
    background: radial-gradient(rgba(0,0,0,0.9), #000);
    border: 1px solid #ff0044;
    box-shadow: 0 0 15px rgba(255, 0, 68, 0.4);
    padding: 30px;
    border-radius: 20px;
}

/* Заглавие на профила */
.section-box h2 {
    font-size: 26px;
    color: #ff0044;
    text-align: left;
    margin-bottom: 20px;
}

/* Прогрес лента */
.progress-bar {
    background: #333;
    height: 18px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0 20px;
}

.progress-fill {
    background: #ff0044;
    height: 100%;
    color: white;
    font-size: 13px;
    text-align: center;
    line-height: 18px;
    transition: width 0.4s ease;
}

/* Аватар */
.profile-left .avatar {
    border: 4px solid #ff0044;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin: 0 auto 10px;
    background: #111;
    display: block;
}

/* Локация */
.location-label {
    text-align: center;
    color: #ff66a3;
    font-size: 15px;
    margin-top: 8px;
}

/* Таблица със статистики */
.stat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.stat-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
}

.stat-table td:first-child {
    color: #bbb;
    font-weight: 600;
    width: 40%;
}

/* Списък с действия и събития */
.extra-sections ul {
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
}

.extra-sections li {
    color: #ccc;
    margin: 6px 0;
    position: relative;
    padding-left: 20px;
}

.extra-sections li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #ff0044;
    font-size: 13px;
}

/* Дясна лента - Последни събития */
.sidebar-right {
    min-width: 220px;
    max-width: 250px;
}

.sidebar-right h3 {
    color: #ff0044;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Стилове за сайдбара секции */
.sidebar-section {
    background: rgba(0, 0, 0, 0.75);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 0, 68, 0.25);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 0, 68, 0.2);
}

.sidebar-section h3 {
    color: #ff0044;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Стилове за сървърно време */
.server-time-box {
    background: rgba(0, 0, 0, 0.75);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 0, 68, 0.25);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 0, 68, 0.2);
}

.server-time-display {
    text-align: center;
}

.server-time-display .time {
    font-size: 24px;
    font-weight: bold;
    color: #ff0044;
    margin-bottom: 5px;
}

.server-time-display .date {
    font-size: 14px;
    color: #ccc;
}

/* Стилове за обновления */
.event-box {
    background: rgba(0, 0, 0, 0.75);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 0, 68, 0.25);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 0, 68, 0.2);
}

.updates-list {
    margin-bottom: 15px;
}

.update-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 0, 68, 0.2);
}

.update-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.update-icon {
    font-size: 18px;
    margin-right: 10px;
}

.update-title {
    font-weight: bold;
    color: #ff0044;
    font-size: 14px;
}

.update-description {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.update-date {
    color: #888;
    font-size: 11px;
}

.view-all-updates, .view-all-messages {
    display: block;
    text-align: center;
    color: #ff0044;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    border: 1px solid rgba(255, 0, 68, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all-updates:hover, .view-all-messages:hover {
    background: rgba(255, 0, 68, 0.1);
    border-color: #ff0044;
}

/* Стилове за активни ефекти */
.active-effects {
    margin-bottom: 15px;
}

.effect-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 0, 68, 0.2);
    display: flex;
    align-items: center;
}

.effect-item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 15px;
    border: 1px solid rgba(255, 0, 68, 0.3);
}

.effect-info {
    flex: 1;
}

.effect-name {
    display: block;
    font-weight: bold;
    color: #ff0044;
    font-size: 14px;
    margin-bottom: 5px;
}

.effect-value {
    display: block;
    color: #ccc;
    font-size: 12px;
    margin-bottom: 3px;
}

.effect-time {
    display: block;
    color: #888;
    font-size: 11px;
}

.no-effects, .no-messages {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Стилове за съобщения */
.recent-messages {
    margin-bottom: 15px;
}

.recent-message {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 0, 68, 0.2);
    transition: all 0.3s ease;
}

.recent-message:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 0, 68, 0.4);
}

.recent-message.unread {
    border-color: #ff0044;
    background: rgba(255, 0, 68, 0.1);
}

.message-preview {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid rgba(255, 0, 68, 0.3);
}

.message-info {
    flex: 1;
}

.sender-name {
    display: block;
    font-weight: bold;
    color: #ff0044;
    font-size: 13px;
    margin-bottom: 2px;
}

.message-time {
    display: block;
    color: #888;
    font-size: 11px;
}

.message-text {
    color: #ccc;
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
}

.unread-badge {
    background: #ff0044;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 10px;
}

/* Стилове за глобалния чат */
.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-username {
    font-weight: bold;
    color: #ff0044;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-username.vip {
    color: #b8860b;
    text-shadow: 0 0 5px rgba(184, 134, 11, 0.5);
}

.chat-username.admin {
    color: #dc3545;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.chat-username.system {
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.chat-text {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.chat-time {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

.chat-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: rgba(255, 0, 68, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 0, 68, 0.3);
}

.chat-stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
}

.chat-stats-item span:first-child {
    font-size: 18px;
}

.chat-input-container {
    margin-top: 20px;
}

.emoji-panel {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.emoji-btn {
    background: rgba(255, 0, 68, 0.2);
    border: 1px solid rgba(255, 0, 68, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.emoji-btn:hover:not(:disabled) {
    background: rgba(255, 0, 68, 0.4);
    border-color: #ff0044;
    transform: scale(1.1);
}

.emoji-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 0, 68, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #ff0044;
    box-shadow: 0 0 10px rgba(255, 0, 68, 0.3);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send-btn {
    background: linear-gradient(45deg, #ff0044, #cc0033);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chat-send-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #ff3366, #ff0044);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 68, 0.4);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    border: 2px solid rgba(231, 76, 60, 0.5);
}

.loading {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
}

.game-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px; /* допълнителен отстъп за меню и футър */
}

/* бекграунда зад профила */
.game-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* съдържанието винаги над бекграунда */
.layout-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
	
}
body {
    background: url('/assets/images/bg.jpg') center top no-repeat fixed;
    background-size: cover;
    background-color: #000;
}

/* Responsive background за различни резолюции */
@media (max-width: 1920px) {
    body {
        background-size: 100% auto;
    }
}

@media (max-width: 1366px) {
    body {
        background-size: 100% auto;
    }
}

@media (max-width: 1024px) {
    body {
        background-size: cover;
    }
}

@media (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover;
        background-position: center center;
    }
}

.sidebar-box {
    background: rgba(0, 0, 0, 0.75);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 0, 68, 0.25);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 0, 68, 0.2);
}

.sidebar-box h3 {
    color: #ff0044;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.sidebar-nav {
    list-style: none;
    padding-left: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 16px;
    transition: color 0.2s ease;
}

.sidebar-nav a:hover {
    color: #ff0044;
}

.game-btn {
    display: inline-block;
    margin: 8px 6px 6px 0;
    padding: 10px 20px;
    background: #ff0044;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 0, 68, 0.5);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.game-btn:hover {
    background: #e60039;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(255, 0, 68, 0.8);
}

.game-btn:active {
    transform: scale(0.98);
}

.event-box {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 0, 68, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.1);
    margin-bottom: 25px;
    max-width: 400px;
}

.event-box h3 {
    color: #ff0044;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 1px solid rgba(255, 0, 68, 0.3);
    padding-bottom: 6px;
}

.event-box ul {
    list-style: none;
    padding-left: 0;
}

.event-box ul li {
    padding: 6px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-box ul li:last-child {
    border-bottom: none;
}

.map-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #ff0044;
    border-radius: 12px;
}

.map-location {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 14px;
    color: #fff;
    border: 2px solid #ff0044;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.map-location:hover {
    background: #ff0044;
    color: #fff;
}

.inventory-preview {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ff0044;
    border-radius: 10px;
    padding: 20px;
    color: #fff;
}

.inventory-preview h4 {
    color: #ff0044;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.inventory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.inventory-grid img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #333;
    background: #111;
    padding: 5px;
    transition: transform 0.2s ease;
}

.inventory-grid img:hover {
    transform: scale(1.1);
    border-color: #ff0044;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 68, 0.3);
    border-left: 5px solid #ff0044;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s, background 0.3s;
}

.stat-box:hover {
    background: rgba(255, 0, 68, 0.1);
    transform: translateY(-3px);
}

.gang-create-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.3);
    text-align: center;
}

.gang-create-box h3 {
    margin-bottom: 20px;
    color: #ff0044;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(255, 0, 68, 0.5);
}

.gang-create-box input,
.gang-create-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}

.gang-create-box input::placeholder,
.gang-create-box textarea::placeholder {
    color: #aaa;
}

.gang-create-box textarea {
    resize: vertical;
}

.gang-create-box .game-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    background: #ff0044;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.gang-create-box .game-btn:hover {
    background: #e60039;
    transform: scale(1.03);
}


.gang-container {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: auto;
    box-shadow: 0 0 30px rgba(255, 0, 68, 0.4);
    color: #fff;
}

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

.gang-header h2 {
    font-size: 28px;
    color: #ff0044;
}

.gang-info p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.gang-members {
    margin-top: 30px;
}

.gang-members ul {
    list-style: none;
    padding-left: 0;
}

.gang-members li {
    background: #111;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 15px;
}

.edit-btn {
    padding: 8px 15px;
    background: #ff0044;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.edit-btn:hover {
    background: #e60039;
}
.game-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
}
.game-link:hover {
    text-decoration: underline;
}
.mission-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.mission-image-wrapper img {
    width: 100%;
    display: block;
}
.mission-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #0ff;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}#progressBarWrapper {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}
#progressBar {
    height: 100%;
    background: linear-gradient(to right, #0ff, #0aa);
    width: 0%;
}
.mission-flavor-text {
    margin-top: 15px;
    background: #1a1a1a;
    padding: 10px 15px;
    border-left: 4px solid #0ff;
    border-radius: 6px;
    font-style: italic;
    color: #ccc;
    text-align: left;
}
.hero-crew {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: flex-end;
}

.hero-crew img {
    max-height: 200px; /* Увеличено от 100px на 180px */
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-crew img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0,255,255,0.6);
}

/* District Page Styles */
.district-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/district-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #ff0044;
}

.district-banner h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.city-link a {
    color: #ff0044;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.city-link a:hover {
    color: #ff3366;
}

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

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

.stat-box {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    color: #ff0044;
    margin-bottom: 10px;
}

.stat-box p {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.missions-section, .battles-section {
    margin-bottom: 40px;
}

.missions-section h2, .battles-section h2 {
    color: #ff0044;
    border-bottom: 2px solid #ff0044;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mission-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mission-card.completed {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.mission-card.failed {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.mission-card .card-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mission-card .card-text {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.mission-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.mission-details p {
    color: #ddd;
    margin-bottom: 0.5rem;
}

.mission-details strong {
    color: #fff;
}

.mission-card .btn-primary {
    background: #007bff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mission-card .btn-primary:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.battles-list {
    display: grid;
    gap: 20px;
}

.battle-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s;
}

.battle-card:hover {
    transform: translateY(-5px);
    border-color: #ff0044;
}

.battle-card h3 {
    color: #fff;
    margin-bottom: 15px;
}

.battle-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.team {
    text-align: center;
    padding: 10px;
    background: rgba(255, 0, 68, 0.1);
    border-radius: 4px;
}

.team span {
    color: #fff;
}

.battle-result {
    text-align: center;
    color: #ff0044;
    font-weight: bold;
}

.mission-box.completed {
    opacity: 0.8;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
}

.mission-box.completed h3 {
    color: #28a745;
}

/* Стилове за бърлогата */
.burloga-container {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(255, 0, 68, 0.3);
    margin-bottom: 30px;
}

.burloga-header {
    text-align: center;
    margin-bottom: 25px;
}

.burloga-header h2 {
    color: #ff0044;
    font-size: 28px;
    margin-bottom: 10px;
}

.burloga-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.burloga-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.2);
}

.burloga-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.burloga-image:hover img {
    transform: scale(1.02);
}

.burloga-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.burloga-stats .stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.burloga-stats .stat-box h3 {
    color: #ff0044;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 68, 0.3);
    padding-bottom: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: #ccc;
}

.stat-row span:last-child {
    color: #fff;
    font-weight: bold;
}

.burloga-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.action-form {
    width: 100%;
}

.action-form .game-btn {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}

.action-form .game-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .burloga-content {
        grid-template-columns: 1fr;
    }
    
    .burloga-image {
        margin-bottom: 20px;
    }
}

/* NPC Пешо стилове */
.npc-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.npc-container * {
    pointer-events: auto;
}

/* Речеви балон */
.speech-bubble {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ff0044;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 15px;
    max-width: 300px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 0, 68, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.speech-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ff0044;
}

.speech-bubble span {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* NPC Персонаж */
.npc-character {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.npc-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #ff0044;
    box-shadow: 0 5px 20px rgba(255, 0, 68, 0.4), 0 0 40px rgba(255, 0, 68, 0.2);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

/* Idle режим - леко клатене */
.npc-character.idle {
    animation: idleFloat 3s ease-in-out infinite;
}

@keyframes idleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

/* Active режим - мигане и клатене */
.npc-character.active {
    animation: activePulse 1.5s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        box-shadow: 0 5px 20px rgba(255, 0, 68, 0.4), 0 0 40px rgba(255, 0, 68, 0.2);
    }
    25% { 
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 0, 68, 0.6), 0 0 50px rgba(255, 0, 68, 0.4);
    }
    50% { 
        transform: translateY(-10px) scale(1.1);
        box-shadow: 0 10px 30px rgba(255, 0, 68, 0.8), 0 0 60px rgba(255, 0, 68, 0.6);
    }
    75% { 
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 0, 68, 0.6), 0 0 50px rgba(255, 0, 68, 0.4);
    }
}

/* Hover ефекти */
.npc-character:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 68, 0.6), 0 0 50px rgba(255, 0, 68, 0.4);
}

.npc-character:hover .speech-bubble {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive дизайн за NPC */
@media (max-width: 768px) {
    .npc-container {
        bottom: 20px;
        right: 20px;
    }
    
    .npc-image {
        width: 100px;
        height: 100px;
    }
    
    .speech-bubble {
        max-width: 250px;
        padding: 12px 16px;
    }
    
    .speech-bubble span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .npc-container {
        bottom: 15px;
        right: 15px;
    }
    
    .npc-image {
        width: 80px;
        height: 80px;
    }
    
    .speech-bubble {
        max-width: 200px;
        padding: 10px 14px;
    }
    
    .speech-bubble span {
        font-size: 0.75rem;
    }
}
