body {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    background: radial-gradient(ellipse at top left, #232526 0%, #4fc3f7 100%);
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.navbar {
    width: 100%;
    background: #222;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.navbar a:hover {
    color: #4fc3f7;
}
.container {
    background: rgba(34,34,34,0.95);
    padding: 2.5rem 3.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.35);
    text-align: center;
    max-width: 400px;
    margin: auto;
}
h1, .dashboard-title, .login-title, .sidebar-logo {
    font-family: 'Poppins', Arial, sans-serif;
    margin-bottom: 1.5rem;
    color: #4fc3f7;
    font-size: 2.2rem;
}
p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
button, .btn {
    background: #4fc3f7;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover {
    background: #3daeea;
}
.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 1rem;
    background: #333;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero-header {
    background: linear-gradient(135deg, #232526 0%, #4fc3f7 100%);
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    margin-bottom: 0;
}
.hero-header h1 {
    color: #4fc3f7;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.hero-subtitle {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}
.hero-status {
    color: #b2ebf2;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2.5rem auto 0 auto;
    max-width: 900px;
    width: 100%;
}
.dashboard-card {
    background: rgba(34,34,34,0.97);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.dashboard-card:hover {
    box-shadow: 0 8px 32px rgba(79,195,247,0.18);
    transform: translateY(-4px) scale(1.03);
}
.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4fc3f7;
}
.dashboard-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.dashboard-label {
    font-size: 1rem;
    color: #bbb;
    margin-top: auto;
}
.dashboard-header {
    text-align: center;
    margin: 2.5rem auto 0.5rem auto;
    max-width: 700px;
    padding-bottom: 0.5rem;
}
.dashboard-title {
    color: #4fc3f7;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.13);
}
.dashboard-subtitle {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    font-weight: 400;
}
.dashboard-status {
    color: #b2ebf2;
    font-size: 1rem;
    margin-top: 0.3rem;
    font-weight: 500;
}
.center-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.login-title {
    color: #4fc3f7;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.13);
}
.login-subtitle {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.btn-steam {
    background: #4fc3f7;
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
}
.btn-steam:hover {
    background: #3daeea;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 210px;
    height: 100vh;
    background: #232526;
    box-shadow: 2px 0 16px rgba(0,0,0,0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
    z-index: 100;
}
.sidebar-logo {
    color: #4fc3f7;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}
.sidebar-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.13rem;
    margin: 0.7rem 0;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}
.sidebar-link i {
    margin-right: 0.7rem;
    font-size: 1.2rem;
}
.sidebar-link:hover, .sidebar-link.active {
    background: #4fc3f7;
    color: #222;
}
.main-content {
    margin-left: 210px;
    padding: 0;
}
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    min-width: 220px;
    max-width: 320px;
    background: #232526;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    font-size: 1.1rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    transform: translateY(40px);
}
@keyframes toast-pop {
    0% { opacity: 0; transform: translateY(40px) scale(0.95);}
    60% { opacity: 1; transform: translateY(-8px) scale(1.05);}
    80% { opacity: 1; transform: translateY(0) scale(1);}
    100% { opacity: 1; transform: translateY(0) scale(1);}
}
.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: toast-pop 0.7s cubic-bezier(.25,1.7,.5,1.15);
}
.toast-success {
    border-left: 6px solid #4fc3f7;
}
.toast-error {
    border-left: 6px solid #e57373;
}
@media (max-width: 700px) {
    .sidebar {
        width: 100vw;
        height: auto;
        flex-direction: row;
        justify-content: center;
        padding: 1rem 0;
        position: static;
    }
    .sidebar-logo {
        margin-bottom: 0;
        margin-right: 2rem;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Punktide väärtuse "pop" animatsioon */
@keyframes points-pop {
    0% { color: #4fc3f7; transform: scale(1);}
    30% { color: #fff176; transform: scale(1.25);}
    60% { color: #4fc3f7; transform: scale(0.95);}
    100% { color: #4fc3f7; transform: scale(1);}
}
.points-animated {
    animation: points-pop 0.7s;
}
