* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a0b2e, #2e1a47);
    color: #e0d4ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background: #3c1f66;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

nav a {
    color: #e0d4ff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #b19cd9;
}

nav .logout-btn {
    margin-left: auto;
}

.container {
    max-width: 1200px;
    margin: 100px auto 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.container-set {
    max-width: 100% !important;
    margin: 100px auto 20px;
    padding: 0 20px;
    width: 100%;
}

.weapon-card {
    background: #2e1a47;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.weapon-card h5 {
    color: #b19cd9;
    margin-bottom: 10px;
    font-weight: bold;
}

.skin-image {
    margin: 0 auto;
    display: block;
    width: 50%;
    max-width: 150px;
}

.weapon-form, .gloves-form, .knife-form, .extra-form, .cmd-form {
    margin-top: 10px;
}

.weapon-form select, .gloves-form select, .knife-form select, .extra-form select, .cmd-form select {
    width: 100%;
    padding: 8px;
    background: #3c1f66;
    color: #e0d4ff;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    font-size: 14px;
}

.weapon-form select:focus, .gloves-form select:focus, .knife-form select:focus, .extra-form select:focus, .cmd-form select:focus {
    outline: none;
    border-color: #b19cd9;
}

.btn {
    display: inline-block;
    margin: 5px 0;
    padding: 8px 16px;
    background: #6a1b9a;
    color: #e0d4ff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    min-width: 100px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #8e24aa;
}

.btn-danger {
    background: #d32f2f;
}

.btn-danger:hover {
    background: #b71c1c;
}

.btn-success {
    background: #4caf50;
}

.btn-success:hover {
    background: #388e3c;
}

.text-danger {
    color: #ff0000;
    font-size: 12px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.3s ease;
}

.modal-content {
    background: #2e1a47;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    min-width: 300px;
    overflow: auto;
    box-sizing: border-box;
}

.modal-header h5 {
    color: #b19cd9;
    margin-bottom: 15px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body label {
    color: #e0d4ff;
    font-size: 14px;
}

.modal-body select, .modal-body input {
    width: 100%;
    padding: 8px;
    background: #3c1f66;
    color: #e0d4ff;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    font-size: 14px;
}

.modal-body select:focus, .modal-body input:focus {
    outline: none;
    border-color: #b19cd9;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.server-card {
    background: #2e1a47;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
}

.server-card h2 {
    color: #b19cd9;
    margin-bottom: 10px;
}

.server-status {
    font-size: 16px;
    margin: 10px 0;
}

.status-online {
    color: #00ff00;
}

.status-offline {
    color: #ff0000;
}

.server-info {
    font-size: 14px;
    color: #d3c4ff;
    margin: 5px 0;
}

.server-ip { 
    font-size: 14px;
    color: #b19cd9;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    margin: 10px 0;
    transition: background 0.3s, color 0.3s;
}

.server-ip:hover {
    background: #6a1b9a;
    color: #e0d4ff;
}

.server-ip.copied {
    background: #4caf50;
    color: #fff;
}

.connect-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #6a1b9a;
    color: #e0d4ff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.connect-btn:hover {
    background: #8e24aa;
}

.connect-btn.disabled {
    background: #555;
    cursor: not-allowed;
}

.connect-btn.disabled:hover {
    background: #555;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav .logout-btn {
        margin-left: 0;
    }

    .container {
        margin-top: 150px;
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}

.vertical-spoilers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1rem 0;
    width: 100%;
}

.v-spoiler {
    background: #2e1a47;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a2a6e;
}

.v-spoiler-toggle {
    display: none;
}

.v-spoiler-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #4a2a6e, #3c1f66);
    color: #e0d4ff;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border-bottom: 1px solid #5a3a7e;
}

.v-spoiler-header:hover {
    background: linear-gradient(135deg, #5a3a7e, #4a2a6e);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(106, 27, 154, 0.3);
}

.v-spoiler-title {
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.v-spoiler-icon {
    transition: transform 0.3s ease;
    font-size: 1.4rem;
    font-weight: bold;
    color: #b19cd9;
}

.v-spoiler-toggle:checked ~ .v-spoiler-header .v-spoiler-icon {
    transform: rotate(90deg);
}

.v-spoiler-content {
    padding: 0;
    background: #2a1a40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 0;
}

.v-spoiler-toggle:checked ~ .v-spoiler-content {
    max-height: none;
    height: auto;
    opacity: 1;
    padding: 20px;
}

@media (max-width: 1200px) {
    .v-spoiler-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .v-spoiler-content {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 14px;
    }
    
    .v-spoiler-header {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .v-spoiler-title {
        font-size: 1.05rem;
    }
}

.v-spoiler-content .weapon-card {
    background: #3c1f66;
    border: 1px solid #5a3a7e;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.v-spoiler-content .weapon-card:hover {
    background: #4a2a6e;
    border-color: #b19cd9;
    box-shadow: 0 6px 16px rgba(106, 27, 154, 0.3);
}

.v-spoiler-content .skin-image {
    width: 60%;
    margin: 8px auto;
}

.v-spoiler-content .btn-primary {
    background: #6a1b9a;
    color: #e0d4ff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 8px;
    width: 100%;
    transition: background 0.3s ease;
}

.v-spoiler-content .btn-primary:hover {
    background: #8e24aa;
}

.mt-2 { margin-top: 0.5rem; }
.d-block { display: block; }

#pageLock {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: wait;
    user-select: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    font-family: Arial, sans-serif;
}

#pageLock.show {
    display: flex;
}

#pageLock .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #3c1f66;
    border-top: 6px solid #b19cd9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#pageLock .timer {
    color: #e0d4ff;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lang-switcher {
    margin-left: auto;
    display: flex;
    background: #4a2a6e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #6a1b9a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.lang-btn {
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
}

.lang-btn:first-child {
    border-right: 1px solid #6a1b9a;
}

.lang-btn.active {
    background: #8e24aa;
    color: #ffffff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

.lang-btn:hover:not(.active) {
    background: #5a3a7e;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 12px;
    }
    .lang-switcher {
        margin-left: 0;
        margin-top: 8px;
    }
}