:root {
    --background: #10121b;
    --panel: #191c29;
    --panel-light: #222638;
    --border: #30354a;
    --purple: #8864ed;
    --purple-hover: #704bd4;
    --text: #f2f2fa;
    --muted: #a1a5ba;
    --success: #37c98b;
    --danger: #ed6475;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

a {
    color: #ad96ff;
    text-decoration: none;
}

a:hover {
    color: white;
}

.navbar {
    background: #160019;
    border-bottom: 1px solid var(--border);
    padding: 16px 5%;
    display: flex;
    align-items: center;
    top:0;
    left:0;
    margin-top:110px;
    position:fixed;
    width:100%;

}

.brand {
    color: white;
    font-size: 23px;
    font-weight: bold;
}

.brand span {
    color: var(--purple);
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
margin:auto;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover {
    color: white;
}

.container {
    width: 92%;
    max-width: 100%;
    margin: 170px auto;
    padding:0px;
}

.members {

width:100%;
max-width:400px;
margin: 170px auto;
}

.profile {
	 width: 100%;  
	max-width : 400px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 10px 25px 10px;
    border-radius: 14px;
    margin-bottom: 14px;
    margin-top:10px;
    z-index:100;
}

.messages 

{
max-width:400px;
width:100%;
margin:auto;
}

.featuredgames {
	
	 margin: 0px auto;
}

.welcomeback
	{

    margin:170px auto 20px;
	width:100%;
	max-width:400px;
	}

.panel h2, .panel h3 {
    margin-top: 0;
}

.auth-box {
    background: var(--panel);
    width: 100%;
    max-width: 440px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    margin: 160px auto;
    box-shadow: 0 15px 50px #0005;
}

.auth-box h1 {
    text-align: center;
    font-size: 27px;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 10px;
}

label {
    display: block;
    margin: 16px 0 7px;
    font-size: 14px;
    color: #c4c7d7;
}

.rememberMe {
	display: flex; 
	align-items: center; 
	gap: 15px; 
	padding:10px;
}

.rememberCheckBox {
	margin: 0; 
	display: flex; 
	align-items: center; 
	gap: 5px; 
	cursor: pointer;
}

input[type="checkbox"] {
  width: auto;
}

input, textarea, select {
    width: 100%;
    padding: 13px;
    background: #111521;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: white;
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: 2px solid var(--purple);
    border-color: var(--purple);
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background: var(--purple-hover);
    color: white;
}

.btn-block {
    display: block;
    width: 20%;
    margin-top: 22px;
}

.btn-login{
	width:20%;
}

.btn-secondary {
    background: var(--panel-light);
    border: 1px solid var(--border);
}

.alert {
    padding: 13px;
    border-radius: 7px;
    background: #aa1c1c;
    border-left: 4px solid var(--purple);
    margin-bottom: 18px;
}

.success {
    border-color: var(--success);
}

.error {
    border-color: var(--danger);
}

.grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit, minmax(220px, 1fr)
    );
    gap: 18px;
}

.stat {
    background: var(--panel-light);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.stat strong {
    display: block;
    font-size: 28px;
    margin-top: 10px;
}

.avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--panel-light);
    border: 2px solid var(--purple);
}

.member {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.member:last-child {
    border-bottom: none;
}

.message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 12px 0;
    background: var(--panel-light);
}

.message.mine {
    background: #493a83;
    margin-left: auto;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

footer {
    text-align: center;
    color: var(--muted);
   
}

@media(max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-box {
        margin: 25px auto;
        padding: 25px;
    }

    .nav-links {
        gap: 13px;
    }
}
