/**
 * Main Frontend Styles
 * Electronicsportclub.com - Valorant Tournament Platform
 */

:root {
    --primary-color: #FF4655;
    --primary-dark: #CC3542;
    --secondary-color: #0F1923;
    --accent-color: #ECE8E1;
    --dark-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Space Grotesk font for titles */
.logo a,
.hero-title,
.section-title,
.card-title {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 0.84375rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.9;
}

.logo-img {
    height: 58px;
    width: auto;
    min-width: 53px;
    transform: scaleX(1.25);
    transform-origin: left center;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

/* Hide logo text on very small screens, show only image */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .logo-img {
        height: 50px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: static;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login,
.btn-signup {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-signup {
    color: var(--text-primary);
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-signup:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-logout {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 69, 85, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* User Profile Menu with Dropdown */
.user-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 69, 85, 0.2);
}

.profile-icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 69, 85, 0.3);
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.profile-icon-btn:hover .profile-icon {
    border-color: var(--primary-color);
}

.profile-info-header {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.profile-name-info {
    display: flex;
    flex-direction: column;
}

.profile-username-header {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.2;
}

.profile-tagline-header {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 2px;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: none;
    padding: 8px 0;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item-danger {
    color: var(--primary-color);
}

.dropdown-item-danger:hover {
    background: rgba(255, 69, 85, 0.15);
}

.dropdown-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(2878%) hue-rotate(330deg) brightness(103%) contrast(101%);
    transition: opacity 0.2s ease;
}

.dropdown-item:hover .dropdown-icon-img {
    opacity: 1;
}

.dropdown-item-danger .dropdown-icon-img {
    filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(2878%) hue-rotate(330deg) brightness(103%) contrast(101%);
    opacity: 0.9;
}

.dropdown-item-danger:hover .dropdown-icon-img {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px; /* Account for fixed header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Fallback background if video doesn't load */
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        rgba(15, 25, 35, 0.95) 50%,
        rgba(255, 70, 85, 0.2) 100%
    );
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    /* Scale video to cover entire area - YouTube embed adjustment */
    pointer-events: none;
    /* Increase width/height to cover edges when video doesn't fill */
}

/* Ensure video covers the entire container */
@media (min-aspect-ratio: 16/9) {
    .hero-video {
        height: 56.25vw; /* 16:9 aspect ratio */
        min-height: 100vh;
        width: 177.78vh; /* 16:9 aspect ratio */
        min-width: 100vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video {
        width: 177.78vh; /* 16:9 aspect ratio */
        min-width: 100vw;
        height: 100vh;
        min-height: 56.25vw; /* 16:9 aspect ratio */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 25, 35, 0.85) 0%,
        rgba(15, 25, 35, 0.75) 50%,
        rgba(255, 70, 85, 0.4) 100%
    );
    z-index: 2;
    /* Optional: Add a subtle pulsing effect */
    animation: overlayPulse 4s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 70, 85, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 70, 85, 0.4);
}

/* Game Modes Section */
.game-modes-section {
    background: var(--dark-bg);
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 300;
}

.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-mode-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-mode-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.game-mode-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 70, 85, 0.2);
}

.game-mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 70, 85, 0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: var(--secondary-color);
}

.card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    z-index: 1;
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-mode-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.98);
    position: relative;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.card-description {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
    font-size: 0.95rem;
}

.btn-card {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.btn-card:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.4);
}

/* Recent Winners Section */
.recent-winners-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.winners-section-header {
    margin-bottom: 2rem;
}

.winners-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    font-family: 'Space Grotesk', sans-serif;
}

.winners-section-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.winner-card {
    display: flex;
    background: linear-gradient(180deg, #141d2f, #0e1524);
    border-radius: 24px;
    border: 1px solid #1f2a44;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.map-image {
    width: 32%;
    position: relative;
    flex-shrink: 0;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.map-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.map-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: white;
}

.map-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.winner-content {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.winner-content .match-date {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.winner-content .title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.winner-content .match-type {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.prize-badge {
    background: rgba(245, 179, 1, 0.08);
    color: #f5b301;
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(245, 179, 1, 0.2);
    box-shadow: 0 4px 12px rgba(245, 179, 1, 0.1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.winner-content .match-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.team-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px;
}

.team-box .team-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.team-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.team-box .team-name img.team-icon {
    filter: brightness(0) saturate(100%) invert(77%) sepia(67%) saturate(2991%) hue-rotate(353deg) brightness(101%) contrast(96%);
}

.team-box .team-name.no-crown img.team-icon {
    filter: grayscale(100%) brightness(1.5);
}

.team-box .team-name.no-crown {
    color: #9ca3af;
}

.players-list {
    display: flex;
    gap: 4px;
}

.player-img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.08);
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
}

.player-img.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.prize-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Rankings for Deathmatch */
.rankings-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.ranking-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    flex: 1;
    min-width: 0;
}

.ranking-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: center;
}

.rank-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.rank-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.player-info .player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.player-info .player-details {
    width: 100%;
}

.player-info .player-name,
.player-info .player-id {
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-info-single {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255,255,255,0.08);
    aspect-ratio: 1 / 1;
}

.player-avatar.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.player-id {
    font-size: 12px;
    color: #9ca3af;
}

.score-display {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    padding: 0 15px;
    font-variant-numeric: tabular-nums;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.spectators {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-stream {
    background: #ff4d5a;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 77, 90, 0.25);
    transition: all 0.2s ease;
}

.btn-stream:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 77, 90, 0.35);
}

.btn-stream svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Matches Page */
.matches-page {
    min-height: calc(100vh - 70px);
    padding-top: 90px;
    padding-bottom: 4rem;
    background: var(--dark-bg);
}

/* Match Type Navigation */
.match-type-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.match-type-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.match-type-btn:hover {
    color: var(--text-primary);
}

.match-type-btn.active {
    color: var(--text-primary);
}

.match-type-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.filter-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Matches List */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Match Card */
.match-card {
    display: flex;
    background: linear-gradient(180deg, #141d2f, #0e1524);
    border-radius: 16px;
    border: 1px solid #1f2a44;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.match-map {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    height: 180px;
    min-height: 180px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
    box-sizing: border-box;
}

.match-map .map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

.match-map .map-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: white;
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.match-players {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.player-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* P1 and P2 icons use SVG with direct fill colors - no filters needed */

.player-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-players .player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255,255,255,0.08);
    aspect-ratio: 1 / 1;
}

.player-empty-slot-1v1 {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    font-weight: 700;
}

.player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0.25rem;
}

.player-id {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.125rem;
}

.vs-divider {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 2px;
}

.match-details {
    width: 280px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    border-left: 1px solid #1f2a44;
}

.match-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.standard-card .match-details .match-date {
    font-size: 10px;
}

.match-prize {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f5b301;
}

.match-details .prize-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-register {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
}

.standard-card .match-details .btn-register {
    padding: 8px 12px;
    font-size: 10px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    min-height: auto;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 70, 85, 0.4);
}

/* Pagination */
/* Refresh Button */
.refresh-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #1f2a44;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.refresh-btn svg {
    width: 16px;
    height: 16px;
}

/* Deathmatch Card Layout */
.deathmatch-card {
    display: flex;
    align-items: stretch;
    min-height: 220px;
    gap: 0;
}

.deathmatch-card .match-map {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 220px;
    min-height: 220px;
    flex-shrink: 0;
}

.match-participants {
    flex: 1 1 auto;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-right: 1px solid #1f2a44;
    min-width: 0;
    justify-content: center;
}

.participants-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.participants-count {
    color: var(--primary-color);
    font-weight: 700;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 10px;
    max-width: 100%;
    width: 100%;
}

.participant-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(255, 77, 90, 0.3);
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.participant-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 77, 90, 0.3);
}

.empty-slot {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    font-weight: 700;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
}

.empty-slot:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.match-prizes {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    padding: 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-right: 1px solid #1f2a44;
    flex-shrink: 0;
    justify-content: center;
}

.prizes-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.prize-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.25rem 0;
    transition: transform 0.2s ease;
}

.prize-item:hover {
    transform: translateX(4px);
}

.prize-item:first-child {
    color: #f5b301;
    font-weight: 700;
}

.prize-item:nth-child(2) {
    color: #c0c0c0;
}

.prize-item:nth-child(3) {
    color: #cd7f32;
}

.prize-rank-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.deathmatch-card .match-details {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    padding: 1.75rem 1.75rem;
    border-left: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
    justify-content: space-between;
}

.deathmatch-card .match-details .match-date {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.deathmatch-card .match-details .btn-register {
    margin-top: auto;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* 5Vs5 Standard Match Card Layout */
.standard-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 180px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Teams Section for Standard Cards - Middle Partition */
.teams-section-standard {
    flex: 1 1 0%; /* Take remaining space after map and details */
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allows flex item to shrink below content size */
    border-left: 1px solid #1f2a44;
    border-right: 1px solid #1f2a44;
    overflow: visible !important; /* Allow content to be visible */
    box-sizing: border-box;
    width: 100%;
}

.teams-section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 140px;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

.team-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.team-players {
    display: flex;
    gap: 6px;
}

.team-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(255,255,255,0.1);
    aspect-ratio: 1 / 1;
}

.team-empty-slot {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    font-weight: 700;
}

.standard-card .match-details {
    width: 173px;
    min-width: 173px;
    max-width: 173px;
    padding: 1rem;
    border-left: none; /* Already has border from teams-section */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 0.75rem;
}

.standard-card .match-details .match-prize {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #f5b301;
}

.standard-card .match-details .prize-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Footer */
/* Footer Styles */
.main-footer {
    background: linear-gradient(180deg, rgba(15, 25, 35, 0.98) 0%, var(--secondary-color) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-top {
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Brand Section */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 70, 85, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-word;
}

.footer-contact-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-contact-link:hover {
    color: var(--primary-color);
}

.footer-contact-link:hover svg {
    opacity: 1;
}

.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-made-with {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-made-with .heart {
    color: var(--primary-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Payment Toast Notifications */
.payment-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.payment-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.payment-toast-success {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.payment-toast-error {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.payment-toast-success .toast-icon {
    background: #10b981;
    color: white;
}

.payment-toast-error .toast-icon {
    background: #ef4444;
    color: white;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

@media (max-width: 480px) {
    .payment-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .payment-toast.show {
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 25, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .nav-actions {
        position: fixed;
        top: 70px;
        right: 0;
        flex-direction: column;
        background: rgba(15, 25, 35, 0.98);
        width: 100%;
        padding: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-actions.active {
        transform: translateX(0);
    }

    .nav-actions.active {
        transform: translateX(0);
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .auth-buttons .btn-login,
    .auth-buttons .btn-signup {
        width: 100%;
        text-align: center;
    }

    .user-menu {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: flex-start;
    }

    .user-menu .btn-logout {
        width: 100%;
        text-align: center;
    }

    .user-profile-menu {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .profile-info-header {
        margin-right: 0;
        margin-bottom: 0;
    }

    .profile-dropdown {
        position: relative;
        width: 100%;
        right: auto;
        top: 10px;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Optimize video on tablets */
    .hero-video {
        /* YouTube iframe adjusts automatically */
        pointer-events: none;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .game-modes-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .game-modes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-image {
        height: 200px;
    }

    .winner-card {
        flex-direction: column;
    }

    .map-image {
        width: 100%;
        height: 180px;
    }

    .map-image::after {
        background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent) !important;
    }

    .winner-content {
        padding: 20px;
    }

    .winner-content .title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .rankings-list {
        flex-direction: column;
        gap: 10px;
    }

    .ranking-item {
        padding: 10px;
    }

    .winner-content .match-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .score-display {
        order: -1;
        font-size: 20px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 20px;
    }

    .btn-stream {
        width: 100%;
        justify-content: center;
    }

    /* Matches Page Responsive */
    .match-type-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .match-card {
        flex-direction: column;
    }

    .match-map {
        width: 100%;
        height: 200px;
    }

    .match-players {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .match-details {
        width: 100%;
        border-left: none;
        border-top: 1px solid #1f2a44;
        padding: 1.5rem;
    }

    .deathmatch-card {
        flex-direction: column;
    }

    .standard-card {
        flex-direction: column;
    }

    .standard-card .match-map {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #1f2a44;
    }

    .standard-card .teams-section-standard {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #1f2a44;
        padding: 1.5rem;
    }

    .standard-card .match-details {
        width: 100%;
        border-left: none;
        border-top: 1px solid #1f2a44;
        padding: 1.25rem;
    }
    
    .teams-section-standard {
        min-width: 0; /* Remove min-width on mobile */
    }

    .deathmatch-card .match-map {
        width: 100%;
        height: 220px;
        min-width: 100%;
        max-width: 100%;
    }

    .match-participants {
        border-right: none;
        border-bottom: 1px solid #1f2a44;
        padding: 1.5rem;
        width: 100%;
    }

    .participants-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
        gap: 12px;
    }

    .match-prizes {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #1f2a44;
        padding: 1.5rem;
    }

    .participants-grid {
        max-width: 100%;
    }

    .match-prizes {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1f2a44;
        padding: 1.5rem;
    }

    .deathmatch-card .match-details {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .participant-avatar,
    .empty-slot {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .refresh-btn {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
    }

    .match-teams {
        flex-direction: column;
        gap: 1.5rem;
    }

    .match-score {
        font-size: 2rem;
        order: -1;
        align-self: center;
    }

    .team {
        width: 100%;
    }

    .match-rankings {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ranking-item {
        flex-direction: row;
        align-items: center;
    }

    .rank-player {
        flex-direction: row;
        align-items: center;
    }

    .match-action {
        justify-content: center;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Mobile video optimization - slightly darker overlay for better readability */
    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(15, 25, 35, 0.9) 0%,
            rgba(15, 25, 35, 0.85) 50%,
            rgba(255, 70, 85, 0.5) 100%
        );
    }

    .hero-video {
        /* Ensure YouTube video covers full area on mobile */
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        pointer-events: none;
    }

    .container {
        padding: 0 15px;
    }
}

/* ============================================
   AUTHENTICATION PAGES (LOGIN/REGISTER)
   ============================================ */

.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #0F1923 0%, #1A1A1A 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-box {
    background: rgba(15, 25, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 69, 85, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: -0.25rem;
}

.btn-block {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-block:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 69, 85, 0.3);
}

.btn-block:active {
    transform: translateY(0);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 69, 85, 0.15);
    border: 1px solid rgba(255, 69, 85, 0.3);
    color: #ff6b7a;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.alert a {
    color: inherit;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* OTP Verification Styles */
.auth-step {
    width: 100%;
}

.otp-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.otp-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.phone-display {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1rem !important;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Profile Icon Grid */
.profile-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.profile-icon-option {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.profile-icon-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.profile-icon-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.profile-icon-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: block;
}

.icon-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.profile-icon-option input[type="radio"]:checked ~ .icon-wrapper img,
.profile-icon-option:has(input[type="radio"]:checked) .icon-wrapper img {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 69, 85, 0.3);
}

.profile-icon-option:has(input[type="radio"]:checked) .icon-wrapper::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 69, 85, 0.5);
}

/* Fallback for browsers that don't support :has() */
.profile-icon-option input[type="radio"]:checked ~ .icon-wrapper img {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 69, 85, 0.3);
}

.profile-icon-option input[type="radio"]:checked ~ .icon-wrapper::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 69, 85, 0.5);
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-page {
        padding: 80px 15px 40px;
    }

    .auth-box {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn-login,
    .btn-signup {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem 1rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-login,
    .btn-signup {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */

.dashboard-page {
    min-height: calc(100vh - 80px);
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #0F1923 0%, #1A1A1A 100%);
}

.dashboard-section {
    margin-bottom: 3rem;
}

/* Profile Section */
.profile-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    background: rgba(15, 25, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.profile-username {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.status-inactive {
    background: rgba(158, 158, 158, 0.15);
    color: #bdbdbd;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.status-badge.status-banned {
    background: rgba(255, 69, 85, 0.15);
    color: #ff6b7a;
    border: 1px solid rgba(255, 69, 85, 0.3);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(15, 25, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.stat-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Matches Section */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(15, 25, 35, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0;
}

.empty-state a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Dashboard Match Cards */
.dashboard-match-card {
    background: rgba(15, 25, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 69, 85, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Top Section: Map + Match Info */
.match-card-top {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.match-map-preview {
    width: 140px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.map-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-name .map-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.match-top-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.match-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.match-type-badge.match-type-deathmatch {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.match-type-badge.match-type-1v1 {
    background: rgba(245, 179, 1, 0.2);
    color: #f5b301;
    border: 1px solid rgba(245, 179, 1, 0.4);
}

.match-type-badge.match-type-standard {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.match-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Middle Section: Status + Entry Fee */
.match-card-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.entry-fee {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Bottom Section: Results */
.match-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
}

.result-prize-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-open {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.status-badge.status-ongoing {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-badge.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-badge.status-cancelled {
    background: rgba(158, 158, 158, 0.15);
    color: #bdbdbd;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.status-badge.status-closed {
    background: rgba(158, 158, 158, 0.15);
    color: #bdbdbd;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.entry-fee {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.match-result {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.result-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.result-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.result-badge.result-position-1 {
    background: rgba(245, 179, 1, 0.15);
    color: #f5b301;
    border: 1px solid rgba(245, 179, 1, 0.3);
}

.result-badge.result-position-2 {
    background: rgba(158, 158, 158, 0.15);
    color: #bdbdbd;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.result-badge.result-position-3 {
    background: rgba(141, 110, 99, 0.15);
    color: #a1887f;
    border: 1px solid rgba(141, 110, 99, 0.3);
}

.result-badge.result-position-4 {
    background: rgba(96, 125, 139, 0.15);
    color: #78909c;
    border: 1px solid rgba(96, 125, 139, 0.3);
}

.result-badge.result-defeat {
    background: rgba(255, 77, 90, 0.15);
    color: #ff4d5a;
    border: 1px solid rgba(255, 77, 90, 0.3);
}

.result-prize {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prize-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.prize-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-pending {
    color: var(--text-secondary);
    font-style: italic;
}

.btn-watch-match {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-watch-match:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 69, 85, 0.3);
}

.btn-watch-match svg {
    width: 16px;
    height: 16px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-page {
        padding: 80px 15px 40px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
    }

    .match-card-top {
        flex-direction: column;
    }

    .match-map-preview {
        width: 100%;
        height: 150px;
    }

    .match-card-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .match-card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .result-prize-info {
        width: 100%;
    }

    .profile-avatar {
        height: 100px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .match-card-top {
        flex-direction: column;
    }

    .match-map-preview {
        width: 100%;
        height: 150px;
    }

    .match-card-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .match-card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .result-prize-info {
        width: 100%;
    }

    .btn-watch-match {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LEADERBOARD PAGE
   ============================================ */

.leaderboard-page {
    min-height: calc(100vh - 80px);
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #0F1923 0%, #1A1A1A 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #f5b301 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* User Rank Card */
.user-rank-card {
    background: rgba(15, 25, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.user-rank-card.no-wins {
    text-align: center;
    padding: 2rem;
}

.user-rank-card.no-wins p {
    color: var(--text-secondary);
    margin: 0;
}

.user-rank-card.no-wins a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.user-rank-card.no-wins a:hover {
    text-decoration: underline;
}

.user-rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-rank-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.user-rank-badge {
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: var(--text-primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-rank-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.user-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Leaderboard Container */
.leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    background: rgba(15, 25, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 69, 85, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.leaderboard-item.current-user {
    border: 2px solid var(--primary-color);
    background: rgba(255, 69, 85, 0.05);
}

.leaderboard-item.rank-gold {
    background: linear-gradient(135deg, rgba(245, 179, 1, 0.1) 0%, rgba(15, 25, 35, 0.8) 100%);
    border-color: rgba(245, 179, 1, 0.3);
}

.leaderboard-item.rank-silver {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.1) 0%, rgba(15, 25, 35, 0.8) 100%);
    border-color: rgba(158, 158, 158, 0.3);
}

.leaderboard-item.rank-bronze {
    background: linear-gradient(135deg, rgba(141, 110, 99, 0.1) 0%, rgba(15, 25, 35, 0.8) 100%);
    border-color: rgba(141, 110, 99, 0.3);
}

.rank-number {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-medal {
    font-size: 2.5rem;
    line-height: 1;
}

.rank-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.rank-gold .rank-text {
    color: #f5b301;
}

.rank-silver .rank-text {
    color: #bdbdbd;
}

.rank-bronze .rank-text {
    color: #a1887f;
}

.player-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.rank-gold .player-avatar {
    border-color: rgba(245, 179, 1, 0.5);
}

.rank-silver .player-avatar {
    border-color: rgba(158, 158, 158, 0.5);
}

.rank-bronze .player-avatar {
    border-color: rgba(141, 110, 99, 0.5);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    flex: 1;
}

.player-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.player-username {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.riot-tag {
    color: var(--primary-color);
    font-weight: 600;
}

.player-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wins-count {
    color: var(--primary-color);
}

.prize-amount {
    color: #f5b301;
}

/* Responsive Leaderboard */
@media (max-width: 768px) {
    .leaderboard-page {
        padding: 80px 15px 40px;
    }

    .page-title {
        font-size: 2rem;
    }

    .leaderboard-item {
        flex-wrap: wrap;
        padding: 1.25rem;
    }

    .rank-number {
        width: 50px;
    }

    .rank-medal {
        font-size: 2rem;
    }

    .rank-text {
        font-size: 1.25rem;
    }

    .player-avatar {
        width: 50px;
        height: 50px;
    }

    .player-name {
        font-size: 1.1rem;
    }

    .player-stats {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .stat-item {
        align-items: flex-start;
    }

    .user-rank-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .leaderboard-item {
        padding: 1rem;
        gap: 1rem;
    }

    .player-info {
        flex: 1;
        min-width: 0;
    }

    .player-details {
        min-width: 0;
    }

    .player-name {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .player-username {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
}

/* ============================================
   TEAM REGISTRATION & MANAGEMENT STYLES
   ============================================ */

/* Teams Section */
.teams-section {
    margin: 1.5rem 0;
}

/* Teams Section inside Standard Cards - Override */
.standard-card .teams-section-standard {
    margin: 0 !important;
    padding: 1.5rem 2rem !important;
    flex: 1 1 0% !important; /* Use 0% instead of auto for proper flex calculation */
    box-sizing: border-box;
    overflow: visible !important;
    width: 100%;
    min-width: 0;
}

.standard-card .teams-section-standard .teams-list {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 0% !important; /* Take available space */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Prevent wrapping to ensure cards stay in one row */
    gap: 1rem !important;
    overflow: visible !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important; /* Use full width of container */
    align-items: stretch !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important; /* Start alignment, cards will grow to fill */
}

/* Scrollbar styling for teams list - horizontal */
.standard-card .teams-section-standard .teams-list::-webkit-scrollbar {
    height: 6px;
    width: auto;
}

.standard-card .teams-section-standard .teams-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.standard-card .teams-section-standard .teams-list::-webkit-scrollbar-thumb {
    background: rgba(255, 77, 90, 0.5);
    border-radius: 3px;
}

.standard-card .teams-section-standard .teams-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 77, 90, 0.7);
}

.teams-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.teams-list {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    min-height: 0;
}

/* Scrollbar for horizontal teams list */
.teams-list::-webkit-scrollbar {
    height: 6px;
}

.teams-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.teams-list::-webkit-scrollbar-thumb {
    background: rgba(255, 77, 90, 0.5);
    border-radius: 3px;
}

.teams-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 77, 90, 0.7);
}

/* Team Card */
.team-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(50% - 0.5rem); /* Each card takes ~50% minus half gap - fills space completely */
    min-width: 0; /* Remove minimum width constraint */
    max-width: none; /* Remove maximum width constraint */
    flex-shrink: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Specific override for team cards in standard cards to ensure they fill space */
.standard-card .teams-section-standard .teams-list .team-card {
    flex: 1 1 0% !important; /* Equal distribution - use 0% base for proper flex calculation */
    min-width: 0 !important;
    max-width: none !important;
    width: 0 !important; /* Use 0 for flex items to allow proper distribution */
    box-sizing: border-box !important;
}

/* Force teams-list to use full width and distribute evenly */
.standard-card .teams-section-standard .teams-list {
    display: flex !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 77, 90, 0.5);
}

.team-card:hover::before {
    opacity: 1;
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.team-card-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.team-card-title {
    flex: 1;
}

.team-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-leader-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, var(--primary-color), #e63946);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 77, 90, 0.3);
}

.team-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.team-member-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-full-badge {
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.team-full-badge::before {
    content: '●';
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Team Members Mini Grid */
.team-members-mini {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-member-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 77, 90, 0.4);
    z-index: 10;
    position: relative;
}

.team-empty-slot {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-empty-slot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 77, 90, 0.1);
}

/* Team Action Buttons */
.team-action-btn {
    padding: 0.6rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 77, 90, 0.3);
}

.team-action-btn:hover {
    background: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 90, 0.4);
}

.team-action-btn:active {
    transform: translateY(0);
}

.team-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.team-member-badge {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Empty State */
.team-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.team-empty-state:hover {
    border-color: var(--primary-color);
    background: rgba(255, 77, 90, 0.05);
}

.team-empty-state p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Team Registration Modal */
.team-modal,
#teamRegistrationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.team-modal.active,
#teamRegistrationModal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.team-modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.team-modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.team-modal-form label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.team-modal-form input {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.team-modal-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 90, 0.1);
}

.team-modal-form small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.team-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.team-modal-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.team-modal-btn-cancel {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.team-modal-btn-cancel:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.team-modal-btn-submit {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 90, 0.3);
}

.team-modal-btn-submit:hover {
    background: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 90, 0.4);
}

.team-modal-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Team Management Page */
.team-management-header {
    margin-bottom: 2rem;
}

.team-management-header h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.team-management-header p {
    color: var(--text-secondary);
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.team-member-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.team-member-card img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-member-card:hover img {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 77, 90, 0.4);
}

.team-member-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.team-member-username {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.team-member-card-empty {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.team-member-card-empty:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 77, 90, 0.05);
}

/* Pending Requests */
.pending-requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.request-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.request-card img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.request-card-info {
    flex: 1;
}

.request-card-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.request-card-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.request-card-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.request-card-actions {
    display: flex;
    gap: 0.5rem;
}

.request-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.request-btn-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.request-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.request-btn-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.request-btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.request-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Team Styles */
@media (max-width: 768px) {
    .team-card {
        min-width: 280px;
        max-width: 320px;
        width: 280px;
    }
    
    /* Override for standard cards - still fill space on mobile if possible */
    .standard-card .teams-section-standard .teams-list .team-card {
        flex: 1 1 auto !important;
        min-width: 280px !important;
        max-width: none !important;
        width: auto !important;
    }

    .team-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .team-card-actions {
        width: 100%;
        margin-left: 0;
    }

    .team-members-mini {
        justify-content: center;
    }
    
    .teams-list {
        gap: 0.75rem;
    }

    .team-modal-content {
        padding: 1.5rem;
    }

    .team-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .request-card {
        flex-direction: column;
        text-align: center;
    }

    .request-card-actions {
        width: 100%;
        justify-content: center;
    }

    .request-btn {
        flex: 1;
    }
}

/* ============================================
   NOTIFICATIONS MENU
   ============================================ */
.notifications-menu {
    position: relative;
}

.notification-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.notification-icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
    border: 2px solid var(--bg-primary);
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    width: 380px;
    max-width: 90vw;
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    backdrop-filter: none;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.mark-all-read-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mark-all-read-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
    background: #1a1a1a;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #1a1a1a;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(220, 38, 38, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
}

.notification-loading,
.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.notifications-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: #1a1a1a;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Notification scrollbar */
.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .notifications-dropdown {
        width: 320px;
        right: -20px;
    }
}

/* ============================================
   KICK MEMBER BUTTON
   ============================================ */
.kick-member-btn {
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.kick-member-btn:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-1px);
}

.kick-member-btn:active:not(:disabled) {
    transform: translateY(0);
}

.kick-member-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.team-member-card {
    position: relative;
}


