/* ================================================================
   PADEL ACE — MASTER STYLESHEET (Laravel Edition)
================================================================
   SECTION 01: CORE VARIABLES & RESET
   SECTION 02: GLOBAL HEADER & NAVIGATION
   SECTION 03: UNIVERSAL UI BUTTONS
   SECTION 04: HOMEPAGE (HERO & FEATURES)
   SECTION 05: SHARED PAGE LAYOUTS (SIDEBAR + MAIN)
   SECTION 06: GLOBAL MODALS & CHECKOUT SYSTEM
   SECTION 07: GLOBAL FOOTER
   SECTION 08: MONTHLY TOURNAMENT HUB (DPT)
   SECTION 09: RANKING SYSTEM (TABLES & TABS)
   SECTION 10: PLAYER PROFILE DASHBOARD
   SECTION 11: AUTHENTICATION (LOGIN & SIGNUP)
   SECTION 12: WEEKLY TOURNAMENT SERIES
   SECTION 13: ADMIN DASHBOARD
   SECTION 14: MOBILE RESPONSIVENESS (MEDIA QUERIES)
================================================================ */


/* --- SECTION 01: CORE VARIABLES & RESET --- */
:root {
    --navy: #0B192C;
    --navy-light: #1A2B4C;
    --neon-yellow: #ff9e27e9;
    --neon-hover: #e6ae1f;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --text-gray: #4A5568;
    --font-display: 'Bebas Neue', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* --- SECTION 02: GLOBAL HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 25, 44, 0.08);
    height: 60px;
    box-shadow: 0 2px 12px rgba(11, 25, 44, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.main-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--neon-yellow));
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a:not(.btn-nav) {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav a:not(.btn-nav):hover,
.nav a.nav-active {
    color: var(--neon-hover);
}

.btn-nav {
    background-color: var(--neon-yellow);
    color: var(--navy);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: all 0.3s ease;
    outline: none;
    border: none;
}

.btn-nav:hover {
    background-color: var(--neon-hover);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--navy);
    transition: 0.3s;
}


/* --- SECTION 03: UNIVERSAL UI BUTTONS --- */
.btn {
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--neon-yellow);
    color: var(--navy);
}

.btn-primary:hover {
    background-color: var(--neon-hover);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-slim {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}


/* --- SECTION 04: HOMEPAGE (HERO & FEATURES) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background-color: #FFB020;
    color: var(--navy);
    text-align: center;
    margin-top: 0;
}

.hero-content {
    max-width: 820px;
    margin: 60px auto 0;
}

.hero-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    opacity: 0.85;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.92;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    color: var(--white);
}

.hero h1 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 2.5px var(--white);
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Hero button overrides */
.hero .btn-primary {
    background-color: var(--white);
    color: #111;
}

.hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.88);
    transform: translateY(-3px);
}

.hero .btn-outline {
    color: var(--white);
    border-color: var(--white);
    background-color: transparent;
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: #111;
    transform: translateY(-3px);
}

.section {
    padding: 6rem 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--navy);
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FFB020;
    border-radius: 2px;
    margin: 0.6rem auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(11, 25, 44, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: block;
    color: inherit;
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #FFB020;
    box-shadow: 0 20px 50px rgba(11, 25, 44, 0.12);
}

.feature-img {
    height: 200px;
    background-color: #FFF5E0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.feature-card:hover .feature-img {
    background-color: #FFE8B0;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.05);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--navy);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- SECTION 05: SHARED PAGE LAYOUTS (SIDEBAR + MAIN) ---
   Used by: Tournaments, Weekly Tournament, Rankings
*/
.page-layout-wrapper {
    padding-top: 100px;
    min-height: 100vh;
    background-color: var(--off-white);
}

.sidebar-main-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3%;
}

@media (min-width: 992px) {
    .sidebar-main-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.layout-sidebar {
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
    .layout-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 100px;
    }
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.sidebar-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: var(--font-body);
    color: var(--navy);
    font-size: 0.95rem;
    background-color: var(--white);
}

.sidebar-input:focus {
    outline: none;
    border-color: var(--navy);
}

.filter-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4B5563;
    cursor: pointer;
}

.custom-radio input[type="radio"] {
    accent-color: var(--navy);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.layout-main-content {
    flex-grow: 1;
    width: 100%;
}

.content-header.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.content-header .section-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    text-align: left;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
}

.results-meta {
    color: var(--text-gray);
    margin-bottom: 1rem;
}


/* --- SECTION 06: GLOBAL MODALS & CHECKOUT SYSTEM --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(11, 25, 44, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
}

.checkout-summary-box {
    background: var(--off-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #E2E8F0;
}

#checkout-desc {
    font-size: 1.1rem;
    color: var(--navy);
}

#checkout-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--neon-yellow);
    background: var(--navy);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
}

#checkout-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
}

#checkout-form input:focus {
    outline: none;
    border-color: var(--navy);
}


/* --- SECTION 07: GLOBAL FOOTER --- */
.footer {
    background-color: var(--white);
    color: var(--navy);
    padding: 2.5rem 5% 1.5rem;
    border-top: 4px solid #FFB020;
    box-shadow: 0 -2px 12px rgba(11, 25, 44, 0.06);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(11, 25, 44, 0.1);
}

.footer-col {
    display: block;
}

.col-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.8rem 0;
    padding-left: 12px;
    position: relative;
    color: var(--navy);
}

.col-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background-color: #FFB020;
}

.footer-logo {
    height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 0 0.75rem 0;
}

.footer-text {
    color: rgba(11, 25, 44, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(11, 25, 44, 0.4);
    margin: 0.5rem 0 0 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(11, 25, 44, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--navy);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.footer-col p {
    color: rgba(11, 25, 44, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-social-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 0.75rem 0;
}

.social-box {
    width: 36px;
    height: 36px;
    background: rgba(11, 25, 44, 0.08);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.social-box svg {
    display: block;
}

.social-box:hover {
    transform: translateY(-3px);
    background: var(--navy);
    color: var(--white);
}

.language-picker {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(11, 25, 44, 0.4);
    text-align: right;
}


/* --- SECTION 08: MONTHLY TOURNAMENT HUB (DPT) --- */
/*
   DPT tournament listing now reuses the weekly-card component classes
   defined in Section 12 (.weekly-card, .card-badge, .card-body,
   .card-division, .card-title, .card-date, .card-stats, .c-stat,
   .card-action, .btn-register). No separate listing styles needed.
*/

/* legacy selectors kept for any other page that references them */
.btn-muted  { background: #E2E8F0; color: var(--text-gray); cursor: not-allowed; opacity: 0.8; }

/* ---------- SECTION 08-C: TOURNAMENT SHOW — HERO & DIVISION TABLE ---------- */
/* ══════════════════════════════════════
   TOURNAMENT SHOW PAGE
══════════════════════════════════════ */
.tsw-page {
    padding-top: 60px;
    background: var(--off-white);
    min-height: 100vh;
}

/* ── Hero ── */
.tsw-hero {
    background: var(--white);
    border-bottom: 1px solid #EAECF0;
    padding: 3.5rem 5% 0;
    max-width: 100%;
}

.tsw-hero-body {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #EAECF0;
    position: relative;
}

.tsw-hero-body::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 3px;
    background: #FFB020;
}

.tsw-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FFB020;
    margin: 0 0 1rem 0;
}

.tsw-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--navy);
    line-height: 0.95;
    margin: 0 0 1rem 0;
    letter-spacing: 1.5px;
}

.tsw-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
}

/* ── KPI bar ── */
.tsw-kpis {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.tsw-kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem 3rem 1.5rem 0;
    margin-right: 3rem;
    border-right: 1px solid #EAECF0;
}

.tsw-kpi:last-child {
    border-right: none;
}

.tsw-kpi-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(11, 25, 44, 0.35);
}

.tsw-kpi-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.tsw-kpi-link {
    text-decoration: none;
    transition: color 0.2s;
}

.tsw-kpi-link:hover { color: #FFB020; }

.tsw-kpi-prize .tsw-kpi-value {
    color: #FFB020;
    font-size: 1.3rem;
}

/* ── Flash ── */
.tsw-flash-wrap {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 5%;
}

.tsw-flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.tsw-flash-success { background: #ecfdf5; color: #065f46; border-left: 3px solid #10b981; }
.tsw-flash-error   { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }

/* ── Divisions section ── */
.tsw-divisions {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 5% 5rem;
}

.tsw-section-head {
    margin-bottom: 2rem;
}

.tsw-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 0.3rem 0;
}

.tsw-section-sub {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* ── Division cards ── */
.div-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.div-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #EAECF0;
    border-left: 4px solid #FFB020;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2rem;
    transition: box-shadow 0.25s, transform 0.25s;
}

.div-card:hover {
    box-shadow: 0 8px 30px rgba(11, 25, 44, 0.08);
    transform: translateY(-2px);
}

.div-card--joined { border-left-color: #10b981; }
.div-card--full   { border-left-color: #CBD5E1; opacity: 0.75; }

/* Identity */
.div-card-identity {
    min-width: 180px;
    flex-shrink: 0;
}

.div-card-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.div-card-elig {
    font-size: 0.78rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Metrics */
.div-card-metrics {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
}

.div-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 2rem;
}

.div-metric:first-child { padding-left: 0; }

.div-metric-sep {
    width: 1px;
    height: 32px;
    background: #EAECF0;
    flex-shrink: 0;
}

.div-metric-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(11, 25, 44, 0.35);
}

.div-metric-val {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

.div-metric-val--prize {
    color: #FFB020;
    font-size: 1.1rem;
}

.div-prize-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.div-prize-item {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
}

.div-metric-pts {
    font-size: 0.7rem;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 0.2rem;
    display: block;
}

.div-metric-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #FFB020;
    letter-spacing: 0.3px;
}

/* Action */
.div-card-action {
    flex-shrink: 0;
    margin-left: auto;
}

.div-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.div-btn--login,
.div-btn--join   { background: #FFB020; color: var(--navy); }
.div-btn--login:hover,
.div-btn--join:hover  { background: var(--neon-hover); transform: translateY(-1px); }
.div-btn--joined  { background: #ecfdf5; color: #065f46; cursor: default; }
.div-btn--disabled{ background: #F1F5F9; color: #94A3B8; cursor: not-allowed; }
.div-btn--locked  { background: #fef2f2; color: #ef4444; border: 1px dashed #ef4444; }

/* Empty & Back */
.tsw-empty {
    text-align: center;
    padding: 4rem;
    background: var(--white);
    border-radius: 12px;
    border: 2px dashed #E2E8F0;
    color: var(--text-gray);
}

.tsw-back {
    margin-top: 2.5rem;
}

.tsw-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.tsw-back a:hover { color: var(--navy); }

.division-table-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 5% 4rem;
}

.division-table-wrapper h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.division-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.division-table thead th {
    background: transparent;
    color: rgba(11, 25, 44, 0.38);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 1.5rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #EAECF0;
}

.division-table thead th:first-child { padding-left: 0; }
.division-table thead th:last-child { text-align: right; }

.division-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid #F2F4F7;
}

.division-table tbody tr:last-child {
    border-bottom: none;
}

.division-table tbody tr:hover {
    background: #FAFBFF;
}

.division-table tbody td {
    padding: 1.4rem 1.5rem;
    font-size: 0.9rem;
    color: var(--navy);
    vertical-align: middle;
}

.division-table tbody td:first-child { padding-left: 0; }
.division-table tbody td:last-child { text-align: right; }

.division-table .division-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
}

.division-table .btn-register {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.division-table .btn-register-active {
    background: var(--neon-yellow);
    color: var(--navy);
}

.division-table .btn-register-active:hover {
    background: var(--neon-hover);
    transform: translateY(-1px);
}

.division-table .btn-register-login {
    background: #FFB020;
    color: var(--navy);
}

.division-table .btn-register-login:hover {
    background: var(--neon-hover);
    transform: translateY(-1px);
}

.division-table .btn-register-locked {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.division-table .btn-register-done {
    background: #d1fae5;
    color: #065f46;
    cursor: default;
}

.division-table .btn-register-muted {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .tournament-show-hero h1 {
        font-size: 1.6rem;
    }

    .division-table thead {
        display: none;
    }

    .division-table,
    .division-table tbody,
    .division-table tr,
    .division-table td {
        display: block;
        width: 100%;
    }

    .division-table tbody tr {
        margin-bottom: 1rem;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

    .division-table tbody td {
        text-align: left;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .division-table tbody td:last-child {
        text-align: left;
        padding-bottom: 1rem;
    }

    .division-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #94a3b8;
        margin-bottom: 0.15rem;
    }
}

/* --- SECTION 09: RANKING SYSTEM (TABLES & TABS) --- */



/* ── Rankings Page ─────────────────────────────── */
.ranking-nav-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.toggle-pill {
    display: flex;
    background: #F4F5F7;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.rank-tab-btn {
    background: transparent;
    border: none;
    color: #6B7280;
    padding: 0.6rem 2.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.rank-tab-btn.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.rank-tab-content { display: none; }

.rank-tab-content.active {
    display: block;
    animation: fadeInRank 0.2s ease forwards;
}

@keyframes fadeInRank {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Table wrapper */
.ranking-table-container {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    border: 1px solid #EAECF0;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

/* Header */
.ranking-table thead th {
    background: var(--white);
    color: #9CA3AF;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #FFB020;
}

.ranking-table thead th.col-rank { width: 80px; }
.ranking-table thead th.col-pts  { text-align: right; }

/* Rows */
.ranking-table tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
}

.ranking-table tbody tr:last-child  { border-bottom: none; }
.ranking-table tbody tr:nth-child(1){ background: #FFFCF2; }
.ranking-table tbody tr:hover       { background: #FFF8E6; }

/* Cells */
.ranking-table tbody td {
    padding: 1.1rem 2rem;
    color: var(--navy);
    vertical-align: middle;
}

/* Rank number */
.ranking-table tbody td.col-rank {
    width: 80px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #C9CDD6;
}

.ranking-table tbody tr:nth-child(1) td.col-rank { color: #FFB020; }

/* Player name */
.player-name-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--navy);
}

/* Points */
.ranking-table tbody td.col-pts {
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: #FFB020;
}

.rank-empty-cell {
    text-align: center !important;
    color: #9CA3AF !important;
    padding: 4rem 2rem !important;
    font-size: 0.9rem;
    font-style: italic;
}

/* ── Contact Page ── */
.contact-page {
    min-height: calc(100vh - 60px);
    background: #F5F6F8;
    padding: 6rem 5% 5rem;
}

.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-hero__label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FFB020;
    margin-bottom: 0.5rem;
}

.contact-hero__title {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--navy);
    line-height: 1;
    letter-spacing: 2px;
}

.contact-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #ECEEF2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.contact-item__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #FFF8E6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFB020;
}

.contact-item__label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9CA3AF;
    margin-bottom: 0.2rem;
}

.contact-item__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.contact-item__link {
    color: var(--navy);
    text-decoration: none;
}

.contact-item__link:hover { color: #FFB020; }

.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #ECEEF2;
}

.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(11,25,44,0.15);
    border-radius: 0;
    padding: 0.55rem 0;
    font-size: 1rem;
    color: var(--navy);
    font-family: var(--font-body);
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form textarea:focus {
    border-bottom-color: #FFB020;
}

/* ── Verify Email Page ── */
.verify-icon {
    width: 64px;
    height: 64px;
    background: #FFF8E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.verify-divider {
    height: 1px;
    background: rgba(11,25,44,0.08);
    margin: 1.5rem 0;
}

.verify-hint {
    font-size: 0.88rem;
    color: #6B7280;
    text-align: center;
    margin-bottom: 1.25rem;
}

.verify-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    color: #9CA3AF;
}

.verify-logout-btn:hover {
    color: #FFB020;
}

/* ── Court Rules Page ── */
.rules-content { max-width: 800px; margin: 0 auto; }

.rule-section { margin-bottom: 2.5rem; }

.rule-section__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFB020;
    display: inline-block;
}

.rule-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rule-list li {
    font-size: 0.95rem;
    color: #4B5563;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.rule-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #FFB020;
    font-weight: 700;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rule-card {
    background: var(--navy-light);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--neon-yellow);
}

.rule-card h3 {
    color: var(--neon-yellow);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}


/* --- SECTION 10: PLAYER PROFILE DASHBOARD --- */
.profile-page {
    min-height: calc(100vh - 60px);
    background: #F5F6F8;
    padding: 6rem 5% 4rem;
}

.profile-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.profile-alert {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.profile-alert--success { background: #D1FAE5; color: #065F46; }
.profile-alert--error   { background: #FEE2E2; color: #DC2626; }

/* ── Hero Card ── */
.phero {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
    border-left: 5px solid #FFB020;
}

.phero__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.phero__avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
    background: #FFB020;
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
}

.phero__name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.phero__email {
    font-size: 0.82rem;
    color: #9CA3AF;
    margin-bottom: 0.6rem;
}

.phero__badge {
    display: inline-block;
    background: #FFF8E6;
    color: #946700;
    border: 1.5px solid #FFD166;
    padding: 0.2rem 0.9rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Stats inline in hero */
.phero__stats {
    display: flex;
    align-items: center;
    gap: 0;
    border-left: 1px solid #F0F2F5;
    border-right: 1px solid #F0F2F5;
    padding: 0 2rem;
}

.phero__stat {
    text-align: center;
    padding: 0 1.5rem;
}

.phero__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.phero__stat-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9CA3AF;
}

.phero__stat-divider {
    width: 1px;
    height: 36px;
    background: #F0F2F5;
}

/* Actions */
.phero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.phero__btn {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    text-align: center;
}

.phero__btn--primary { background: #FFB020; color: var(--navy); }
.phero__btn--primary:hover { background: #e8a010; }
.phero__btn--ghost { background: transparent; color: #9CA3AF; border: 1.5px solid #E8EAED; }
.phero__btn--ghost:hover { color: var(--navy); border-color: #C0C4CC; }

/* ── Content below hero ── */
.pcontent {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pcols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Section Cards */
.psection {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.psection__title {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #B0B8C6;
    margin-bottom: 1.2rem;
}

.psection__empty {
    font-size: 0.875rem;
    color: #B0B8C6;
    font-style: italic;
}

/* Progress Bar */
.pprogress__bar {
    background: #F0F2F5;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.pprogress__fill {
    background: #FFB020;
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.pprogress__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #9CA3AF;
}

/* List rows */
.plist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid #F3F4F6;
}
.plist-row:last-child { border-bottom: none; }

.plist-row__info { display: flex; flex-direction: column; gap: 0.15rem; }

.plist-row__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy);
}

.plist-row__date { font-size: 0.77rem; color: #9CA3AF; }

.plist-row__cancel {
    font-size: 0.75rem;
    font-weight: 600;
    color: #EF4444;
    background: #FEF2F2;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.plist-row__cancel:hover { background: #FEE2E2; }

/* ── Global Floating Notification ── */
.fnotif-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fnotif-bg-in 0.25s ease forwards;
}

@keyframes fnotif-bg-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fnotif {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 2rem 0;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    animation: fnotif-in 0.35s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.fnotif--out {
    animation: fnotif-out 0.3s ease forwards !important;
}

@keyframes fnotif-in {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fnotif-out {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to   { opacity: 0; transform: scale(0.92) translateY(12px); }
}

.fnotif__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.fnotif__icon-wrap--success {
    background: #ECFDF5;
    color: #16A34A;
}

.fnotif__icon-wrap--error {
    background: #FFF1F2;
    color: #BE123C;
}

.fnotif__body {
    text-align: center;
    padding-bottom: 1.5rem;
}

.fnotif__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fnotif__msg {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.55;
}

.fnotif__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9CA3AF;
    transition: background 0.15s, color 0.15s;
}

.fnotif__close:hover {
    background: #E5E7EB;
    color: var(--navy);
}

.fnotif__progress {
    height: 4px;
    width: 100%;
    margin-top: 0;
    border-radius: 0 0 20px 20px;
}

.fnotif__progress--success { background: #86EFAC; }
.fnotif__progress--error   { background: #FECDD3; }

.fnotif__progress--running {
    animation: fnotif-progress linear forwards;
    transform-origin: left;
}

@keyframes fnotif-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Modal title */
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.status-tag {
    display: block;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.status-tag.pro {
    background: #E9F5FF;
    color: #007AFF;
}

.status-tag.active {
    background: #F0FFF4;
    color: #38A169;
}

.status-tag.pending {
    background: #FFFBEB;
    color: #D97706;
}


/* History items in profile (recent activity + upcoming bookings) */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #EDF2F7;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.history-info strong {
    font-size: 0.95rem;
    color: var(--navy);
}

.history-info span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ------------------------------------------------------------------ */

/* --- SECTION 11: AUTHENTICATION (LOGIN & SIGNUP) --- */
.auth-page {
    min-height: calc(100vh - 60px);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 3rem;
}

.auth-container {
    width: 100%;
    max-width: 520px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Header */
.auth-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-card-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 1.5rem;
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: var(--navy);
    letter-spacing: 2px;
    line-height: 1;
    margin: 0 0 0.6rem 0;
}

.auth-card-header::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: #FFB020;
    border-radius: 2px;
    margin: 0.9rem auto 0.9rem;
}

.auth-card-sub {
    color: rgba(11, 25, 44, 0.38);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 0;
}

/* Error */
.auth-error {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Fields — line style */
.auth-field {
    margin-bottom: 1.5rem;
}

.auth-field label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(11, 25, 44, 0.4);
    margin-bottom: 0.5rem;
}

.auth-field input,
.auth-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(11, 25, 44, 0.15);
    border-radius: 0;
    padding: 0.55rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    outline: none;
    transition: border-color 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-field input::placeholder {
    color: rgba(11, 25, 44, 0.2);
}

.auth-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(11,25,44,0.35)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    padding-right: 1.5rem;
}

.auth-field select option {
    background: var(--white);
    color: var(--navy);
}

.auth-field input:focus,
.auth-field select:focus {
    border-bottom-color: #FFB020;
    box-shadow: none;
}

.auth-field-row {
    display: flex;
    gap: 2rem;
}

.auth-field-row .auth-field {
    flex: 1;
    min-width: 0;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: #FFB020;
    color: var(--navy);
    border: none;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.auth-btn:hover {
    background: var(--neon-hover);
    transform: translateY(-2px);
}

/* Links */
.auth-links {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.auth-link-text {
    font-size: 0.82rem;
    color: rgba(11, 25, 44, 0.4);
    margin: 0;
    text-align: center;
}

.auth-link-text a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 176, 32, 0.6);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-link-text a:hover {
    color: #FFB020;
    border-bottom-color: #FFB020;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-row .input-group { flex: 1; }

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--navy);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--navy);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}


/* --- SECTION 12: WEEKLY TOURNAMENT SERIES --- */

/* Weekly page wrapper: matches .page-layout-wrapper style */
/* =====================================================
   SECTION: WEEKLY TOURNAMENTS PAGE
   ===================================================== */

.weekly-main-wrapper {
    padding-top: 80px;
    min-height: 100vh;
    background-color: var(--off-white);
}

/* Plain header on off-white background */
.weekly-page-header {
    text-align: center;
    padding: 3rem 5% 2rem;
}

.weekly-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--navy);
    letter-spacing: 2px;
    margin: 0;
}

.weekly-title span {
    color: var(--neon-yellow);
}

/* Alert messages */
.weekly-alert {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.weekly-alert--success {
    background: #d1fae5;
    color: #065f46;
}

.weekly-alert--error {
    background: #fee2e2;
    color: #dc2626;
}

.weekly-layout-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 5rem;
}

@media (max-width: 991px) {
    .weekly-layout-container {
        flex-direction: column;
        padding: 1.5rem 3% 3rem;
        gap: 2rem;
    }
}

/* Sidebar */
.weekly-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    height: fit-content;
    position: sticky;
    top: 110px;
    box-shadow: 0 10px 30px rgba(11, 25, 44, 0.05);
}

@media (max-width: 991px) {
    .weekly-sidebar {
        width: 100%;
        position: static;
    }
}

.weekly-content {
    flex-grow: 1;
    width: 100%;
}

/* Radio-label filter (used in weekly sidebar) */
.filter-radios {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--navy);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Loading state for grids */
.grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.grid-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #E2E8F0;
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tournament list — single column */
.weekly-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Horizontal tournament card */
.weekly-card {
    background: var(--white);
    border: 1px solid rgba(11, 25, 44, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    gap: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(11, 25, 44, 0.02);
}

.weekly-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 25, 44, 0.08);
    border-color: var(--neon-yellow);
}

/* Square "WEEKLY" badge on the left */
.card-badge {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-align: center;
    flex-shrink: 0;
    min-width: 90px;
}

/* Centre text block */
.card-body {
    flex: 1;
    min-width: 0;
}

.card-division {
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--neon-yellow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
    margin: 4px 0;
    line-height: 1.2;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

/* Stats columns */
.card-stats {
    display: flex;
    gap: 2.5rem;
    margin: 0 2rem;
    flex-shrink: 0;
}

.c-stat {
    text-align: left;
}

.c-stat span {
    display: block;
    font-size: 0.65rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.c-stat strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--navy);
}

/* Action area */
.card-action {
    flex-shrink: 0;
}

.btn-register {
    display: inline-block;
    background: var(--neon-yellow);
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn-register:hover {
    opacity: 0.88;
    transform: scale(1.02);
}

.btn-register--joined {
    background: #E2E8F0;
    color: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.75;
}

.btn-register--full {
    background: #E2E8F0;
    color: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Empty state */
.weekly-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

/* Responsive: stack card on small screens */
@media (max-width: 768px) {
    .weekly-card {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .card-stats {
        gap: 1rem;
        margin: 0;
    }

    .card-badge {
        min-width: 70px;
        font-size: 1rem;
    }
}


/* --- SECTION 13: ADMIN DASHBOARD --- */
.admin-dashboard {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--off-white);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background: var(--navy);
    color: var(--neon-yellow);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    text-align: left;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #edf2f7;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-search-bar {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.admin-search-bar:focus {
    outline: none;
    border-color: var(--navy);
}

.admin-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-gray);
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.admin-link.active,
.admin-link:hover {
    background: var(--navy);
    color: var(--white);
}

.admin-view {
    display: none;
}

.admin-view.active {
    display: block;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--navy);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 0.7;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--navy);
}

.stat-trend {
    font-size: 0.85rem;
    color: var(--text-gray);
}


/* --- SECTION 14: MOBILE RESPONSIVENESS --- */

/* ===========================================
   TABLET  (≤ 991px)
=========================================== */
@media (max-width: 991px) {

    /* ── Nav: hamburger ── */
    .nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 3px solid #FFB020;
        box-shadow: 0 8px 20px rgba(11,25,44,0.12);
        padding: 1.5rem 5%;
        gap: 1.25rem;
        z-index: 999;
    }
    .nav.open { display: flex; }
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .nav a:not(.btn-nav) { font-size: 1.1rem; }
    .btn-nav { text-align: center; }

    /* ── Homepage ── */
    .features-grid { grid-template-columns: 1fr 1fr; }
    .tournaments-grid { grid-template-columns: 1fr 1fr; }

    /* ── Profile ── */
    .phero {
        flex-direction: column;
        align-items: stretch;
        border-left: none;
        border-top: 5px solid #FFB020;
        gap: 1.5rem;
        padding: 1.75rem;
    }
    .phero__left { flex: unset; }
    .phero__stats {
        border-left: none;
        border-right: none;
        padding: 1rem 0;
        border-top: 1px solid #F0F2F5;
        border-bottom: 1px solid #F0F2F5;
        justify-content: space-around;
    }
    .phero__stat-divider { display: none; }
    .phero__actions {
        flex-direction: row;
        min-width: unset;
    }
    .phero__actions form,
    .phero__actions button { flex: 1; }
    .phero__btn { width: 100%; }
    .pcols { grid-template-columns: 1fr; }

    /* ── Tournament show ── */
    .div-card {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.25rem;
    }
    .div-card-identity { min-width: unset; width: 100%; }
    .div-card-metrics {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem 0;
    }
    .div-metric { padding: 0 1.25rem 0 0; }
    .div-metric:first-child { padding-left: 0; }
    .div-metric-sep { display: none; }
    .div-card-action { width: 100%; }
    .div-btn { width: 100%; text-align: center; display: block; }

    /* ── Contact ── */
    .contact-wrap { grid-template-columns: 1fr; max-width: 600px; }

    /* ── Footer ── */
    .footer-container { grid-template-columns: 1fr 1fr; }
}

/* ===========================================
   MOBILE  (≤ 767px)
=========================================== */
@media (max-width: 767px) {

    /* ── Header ── */
    .header { padding: 0 4%; height: 56px; }
    .main-logo { height: 44px; }

    /* ── Hero ── */
    .hero {
        height: auto;
        min-height: 100svh;
        padding: 6rem 5% 4rem;
        text-align: center;
    }
    .hero-content { margin-top: 0; }
    .hero h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
    .hero-desc { font-size: 1rem; max-width: 100%; }
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-cta .btn { width: 100%; max-width: 320px; }

    /* ── Sections ── */
    .section { padding: 4rem 5%; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .features-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .tournaments-grid { grid-template-columns: 1fr; }

    /* ── Tournament show ── */
    .tsw-hero { padding: 5rem 5% 2rem; }
    .tsw-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .tsw-kpis { flex-wrap: wrap; gap: 0.75rem; }
    .tsw-kpi { flex: 1 1 calc(50% - 0.5rem); }
    .tsw-divisions { padding: 2rem 4%; }
    .tsw-section-head { flex-direction: column; gap: 0.5rem; }

    /* ── Rankings ── */
    .rankings-wrap { padding: 1.5rem 4%; }
    .ranking-nav-container { margin-bottom: 1.5rem; }
    .toggle-pill { width: 100%; }
    .rank-tab-btn { flex: 1; padding: 0.6rem 0.75rem; font-size: 0.8rem; text-align: center; }
    .ranking-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ranking-table { min-width: 320px; font-size: 0.88rem; width: 100%; }
    .ranking-table th,
    .ranking-table td { padding: 0.8rem 0.9rem; }

    /* ── Profile ── */
    .profile-page { padding: 4.5rem 4% 3rem; }
    .phero { padding: 1.5rem; gap: 1.25rem; }
    .phero__avatar { width: 58px; height: 58px; min-width: 58px; font-size: 1.4rem; }
    .phero__name { font-size: 1.25rem; }
    .phero__stat-value { font-size: 1.5rem; }
    .pcontent { gap: 1rem; }
    .psection { padding: 1.25rem; }

    /* ── Weekly tournaments ── */
    .weekly-main-wrapper { padding-top: 56px; }
    .weekly-page-header { padding: 2rem 5% 1rem; }
    .weekly-title { font-size: clamp(2rem, 10vw, 3rem); }
    .weekly-layout-container { padding: 1.5rem 4% 3rem; gap: 1.25rem; }
    .weekly-sidebar { padding: 1.25rem; }
    .weekly-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 0.75rem;
    }
    .card-badge { font-size: 1rem; padding: 0.5rem 1rem; min-width: unset; }
    .card-body { width: 100%; }
    .card-title { font-size: 1.25rem; }
    .card-stats { gap: 1.5rem; margin: 0; width: 100%; }
    .card-action { width: 100%; }
    .btn-register { width: 100%; text-align: center; display: block; }

    /* ── Auth pages ── */
    .auth-page { padding: 5rem 1rem 2rem; }
    .auth-container { padding: 1.75rem 1.5rem; border-radius: 16px; max-width: 100%; }
    .auth-card-title { font-size: 1.7rem; }
    .auth-field-row { flex-direction: column; gap: 0; }
    .auth-links { flex-direction: column; align-items: center; gap: 0.5rem; }

    /* ── Contact ── */
    .contact-page { padding: 5rem 5% 3rem; }
    .contact-hero__title { font-size: 2.5rem; }
    .contact-wrap { grid-template-columns: 1fr; gap: 1.5rem; }

    /* ── Court rules ── */
    .page-layout-wrapper { padding-top: 80px; }

    /* ── Footer ── */
    .footer-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .col-title { padding-left: 0; }
    .col-title::before { display: none; }
    .footer-links { padding-left: 0; }
    .social-icons { justify-content: center; }

    /* ── Floating notification ── */
    .fnotif-backdrop { align-items: flex-end; padding: 0; }
    .fnotif {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        padding: 1.75rem 1.5rem 0;
    }
    .fnotif__progress { border-radius: 0; }

    /* ── Sidebar/layout ── */
    .sidebar-main-layout { flex-direction: column; }
    .layout-sidebar { width: 100%; position: static; }
}

/* ===========================================
   SMALL MOBILE  (≤ 480px)
=========================================== */
@media (max-width: 480px) {

    /* ── Header ── */
    .header { padding: 0 4%; height: 54px; }
    .main-logo { height: 38px; }

    /* ── Hero ── */
    .hero h1 { font-size: clamp(2.2rem, 13vw, 3.5rem); }
    .hero h1 em { -webkit-text-stroke: 1.5px var(--white); }

    /* ── Tournament show ── */
    .tsw-kpi { flex: 1 1 100%; }
    .tsw-title { font-size: 1.8rem; }
    .div-card { padding: 1rem; }
    .div-metric { padding: 0 0.75rem 0 0; }

    /* ── Rankings ── */
    .ranking-table th, .ranking-table td { padding: 0.65rem 0.7rem; font-size: 0.82rem; }

    /* ── Profile ── */
    .phero { padding: 1.25rem; }
    .phero__left { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .phero__stats { flex-wrap: wrap; gap: 1rem; justify-content: flex-start; }
    .phero__stat { flex: 1 1 calc(33% - 0.5rem); text-align: left; }
    .phero__stat-value { font-size: 1.4rem; }
    .phero__actions { flex-direction: column; }
    .phero__btn { width: 100%; text-align: center; }

    /* ── Auth ── */
    .auth-container { padding: 1.5rem 1.25rem; }
    .auth-card-title { font-size: 1.5rem; }
    .auth-btn { padding: 0.85rem; font-size: 0.9rem; }

    /* ── Weekly ── */
    .card-stats { flex-wrap: wrap; gap: 1rem; }
    .c-stat { flex: 1 1 40%; }

    /* ── Contact ── */
    .contact-hero__title { font-size: 2rem; }

    /* ── Section titles ── */
    .section-title { font-size: 1.7rem; margin-bottom: 1.5rem; }
}