/* =========================================================
   NEXORA ESPORTS PLATFORM
   styles.css
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {

    --bg-primary: #050914;
    --bg-secondary: #080e1d;
    --bg-tertiary: #0c1426;

    --card-bg: rgba(13, 23, 42, 0.82);
    --card-bg-solid: #0d172a;

    --blue: #1677ff;
    --blue-bright: #238cff;
    --cyan: #00d9ff;

    --purple: #8b5cf6;
    --purple-bright: #a855f7;

    --white: #ffffff;
    --text-primary: #f5f7ff;
    --text-secondary: #a7b1c7;
    --text-muted: #6f7b93;

    --border: rgba(255, 255, 255, 0.08);
    --border-blue: rgba(22, 119, 255, 0.35);
    --border-cyan: rgba(0, 217, 255, 0.25);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

    --container: 1240px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 20px;

    --transition: 0.25s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(22, 119, 255, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(139, 92, 246, 0.06),
            transparent 30%
        ),
        var(--bg-primary);

    color: var(--text-primary);

    line-height: 1.6;

    min-height: 100vh;

    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );

    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =========================================================
   3. GENERAL UTILITIES
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}

.section-heading.centered {
    display: block;

    text-align: center;

    max-width: 700px;

    margin-inline: auto;

    margin-bottom: 50px;
}

.section-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--cyan);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.15em;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

    line-height: 1.1;

    margin-bottom: 10px;
}

.section-heading p {
    color: var(--text-secondary);

    max-width: 600px;
}

.view-all {
    color: var(--cyan);

    font-size: 0.9rem;

    font-weight: 700;

    white-space: nowrap;

    transition: var(--transition);
}

.view-all:hover {
    color: var(--white);

    transform: translateX(4px);
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 0 18px;

    border-radius: var(--radius-small);

    font-size: 0.88rem;

    font-weight: 800;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);

    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-bright)
        );

    color: var(--white);

    box-shadow:
        0 8px 25px rgba(22, 119, 255, 0.25);
}

.btn-primary:hover {
    box-shadow:
        0 12px 35px rgba(22, 119, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);

    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);

    border-color: var(--border-blue);
}

.btn-outline {
    border: 1px solid var(--border-blue);

    background: rgba(22, 119, 255, 0.05);

    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(22, 119, 255, 0.12);

    border-color: var(--blue);
}

.btn-small {
    min-height: 38px;

    padding: 0 14px;

    font-size: 0.78rem;
}

.btn-large {
    min-height: 54px;

    padding: 0 25px;

    font-size: 0.95rem;
}


/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(5, 9, 20, 0.85);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
}

.nav-container {
    min-height: 76px;

    display: flex;

    align-items: center;

    gap: 30px;
}

.logo {
    display: inline-block;

    font-size: 1.55rem;

    font-weight: 950;

    letter-spacing: -0.06em;
}

.logo span {
    color: var(--cyan);
}

.main-nav {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-left: auto;
}

.nav-link {
    position: relative;

    color: var(--text-secondary);

    font-size: 0.82rem;

    font-weight: 700;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -28px;

    height: 2px;

    background: var(--cyan);

    box-shadow:
        0 0 12px var(--cyan);
}

.nav-actions {
    display: flex;

    align-items: center;

    gap: 9px;
}

.icon-button {
    width: 40px;

    height: 40px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    position: relative;

    transition: var(--transition);
}

.icon-button:hover {
    color: var(--white);

    background: rgba(255, 255, 255, 0.08);

    border-color: var(--border-blue);
}

.notification-dot {
    position: absolute;

    top: 8px;

    right: 8px;

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 10px var(--cyan);
}

.mobile-menu-button {
    display: none;

    width: 42px;

    height: 42px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    color: var(--white);

    border: 1px solid var(--border);

    font-size: 1.2rem;
}

.mobile-nav {
    display: none;
}


/* =========================================================
   6. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 720px;

    display: flex;

    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--border);
}

.hero-background {
    position: absolute;

    inset: 0;

    pointer-events: none;
}

.hero-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(0, 217, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 217, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}

.hero-glow {
    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.15;
}

.glow-one {
    background: var(--blue);

    left: -150px;

    top: 80px;
}

.glow-two {
    background: var(--purple);

    right: -180px;

    bottom: -150px;
}

.hero-container {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;

    gap: 70px;

    padding: 90px 0;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-block;

    color: var(--cyan);

    font-size: 0.75rem;

    font-weight: 900;

    letter-spacing: 0.18em;

    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(
        3.4rem,
        7vw,
        6.2rem
    );

    line-height: 0.95;

    letter-spacing: -0.065em;

    max-width: 800px;
}

.hero h1 span {
    color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--blue),
            var(--purple)
        );

    -webkit-background-clip: text;

    background-clip: text;
}

.hero-description {
    color: var(--text-secondary);

    max-width: 600px;

    font-size: 1.05rem;

    margin: 28px 0;
}

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.hero-trust {
    display: flex;

    gap: 35px;

    margin-top: 45px;
}

.trust-item {
    display: flex;

    flex-direction: column;
}

.trust-item strong {
    font-size: 1.3rem;
}

.trust-item span {
    color: var(--text-muted);

    font-size: 0.75rem;
}


/* =========================================================
   7. HERO PLAYER CARD
   ========================================================= */

.hero-card-wrapper {
    display: flex;

    justify-content: center;
}

.hero-player-card {
    width: min(100%, 360px);

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 34, 60, 0.95),
            rgba(8, 15, 29, 0.95)
        );

    border: 1px solid var(--border-blue);

    border-radius: var(--radius-large);

    box-shadow:
        var(--shadow),
        0 0 60px rgba(22, 119, 255, 0.08);

    position: relative;

    overflow: hidden;
}

.hero-player-card::before {
    content: "";

    position: absolute;

    top: -100px;

    right: -100px;

    width: 250px;

    height: 250px;

    border-radius: 50%;

    background: var(--cyan);

    opacity: 0.06;

    filter: blur(50px);
}

.live-indicator {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #ff6b7a;

    font-size: 0.7rem;

    font-weight: 900;

    letter-spacing: 0.12em;
}

.live-indicator span {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #ff4056;

    box-shadow:
        0 0 12px #ff4056;
}

.player-avatar {
    width: 92px;

    height: 92px;

    margin: 25px auto 18px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    border: 3px solid rgba(255, 255, 255, 0.15);

    font-size: 1.6rem;

    font-weight: 900;

    box-shadow:
        0 0 35px rgba(22, 119, 255, 0.3);
}

.player-label {
    display: block;

    text-align: center;

    color: var(--cyan);

    font-size: 0.65rem;

    font-weight: 900;

    letter-spacing: 0.15em;
}

.hero-player-card h3 {
    text-align: center;

    font-size: 1.5rem;

    margin-top: 6px;
}

.hero-player-card > p {
    text-align: center;

    color: var(--text-secondary);

    font-size: 0.8rem;
}

.player-rating {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 25px;
}

.player-rating div {
    padding: 15px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);
}

.player-rating span,
.progress-label {
    color: var(--text-muted);

    font-size: 0.7rem;
}

.player-rating strong {
    display: block;

    margin-top: 3px;

    font-size: 1.15rem;
}

.rating-progress {
    margin-top: 18px;
}

.progress-label {
    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;
}

.progress-bar {
    height: 7px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);

    overflow: hidden;
}

.progress-bar div {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--cyan)
        );

    border-radius: inherit;

    box-shadow:
        0 0 15px rgba(0, 217, 255, 0.5);
}

.card-link {
    display: block;

    color: var(--cyan);

    text-align: center;

    font-size: 0.8rem;

    font-weight: 800;

    margin-top: 22px;
}


/* =========================================================
   8. LIVE SECTION
   ========================================================= */

.live-section {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.015),
            transparent
        );
}

.live-dot {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #ff4056;

    box-shadow:
        0 0 12px #ff4056;
}

.live-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.live-card {
    padding: 25px;

    background: var(--card-bg);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    transition: var(--transition);

    backdrop-filter: blur(10px);
}

.live-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-blue);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);
}

.live-card-top {
    display: flex;

    justify-content: space-between;

    color: var(--text-muted);

    font-size: 0.72rem;
}

.status {
    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.65rem;

    font-weight: 900;
}

.status.live {
    color: #ff7b88;

    background: rgba(239, 68, 68, 0.1);
}

.status.open {
    color: var(--success);

    background: rgba(34, 197, 94, 0.1);
}

.status.upcoming {
    color: var(--warning);

    background: rgba(245, 158, 11, 0.1);
}

.game-icon {
    width: 52px;

    height: 52px;

    display: grid;

    place-items: center;

    margin: 25px 0 16px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.2),
            rgba(139, 92, 246, 0.15)
        );

    border: 1px solid var(--border-blue);

    font-size: 1.4rem;
}

.live-card h3 {
    font-size: 1.1rem;

    margin-bottom: 3px;
}

.live-card p {
    color: var(--text-muted);

    font-size: 0.78rem;
}

.match-preview {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    gap: 10px;

    align-items: center;

    text-align: center;

    margin: 22px 0;

    padding: 15px;

    background: rgba(255, 255, 255, 0.025);

    border-radius: 10px;

    font-size: 0.75rem;
}

.match-preview strong {
    color: var(--cyan);

    font-size: 0.65rem;
}


/* =========================================================
   9. TOURNAMENTS
   ========================================================= */

.tournament-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.tournament-card {
    overflow: hidden;

    background: var(--card-bg);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    transition: var(--transition);
}

.tournament-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-blue);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.3);
}

.tournament-banner {
    height: 145px;

    padding: 15px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.45),
            rgba(6, 12, 25, 0.95)
        );

    position: relative;

    overflow: hidden;
}

.tournament-banner::after {
    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    border-radius: 50%;

    right: -50px;

    bottom: -80px;

    background: var(--cyan);

    opacity: 0.1;

    filter: blur(35px);
}

.freefire-banner {
    background:
        linear-gradient(
            135deg,
            rgba(249, 115, 22, 0.35),
            rgba(6, 12, 25, 0.95)
        );
}

.cod-banner {
    background:
        linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.3),
            rgba(6, 12, 25, 0.95)
        );
}

.valorant-banner {
    background:
        linear-gradient(
            135deg,
            rgba(239, 68, 68, 0.3),
            rgba(6, 12, 25, 0.95)
        );
}

.fortnite-banner {
    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.35),
            rgba(6, 12, 25, 0.95)
        );
}

.game-tag {
    position: relative;

    z-index: 1;

    padding: 6px 9px;

    background: rgba(0, 0, 0, 0.35);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 7px;

    font-size: 0.65rem;

    font-weight: 800;
}

.tournament-banner .status {
    position: relative;

    z-index: 1;
}

.tournament-content {
    padding: 20px;
}

.tournament-content h3 {
    font-size: 1rem;

    line-height: 1.3;
}

.tournament-description {
    color: var(--text-muted);

    font-size: 0.76rem;

    margin: 8px 0 16px;
}

.tournament-details {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    color: var(--text-secondary);

    font-size: 0.65rem;
}

.tournament-details span {
    padding: 5px 7px;

    background: rgba(255, 255, 255, 0.035);

    border-radius: 6px;
}

.tournament-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    padding-top: 18px;

    margin-top: 18px;

    border-top: 1px solid var(--border);
}

.tournament-footer small {
    display: block;

    color: var(--text-muted);

    font-size: 0.62rem;
}

.tournament-footer strong {
    display: block;

    color: var(--cyan);

    font-size: 0.85rem;
}


/* =========================================================
   10. GAMES
   ========================================================= */

.games-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(22, 119, 255, 0.025),
            transparent
        );
}

.games-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.game-card {
    min-height: 190px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 25px;

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015)
        );

    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-cyan);

    background:
        linear-gradient(
            145deg,
            rgba(0, 217, 255, 0.08),
            rgba(22, 119, 255, 0.05)
        );

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);
}

.game-card-icon {
    width: 65px;

    height: 65px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.18),
            rgba(139, 92, 246, 0.14)
        );

    border: 1px solid var(--border-blue);

    font-size: 1.6rem;
}

.game-card h3 {
    font-size: 1rem;

    margin-bottom: 3px;
}

.game-card span {
    color: var(--text-muted);

    font-size: 0.7rem;
}


/* =========================================================
   11. PROGRESSION
   ========================================================= */

.progression-section {
    position: relative;

    overflow: hidden;
}

.progression-grid {
    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 80px;

    align-items: center;
}

.progression-content h2 {
    font-size: clamp(
        2.3rem,
        4vw,
        4rem
    );

    line-height: 1;

    letter-spacing: -0.04em;

    margin-bottom: 18px;
}

.progression-content h2 span {
    color: var(--cyan);
}

.progression-content > p {
    color: var(--text-secondary);

    max-width: 600px;

    margin-bottom: 35px;
}

.progression-features {
    display: grid;

    gap: 20px;
}

.progression-feature {
    display: flex;

    gap: 16px;
}

.progression-feature > span {
    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: rgba(22, 119, 255, 0.1);

    border: 1px solid var(--border-blue);
}

.progression-feature h3 {
    font-size: 0.9rem;
}

.progression-feature p {
    color: var(--text-muted);

    font-size: 0.76rem;
}

.progress-card {
    padding: 30px;

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(16, 28, 51, 0.95),
            rgba(7, 13, 25, 0.95)
        );

    border: 1px solid var(--border-blue);

    box-shadow: var(--shadow);
}

.progress-card-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 30px;
}

.mini-avatar {
    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    font-size: 0.7rem;

    font-weight: 900;
}

.progress-card-header strong {
    display: block;

    font-size: 0.9rem;
}

.progress-card-header span {
    display: block;

    color: var(--text-muted);

    font-size: 0.7rem;
}

.xp-label {
    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 0.7rem;

    color: var(--text-muted);
}

.xp-label strong {
    color: var(--text-primary);
}

.xp-bar {
    height: 9px;

    background: rgba(255, 255, 255, 0.06);

    border-radius: 999px;

    overflow: hidden;
}

.xp-bar div {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--cyan)
        );

    border-radius: inherit;
}

.progress-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-top: 25px;
}

.progress-stats div {
    padding: 14px;

    background: rgba(255, 255, 255, 0.035);

    border-radius: 10px;
}

.progress-stats span {
    display: block;

    color: var(--text-muted);

    font-size: 0.65rem;
}

.progress-stats strong {
    font-size: 1rem;
}


/* =========================================================
   12. LEADERBOARD
   ========================================================= */

.leaderboard {
    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    overflow: hidden;

    background: rgba(255, 255, 255, 0.015);
}

.leaderboard-header,
.leaderboard-row {
    display: grid;

    grid-template-columns:
        70px
        1fr
        120px
        100px
        100px;

    align-items: center;

    gap: 20px;

    padding: 18px 22px;
}

.leaderboard-header {
    background: rgba(255, 255, 255, 0.035);

    color: var(--text-muted);

    font-size: 0.68rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.leaderboard-row {
    border-top: 1px solid var(--border);

    font-size: 0.8rem;

    transition: var(--transition);
}

.leaderboard-row:hover {
    background: rgba(22, 119, 255, 0.035);
}

.rank {
    color: var(--text-muted);

    font-size: 0.95rem;
}

.rank.gold {
    color: #fbbf24;
}

.rank.silver {
    color: #cbd5e1;
}

.rank.bronze {
    color: #cd7f32;
}

.leader-player {
    display: flex;

    align-items: center;

    gap: 12px;
}

.leader-player strong {
    display: block;
}

.leader-player span {
    color: var(--text-muted);

    font-size: 0.65rem;
}

.rank-up {
    color: var(--success);

    font-weight: 800;
}

.rank-down {
    color: var(--danger);

    font-weight: 800;
}


/* =========================================================
   13. TEAMS
   ========================================================= */

.teams-section {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.015),
            transparent
        );
}

.teams-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.team-card {
    padding: 30px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    background: var(--card-bg);

    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-blue);
}

.team-logo {
    width: 78px;

    height: 78px;

    display: grid;

    place-items: center;

    margin: 0 auto 18px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    font-size: 1.2rem;

    font-weight: 900;
}

.team-card h3 {
    font-size: 1.1rem;

    margin-bottom: 4px;
}

.team-card > span {
    color: var(--text-muted);

    font-size: 0.72rem;
}

.team-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin: 22px 0;
}

.team-stats span {
    padding: 12px;

    background: rgba(255, 255, 255, 0.035);

    border-radius: 9px;

    color: var(--text-muted);

    font-size: 0.65rem;
}

.team-stats strong {
    display: block;

    color: var(--text-primary);

    font-size: 0.95rem;
}


/* =========================================================
   14. CLIPS
   ========================================================= */

.clips-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.clip-card {
    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    background: var(--card-bg);

    transition: var(--transition);
}

.clip-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-cyan);
}

.clip-thumbnail {
    height: 220px;

    display: grid;

    place-items: center;

    position: relative;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(0, 217, 255, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #101d38,
            #080c18
        );
}

.clip-thumbnail::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent,
            rgba(22, 119, 255, 0.15)
        );
}

.play-button {
    position: relative;

    width: 58px;

    height: 58px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(0, 217, 255, 0.15);

    border: 1px solid var(--cyan);

    color: var(--cyan);

    padding-left: 3px;

    transition: var(--transition);
}

.clip-card:hover .play-button {
    transform: scale(1.1);

    background: var(--cyan);

    color: var(--bg-primary);
}

.clip-duration {
    position: absolute;

    right: 12px;

    bottom: 12px;

    padding: 4px 7px;

    border-radius: 5px;

    background: rgba(0, 0, 0, 0.7);

    font-size: 0.65rem;
}

.clip-content {
    padding: 18px;
}

.clip-content h3 {
    font-size: 0.9rem;

    margin-bottom: 14px;
}

.clip-author {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-muted);

    font-size: 0.68rem;
}

.clip-author .mini-avatar {
    width: 28px;

    height: 28px;

    border-radius: 8px;

    font-size: 0.55rem;
}


/* =========================================================
   15. ACHIEVEMENTS
   ========================================================= */

.achievements-section {
    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(139, 92, 246, 0.07),
            transparent 45%
        );
}

.achievements-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.achievement-card {
    padding: 30px 20px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.02);

    opacity: 0.6;

    transition: var(--transition);
}

.achievement-card.unlocked {
    opacity: 1;

    border-color: rgba(139, 92, 246, 0.25);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.achievement-card:hover {
    transform: translateY(-5px);

    opacity: 1;
}

.achievement-icon {
    width: 72px;

    height: 72px;

    display: grid;

    place-items: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.25),
            rgba(22, 119, 255, 0.08)
        );

    border: 1px solid rgba(139, 92, 246, 0.35);

    font-size: 1.7rem;
}

.achievement-card h3 {
    font-size: 0.95rem;

    margin-bottom: 7px;
}

.achievement-card p {
    color: var(--text-muted);

    font-size: 0.7rem;

    min-height: 44px;
}

.achievement-status {
    display: inline-block;

    margin-top: 15px;

    color: var(--purple-bright);

    font-size: 0.65rem;

    font-weight: 800;
}


/* =========================================================
   16. CTA
   ========================================================= */

.cta-section {
    padding: 30px 0 100px;
}

.cta-box {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 60px;

    border-radius: var(--radius-large);

    border: 1px solid var(--border-blue);

    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(0, 217, 255, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.13),
            rgba(139, 92, 246, 0.08)
        );
}

.cta-box::before {
    content: "";

    position: absolute;

    width: 250px;

    height: 250px;

    border-radius: 50%;

    background: var(--blue);

    filter: blur(100px);

    opacity: 0.08;

    left: -100px;

    bottom: -100px;
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-size: clamp(
        2rem,
        4vw,
        3.2rem
    );

    line-height: 1;

    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
}

.cta-buttons {
    position: relative;

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


/* =========================================================
   17. FOOTER
   ========================================================= */

.site-footer {
    padding: 70px 0 25px;

    border-top: 1px solid var(--border);

    background: #030711;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.8fr
        repeat(4, 1fr);

    gap: 45px;

    padding-bottom: 55px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand > p {
    color: var(--cyan);

    font-weight: 800;

    font-size: 0.85rem;

    margin-bottom: 12px;
}

.footer-description {
    max-width: 300px;

    color: var(--text-muted) !important;

    font-weight: 400 !important;

    font-size: 0.75rem !important;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-column h3 {
    font-size: 0.8rem;

    margin-bottom: 7px;
}

.footer-column a {
    color: var(--text-muted);

    font-size: 0.72rem;

    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--cyan);

    transform: translateX(3px);
}

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 25px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 0.68rem;
}

.social-links {
    display: flex;

    gap: 18px;
}

.social-links a:hover {
    color: var(--cyan);
}


/* =========================================================
   18. ANIMATIONS
   ========================================================= */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.live-dot,
.live-indicator span {
    animation: pulse 1.5s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-player-card {
    animation: float 5s ease-in-out infinite;
}


/* =========================================================
   19. TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 14px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero-container {
        grid-template-columns: 1fr 0.75fr;

        gap: 40px;
    }

    .tournament-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns:
            1.5fr
            repeat(2, 1fr);
    }

}


/* =========================================================
   20. MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .nav-actions .search-button,
    .nav-actions .notification-button {
        display: none;
    }

    .mobile-menu-button {
        display: block;

        margin-left: auto;
    }

    .mobile-nav {
        display: none;

        flex-direction: column;

        gap: 5px;

        padding: 15px 20px 25px;

        border-top: 1px solid var(--border);

        background: rgba(5, 9, 20, 0.98);
    }

    .mobile-nav.active {
        display: flex;
    }

    .mobile-nav > a {
        padding: 13px;

        border-radius: 8px;

        color: var(--text-secondary);

        font-size: 0.9rem;

        font-weight: 700;
    }

    .mobile-nav > a:hover {
        background: rgba(255, 255, 255, 0.04);

        color: var(--white);
    }

    .mobile-auth {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;

        margin-top: 10px;

        padding-top: 15px;

        border-top: 1px solid var(--border);
    }

    .nav-actions .btn {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-content {
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-card-wrapper {
        margin-top: 20px;
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progression-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   21. SMALL TABLETS
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        display: block;

        margin-bottom: 30px;
    }

    .section-heading .view-all {
        display: inline-block;

        margin-top: 15px;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        padding: 75px 0;
    }

    .hero h1 {
        font-size: clamp(
            3rem,
            15vw,
            5rem
        );
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .hero-trust {
        gap: 22px;
    }

    .live-grid,
    .tournament-grid,
    .games-grid,
    .teams-grid,
    .clips-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        min-height: 150px;
    }

    .leaderboard {
        overflow-x: auto;
    }

    .leaderboard-header,
    .leaderboard-row {
        min-width: 650px;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   22. MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .nav-container {
        min-height: 68px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-container {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-trust {
        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 10px;
    }

    .trust-item strong {
        font-size: 1rem;
    }

    .hero-player-card {
        padding: 23px;
    }

    .player-avatar {
        width: 75px;

        height: 75px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .progress-card {
        padding: 22px;
    }

    .progress-stats {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .progress-stats div {
        display: flex;

        justify-content: space-between;

        align-items: center;
    }

    .progress-stats span {
        display: inline;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

    .cta-buttons {
        width: 100%;
    }

    .cta-buttons .btn {
        flex: 1;
    }

}


/* =========================================================
   23. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}
/* NEXORA AUTHENTICATION PAGES */
.auth-page{min-height:100vh;display:grid;place-items:center;padding:40px 20px;position:relative;overflow:hidden}.auth-shell{width:min(1040px,100%);display:grid;grid-template-columns:.9fr 1.1fr;position:relative;z-index:1;background:rgba(8,14,29,.88);border:1px solid var(--border);border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.48);backdrop-filter:blur(20px)}.auth-brand-panel{padding:52px 42px;display:flex;flex-direction:column;justify-content:space-between;min-height:650px;background:linear-gradient(145deg,rgba(22,119,255,.1),rgba(139,92,246,.06));border-right:1px solid var(--border)}.auth-brand-copy{max-width:390px}.auth-brand-copy h1{font-size:clamp(2.4rem,5vw,4.2rem);line-height:.98;letter-spacing:-.06em;margin-bottom:20px}.auth-brand-copy h1 span{color:transparent;background:linear-gradient(135deg,var(--cyan),var(--blue),var(--purple));-webkit-background-clip:text;background-clip:text}.auth-brand-copy p{color:var(--text-secondary);font-size:.98rem}.auth-benefits{display:grid;gap:12px;margin-top:34px}.auth-benefit{display:flex;align-items:center;gap:12px;color:var(--text-secondary);font-size:.82rem}.auth-benefit-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:rgba(0,217,255,.08);border:1px solid rgba(0,217,255,.18)}.auth-panel{padding:52px 48px;background:rgba(5,9,20,.62)}.auth-panel-header{margin-bottom:28px}.auth-panel-header h2{font-size:2rem;margin-bottom:7px}.auth-panel-header p,.auth-hint,.auth-footer{color:var(--text-secondary);font-size:.84rem}.auth-form{display:grid;gap:18px}.auth-field{display:grid;gap:8px}.auth-field label{font-size:.78rem;font-weight:800}.auth-field input{width:100%;min-height:50px;padding:0 15px;color:var(--text-primary);background:rgba(255,255,255,.035);border:1px solid var(--border);border-radius:10px;outline:none}.auth-field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(22,119,255,.1)}.auth-input-wrap{position:relative}.auth-field input.has-toggle{padding-right:48px}.auth-password-toggle{position:absolute;top:50%;right:12px;transform:translateY(-50%);background:transparent;color:var(--text-muted)}.password-strength{display:grid;gap:7px}.password-strength-bar{height:5px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}.password-strength-bar span{display:block;width:0;height:100%;border-radius:inherit;transition:width .25s}.password-strength-text{color:var(--text-muted);font-size:.68rem}.auth-check{display:flex;gap:9px;color:var(--text-secondary);font-size:.72rem}.auth-check input{accent-color:var(--blue)}.auth-submit{width:100%;min-height:52px}.auth-submit.loading{opacity:.72;pointer-events:none}.auth-message{display:none;padding:12px 14px;border-radius:10px;font-size:.76rem}.auth-message.show{display:block}.auth-message.error{color:#fecaca;background:rgba(239,68,68,.09);border:1px solid rgba(239,68,68,.22)}.auth-message.success{color:#bbf7d0;background:rgba(34,197,94,.09);border:1px solid rgba(34,197,94,.22)}.auth-footer{text-align:center;margin-top:22px}.auth-footer a,.auth-back{color:var(--cyan);font-weight:700}.auth-back{display:inline-flex;margin-top:18px;font-size:.76rem}.auth-loading{display:inline-flex;align-items:center;justify-content:center;gap:8px}.auth-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.25);border-top-color:currentColor;border-radius:50%;animation:authSpin .7s linear infinite}@keyframes authSpin{to{transform:rotate(360deg)}}@media(max-width:820px){.auth-shell{grid-template-columns:1fr;max-width:620px}.auth-brand-panel{min-height:auto;padding:34px 30px;gap:30px;border-right:0;border-bottom:1px solid var(--border)}.auth-panel{padding:38px 30px}}@media(max-width:520px){.auth-page{padding:20px 14px}.auth-brand-panel,.auth-panel{padding:28px 22px}.auth-brand-copy h1{font-size:2.4rem}}
