:root {
    --bg-dark: #07090b;
    --bg-card: rgba(24, 28, 35, 0.6);
    --bg-card-solid: #181c23;
    --accent: #00f2ff;
    /* Cyber Cyan */
    --accent-gold: #ffb800;
    /* CS2 Rank/Gold */
    --accent-green: #4cd137;
    --accent-red: #e84118;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --ct-color: #5d79ae;
    --t-color: #de9b35;
    --font-fam: 'Outfit', 'Inter', sans-serif;
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --gradient-accent: linear-gradient(90deg, #00f2ff 0%, #006aff 100%);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--gradient-primary);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-fam);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 242, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 242, 255, 0.2);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    transition: background var(--transition-speed);
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-weight: 800;
    font-size: 1.7rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.05);
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-nav a {
    position: relative;
    padding: 0.5rem 0;
}

.user-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-speed);
}

.user-nav a:hover::after {
    width: 100%;
}

.user-nav img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    transition: all var(--transition-speed);
}

.user-nav img:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Components */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-top: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.big-stat {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, currentColor 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    background: var(--gradient-accent);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 106, 255, 0.3);
    display: inline-block;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    box-shadow: 0 6px 20px rgba(0, 106, 255, 0.5);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: all var(--transition-speed);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease-out;
}

/* Match History */
.match-row {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.75rem;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    animation: slideIn 0.5s ease-out;
}

.match-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    transform: translateX(5px);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-switch a.active {
    color: var(--accent);
    background: rgba(0, 242, 255, 0.1);
}

/* Profiles */
.profile-header {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 4px solid var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-speed);
}

.profile-avatar:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.3);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed);
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card .date {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Input Groups */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-fam);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .navbar {
        padding: 1rem 5%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .match-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .big-stat {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--accent-green);
}

.text-danger {
    color: var(--accent-red);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}