/* =========================================
   GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #171717;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

main {
    min-height: 70vh;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #ffffff;
}

.header-top-inner {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 300px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.header-actions {
    position: absolute;
    right: 0;

    display: flex;
    align-items: center;
    gap: 14px;
}

.login-link {
    font-size: 14px;
    font-weight: 600;
    color: #222222;

    transition: color 0.2s ease;
}

.login-link:hover {
    color: #d71920;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 25px;

    border-radius: 6px;

    background: #d71920;
    color: #ffffff;

    border: 2px solid #d71920;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    background: #b9151b;
    border-color: #b9151b;
    transform: translateY(-2px);
}

.btn-small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
}


/* =========================================
   NAVIGATION
========================================= */

.navigation-wrapper {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #f2f2f2;
}

.navigation-inner {
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;

    min-height: 58px;
}

.main-nav a {
    position: relative;

    font-size: 14px;
    font-weight: 600;

    color: #333333;

    white-space: nowrap;

    padding: 18px 0;

    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 10px;

    width: 0;
    height: 2px;

    background: #d71920;

    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: #d71920;
}

.main-nav a:hover::after {
    width: 100%;
}


/* =========================================
   MOBILE MENU
========================================= */




/* =========================================
   GENERAL SECTION
========================================= */

.section-space {
    padding: 100px 0;
}

.section-label {
    display: inline-block;

    margin-bottom: 16px;

    color: #d71920;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

h2 span {
    color: #d71920;
}


/* =========================================
   HERO
========================================= */

.home-hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #111111;
}

.home-hero-image {
    position: absolute;
    inset: 0;
}

.home-hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.15) 100%
        );
}

.home-hero-content {
    position: relative;
    z-index: 2;

    padding-top: 40px;
    padding-bottom: 40px;

    color: #ffffff;
}

.hero-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;

    color: #ffffff;

    border-left: 3px solid #d71920;
    padding-left: 12px;
}

.home-hero h1 {
    max-width: 700px;

    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.98;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.home-hero h1 span {
    display: block;
    color: #d71920;
}

.home-hero p {
    max-width: 570px;

    color: #eeeeee;

    font-size: 17px;
    line-height: 1.8;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-primary-btn {
    background: #d71920;
    border-color: #d71920;
}

.hero-secondary-btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 25px;

    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    transition: all 0.2s ease;
}

.hero-secondary-btn:hover {
    background: #ffffff;
    color: #171717;
}


/* =========================================
   INTRO
========================================= */

.home-intro {
    background: #ffffff;
}

.intro-content {
    max-width: 780px;
    margin: 0 auto;

    text-align: center;
}

.intro-content h2 {
    margin-bottom: 25px;
}

.intro-content p {
    max-width: 700px;
    margin: 0 auto 15px;

    color: #666666;

    font-size: 16px;
    line-height: 1.9;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 15px;

    color: #171717;

    font-size: 14px;
    font-weight: 800;

    transition: color 0.2s ease;
}

.text-link span {
    color: #d71920;

    font-size: 20px;

    transition: transform 0.2s ease;
}

.text-link:hover {
    color: #d71920;
}

.text-link:hover span {
    transform: translateX(5px);
}


/* =========================================
   STATS
========================================= */

.home-stats {
    padding: 85px 0;

    background: #f7f7f7;
}

.stats-heading {
    text-align: center;
    margin-bottom: 45px;
}

.stats-heading h2 {
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

.stat-card {
    min-height: 190px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 25px;

    border-right: 1px solid #dddddd;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card strong {
    color: #111111;

    font-size: clamp(45px, 5vw, 68px);
    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 14px;
}

.stat-card span {
    color: #666666;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================
   COURTS
========================================= */

.home-courts {
    background: #ffffff;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 50px;
}

.section-heading > p {
    max-width: 440px;

    color: #666666;

    font-size: 15px;
    line-height: 1.8;
}

.courts-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;
}

.court-card {
    background: #ffffff;

    border: 1px solid #e5e5e5;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.court-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.10);
}

.court-image {
    height: 390px;
    overflow: hidden;
}

.court-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.court-card:hover .court-image img {
    transform: scale(1.04);
}

.court-card-content {
    padding: 30px;
}

.court-number {
    display: block;

    margin-bottom: 10px;

    color: #d71920;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.court-card h3 {
    margin-bottom: 10px;

    font-size: 27px;
    line-height: 1.2;
}

.court-card p {
    max-width: 470px;

    color: #666666;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================
   WHY RANGE
========================================= */

.why-range {
    padding: 110px 0;

    background: #111111;

    color: #ffffff;
}

.why-range-grid {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 100px;

    align-items: center;
}

.why-range-content h2 {
    max-width: 580px;

    margin-bottom: 25px;
}

.why-range-content h2 span {
    display: block;
}

.why-range-content p {
    max-width: 550px;

    margin-bottom: 15px;

    color: #bdbdbd;

    font-size: 15px;
    line-height: 1.9;
}

.why-range-content .btn {
    margin-top: 15px;
}

.why-features {
    border-top: 1px solid #333333;
}

.why-feature {
    display: grid;

    grid-template-columns: 60px 1fr;

    gap: 20px;

    padding: 27px 0;

    border-bottom: 1px solid #333333;
}

.feature-number {
    color: #d71920;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;
}

.why-feature h3 {
    margin-bottom: 7px;

    font-size: 19px;
}

.why-feature p {
    color: #999999;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   PLAY YOUR WAY
========================================= */

.play-your-way {
    background: #f7f7f7;
}

.centered-heading {
    display: block;

    text-align: center;
}

.centered-heading > p {
    max-width: 600px;

    margin: 18px auto 0;
}

.play-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.play-card {
    position: relative;

    min-height: 300px;

    display: flex;
    flex-direction: column;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.play-card:hover {
    background: #d71920;

    color: #ffffff;

    transform: translateY(-6px);
}

.play-card-number {
    color: #d71920;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: auto;
}

.play-card:hover .play-card-number {
    color: #ffffff;
}

.play-card h3 {
    font-size: 23px;

    margin-bottom: 10px;
}

.play-card p {
    color: #666666;

    font-size: 14px;
    line-height: 1.7;
}

.play-card:hover p {
    color: #f0f0f0;
}

.play-arrow {
    margin-top: 25px;

    color: #d71920;

    font-size: 25px;

    transition: transform 0.2s ease;
}

.play-card:hover .play-arrow {
    color: #ffffff;
    transform: translateX(5px);
}


/* =========================================
   LOYALTY
========================================= */

.loyalty-home {
    padding: 100px 0;

    background: #ffffff;
}

.loyalty-home-box {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 60px;

    align-items: center;

    padding: 65px;

    background: #f5f5f5;

    border-left: 6px solid #d71920;
}

.loyalty-home-content h2 {
    margin-bottom: 20px;
}

.loyalty-home-content h2 span {
    display: block;
}

.loyalty-home-content p {
    max-width: 450px;

    color: #666666;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 25px;
}

.reward-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.reward-card {
    min-height: 190px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dddddd;
}

.reward-card strong {
    color: #111111;

    font-size: 55px;
    line-height: 1;

    letter-spacing: -2px;
}

.reward-card > span {
    color: #777777;

    margin-top: 8px;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.reward-card p {
    margin-top: 14px;

    color: #333333;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================
   FINAL CTA
========================================= */

.home-cta {
    background: #ffffff;
}

.home-cta-box {
    position: relative;

    overflow: hidden;

    padding: 90px 30px;

    text-align: center;

    background: #111111;

    color: #ffffff;
}

.home-cta-box::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: #d71920;

    opacity: 0.12;

    top: -170px;
    left: -80px;
}

.home-cta-box::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: #d71920;

    opacity: 0.12;

    right: -100px;
    bottom: -180px;
}

.home-cta-box > * {
    position: relative;
    z-index: 2;
}

.home-cta-box h2 {
    margin-bottom: 20px;
}

.home-cta-box h2 span {
    display: block;
}

.home-cta-box p {
    max-width: 600px;

    margin: 0 auto 30px;

    color: #bbbbbb;

    font-size: 15px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.cta-outline-btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 25px;

    border: 2px solid #555555;

    border-radius: 6px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    transition: all 0.2s ease;
}

.cta-outline-btn:hover {
    background: #ffffff;

    color: #111111;

    border-color: #ffffff;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    margin-top: 0;

    background: #111111;

    color: #ffffff;
}

.footer-grid {
    padding: 65px 0;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;
}

.footer-logo {
    justify-content: flex-start;
}

.footer-logo .logo-image {
    width: 180px;

    filter:
        brightness(0)
        invert(1);
}

.footer-brand p {
    max-width: 360px;

    margin-top: 20px;

    color: #bdbdbd;

    font-size: 14px;
    line-height: 1.8;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.footer-column h3 {
    margin-bottom: 10px;

    font-size: 15px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.footer-column a {
    color: #bdbdbd;

    font-size: 14px;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #292929;
}

.footer-bottom-inner {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {
    color: #888888;

    font-size: 13px;
}

.footer-socials {
    display: flex;

    gap: 20px;
}

.footer-socials a {
    color: #999999;

    font-size: 13px;
}

.footer-socials a:hover {
    color: #ffffff;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .why-range-grid {
        gap: 50px;
    }

    .play-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns:
            1.5fr 1fr 1fr;
    }

}


/* =========================================
   COMPACT MOBILE HEADER
========================================= */

@media (max-width: 768px) {

    .header-top {
        padding: 10px 0;
    }

    .header-top-inner {
        position: relative;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-image {
        width: 125px;
        height: auto;
    }

    .header-actions {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);

        display: flex;
        align-items: center;
        gap: 7px;
    }

    .login-link {
        font-size: 12px;
    }

    .btn-small {
        padding: 7px 9px;
        font-size: 11px;
    }

    .navigation-wrapper {
        display: block;
    }

    .navigation-inner {
        padding: 0 8px;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px 4px;
        padding: 5px 0 9px;
    }

    .main-nav a {
        padding: 4px 6px;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

}

    /* HERO */

    .home-hero {
        min-height: 620px;
    }

    .home-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.82),
                rgba(0, 0, 0, 0.45)
            );
    }

    .home-hero h1 {
        font-size: clamp(45px, 12vw, 65px);

        letter-spacing: -2px;
    }

    .home-hero p {
        font-size: 15px;
    }


    /* GENERAL */

    .section-space {
        padding: 75px 0;
    }


    /* STATS */

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stat-card:nth-child(2) {
        border-right: none;
    }

    .stat-card:nth-child(-n+2) {
        border-bottom: 1px solid #dddddd;
    }


    /* COURTS */

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 20px;
    }

    .courts-grid {
        grid-template-columns: 1fr;
    }

    .court-image {
        height: 330px;
    }


    /* WHY */

    .why-range {
        padding: 75px 0;
    }

    .why-range-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* PLAY */

    .play-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    /* LOYALTY */

    .loyalty-home {
        padding: 75px 0;
    }

    .loyalty-home-box {
        grid-template-columns: 1fr;

        padding: 45px 30px;

        gap: 40px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        flex-direction: column;

        justify-content: center;

        padding: 20px 0;

        text-align: center;
    }




/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 500px) {

    .logo-image {
        width: 125px;
    }

    .header-actions {
        right: 8px;
    }

    .login-link {
        font-size: 11px;
    }

    .btn-small {
        padding: 0 9px;

        font-size: 11px;
    }


    .home-hero {
        min-height: 600px;
    }

    .home-hero-content {
        padding-top: 20px;
    }

    .home-hero h1 {
        font-size: 43px;
    }

    .home-hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
    }


    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 155px;

        border-right: none;

        border-bottom: 1px solid #dddddd;
    }

    .stat-card:last-child {
        border-bottom: none;
    }


    .court-image {
        height: 270px;
    }

    .court-card-content {
        padding: 25px;
    }


    .play-grid {
        grid-template-columns: 1fr;
    }

    .play-card {
        min-height: 240px;
    }


    .loyalty-home-box {
        padding: 40px 20px;
    }

    .reward-grid {
        grid-template-columns: 1fr;
    }

    .reward-card {
        min-height: 160px;
    }


    .home-cta-box {
        padding: 70px 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn,
    .cta-outline-btn {
        width: 100%;
    }


    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

}
/* =========================================
   AUTHENTICATION PAGES
========================================= */

.auth-section {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background: #f7f7f7;
}

.auth-container {
    width: 100%;
    max-width: 560px;
}

.auth-card {
    background: #ffffff;
    padding: 45px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b40000;
}

.auth-header h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
    color: #111111;
}

.auth-header p {
    margin: 0;
    color: #666666;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #b40000;
    box-shadow: 0 0 0 3px rgba(180, 0, 0, 0.08);
}

.form-help {
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}

.auth-submit {
    width: 100%;
    margin-top: 5px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 15px 20px;
}

.auth-message {
    padding: 13px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-error {
    background: #fff0f0;
    border: 1px solid #f0b8b8;
    color: #a00000;
}

.auth-success {
    background: #eefaf0;
    border: 1px solid #b9dfbf;
    color: #246b2d;
}

.auth-footer {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.auth-footer p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

.auth-footer a {
    color: #b40000;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================
   AUTH MOBILE
========================================= */

@media (max-width: 600px) {

    .auth-section {
        padding: 40px 15px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 12px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}
.auth-forgot {
    text-align: right;
    margin-top: -8px;
}

.auth-forgot a {
    color: #b40000;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}
/* =========================================
   COURTS & FACILITIES PAGE
========================================= */

.courts-page-hero {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0.62)
        ),
        url("../images/photo1.png") center/cover no-repeat;
}


/* =========================================
   COURT FEATURES
========================================= */

.court-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 70px;
}

.court-feature-reverse {
    grid-template-columns: 1fr 1.1fr;
}

.court-feature-reverse .court-feature-image {
    order: 2;
}

.court-feature-reverse .court-feature-content {
    order: 1;
}

.court-feature-image {
    overflow: hidden;
    border-radius: 14px;
}

.court-feature-image img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.court-number {
    display: inline-block;
    margin-bottom: 12px;
    color: #b40000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.court-feature-content h2 {
    margin: 0 0 18px;
    font-size: 36px;
    line-height: 1.2;
}

.court-feature-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 28px;
}

.feature-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
}

.feature-list li:first-child {
    border-top: 1px solid #e8e8e8;
}

.feature-list strong {
    color: #222;
    font-size: 14px;
}

.feature-list span {
    color: #777;
    font-size: 13px;
}


/* =========================================
   FACILITIES
========================================= */

.facilities-section {
    padding: 90px 0;
    background: #f6f6f6;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.facility-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.facility-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 20px;

    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
}

.facility-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.facility-card p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}


/* =========================================
   PLAYER LEVELS
========================================= */

.levels-section {
    padding: 90px 0;
}

.levels-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.levels-content h2 {
    margin: 0 0 18px;
    font-size: 36px;
    line-height: 1.25;
}

.levels-content p {
    color: #666;
    line-height: 1.8;
}

.level-points {
    border-top: 1px solid #ddd;
}

.level-point {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.level-point strong {
    font-size: 16px;
}

.level-point span {
    color: #777;
    font-size: 14px;
}


/* =========================================
   PAGE CTA
========================================= */

.page-cta {
    padding: 90px 0;
    background: #111;
    color: #fff;
}

.page-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.page-cta h2 {
    margin: 8px 0 15px;
    font-size: 42px;
}

.page-cta p {
    margin: 0 auto 30px;
    max-width: 600px;
    color: #ccc;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #111;
}


/* =========================================
   COURTS MOBILE
========================================= */

@media (max-width: 768px) {

    .court-feature,
    .court-feature-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 50px;
    }

    .court-feature-reverse .court-feature-image,
    .court-feature-reverse .court-feature-content {
        order: initial;
    }

    .court-feature-image img {
        height: 280px;
    }

    .court-feature-content h2 {
        font-size: 30px;
    }

    .facilities-section,
    .levels-section,
    .page-cta {
        padding: 60px 0;
    }

    .facilities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 35px;
    }

    .facility-card {
        padding: 22px 18px;
    }

    .facility-card h3 {
        font-size: 17px;
    }

    .levels-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .levels-content h2 {
        font-size: 30px;
    }

    .page-cta h2 {
        font-size: 32px;
    }

}


@media (max-width: 500px) {

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .court-feature-image img {
        height: 240px;
    }

}

/* Extra spacing after site header on Courts page */

.content-section {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .content-section {
        padding-top: 60px;
    }
}

/* =========================================================
   MATCH HISTORY
========================================================= */

.matches-history-page {
    padding-bottom: 90px;
}

.history-empty {
    max-width: 650px;
    padding: 45px;
    background: #f6f6f6;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
}

.history-empty h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.history-empty p {
    margin: 0 0 25px;
    color: #666;
    line-height: 1.7;
}

.match-history-list {
    display: grid;
    gap: 18px;
}

.history-card {
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
}

.history-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.history-label {
    display: block;
    margin-bottom: 7px;
    color: #b40000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.history-card h2 {
    margin: 0;
    font-size: 24px;
}

.history-status span {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-open {
    background: #fff3df;
    color: #925b00;
}

.status-full {
    background: #eeeeee;
    color: #333;
}

.status-completed {
    background: #eaf5ea;
    color: #287028;
}

.history-players {
    padding-top: 20px;
}

.history-players strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}

.history-player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-player-list span {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
}

@media (max-width: 600px) {

    .history-card {
        padding: 22px 18px;
    }

    .history-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* =========================================================
   LOGGED-IN HEADER
========================================================= */

.user-name-link {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.user-name-link:hover {
    color: #b40000;
}

.header-history-link {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.header-history-link:hover {
    color: #b40000;
}

@media (max-width: 768px) {

    .user-name-link {
        font-size: 12px;
    }

    .header-history-link {
        font-size: 11px;
    }

}
/* =========================================================
   LOGGED-IN USER HEADER
========================================================= */

.user-name {
    color: #222;
    font-size: 14px;
    font-weight: 700;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    background: transparent;
    border: 1px solid #222;
    border-radius: 5px;
    color: #222;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.logout-btn:hover {
    background: #222;
    color: #fff;
}

@media (max-width: 768px) {

    .user-name {
        font-size: 12px;
    }

    .logout-btn {
        padding: 6px 9px;
        font-size: 11px;
    }

}

/* =========================================================
   PREMIUM OPEN MATCHES
========================================================= */

.open-match-hero {
    padding: 90px 0 100px;
    background: #111;
    color: #fff;
}

.open-match-hero-content {
    max-width: 760px;
}

.open-match-hero h1 {
    margin: 12px 0 20px;
    font-size: clamp(52px, 8vw, 92px);
    line-height: 0.95;
    letter-spacing: -3px;
}

.open-match-hero h1 span {
    color: #d46a45;
}

.open-match-hero p {
    max-width: 600px;
    margin: 0;
    color: #ccc;
    font-size: 17px;
    line-height: 1.8;
}

.open-match-create-section {
    padding: 90px 0 110px;
    background: #f7f7f7;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 90px;
    align-items: start;
}

.booking-info {
    padding-top: 15px;
}

.booking-info h2 {
    margin: 10px 0 25px;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.booking-info h2 span {
    color: #b40000;
}

.booking-info > p {
    max-width: 570px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.booking-steps {
    margin-top: 45px;
    border-top: 1px solid #ddd;
}

.booking-step {
    display: flex;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid #ddd;
}

.booking-step > span {
    color: #b40000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.booking-step strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.booking-step p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.match-form-card {
    padding: 34px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
}

.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.form-card-header > span {
    color: #111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.player-count {
    color: #b40000;
    font-size: 11px;
    font-weight: 800;
}

.premium-form-group {
    margin-bottom: 22px;
}

.premium-form-group label {
    display: block;
    margin-bottom: 9px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.premium-form-group select,
.premium-form-group input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.premium-form-group select:focus,
.premium-form-group input:focus {
    outline: none;
    border-color: #b40000;
}

.match-preview {
    margin: 30px 0 25px;
    padding: 18px 20px;
    background: #f5f5f5;
    border-radius: 9px;
}

.preview-heading {
    margin-bottom: 12px;
    color: #888;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.preview-row span {
    color: #777;
    font-size: 13px;
}

.preview-row strong {
    font-size: 13px;
}

.preview-open {
    color: #287028;
}

.create-match-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 18px;
}

.create-match-btn span {
    font-size: 20px;
}

.match-created-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 45px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.07);
}

.created-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 22px;
}

.match-created-card h2 {
    margin: 10px 0 15px;
    font-size: 38px;
}

.match-created-card > p {
    max-width: 570px;
    margin: 0 auto 30px;
    color: #666;
    line-height: 1.8;
}

.created-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.whatsapp-btn {
    background: #111;
}

.text-link {
    color: #222;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.text-link:hover {
    color: #b40000;
}

@media (max-width: 900px) {

    .booking-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .booking-info h2 {
        font-size: 44px;
    }

}

@media (max-width: 768px) {

    .open-match-hero {
        padding: 65px 0 70px;
    }

    .open-match-hero h1 {
        font-size: 55px;
        letter-spacing: -2px;
    }

    .open-match-create-section {
        padding: 60px 0 75px;
    }

    .booking-info h2 {
        font-size: 38px;
    }

    .match-form-card {
        padding: 24px 20px;
    }

    .match-created-card {
        padding: 45px 22px;
    }

    .match-created-card h2 {
        font-size: 30px;
    }

}
/* =========================================================
   OPEN MATCH VIEW
========================================================= */

.open-match-view-page {
    padding: 85px 0 110px;
    background: #f7f7f7;
}

.match-view-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.match-view-header h1 {
    margin: 10px 0 12px;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.match-view-header p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.match-status-badge {
    min-width: 70px;
    padding: 12px 15px;
    text-align: center;
    background: #111;
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.match-main-card {
    max-width: 900px;
    padding: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.07);
}

.match-main-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e5e5e5;
}

.match-detail-item span {
    display: block;
    margin-bottom: 8px;
    color: #b40000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.match-detail-item strong {
    font-size: 24px;
}

.players-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 35px 0 20px;
}

.players-heading h2 {
    margin: 7px 0 0;
    font-size: 28px;
}

.players-heading > strong {
    color: #777;
    font-size: 13px;
}

.match-player-slots {
    border-top: 1px solid #ddd;
}

.match-player-slot {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 5px;
    border-bottom: 1px solid #e5e5e5;
}

.slot-number {
    width: 40px;
    color: #b40000;
    font-size: 12px;
    font-weight: 800;
}

.slot-player {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slot-player span {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slot-player strong {
    font-size: 16px;
}

.slot-open .slot-player strong {
    color: #aaa;
    font-weight: 500;
}

.match-action-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 30px;
}

.leave-match-btn {
    background: #fff;
    color: #b40000;
    border: 1px solid #b40000;
}

.leave-match-btn:hover {
    background: #b40000;
    color: #fff;
}

@media (max-width: 768px) {

    .open-match-view-page {
        padding: 60px 0 80px;
    }

    .match-view-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .match-view-header h1 {
        font-size: 38px;
    }

    .match-main-card {
        padding: 25px 20px;
    }

    .match-main-details {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .match-detail-item strong {
        font-size: 21px;
    }

    .players-heading {
        align-items: flex-start;
    }

    .match-action-area {
        flex-direction: column;
        align-items: stretch;
    }

    .match-action-area form,
    .match-action-area .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

}
/* =========================================================
   THE PADEL RANGE
   PREMIUM HEADER & NAVIGATION
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 1000;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.header-top {
    background: #ffffff;
}

.header-top-inner {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* Logo */

.logo {
    display: inline-flex;
    align-items: center;

    text-decoration: none;

    border: none;
    outline: none;
    box-shadow: none;

    -webkit-tap-highlight-color: transparent;
}

.logo:focus,
.logo:active,
.logo:hover {
    text-decoration: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.logo-image {
    display: block;

    width: 190px;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   ACCOUNT AREA
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}

.user-name {
    color: #222222;
    font-size: 14px;
    font-weight: 700;
}

.login-link {
    color: #222222;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    border: none;
    outline: none;
    box-shadow: none;

    -webkit-tap-highlight-color: transparent;

    transition: color 0.2s ease;
}

.login-link:hover {
    color: #b40000;
}

.login-link:focus,
.login-link:active {
    outline: none;
    border: none;
    box-shadow: none;
}


.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 18px;

    background: #111111;
    color: #ffffff;

    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    border: 1px solid #111111;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.logout-btn:hover {
    background: #b40000;
    border-color: #b40000;
    color: #ffffff;
}

.logout-btn:focus,
.logout-btn:active {
    outline: none;
    box-shadow: none;
}


/* =========================================================
   NAVIGATION BAR
   ========================================================= */

.navigation-wrapper {
    background: #111111;

    border-top: 1px solid #eeeeee;
}

.navigation-inner {
    display: flex;
    justify-content: center;
}

.main-nav {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;

    padding: 8px 0;
}


/* Navigation links */

.main-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 15px;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.1px;

    border: none;
    outline: none;
    box-shadow: none;

    border-radius: 5px;

    background: transparent;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}


/* Desktop hover */

.main-nav a:hover {
    background: #b40000;
    color: #ffffff;

    text-decoration: none;
}


/* Remove browser focus/tap outlines */

.main-nav a:focus,
.main-nav a:focus-visible,
.main-nav a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        flex-wrap: wrap;

        padding: 8px 12px;

        gap: 4px;
    }

    .main-nav a {
        padding: 9px 12px;

        font-size: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .header-top-inner {
        min-height: auto;

        padding: 18px 18px 16px;

        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 13px;

        text-align: center;
    }


    /* Logo */

    .logo-image {
        width: 175px;
    }


    /* Account buttons */

    .header-actions {
        justify-content: center;

        gap: 12px;
    }

    .user-name {
        font-size: 13px;
    }

    .login-link {
        font-size: 13px;
    }

    .btn-small {
        padding: 9px 17px;

        font-size: 13px;
    }

    .logout-btn {
        min-height: 38px;

        padding: 8px 16px;

        font-size: 12px;
    }


    /* Navigation */

    .navigation-wrapper {
        border-top: 1px solid #252525;
    }

    .navigation-inner {
        padding: 0 12px;
    }

    .main-nav {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 5px;

        padding: 10px 0 12px;
    }


    .main-nav a {

        width: 100%;

        min-height: 42px;

        padding: 9px 7px;

        font-size: 12px;

        line-height: 1.2;

        text-align: center;

        border-radius: 5px;
    }


    /*
       Mobile tap behavior.
       No red line.
       No browser outline.
    */

    .main-nav a:hover {
        background: transparent;
        color: #ffffff;
    }

    .main-nav a:active {
        background: #b40000;
        color: #ffffff;
    }

    .main-nav a:focus,
    .main-nav a:focus-visible {
        background: transparent !important;
        color: #ffffff !important;

        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .header-top-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo-image {
        width: 160px;
    }

    .main-nav {
        gap: 4px;
    }

    .main-nav a {
        min-height: 40px;

        padding: 8px 5px;

        font-size: 11px;
    }

}
/* =========================================================
   MOBILE NAV - REMOVE DESKTOP UNDERLINE EFFECT
   ========================================================= */

@media (max-width: 768px) {

    .main-nav a::before,
    .main-nav a::after {
        content: none !important;
        display: none !important;
    }

    .main-nav a {
        text-decoration: none !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .main-nav a:hover,
    .main-nav a:focus,
    .main-nav a:focus-visible,
    .main-nav a:active {
        text-decoration: none !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

}

/* =========================================================
   LOYALTY PROGRESS - MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 768px) {

    /* Loyalty progress section */
    .loyalty-progress,
    .progress-section,
    .loyalty-progress-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /*
       Keep the progress tracker inside the screen.
    */

    .progress-track {
        position: relative;
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    /*
       Progress line
    */

    .progress-line {
        height: 7px;
        border-radius: 20px;
    }

    /*
       Milestone container
    */

    .progress-milestones {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    /*
       Milestone circles
    */

    .milestone {
        width: 32px;
        height: 32px;

        min-width: 32px;
        min-height: 32px;

        border-radius: 50%;

        font-size: 11px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /*
       Milestone numbers
    */

    .milestone-number {
        font-size: 16px;
        font-weight: 800;
    }

    /*
       Reward labels
    */

    .milestone-label {
        width: 75px;
        max-width: 75px;

        margin-top: 9px;

        font-size: 10px;
        line-height: 1.3;

        text-align: center;

        word-wrap: break-word;
    }

    /*
       Match number
    */

    .loyalty-count {
        font-size: 42px;
        line-height: 1;
    }

    .loyalty-count-label {
        font-size: 12px;
    }

}


/* =========================================================
   THE PADEL RANGE - FINAL WHITE HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1000;
}

/* =========================
   TOP / LOGO AREA
   ========================= */

.header-top {
    width: 100%;
    background: #ffffff !important;
}

.header-top-inner {
    position: relative;
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center logo */

.logo {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    background: transparent !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    text-decoration: none;

    -webkit-tap-highlight-color: transparent;
}

.logo-image {
    display: block;

    width: 190px;
    height: auto;

    object-fit: contain;
}

/* =========================
   LOGIN / SIGNUP
   ========================= */

.header-actions {
    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    gap: 16px;
}

.user-name {
    color: #222222;
    font-size: 14px;
    font-weight: 700;
}

.login-link {
    color: #111111 !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;

    background: transparent !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    -webkit-tap-highlight-color: transparent;
}

.login-link:hover {
    color: #b40000 !important;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 18px;

    background: #111111 !important;
    color: #ffffff !important;

    border: 1px solid #111111;
    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

/* =========================
   WHITE NAVIGATION
   ========================= */

.navigation-wrapper {
    width: 100%;

    background: #ffffff !important;

    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.navigation-inner {
    width: 100%;

    display: flex;
    justify-content: center;
}

.main-nav {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 8px 0;

    margin: 0;
}

/* Navigation links */

.main-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 15px;

    color: #111111 !important;

    background: transparent !important;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    border-radius: 4px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}

/* Desktop hover */

.main-nav a:hover {
    color: #b40000 !important;
    background: #fafafa !important;
}

/*
   Keep your existing red underline effect
   on desktop.
*/

.main-nav a:focus,
.main-nav a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.main-nav a:active {
    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .header-top-inner {
        padding-left: 25px;
        padding-right: 25px;
    }

    .header-actions {
        right: 25px;
    }

    .main-nav {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-nav a {
        padding-left: 11px;
        padding-right: 11px;

        font-size: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* White header */

    .site-header,
    .header-top,
    .navigation-wrapper {
        background: #ffffff !important;
    }


    /* Logo area */

    .header-top-inner {
        min-height: 0;

        padding: 17px 16px 15px;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 13px;
    }


    /* Logo */

    .logo {
        position: static;

        transform: none;

        order: 1;

        width: auto;
        height: auto;
    }

    .logo-image {
        width: 160px;
    }


    /* Account */

    .header-actions {
        position: static;

        transform: none;

        order: 2;

        width: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 12px;
    }

    .user-name {
        font-size: 13px;
    }

    .login-link {
        font-size: 13px;
    }

    .logout-btn {
        min-height: 37px;

        padding: 8px 16px;

        font-size: 12px;
    }

    .btn-small {
        padding: 9px 17px;

        font-size: 12px;
    }


    /* =====================================================
       MOBILE NAVIGATION
       ONE HORIZONTAL ROW
       ===================================================== */

    .navigation-wrapper {
        border-top: 1px solid #eeeeee;
        border-bottom: 1px solid #dddddd;

        overflow: hidden;
    }

    .navigation-inner {
        display: block;

        width: 100%;

        padding: 0;
    }

    .main-nav {

        width: max-content;
        min-width: 100%;

        display: flex;
        flex-wrap: nowrap;

        align-items: center;
        justify-content: flex-start;

        gap: 2px;

        padding: 7px 10px;

        margin: 0;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }


    /* Mobile links */

    .main-nav a {

        flex: 0 0 auto;

        min-height: 39px;

        padding: 9px 13px;

        color: #111111 !important;

        background: transparent !important;

        font-size: 11.5px;

        line-height: 1;

        white-space: nowrap;

        border-radius: 4px;
    }


    /*
       No red underline on mobile.
    */

    .main-nav a::before,
    .main-nav a::after {

        content: none !important;

        display: none !important;
    }


    .main-nav a:hover {
        color: #111111 !important;
        background: #f7f7f7 !important;
    }

    .main-nav a:active,
    .main-nav a:focus,
    .main-nav a:focus-visible {

        color: #111111 !important;

        background: transparent !important;

        text-decoration: none !important;

        outline: none !important;

        border: none !important;

        box-shadow: none !important;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .header-top-inner {
        padding: 15px 13px 13px;
    }

    .logo-image {
        width: 150px;
    }

    .main-nav {
        padding-left: 7px;
        padding-right: 7px;
    }

    .main-nav a {
        padding: 8px 11px;
        font-size: 11px;
    }

}

/* =========================================================
   THE PADEL RANGE
   FINAL RESPONSIVE HEADER
   ========================================================= */


/* =========================================================
   MAIN HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1000;
}


/* =========================================================
   TOP AREA
   ========================================================= */

.header-top {
    width: 100%;
    background: #ffffff !important;
}

.header-top-inner {
    position: relative;

    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   CENTER LOGO
   ========================================================= */

.logo {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    background: transparent !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    text-decoration: none;

    -webkit-tap-highlight-color: transparent;
}

.logo:hover,
.logo:focus,
.logo:focus-visible,
.logo:active {
    background: transparent !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    text-decoration: none;
}

.logo-image {
    display: block;

    width: 185px;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   DESKTOP ACCOUNT
   ========================================================= */

.header-actions {
    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    gap: 16px;
}

.user-name {
    color: #111111;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.login-link {
    color: #111111 !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;

    background: transparent !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    -webkit-tap-highlight-color: transparent;
}

.login-link:hover {
    color: #b40000 !important;
}

.login-link:focus,
.login-link:focus-visible,
.login-link:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 18px;

    background: #111111 !important;
    color: #ffffff !important;

    border: 1px solid #111111;
    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.logout-btn:hover {
    background: #b40000 !important;
    border-color: #b40000;
}


/* =========================================================
   MOBILE ACCOUNT
   Hidden on desktop
   ========================================================= */

.mobile-account {
    display: none;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation-wrapper {
    width: 100%;

    background: #ffffff !important;

    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #dddddd;

    overflow: hidden;
}

.navigation-inner {
    width: 100%;

    display: flex;
    justify-content: center;
}

.main-nav {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;

    padding: 8px 0;

    margin: 0;
}

.main-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 15px;

    color: #111111 !important;

    background: transparent !important;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    border-radius: 4px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}


/*
   Desktop hover
*/

.main-nav a:hover {
    color: #b40000 !important;

    background: #fafafa !important;
}


/*
   Keep desktop underline effect if
   it exists elsewhere in your CSS.
*/

.main-nav a:focus,
.main-nav a:focus-visible,
.main-nav a:active {
    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .header-top-inner {
        padding-left: 25px;
        padding-right: 25px;
    }

    .header-actions {
        right: 25px;
    }

    .main-nav {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-nav a {
        padding-left: 11px;
        padding-right: 11px;

        font-size: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------
       WHITE TOP AREA
       ----------------------------------------- */

    .site-header,
    .header-top,
    .navigation-wrapper {
        background: #ffffff !important;
    }


    /* -----------------------------------------
       TOP HEADER
       ----------------------------------------- */

    .header-top-inner {

        min-height: 92px;

        padding: 12px 16px;

        display: flex;

        align-items: center;
        justify-content: center;
    }


    /* -----------------------------------------
       CENTER LOGO
       ----------------------------------------- */

    .logo {

        position: absolute;

        left: 50%;
        top: 50%;

        transform: translate(-50%, -50%);

        margin: 0;

        z-index: 2;
    }

    .logo-image {
        width: 145px;
        height: auto;
    }


    /* -----------------------------------------
       HIDE DESKTOP ACCOUNT
       ----------------------------------------- */

    .header-actions {
        display: none !important;
    }


    /* -----------------------------------------
       MOBILE ACCOUNT BUTTON
       ----------------------------------------- */

    .mobile-account {

        display: block;

        position: absolute;

        right: 14px;
        top: 50%;

        transform: translateY(-50%);

        z-index: 10;
    }


    .mobile-account summary {

        list-style: none;
    }

    .mobile-account summary::-webkit-details-marker {
        display: none;
    }


    /* Account trigger */

    .mobile-account-trigger {

        display: flex;

        align-items: center;
        justify-content: center;

        min-width: 42px;
        min-height: 42px;

        padding: 5px 8px;

        color: #111111;

        background: #ffffff;

        border: 1px solid #dddddd;

        border-radius: 50px;

        cursor: pointer;

        -webkit-tap-highlight-color: transparent;

        transition:
            border-color 0.2s ease,
            background 0.2s ease;
    }

    .mobile-account-trigger:hover {
        border-color: #b40000;
    }

    .mobile-account-trigger:focus,
    .mobile-account-trigger:active {
        outline: none !important;
        box-shadow: none !important;
    }


    /* Account icon */

    .mobile-account-icon {

        width: 23px;
        height: 23px;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    .mobile-account-icon svg {

        width: 22px;
        height: 22px;

        fill: none;

        stroke: #111111;

        stroke-width: 1.8;

        stroke-linecap: round;

        stroke-linejoin: round;
    }


    /* Logged-in player name */

    .mobile-user-name {

        display: block;

        max-width: 105px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;

        font-size: 12px;

        font-weight: 700;

        padding: 0 4px;
    }


    /* -----------------------------------------
       ACCOUNT DROPDOWN
       ----------------------------------------- */

    .mobile-account-menu {

        position: absolute;

        right: 0;

        top: calc(100% + 8px);

        min-width: 125px;

        padding: 6px;

        background: #ffffff;

        border: 1px solid #dddddd;

        border-radius: 8px;

        box-shadow: 0 8px 25px rgba(0,0,0,0.12);

        overflow: hidden;
    }

    .mobile-account-menu a {

        display: block;

        padding: 11px 13px;

        color: #111111;

        font-size: 13px;

        font-weight: 600;

        text-decoration: none;

        border-radius: 5px;

        white-space: nowrap;
    }

    .mobile-account-menu a:hover {
        background: #f5f5f5;
        color: #b40000;
    }


    /* -----------------------------------------
       MOBILE NAV
       ----------------------------------------- */

    .navigation-wrapper {

        width: 100%;

        background: #ffffff !important;

        border-top: 1px solid #eeeeee;

        border-bottom: 1px solid #dddddd;

        overflow: hidden;
    }

    .navigation-inner {

        width: 100%;

        display: block;

        padding: 0;
    }


    /*
       Horizontal scrolling navigation.

       It stays UNDER the logo.
    */

    .main-nav {

        width: max-content;

        min-width: 100%;

        display: flex;

        flex-wrap: nowrap;

        align-items: center;

        justify-content: flex-start;

        gap: 2px;

        padding: 6px 9px;

        margin: 0;

        overflow-x: auto;

        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }


    /* Navigation links */

    .main-nav a {

        flex: 0 0 auto;

        min-height: 38px;

        padding: 9px 12px;

        color: #111111 !important;

        background: transparent !important;

        font-size: 11px;

        font-weight: 600;

        line-height: 1;

        white-space: nowrap;

        border-radius: 4px;
    }


    /*
       NO desktop underline on mobile.
    */

    .main-nav a::before,
    .main-nav a::after {

        content: none !important;

        display: none !important;
    }


    .main-nav a:hover {

        color: #111111 !important;

        background: #f7f7f7 !important;
    }


    .main-nav a:active,
    .main-nav a:focus,
    .main-nav a:focus-visible {

        color: #111111 !important;

        background: transparent !important;

        text-decoration: none !important;

        outline: none !important;

        border: none !important;

        box-shadow: none !important;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .header-top-inner {
        min-height: 88px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .logo-image {
        width: 138px;
    }

    .mobile-account {
        right: 10px;
    }

    .mobile-account-trigger {
        min-width: 40px;
        min-height: 40px;
    }

    .mobile-user-name {
        max-width: 88px;
        font-size: 11px;
    }

    .main-nav {
        padding-left: 7px;
        padding-right: 7px;
    }

    .main-nav a {
        min-height: 37px;

        padding: 8px 10px;

        font-size: 10.5px;
    }

}

/* =========================================================
   MOBILE NAVIGATION
   4 LINKS FIRST ROW + 3 LINKS SECOND ROW
   ========================================================= */

@media (max-width: 768px) {

    .navigation-wrapper {
        width: 100%;
        background: #ffffff !important;
        border-top: 1px solid #eeeeee;
        border-bottom: 1px solid #dddddd;
        overflow: hidden;
    }

    .navigation-inner {
        width: 100%;
        padding: 0 7px;
        box-sizing: border-box;
    }

    .main-nav {
        width: 100%;
        min-width: 0;

        display: grid;

        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 2px;

        padding: 5px 0;

        margin: 0;

        box-sizing: border-box;

        overflow: visible;
    }

    .main-nav a {
        width: 100%;
        min-width: 0;

        min-height: 36px;

        padding: 5px 3px;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;

        color: #111111 !important;

        background: transparent !important;

        font-size: 10px;
        font-weight: 600;

        line-height: 1.15;

        white-space: normal;

        overflow-wrap: break-word;

        border-radius: 4px;

        box-sizing: border-box;
    }

    /* No desktop underline on mobile */

    .main-nav a::before,
    .main-nav a::after {
        content: none !important;
        display: none !important;
    }

    .main-nav a:hover {
        color: #b40000 !important;
        background: #f7f7f7 !important;
    }

    .main-nav a:active,
    .main-nav a:focus,
    .main-nav a:focus-visible {
        color: #111111 !important;
        background: transparent !important;
        text-decoration: none !important;

        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .navigation-inner {
        padding: 0 5px;
    }

    .main-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;
        padding: 4px 0;
    }

    .main-nav a {
        min-height: 35px;

        padding: 4px 2px;

        font-size: 9px;

        line-height: 1.1;
    }

}

/* =========================================================
   MOBILE NAV - FINAL POLISH
   ========================================================= */

@media (max-width: 768px) {

    .main-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px 2px;
        padding: 6px 4px;
    }

    .main-nav a {
        min-height: 39px;

        padding: 6px 4px;

        font-size: 11px;
        font-weight: 700;

        line-height: 1.2;

        text-align: center;
    }

    /* Second row: center the 3 links */

    .main-nav a:nth-child(5) {
        grid-column: 1;
        transform: translateX(50%);
    }

    .main-nav a:nth-child(6) {
        grid-column: 2;
        transform: translateX(50%);
    }

    .main-nav a:nth-child(7) {
        grid-column: 3;
        transform: translateX(50%);
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .main-nav {
        gap: 2px 1px;
        padding: 5px 3px;
    }

    .main-nav a {
        min-height: 38px;

        padding: 5px 3px;

        font-size: 10px;
        font-weight: 700;
    }

}
/* =========================================================
   MOBILE NAVIGATION - DEFINITIVE 4 + 3 LAYOUT
   ========================================================= */

@media (max-width: 768px) {

    .navigation-wrapper {
        width: 100%;
        background: #ffffff !important;
        border-top: 1px solid #eeeeee;
        border-bottom: 1px solid #dddddd;
        overflow: hidden;
    }

    .navigation-inner {
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .main-nav {
        width: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: 0;
        padding: 5px 0;
        margin: 0;
        box-sizing: border-box;
        overflow: visible !important;
    }

    .main-nav a {
        width: auto !important;
        min-width: 0 !important;
        min-height: 40px;
        margin: 0 !important;
        padding: 6px 2px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        color: #111111 !important;
        background: transparent !important;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 4px;
        transform: none !important;
        grid-column: auto;
    }

    /* First row: 4 links, each using 2 of the 8 columns. */
    .main-nav a:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
    .main-nav a:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
    .main-nav a:nth-child(3) { grid-column: 5 / span 2; grid-row: 1; }
    .main-nav a:nth-child(4) { grid-column: 7 / span 2; grid-row: 1; }

    /* Second row: 3 links centered as one group. */
    .main-nav a:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }
    .main-nav a:nth-child(6) { grid-column: 4 / span 2; grid-row: 2; }
    .main-nav a:nth-child(7) { grid-column: 6 / span 2; grid-row: 2; }

    /* No desktop underline on mobile. */
    .main-nav a::before,
    .main-nav a::after {
        content: none !important;
        display: none !important;
    }

    .main-nav a:hover,
    .main-nav a:active,
    .main-nav a:focus,
    .main-nav a:focus-visible {
        color: #111111 !important;
        background: transparent !important;
        text-decoration: none !important;
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 420px) {
    .navigation-inner {
        padding: 0 3px;
    }

    .main-nav {
        padding: 4px 0;
    }

    .main-nav a {
        min-height: 39px;
        padding: 5px 1px;
        font-size: 10px;
        line-height: 1.1;
    }
}


/* Final mobile fix: keep Ladder & Standings on one line. */
@media (max-width: 768px) {
    .main-nav a:nth-child(4) {
        white-space: nowrap !important;
        font-size: 10px !important;
        letter-spacing: -0.15px;
    }
}
