* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #cbd5e1;
    --text-primary: #1e293b;
    --text-secondary: rgba(30, 41, 59, 0.8);
    --text-muted: rgba(30, 41, 59, 0.6);
    --accent: #1e40af;
    --accent-secondary: #0ea5e9;
    --border: rgba(59, 130, 246, 0.2);
    --shadow: rgba(59, 130, 246, 0.15);
    --glass-bg: rgba(248, 250, 252, 0.9);
    --card-bg: rgba(248, 250, 252, 0.8);
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;

    /* Team Colors */
    --team-dragon: #2ed573;
    --team-shadow: #5352ed;
    --team-crystal: #a55eea;
    --team: rgb(255, 255, 255);
    --team2: rgb(255, 255, 255);
    --teamf: rgba(255, 255, 255, 0.3);

}

.dark-mode {
    forced-color-adjust: none;
    color-scheme: light;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: rgba(241, 245, 249, 0.9);
    --text-muted: rgba(241, 245, 249, 0.7);
    --accent: #3b82f6;
    --accent-secondary: #06b6d4;
    --border: rgba(59, 130, 246, 0.3);
    --shadow: rgba(59, 130, 246, 0.25);
    --glass-bg: rgba(15, 23, 42, 0.95);
    --card-bg: rgba(30, 41, 59, 0.8);
}

img,
svg,
video,
canvas {
    forced-color-adjust: none;
}

#rx {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: 0.5rem;
}

html,
body {
    background-color: var(--bg-primary) !important;
    forced-color-adjust: none;
}

.dark-mode {
    background-color: var(--bg-primary) !important;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    min-height: 100vh;
    direction: rtl;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.3s ease;
}

#team_img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.explorer-logo {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.7rem 1.6rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.active {
    color: white;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
}

.main-content {
    margin-top: 120px;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding: 3rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px var(--shadow);
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Section Title */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* Favorite Teams Section */
.favorite-teams {
    margin-bottom: 4rem;
}

.favorite-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
    box-shadow: 0 15px 35px var(--shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow);
    border-color: var(--accent);
}

.team-card:hover::before {
    opacity: 1;
}

.team-header {
    padding: 2rem;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--team) 10%, transparent) 0%,
            color-mix(in srgb, var(--team2) 10%, transparent) 100%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.team-header.dragon {
    background: linear-gradient(135deg, var(--team-dragon) 0%, rgba(46, 213, 115, 0.1) 100%);
}

.team-header.shadow {
    background: linear-gradient(135deg, var(--team-shadow) 0%, rgba(83, 82, 237, 0.1) 100%);
}

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.team-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.team-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* News Chat Section */
.team-news {
    padding: 2rem;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.news-item:nth-child(2) {
    animation-delay: 0.1s;
}

.news-item:nth-child(3) {
    animation-delay: 0.2s;
}

.news-item:nth-child(4) {
    animation-delay: 0.3s;
}

.news-item:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.news-bubble {
    background: var(--glass-bg);
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 20px 5px;
    border: 1px solid var(--border);
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

.news-bubble:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(-5px);
}


.news-author {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.news-text {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.news-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.view-more-btn {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow);
}

/* Top 3 Teams */
.top-teams {
    margin-bottom: 4rem;
}

.top-teams-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 2px solid var(--border);
    box-shadow: 0 20px 40px var(--shadow);
    position: relative;
    overflow: hidden;
}

.top-teams-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.03), transparent, rgba(192, 192, 192, 0.03), transparent, rgba(205, 127, 50, 0.03), transparent);
    animation: rotate 15s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.podium {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.podium-item {
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.podium-item:hover {
    transform: translateY(-10px);
}

.podium-item.first {
    order: 2;
}

.podium-item.second {
    order: 1;
}

.podium-item.third {
    order: 3;
}

.podium-rank {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.podium-rank.gold {
    color: var(--gold);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.podium-rank.silver {
    color: var(--silver);
    filter: drop-shadow(0 0 15px rgba(192, 192, 192, 0.4));
}

.podium-rank.bronze {
    color: var(--bronze);
    filter: drop-shadow(0 0 15px rgba(205, 127, 50, 0.4));
}

.podium-team {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.podium-team:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 30px var(--shadow);
}

.podium-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.podium-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.podium-title {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.podium-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Team Explorer */
.team-explorer {
    margin-bottom: 4rem;
}

.explorer-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.explorer-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.explorer-scroll::-webkit-scrollbar {
    display: none;
}

.explorer-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    min-width: 200px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.explorer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
    transition: left 0.3s ease;
    z-index: -1;
}

.explorer-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 15px 30px var(--shadow);
}

.explorer-item:hover::before {
    left: 0;
}

.explorer-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.explorer-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.explorer-followers {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.explorer-btn {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.explorer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Competitions */
.competitions {
    margin-bottom: 4rem;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.competition-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2rem;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.competition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.05), rgba(46, 213, 115, 0.05), rgba(83, 82, 237, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.competition-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--shadow);
}

.competition-card:hover::before {
    opacity: 1;
}

.competition-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.competition-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.competition-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.competition-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.competition-participants {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.participants-avatars {
    display: flex;
    gap: -10px;
}

.participant-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--card-bg);
    margin-right: -10px;
}

.participants-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.competition-status {
    display: inline-block;
    background: linear-gradient(45deg, #2ed573, #26d68d);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.competition-status.upcoming {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
}

.competition-status.ended {
    background: linear-gradient(45deg, var(--team), #ff3742);
}

/* User Team Section */
.user-team-section {
    margin-bottom: 3rem;
    position: relative;
}

.user-team-card {
    background: var(--card-bg);
    border-radius: 50px;
    padding: 1.5rem;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, var(--team), var(--teamf));
    background-origin: border-box;
    background-clip: content-box, border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 20px 60px var(--teamf);
}

.user-team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px var(--teamf);
    border-image-source: linear-gradient(135deg, var(--team), var(--team));
}

.team-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--teamf), transparent);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.user-team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.user-team-logo {
    position: relative;
    margin-right: 20px;
}

.logo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--team), var(--team));
    box-shadow: 0 15px 40px var(--teamf);
}

.logo-container.dragon {
    background: linear-gradient(135deg, var(--team-dragon), #26d68d);
    box-shadow: 0 15px 40px rgba(46, 213, 115, 0.4);
}

.logo-container.shadow {
    background: linear-gradient(135deg, var(--team-shadow), #6c5ce7);
    box-shadow: 0 15px 40px rgba(83, 82, 237, 0.4);
}

.team-emoji {
    font-size: 2.5rem;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    transform: translate(-50%, -50%);
    animation: pulse-glow 2s ease-in-out infinite;
    opacity: 0.6;
    z-index: 1;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.user-team-info {
    flex: 1;
    margin: 0 2rem;
}

.team-name {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--team), var(--team));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--teamf);
}

.team-tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-tagline i {
    color: var(--team);
    animation: flicker 2s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.notification-badge {
    position: relative;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: notification-pulse 2s ease-in-out infinite;
    margin-left: 20px;
}

.notification-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px var(--shadow);
}

@keyframes notification-pulse {

    0%,
    100% {
        box-shadow: 0 10px 25px var(--shadow);
    }

    50% {
        box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    }
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff3742, #ff3742);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    animation: bounce-badge 1s ease-in-out infinite alternate;
}

@keyframes bounce-badge {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.user-team-stats {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    transform: scale(0.90);
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--teamf);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--teamf), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--team);
    box-shadow: 0 10px 25px var(--teamf);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--team);
    margin-bottom: 0.8rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.user-role-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.role-badge {
    background: linear-gradient(100deg, var(--team), var(--teamf));
    color: #1e293b;
    padding: 0.5rem 1.00rem;
    border-radius: 25px 0 0 25px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px var(--teamf);
    position: relative;
    overflow: hidden;
}

.role-badge span {
    font-size: 1.6rem;
}

.role-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.role-badge:hover::before {
    left: 100%;
}



.user-contributions {
    display: flex;
    gap: 1.5rem;
    margin-left: 20px;
}

.contribution-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--teamf);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contribution-item:hover {
    background: var(--teamf);
    border-color: var(--team);
    transform: translateY(-2px);
}

.contribution-item i {
    color: var(--team);
}

.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.action-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.secondary {
    background: linear-gradient(135deg, var(--team), var(--team));
    position: relative;
}

.action-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--team), #ff3742);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    min-width: 16px;
    text-align: center;
}

.team-click-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.user-team-card:hover .team-click-hint {
    opacity: 1;
    color: var(--team);
}

.team-click-hint i {
    animation: click-hint 2s ease-in-out infinite;
}

@keyframes click-hint {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 15px 30px var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 40px var(--shadow);
}

/* Footer */
.footer {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border);
}

/* Responsive for User Team */
@media (max-width: 864px) {
    .role-badge {
        border-radius: 10px;
        padding: 0.5rem 1.5rem;
    }

    .user-team-card {
        padding: 0.5rem;
    }

    .user-team-header {
        padding-top: 40px;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .user-team-logo {
        margin: 0;
    }

    .logo-container {
        transform: scale(1.2);
    }

    .user-team-info {
        margin: 0;
    }

    .notification-badge {
        margin-left: 0;
    }

    .team-name {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .user-role-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .user-contributions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .quick-actions {
        flex-direction: column;
    }

    #userTeamSection {
        margin-top: 15rem;
    }
}

/* Floating Action Button */
@media (max-width: 864px) {
    .main-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .favorite-teams-grid {
        grid-template-columns: 1fr;
    }

    .podium {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .podium-item {
        order: initial !important;
    }

    .competitions-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .floating-btn {
        bottom: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.role-badge img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--header-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(30, 64, 175, 0.3);
    background: var(--glass-bg);
}

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--accent), #1d4ed8);
    border: none;
    padding: 0.7rem;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.4);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.7rem 1.6vw;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    left: 0;
}

.header {
    transition: all 1.2s ease;
}

.hidden {
    top: -50vh;
}

@media (max-width: 766px) {
    .main-content {
        transition: all 1.2s ease;
        margin-top: 40%;
    }
}

#rc {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    margin-right: 5px;
}

#ds {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    width: 100%;
    border-radius: 50%;

}

.team-logo.logo-container img {
    transform: scale(0.9);
    height: 100%;
    object-fit: cover;
}