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

:root {
    --dark: #07111f;
    --dark-two: #0d1b2e;
    --light: #f5f7fb;
    --text: #172033;
    --muted: #6d7788;
    --accent: #ff6b35;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
}


/* =========================
   HEADER
========================= */

.site-header {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e6e9ef;
}

.header-container {
    max-width: 1250px;
    margin: auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--text);
    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;
}

.brand-text h1 {
    font-size: 18px;
}

.brand-text span {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    position: relative;

    color: #333d4d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}


/* =========================
   HERO
========================= */

.hero-section {
    position: relative;
    min-height: 650px;

    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 107, 53, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(37, 99, 235, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #06101e,
            #0b1b31 55%,
            #10243c
        );

    color: white;
}

.hero-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}


.hero-content {
    position: relative;
    z-index: 5;

    max-width: 1250px;
    width: 100%;

    margin: auto;

    padding: 100px 24px;

    animation: heroEnter 1s ease forwards;
}

@keyframes heroEnter {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-badge {
    display: inline-block;

    padding: 8px 14px;

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;

    background: rgba(255,255,255,0.06);

    color: #d8e0eb;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


.hero h2 {
    max-width: 800px;

    margin-top: 25px;

    font-size: clamp(45px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.hero h2 span {
    color: #d7dee9;
}

.hero h2 strong {
    color: var(--accent);
}


.hero-content > p {
    max-width: 600px;

    margin-top: 28px;

    color: #b7c2d1;

    font-size: 18px;
    line-height: 1.7;
}


.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 35px;
}


.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 15px 22px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-4px);
}


.hero-btn.primary {
    background: var(--accent);
    color: white;

    box-shadow:
        0 10px 30px rgba(255,107,53,0.25);
}


.hero-btn.secondary {
    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.06);

    color: white;
}


.floating-ball {
    position: absolute;

    z-index: 2;

    font-size: 70px;

    opacity: 0.12;

    animation: floating 7s ease-in-out infinite;
}

.ball-one {
    top: 15%;
    right: 15%;
}

.ball-two {
    bottom: 15%;
    right: 35%;

    font-size: 45px;

    animation-delay: 1.5s;
}

.ball-three {
    top: 45%;
    right: 5%;

    font-size: 35px;

    animation-delay: 3s;
}


@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(15deg);
    }
}


.hero-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    right: -200px;
    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    background: rgba(255,107,53,0.08);

    filter: blur(20px);

    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }
}


.scroll-indicator {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    color: #8794a6;

    font-size: 11px;
    letter-spacing: 1px;

    text-transform: uppercase;
}

.scroll-indicator span {
    display: block;

    width: 1px;
    height: 25px;

    margin: 0 auto 8px;

    background: #8794a6;

    animation: scrollLine 1.5s infinite;
}

@keyframes scrollLine {

    0% {
        opacity: 0;
        transform: translateY(-5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(5px);
    }
}


/* =========================
   SECTIONS
========================= */

.content-section {
    max-width: 1250px;

    margin: auto;

    padding: 75px 24px;
}


.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 30px;
}

.section-title h2 {
    margin-top: 6px;

    font-size: 32px;
}

.section-title a {
    color: var(--muted);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.section-title a:hover {
    color: var(--accent);
}


.section-label {
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


.live-label {
    animation: liveText 1.5s infinite;
}

@keyframes liveText {

    50% {
        opacity: 0.5;
    }
}


/* =========================
   LIVE CARD
========================= */

.live-card {
    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #0a1728,
            #122943
        );

    color: white;

    box-shadow:
        0 20px 50px rgba(6,16,30,0.12);

    transition: transform 0.3s ease;
}

.live-card:hover {
    transform: translateY(-5px);
}


.live-card-top {
    display: flex;
    justify-content: space-between;

    padding: 18px 25px;

    border-bottom: 1px solid rgba(255,255,255,0.1);

    color: #9aa9bc;

    font-size: 12px;
}

.live-card-top > div {
    color: #ff796b;

    font-weight: 800;
}


.live-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 5px;

    border-radius: 50%;

    background: #ff4d4d;

    animation: pulse 1.3s infinite;
}

@keyframes pulse {

    50% {
        box-shadow: 0 0 0 7px rgba(255,77,77,0.1);
    }
}


.live-match-content {
    display: grid;

    grid-template-columns: 1fr 180px 1fr;

    align-items: center;

    text-align: center;

    padding: 45px 25px;
}


.team-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    font-size: 30px;
}


.live-team h3 {
    font-size: 18px;
}


.live-score strong {
    font-size: 58px;
}

.live-score span {
    margin: 0 12px;

    color: #75869b;

    font-size: 35px;
}

.live-score small {
    display: block;

    margin-top: 5px;

    color: #8fa0b4;

    font-size: 11px;
    letter-spacing: 1px;
}


/* =========================
   MATCH CARDS
========================= */

.match-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.match-card {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 20px;

    padding: 25px;

    border: 1px solid #e2e6ed;
    border-radius: 12px;

    background: white;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(20,30,50,0.1);
}


.match-date {
    min-width: 55px;

    padding: 10px 5px;

    text-align: center;

    border-radius: 8px;

    background: #f0f3f8;
}

.match-date strong {
    display: block;

    font-size: 25px;
}

.match-date span {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
}


.match-details {
    flex: 1;
}

.match-time {
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;
}

.match-details h3 {
    margin-top: 10px;

    font-size: 16px;
}

.vs {
    margin: 5px 0;

    color: #a0a8b5;

    font-size: 10px;
    font-weight: 800;
}

.match-details p {
    margin-top: 15px;

    color: var(--muted);

    font-size: 12px;
}

.match-arrow {
    color: #9aa3b0;

    font-size: 20px;
}


/* =========================
   TOURNAMENTS
========================= */

.tournament-section {
    background:
        linear-gradient(
            135deg,
            #07111f,
            #0c1e34
        );

    color: white;
}


.section-title.light a {
    color: #94a3b5;
}


.tournament-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


.tournament-card {
    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 14px;

    background: rgba(255,255,255,0.05);

    transition:
        transform 0.35s ease,
        background 0.35s ease;
}

.tournament-card:hover {
    transform: translateY(-8px);

    background: rgba(255,255,255,0.08);
}


.tournament-image {
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background:
        radial-gradient(
            circle,
            rgba(255,107,53,0.35),
            transparent 55%
        ),
        #142b45;
}

.tournament-image.second {
    background:
        radial-gradient(
            circle,
            rgba(37,99,235,0.3),
            transparent 55%
        ),
        #142b45;
}

.tournament-image > span {
    font-size: 80px;

    opacity: 0.9;

    animation: tournamentFloat 4s ease-in-out infinite;
}

@keyframes tournamentFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.tournament-info {
    padding: 25px;
}

.status {
    color: #ff9470;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.tournament-info h3 {
    margin-top: 10px;

    font-size: 22px;
}

.tournament-info p {
    margin-top: 8px;

    color: #9ba9ba;

    line-height: 1.5;
}

.tournament-meta {
    display: flex;
    gap: 20px;

    margin-top: 22px;

    color: #8f9dad;

    font-size: 12px;
}


/* =========================
   ANNOUNCEMENTS
========================= */

.announcement-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.announcement-card {
    padding: 28px;

    border: 1px solid #e2e6ed;
    border-radius: 12px;

    background: white;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(20,30,50,0.08);
}

.announcement-card > span {
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.announcement-card h3 {
    margin-top: 12px;

    font-size: 19px;
}

.announcement-card p {
    margin-top: 10px;

    color: var(--muted);

    line-height: 1.6;
}

.announcement-card small {
    display: block;

    margin-top: 20px;

    color: #9aa3b0;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #050d17;

    color: white;

    padding: 45px 24px;
}

.footer-container {
    max-width: 1250px;

    margin: auto;
}

.footer-container h3 {
    font-size: 18px;
}

.footer-container p {
    margin-top: 8px;

    color: #8290a1;

    font-size: 13px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: wrap;
    }

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

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

    .live-match-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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


@media (max-width: 600px) {

    .hero-section {
        min-height: 600px;
    }

    .hero-content {
        padding: 70px 20px;
    }

    .hero h2 {
        letter-spacing: -1px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-btn {
        justify-content: center;
    }

    .content-section {
        padding: 55px 18px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .live-score strong {
        font-size: 45px;
    }
}



/* =========================
   AUTHENTICATION
========================= */

.auth-page {
    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 107, 53, 0.12),
            transparent 30%
        ),
        #f5f7fb;
}

.auth-card {
    width: 100%;
    max-width: 430px;

    padding: 35px;

    border: 1px solid #e1e5ec;
    border-radius: 15px;

    background: white;

    box-shadow:
        0 20px 50px rgba(20, 30, 50, 0.08);

    animation: authEnter 0.6s ease;
}

@keyframes authEnter {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header > span {
    font-size: 42px;
}

.auth-header h2 {
    margin-top: 10px;
    font-size: 27px;
}

.auth-header p {
    margin-top: 8px;
    color: #737d8d;
    font-size: 14px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
}

.auth-card label {
    margin-bottom: 7px;
    margin-top: 16px;

    font-size: 13px;
    font-weight: 700;
}

.auth-card input {
    padding: 13px 14px;

    border: 1px solid #d9dee7;
    border-radius: 7px;

    outline: none;

    font-size: 14px;

    transition: 0.2s;
}

.auth-card input:focus {
    border-color: #ff6b35;

    box-shadow:
        0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-card button {
    margin-top: 25px;

    padding: 14px;

    border: none;
    border-radius: 7px;

    background: #ff6b35;
    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}

.auth-card button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(255, 107, 53, 0.2);
}

.auth-link {
    margin-top: 22px;

    text-align: center;

    color: #737d8d;

    font-size: 13px;
}

.auth-link a {
    color: #ff6b35;

    font-weight: 700;

    text-decoration: none;
}

.flash-message {
    padding: 12px;

    margin-bottom: 15px;

    border-radius: 7px;

    background: #fff0eb;

    color: #c94d25;

    font-size: 13px;
}


.tournament-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tournament-card h3 {
    color: inherit;
}

.view-tournament {
    display: inline-block;
    margin-top: 15px;
    color: #2563eb;
    font-weight: 600;
}

/* ==========================================
   UPDATE SCORE PAGE
========================================== */

.score-page {
    max-width: 1000px;
    margin: 0 auto;
}


/* MATCH HEADER */

.score-match-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.score-match-card h3 {
    margin: 0;
    color: #102a5c;
    font-size: 28px;
    font-weight: 700;
}

.score-match-card h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin: 0 25px;

    border-radius: 50%;

    background: #2864e6;
    color: white;

    font-size: 16px;
}


/* SETS */

.sets-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* SET CARD */

.set-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 25px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.set-card h3 {
    text-align: center;
    margin: 0 0 22px;

    color: #102a5c;
    font-size: 22px;
}


/* SCORE ROW */

.score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}


/* TEAM SCORE */

.team-score {
    flex: 1;
    text-align: center;
}

.team-score label {
    display: block;

    margin-bottom: 10px;

    color: #173d7a;
    font-size: 18px;
    font-weight: 700;
}


/* SCORE INPUT */

.team-score input {
    width: 120px;
    height: 55px;

    border: 2px solid #d5dfed;
    border-radius: 12px;

    text-align: center;

    font-size: 24px;
    font-weight: 700;

    color: #102a5c;

    outline: none;
}

.team-score input:focus {
    border-color: #2864e6;
    box-shadow: 0 0 0 3px rgba(40, 100, 230, 0.12);
}


/* VS */

.score-row .vs {
    font-size: 18px;
    font-weight: 700;
    color: #6b7c93;
}


/* BUTTON AREA */

.score-actions {
    display: flex;
    justify-content: center;
    gap: 20px;

    margin-top: 30px;
}


/* SAVE BUTTON */

.save-score-button {
    border: none;

    padding: 15px 35px;

    border-radius: 12px;

    background: #2864e6;
    color: white;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    text-decoration: none;
}

.save-score-button:hover {
    background: #174fc5;
}


/* CANCEL BUTTON */

.cancel-score-button {
    padding: 15px 35px;

    border-radius: 12px;

    background: #eef2f7;
    color: #173d7a;

    font-size: 17px;
    font-weight: 700;

    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cancel-score-button:hover {
    background: #dfe6ef;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .score-match-card h3 {
        font-size: 21px;
    }

    .score-match-card h3 span {
        width: 40px;
        height: 40px;

        margin: 0 10px;

        font-size: 13px;
    }

    .score-row {
        gap: 10px;
    }

    .team-score label {
        font-size: 15px;
    }

    .team-score input {
        width: 85px;
        height: 48px;

        font-size: 20px;
    }

    .score-actions {
        flex-direction: column;
    }

    .save-score-button,
    .cancel-score-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}


/* ==========================================
   TOURNAMENT VIEW BUTTON
========================================== */

.tournament-actions {
    margin-top: 22px;
}

.view-tournament-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border-radius: 10px;

    background: #2864e6;

    color: white;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition: 0.2s ease;
}

.view-tournament-button:hover {
    background: #174fc5;

    transform: translateY(-1px);
}


/* ==========================================
   TEAM MATCHES
========================================== */

.team-matches-section {
    margin-top: 50px;
}

.team-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.team-match-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.team-match-card .match-round {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.team-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.team-match-teams strong {
    flex: 1;
    text-align: center;
    color: #102a5c;
    font-size: 16px;
}

.team-match-vs {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #2864e6;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
}

.team-match-info {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding-top: 17px;
    border-top: 1px solid #e5eaf1;

    color: #64748b;
    font-size: 13px;
}

.team-match-status {
    display: inline-block;
    margin-top: 16px;

    padding: 6px 11px;
    border-radius: 20px;

    background: #eaf7ef;
    color: #21834b;

    font-size: 11px;
    font-weight: 700;
}

.team-match-card .view-match-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    box-sizing: border-box;

    margin-top: 18px;
    padding: 12px;

    border-radius: 10px;

    background: #2864e6;
    color: #fff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.team-match-card .view-match-button:hover {
    background: #174fc5;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 750px) {

    .team-matches-grid {
        grid-template-columns: 1fr;
    }

    .team-match-teams {
        gap: 8px;
    }

    .team-match-teams strong {
        font-size: 14px;
    }

    .team-match-vs {
        width: 38px;
        height: 38px;
    }
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.approval-btn {
    display: inline-block;
    padding: 15px 25px;
    background: #2864e8;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
}

.approval-btn:hover {
    background: #174fc4;
}


/* =========================================
   ADMIN TOURNAMENT APPROVAL
========================================= */

.admin-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 30px;
}

.admin-header {
    margin-bottom: 40px;
}

.admin-label {
    color: #ff6542;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.admin-header h1 {
    color: #102f5b;
    font-size: 42px;
    margin: 0 0 8px;
}

.admin-header p {
    color: #71829c;
    font-size: 19px;
    margin: 0;
}


/* Approval Card */

.approval-card {
    background: white;
    border: 1px solid #dce3ed;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(20, 50, 90, 0.08);
    overflow: hidden;
}


/* Table */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.approval-table {
    width: 100%;
    border-collapse: collapse;
}

.approval-table th {
    background: #102f5b;
    color: white;
    padding: 18px;
    text-align: left;
    font-size: 16px;
}

.approval-table td {
    padding: 20px 18px;
    border-bottom: 1px solid #e5eaf1;
    color: #173b68;
    font-size: 16px;
}

.approval-table tr:last-child td {
    border-bottom: none;
}

.approval-table tbody tr:hover {
    background: #f7faff;
}

.tournament-name {
    font-weight: bold;
}


/* Status */

.status {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.status.approved {
    background: #d9f8e5;
    color: #08783b;
}

.status.draft {
    background: #fff1d6;
    color: #a86500;
}


/* Approve Button */

.approve-button {
    border: none;
    background: #2864e8;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.approve-button:hover {
    background: #174fc4;
}


/* Already Approved */

.already-approved {
    color: #08783b;
    font-weight: bold;
    font-size: 14px;
}


/* Back */

.back-dashboard {
    margin-top: 30px;
}

.back-dashboard a {
    color: #2864e8;
    font-weight: bold;
    text-decoration: none;
    font-size: 17px;
}

.back-dashboard a:hover {
    text-decoration: underline;
}


/* Mobile */

@media (max-width: 700px) {

    .admin-page {
        padding: 40px 15px;
    }

    .admin-header h1 {
        font-size: 32px;
    }

    .approval-card {
        padding: 15px;
    }

    .approval-table th,
    .approval-table td {
        padding: 12px;
    }

}


/* =========================================================
   MATCH DETAILS PAGE
========================================================= */

.match-details-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 70px 30px 100px;
}


/* =========================================================
   MATCH HERO
========================================================= */

.match-hero {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #eef4ff);
    border: 1px solid #d8e2f2;
    border-radius: 28px;
    padding: 55px 30px;
    margin-bottom: 28px;
    box-shadow: 0 15px 40px rgba(20, 45, 90, 0.08);
}

.match-round {
    display: inline-block;
    background: #ff6347;
    color: white;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 9px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.match-hero .section-label {
    display: block;
    margin-bottom: 8px;
}

.match-hero h1 {
    font-size: 48px;
    margin: 5px 0 18px;
    color: #102a4c;
}

.match-status {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: #e5f7ed;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================================
   TEAMS
========================================================= */

.match-teams-card {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    align-items: center;
    gap: 20px;
    background: white;
    border: 1px solid #dce5f1;
    border-radius: 28px;
    padding: 45px 35px;
    box-shadow: 0 12px 35px rgba(20, 45, 90, 0.07);
    margin-bottom: 28px;
}

.match-team {
    text-align: center;
}

.team-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    border: 5px solid #d9e7ff;
}

.match-team h2 {
    color: #102a4c;
    font-size: 30px;
    margin: 0 0 12px;
}

.match-vs {
    display: flex;
    justify-content: center;
    align-items: center;
}

.match-vs span {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #102a4c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 16px;
}

.winner-badge {
    display: inline-block;
    background: #fff4cc;
    color: #a16207;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   MATCH INFORMATION
========================================================= */

.match-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 55px;
}

.match-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 1px solid #dce5f1;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(20, 45, 90, 0.06);
}

.match-info-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #eef4ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.info-label {
    display: block;
    color: #7b93ad;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.match-info-card h3 {
    margin: 0;
    color: #102a4c;
    font-size: 18px;
}

.match-info-card p {
    margin: 5px 0 0;
    color: #70839a;
}


/* =========================================================
   SETS SECTION
========================================================= */

.sets-section {
    margin-top: 30px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 34px;
    color: #102a4c;
}

.set-count {
    background: #e5efff;
    color: #2459c5;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 800;
}


/* =========================================================
   SET TABLE
========================================================= */

.sets-table-wrapper {
    background: white;
    border-radius: 24px;
    border: 1px solid #dce5f1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 45, 90, 0.06);
}

.sets-table {
    width: 100%;
    border-collapse: collapse;
}

.sets-table th {
    background: #102a4c;
    color: white;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
}

.sets-table td {
    padding: 22px 18px;
    text-align: center;
    border-bottom: 1px solid #edf1f6;
    color: #233b58;
    font-size: 17px;
}

.sets-table tbody tr:last-child td {
    border-bottom: none;
}

.winning-score {
    font-size: 24px !important;
    font-weight: 900;
    color: #15803d !important;
}

.set-winner {
    display: inline-block;
    background: #e5f7ed;
    color: #15803d;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.set-not-completed {
    color: #9aa8b7;
}


/* =========================================================
   NO SETS
========================================================= */

.no-sets {
    background: white;
    border: 1px solid #dce5f1;
    border-radius: 24px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(20, 45, 90, 0.05);
}

.no-sets-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.no-sets h3 {
    color: #102a4c;
    font-size: 24px;
    margin: 10px 0;
}

.no-sets p {
    color: #72869c;
}


/* =========================================================
   FINAL RESULT
========================================================= */

.final-result {
    margin-top: 40px;
    background: linear-gradient(135deg, #102a4c, #1c4778);
    color: white;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
}

.final-result .section-label {
    color: #ff765c;
}

.final-result h2 {
    margin: 10px 0 0;
    font-size: 30px;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-section {
    margin-top: 35px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 12px;
    background: #102a4c;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

.back-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .match-details-page {
        padding: 40px 18px 70px;
    }

    .match-hero h1 {
        font-size: 36px;
    }

    .match-teams-card {
        grid-template-columns: 1fr;
        padding: 35px 20px;
    }

    .match-vs {
        margin: 5px 0;
    }

    .match-info-grid {
        grid-template-columns: 1fr;
    }

    .sets-table-wrapper {
        overflow-x: auto;
    }

    .sets-table {
        min-width: 650px;
    }

}


/* =========================================
   MATCH DETAILS PAGE
========================================= */

.match-details-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 30px 100px;
}


/* HEADER */

.match-header {
    text-align: center;
    margin-bottom: 45px;
}

.match-header h1 {
    font-size: 48px;
    margin: 12px 0;
    color: #071b3a;
}

.match-header .vs {
    color: #ff654f;
    font-size: 25px;
    margin: 0 12px;
}

.section-label {
    color: #ff654f;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 3px;
}

.tournament-name {
    font-size: 20px;
    color: #60708a;
}


/* MATCH INFORMATION */

.match-info-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.info-item {
    background: white;
    border: 1px solid #dce5f2;
    border-radius: 18px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(20, 50, 90, 0.06);
}

.info-icon {
    font-size: 30px;
}

.info-item small {
    display: block;
    color: #7b91aa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.info-item strong {
    display: block;
    color: #09264c;
    font-size: 17px;
}

.info-item span {
    color: #718198;
    font-size: 13px;
}


/* STATUS */

.status-card {
    background: white;
    border-radius: 18px;
    border: 1px solid #dce5f2;
    padding: 22px 28px;
    margin-bottom: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #8093aa;
}

.status {
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
}

.status.completed {
    background: #e7f8ef;
    color: #16804b;
}

.status.live {
    background: #ffe8e8;
    color: #d72d2d;
}

.status.scheduled {
    background: #e8f1ff;
    color: #2165b5;
}

.status.cancelled {
    background: #eeeeee;
    color: #666;
}


/* SCORE SECTION */

.score-section {
    margin-top: 30px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: 34px;
    color: #09264c;
}


/* SCORE TABLE */

.score-table {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #dce5f2;
    box-shadow: 0 12px 35px rgba(20, 50, 90, 0.07);
}

.score-table-header,
.score-row {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 1.5fr 1.5fr;
    align-items: center;
}

.score-table-header {
    background: #09264c;
    color: white;
    padding: 20px 25px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.score-row {
    padding: 25px;
    border-top: 1px solid #edf1f6;
}

.score-row:hover {
    background: #f8fbff;
}

.set-number {
    font-weight: 800;
    color: #60748d;
    font-size: 17px;
}

.score {
    font-size: 32px;
    font-weight: 800;
    color: #09264c;
}

.winning-score {
    color: #ff654f;
}

.set-winner {
    font-weight: 700;
    color: #385879;
}


/* MATCH RESULT */

.match-result {
    margin-top: 25px;
    background: linear-gradient(135deg, #09264c, #123e70);
    color: white;
    border-radius: 22px;
    padding: 35px;
    text-align: center;
}

.match-result span {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
}

.match-result h2 {
    margin: 10px 0 0;
    font-size: 32px;
}


/* NO SCORE */

.no-score-card {
    background: white;
    border: 1px solid #dce5f2;
    border-radius: 22px;
    padding: 60px 30px;
    text-align: center;
}

.empty-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.no-score-card h3 {
    font-size: 25px;
    color: #09264c;
    margin: 10px;
}

.no-score-card p {
    color: #718198;
}


/* ACTION */

.match-actions {
    margin-top: 30px;
    text-align: center;
}

.primary-button {
    display: inline-block;
    background: #ff654f;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    transition: 0.2s;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 101, 79, 0.25);
}


/* BACK */

.back-section {
    margin-top: 35px;
    text-align: center;
}

.back-link {
    color: #09264c;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #ff654f;
}


/* MOBILE */

@media (max-width: 800px) {

    .match-details-page {
        padding: 45px 18px 70px;
    }

    .match-header h1 {
        font-size: 34px;
    }

    .match-info-card {
        grid-template-columns: 1fr 1fr;
    }

    .score-table {
        overflow-x: auto;
    }

    .score-table-header,
    .score-row {
        min-width: 700px;
    }
}


@media (max-width: 500px) {

    .match-info-card {
        grid-template-columns: 1fr;
    }

    .match-header h1 {
        font-size: 28px;
    }
}

/* ================================
   LOGIN PAGE
================================ */

.auth-page {
    min-height: calc(100vh - 160px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 60px 20px;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 107, 61, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(30, 90, 160, 0.08),
            transparent 35%
        ),
        #f5f7fb;
}


/* ================================
   LOGIN CARD
================================ */

.auth-card {
    width: 100%;
    max-width: 540px;

    background: #ffffff;

    padding: 48px;

    border-radius: 22px;

    border: 1px solid #e1e7ef;

    box-shadow:
        0 20px 50px rgba(15, 40, 70, 0.10);

    box-sizing: border-box;
}


/* ================================
   HEADER
================================ */

.auth-header {
    text-align: center;

    margin-bottom: 38px;
}


.volleyball-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #f1e7ff,
        #d9c2f7
    );

    font-size: 34px;

    box-shadow:
        0 8px 20px rgba(100, 60, 150, 0.15);
}


.auth-header h2 {
    margin: 0;

    color: #082f63;

    font-size: 38px;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.auth-header p {
    margin: 8px 0 0;

    color: #6b7f99;

    font-size: 16px;
}


/* ================================
   FLASH MESSAGE
================================ */

.flash-message {
    margin-bottom: 25px;

    padding: 14px 16px;

    border-radius: 10px;

    background: #fff0ec;

    border: 1px solid #ffd5ca;

    color: #d9482f;

    font-size: 14px;
}


.flash-message p {
    margin: 0;
}


/* ================================
   FORM
================================ */

.login-form {
    width: 100%;
}


.form-group {
    margin-bottom: 25px;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #082f63;

    font-size: 16px;

    font-weight: 700;
}


.form-group input {
    width: 100%;

    height: 54px;

    padding: 0 16px;

    box-sizing: border-box;

    border: 1px solid #d3ddea;

    border-radius: 10px;

    background: #f8fafc;

    color: #172b4d;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input::placeholder {
    color: #8b9bb0;
}


.form-group input:focus {
    background: #ffffff;

    border-color: #2878d4;

    box-shadow:
        0 0 0 4px rgba(40, 120, 212, 0.12);
}


/* ================================
   LOGIN BUTTON
================================ */

.login-btn {
    width: 100%;

    height: 56px;

    border: none;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #ff6338,
        #ff4f2f
    );

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(255, 91, 54, 0.25);
}


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


/* ================================
   CREATE ACCOUNT
================================ */

.auth-link {
    text-align: center;

    margin: 28px 0 0;

    color: #71839b;

    font-size: 15px;
}


.auth-link a {
    color: #ff5b36;

    font-weight: 700;

    text-decoration: none;
}


.auth-link a:hover {
    text-decoration: underline;
}


/* ================================
   ORGANIZER SECTION
================================ */

.organizer-request-link {
    margin-top: 28px;

    padding-top: 25px;

    border-top: 1px solid #e5eaf1;

    text-align: center;
}


.organizer-request-link p {
    margin: 0 0 14px;

    color: #526982;

    font-size: 15px;

    font-weight: 500;
}


/* ================================
   ORGANIZER BUTTON
================================ */

.organizer-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 0 22px;

    border-radius: 9px;

    background: #082f63;

    color: #ffffff !important;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none !important;

    border: 1px solid #082f63;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.organizer-btn:hover {
    background: #0d438a;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(8, 47, 99, 0.20);
}


/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {

    .auth-page {
        padding: 35px 15px;
    }

    .auth-card {
        padding: 32px 22px;

        border-radius: 18px;
    }

    .auth-header h2 {
        font-size: 30px;
    }

    .organizer-btn {
        width: 100%;

        box-sizing: border-box;
    }
}


/* ==========================================
   USER LIVE SCORE - REFRESH BUTTON
========================================== */

.score-refresh-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 20px 0 25px;
}

#refresh-score-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    align-items: center;
    justify-content: center;

    min-width: 160px;
    padding: 12px 22px;

    border: none;
    border-radius: 8px;

    background: #1f2937;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

#refresh-score-button:hover {
    background: #111827;
}

#refresh-score-button:disabled {
    opacity: 0.7 !important;
    cursor: wait;
}

#refresh-status {
    font-size: 14px;
}
