/* =========================================================
   PLAY READY HQ
   GLOBAL STYLES
========================================================= */

:root {
    --primary: #0B132B;
    --secondary: #2563EB;
    --accent: #A3E635;

    --background: #F8FAFC;
    --white: #FFFFFF;

    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;

    --healthy: #22C55E;
    --resting: #F59E0B;
    --injured: #EF4444;
    --eligible-injury: #F97316;
    --unavailable: #475569;

    --max-width: 1400px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   GENERAL BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

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

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #1D4ED8;
}


/* =========================================================
   PUBLIC NAVBAR
========================================================= */

.navbar {
    background: #000000;
    color: var(--white);
}

.navbar-inner {
    width: min(var(--max-width), calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;

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

/* GLOBAL IMAGE LOGO */

.navbar .logo {
    display: flex;
    align-items: center;
    height: 78px;
    width: 220px;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0;
}

.navbar .navbar-logo {
    display: block;
    width: 220px;
    height: auto;
    max-width: none;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   HOME PAGE
========================================================= */

.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 35%,
            rgba(37, 99, 235, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(163, 230, 53, 0.05),
            transparent 28%
        ),
        var(--background);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(37, 99, 235, 0.025) 100%
        );
    pointer-events: none;
}

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

    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 90px 0;

    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
    align-items: center;
    gap: 70px;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 26px;
    font-size: clamp(3.3rem, 6vw, 6.2rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: var(--secondary);
}

.hero-description {
    max-width: 620px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   HERO DASHBOARD PREVIEW
========================================================= */

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.dashboard-preview {
    width: 100%;
    max-width: 590px;
    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 30px 80px rgba(11, 19, 43, 0.16),
        0 8px 25px rgba(11, 19, 43, 0.08);

    transform: rotate(1.2deg);
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: rotate(0deg) translateY(-4px);
}

.preview-topbar {
    min-height: 58px;
    padding: 0 20px;

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

    background: var(--primary);
}

.preview-brand {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
}

.preview-brand span {
    color: var(--accent);
}

.preview-avatar {
    width: 34px;
    height: 34px;

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

    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);

    font-size: 0.72rem;
    font-weight: 800;
}

.preview-body {
    padding: 24px;
    background: #F8FAFC;
}

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

.preview-label {
    display: block;
    margin-bottom: 5px;

    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.preview-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;
    border-radius: 999px;

    background: rgba(34, 197, 94, 0.1);
    color: #15803D;

    font-size: 0.68rem;
    font-weight: 800;
}

.preview-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.preview-stat {
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.preview-stat strong {
    display: block;
    margin-bottom: 3px;

    color: var(--text);
    font-size: 1.35rem;
}

.preview-stat span {
    color: var(--muted);
    font-size: 0.68rem;
}

.preview-panel {
    margin-top: 12px;
    padding: 16px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.preview-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.preview-panel-header strong {
    color: var(--text);
    font-size: 0.78rem;
}

.preview-panel-header span {
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 700;
}

.preview-training {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-icon {
    width: 38px;
    height: 38px;

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

    flex-shrink: 0;

    border-radius: 9px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);

    font-size: 0.65rem;
    font-weight: 800;
}

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

.preview-training-info strong {
    display: block;
    margin-bottom: 3px;

    color: var(--text);
    font-size: 0.76rem;
}

.preview-training-info span {
    color: var(--muted);
    font-size: 0.65rem;
}

.preview-going {
    padding: 5px 8px;
    border-radius: 6px;

    background: rgba(34, 197, 94, 0.1);
    color: #15803D;

    font-size: 0.62rem;
    font-weight: 800;
}

.preview-players {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.preview-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-player-avatar {
    width: 31px;
    height: 31px;

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

    flex-shrink: 0;

    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;

    font-size: 0.58rem;
    font-weight: 800;
}

.preview-player > div:nth-child(2) {
    flex: 1;
}

.preview-player strong {
    display: block;
    margin-bottom: 2px;

    color: var(--text);
    font-size: 0.68rem;
}

.preview-player span {
    color: var(--muted);
    font-size: 0.58rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.available {
    background: #22C55E;
}

.status-dot.resting {
    background: #F59E0B;
}

.status-dot.injured {
    background: #EF4444;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    position: relative;
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 95px 0 75px;
}

.intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 90px;
    height: 4px;

    background: var(--accent);
    border-radius: 999px;
}

.intro h2 {
    max-width: 850px;
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.intro h2 span {
    color: var(--secondary);
}

.intro > p:last-child {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   FEATURES
========================================================= */

.home-features {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 110px;
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: end;
    gap: 70px;
    margin-bottom: 55px;
}

.home-section-heading h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.home-section-heading h2 span {
    color: var(--secondary);
}

.home-section-heading > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    position: relative;
    min-height: 240px;
    padding: 30px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-md);
}

.feature-number {
    margin-bottom: 45px;

    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    max-width: 330px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* =========================================================
   PROBLEM / SOLUTION
========================================================= */

.home-problem {
    margin: 0;
    padding: 115px 24px;

    background: var(--primary);
    color: var(--white);
}

.problem-content {
    width: min(850px, 100%);
    margin: 0 auto;
}

.problem-content .eyebrow {
    color: var(--accent);
}

.problem-content h2 {
    max-width: 800px;
    margin-bottom: 45px;

    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.problem-content h2 span {
    color: var(--accent);
}

.problem-content > p {
    margin-bottom: 13px;

    color: #CBD5E1;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.problem-divider {
    width: 100%;
    height: 1px;
    margin: 38px 0 28px;

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

.problem-content strong {
    display: block;
    max-width: 650px;

    color: var(--white);
    font-size: 1.15rem;
    line-height: 1.6;
}


/* =========================================================
   WORKFLOW
========================================================= */

.home-workflow {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 110px 0;
}

.workflow-heading {
    margin-bottom: 65px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 18px;
}

.workflow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 22px;

    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);

    font-size: 0.7rem;
    font-weight: 800;
}

.workflow-step h3 {
    margin-bottom: 9px;

    color: var(--text);
    font-size: 1rem;
}

.workflow-step p {
    margin: 0;

    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.workflow-line {
    width: 35px;
    height: 1px;
    margin-top: 21px;

    background: var(--border);
}


/* =========================================================
   FINAL CTA
========================================================= */

.home-cta {
    padding: 120px 24px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(37, 99, 235, 0.12),
            transparent 45%
        ),
        #F1F5F9;
}

.cta-inner {
    width: min(850px, 100%);
    margin: 0 auto;

    text-align: center;
}

.cta-inner .eyebrow {
    margin-bottom: 20px;
}

.cta-inner h2 {
    margin-bottom: 20px;

    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.cta-inner h2 span {
    color: var(--secondary);
}

.cta-inner > p {
    max-width: 580px;
    margin: 0 auto 32px;

    color: var(--muted);
    line-height: 1.7;
}


/* =========================================================
   HOME PAGE RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .hero-content {
        grid-template-columns: 1fr;
        gap: 55px;
        padding: 75px 0 90px;
    }

    .hero-copy {
        max-width: 800px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .dashboard-preview {
        max-width: 680px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .workflow-line {
        display: none;
    }

    .workflow-step {
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 18px;
    }

    .workflow-step span {
        grid-row: span 2;
        margin: 0;
    }

    .workflow-step h3,
    .workflow-step p {
        margin-left: 0;
    }
}


@media (max-width: 760px) {

    .hero {
        min-height: auto;
    }

    .hero-content {
        width: min(var(--max-width), calc(100% - 32px));
        padding: 65px 0 75px;
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

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

    .dashboard-preview {
        transform: none;
    }

    .preview-body {
        padding: 17px;
    }

    .preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .preview-stats {
        gap: 7px;
    }

    .preview-stat {
        padding: 11px;
    }

    .preview-stat strong {
        font-size: 1.1rem;
    }

    .intro {
        width: min(var(--max-width), calc(100% - 32px));
        padding: 70px 0 60px;
    }

    .home-features {
        width: min(var(--max-width), calc(100% - 32px));
        padding: 55px 0 75px;
    }

    .home-section-heading {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 38px;
    }

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

    .feature-card {
        min-height: auto;
    }

    .feature-number {
        margin-bottom: 30px;
    }

    .home-problem {
        padding: 80px 20px;
    }

    .home-workflow {
        width: min(var(--max-width), calc(100% - 32px));
        padding: 75px 0;
    }

    .home-cta {
        padding: 85px 20px;
    }

}


@media (max-width: 480px) {

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

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .preview-going {
        display: none;
    }

    .preview-training-info span {
        font-size: 0.58rem;
    }

    .preview-player-avatar {
        width: 27px;
        height: 27px;
    }

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

.footer {
    padding: 50px 24px 30px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.footer-brand {
    width: min(var(--max-width), 100%);
    margin: 0 auto 40px;
}

.footer-brand strong {
    font-size: 1.15rem;
}

.footer-brand p {
    margin-top: 8px;
    color: #94A3B8;
}

.footer-bottom {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #94A3B8;
    font-size: 0.8rem;
    margin: 0;
}

/* =========================================================
   SIGNUP / LOGIN
========================================================= */

.signup-page,
.login-page {
    min-height: calc(100vh - 78px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 24px;
}

.signup-section,
.login-section {
    width: 100%;
    max-width: 520px;
}

.signup-header,
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.signup-header h1,
.login-header h1 {
    margin-bottom: 12px;
    font-size: clamp(2.0rem, 6vw, 4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.signup-header h1 span,
.login-header h1 span {
    color: var(--secondary);
}

.signup-header p:last-child,
.login-header p:last-child {
    color: var(--muted);
}

.signup-card,
.login-card {
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

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

.form-group label,
.player-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.form-group input,
.player-form-group input,
.player-form-group select,
.player-form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

.form-group input:focus,
.player-form-group input:focus,
.player-form-group select:focus,
.player-form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.password-label label {
    margin-bottom: 0;
}

.forgot-password,
.signup-link a {
    color: var(--secondary);
    font-weight: 700;
}

.login-submit {
    width: 100%;
    margin-top: 4px;
}

.signup-link {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

.login-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.login-link a:hover {
    background: #1D4ED8;
}


/* =========================================================
   DASHBOARD BODY
========================================================= */

.dashboard-body {
    min-height: 100vh;
    background: var(--background);
}


/* =========================================================
   DASHBOARD NAVBAR
========================================================= */

.dashboard-navbar {
    position: sticky;
    top: 0;
    z-index: 50;

    height: 72px;

    background: #000000;
    color: var(--white);
}

.dashboard-navbar-inner {
    width: min(100%, 100%);
    height: 100%;
    padding: 0 28px;

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

.dashboard-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-logo span {
    color: var(--accent);
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dashboard-user-info strong {
    font-size: 0.85rem;
}

.dashboard-user-info span {
    color: #94A3B8;
    font-size: 0.72rem;
}

.dashboard-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;

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

    background: var(--secondary);
    color: var(--white);

    font-size: 0.75rem;
    font-weight: 800;
}


/* =========================================================
   DASHBOARD LAYOUT
========================================================= */

.dashboard-layout {
    min-height: calc(100vh - 72px);
    display: flex;
}

.sidebar {
    position: sticky;
    top: 72px;

    width: 250px;
    height: calc(100vh - 72px);

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    padding: 22px 16px;

    background: var(--primary);
    color: var(--white);
}

.sidebar-team {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px;
    margin-bottom: 15px;

    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}

.team-logo-placeholder {
    width: 30px;
    height: 30px;

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

    flex-shrink: 0;

    border-radius: 8px;
    background: var(--secondary);

    font-size: 0.72rem;
    font-weight: 800;
}

.sidebar-team strong {
    display: block;
    font-size: 0.76rem;
    line-height: 1.25;
}

.sidebar-team span {
    display: block;
    margin-top: 2px;

    color: #94A3B8;
    font-size: 0.68rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    min-height: 44px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-radius: 8px;

    color: #CBD5E1;
    font-size: 0.84rem;
    font-weight: 600;

    transition: 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white);
}

.sidebar-link.active {
    background: var(--secondary);
    color: var(--white);
}

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

.message-count {
    min-width: 20px;
    height: 20px;

    margin-left: auto;

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

    border-radius: 50%;

    background: var(--accent);
    color: var(--primary);

    font-size: 0.65rem;
    font-weight: 800;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 10px;
}

.logout-link {
    color: #94A3B8;
}

.logout-link:hover {
    color: var(--white);
}


/* =========================================================
   DASHBOARD MAIN
========================================================= */

.dashboard-main {
    width: 100%;
    min-width: 0;
    padding: 42px;
}

.dashboard-heading {
    max-width: var(--max-width);
    margin: 20px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-eyebrow {
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.dashboard-heading h1 {
    margin-bottom: 8px;
    font-size: clamp(1.75rem, 3.2vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.dashboard-heading h1 span {
    color: var(--secondary);
}

.dashboard-heading > div > p:last-child {
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-action {
    min-height: 35px;
    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: var(--secondary);
    color: var(--white);

    font-size: 0.8rem;
    font-weight: 800;

    white-space: nowrap;

    transition: 0.2s ease;
}

.dashboard-action:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}


/* =========================================================
   OVERVIEW CARDS
========================================================= */

.overview-grid,
.training-summary-grid {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.overview-card {
    padding: 20px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-sm);
}

.overview-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;

    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.overview-card > strong {
    display: block;
    margin-bottom: 4px;

    font-size: 1rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.overview-card > p {
    color: var(--muted);
    font-size: 0.72rem;
}

.overview-icon {
    width: 29px;
    height: 29px;

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

    border-radius: 8px;

    font-size: 0.85rem;
    font-weight: 800;
}

.overview-icon.blue {
    background: #DBEAFE;
    color: var(--secondary);
}

.overview-icon.green {
    background: #DCFCE7;
    color: var(--healthy);
}

.overview-icon.slate {
    background: #E2E8F0;
    color: var(--unavailable);
}

.overview-icon.red {
    background: #FEE2E2;
    color: var(--injured);
}

.overview-icon.amber {
    background: #FEF3C7;
    color: var(--resting);
}


/* =========================================================
   DASHBOARD PANELS
========================================================= */

.dashboard-content-grid {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    padding: 20px 22px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    margin-bottom: 4px;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.panel-header p {
    color: var(--muted);
    font-size: 0.76rem;
}

.panel-link {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   SQUAD GRID WIDTH
========================================================= */

.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.squad-card {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   PLAYER LIST
========================================================= */

.player-list {
    padding: 6px 22px;
}

.player-row {
    min-height: 68px;

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

    border-bottom: 1px solid #F1F5F9;
}

.player-row:last-child {
    border-bottom: 0;
}

.player-main {
    display: flex;
    align-items: center;
    gap: 11px;
}

.player-avatar {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

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

    border-radius: 50%;
    background: #E2E8F0;
    color: var(--primary);

    font-size: 0.68rem;
    font-weight: 800;
}

.player-details strong {
    display: block;
    font-size: 0.8rem;
}

.player-details span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68rem;
}


/* =========================================================
   STATUS
========================================================= */

.player-status,
.training-response {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 0.7rem;
    font-weight: 800;
}

.player-status > span,
.training-response > span,
.response-count > span {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;
}

.player-status.healthy,
.training-response.going {
    color: var(--healthy);
}

.player-status.healthy > span,
.training-response.going > span {
    background: var(--healthy);
}

.player-status.available {
    color: #263cc1;
}

.player-status.available > span {
    background: #263cc1;
}

.player-status.resting {
    color: var(--resting);
}

.player-status.resting > span {
    background: var(--resting);
}

.player-status.injured {
    color: var(--injured);
}

.player-status.injured > span {
    background: var(--injured);
}

.player-status.unavailable,
.training-response.not-going {
    color: var(--unavailable);
}

.player-status.unavailable > span,
.training-response.not-going > span {
    background: var(--unavailable);
}

.player-status.not-eligible {
    color: var(--injured);
}

.player-status.not-eligible > span {
    background: var(--injured);
}

.training-response.no-response {
    color: var(--resting);
}

.training-response.no-response > span {
    background: var(--resting);
}

.player-status.eligible {
    color: #7C3AED;
}

.player-status.eligible span {
    background: #7C3AED;
}

/* =========================================================
   EVENTS
========================================================= */

.full-width-panel {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;
}

.event-list {
    padding: 20px 22px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.event-card,
.empty-event {
    min-height: 100px;
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 14px;

    border: 1px solid var(--border);
    border-radius: 10px;
}

.event-date {
    width: 48px;
    height: 58px;

    flex-shrink: 0;

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

    border-radius: 8px;
    background: #EFF6FF;
    color: var(--secondary);
}

.event-date strong {
    font-size: 1.3rem;
    line-height: 1;
}

.event-date span {
    margin-top: 3px;
    font-size: 0.58rem;
    font-weight: 800;
}

.event-info {
    min-width: 0;
}

.event-type {
    display: block;
    margin-bottom: 4px;

    color: var(--secondary);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.event-type.match {
    color: var(--injured);
}

.event-info strong {
    display: block;
    font-size: 0.8rem;
}

.event-info p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68rem;
}

.empty-event {
    border-style: dashed;
}

.empty-event > span {
    width: 38px;
    height: 38px;

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

    border-radius: 50%;
    background: #EFF6FF;
    color: var(--secondary);

    font-size: 1.2rem;
}

.empty-event strong {
    display: block;
    font-size: 0.76rem;
}

.empty-event p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68rem;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {
    width: min(100%, var(--max-width));
    margin: 0 auto 40px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-action-card {
    min-height: 86px;
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;

    transition: 0.2s ease;
}

.quick-action-card:hover {
    border-color: #BFDBFE;
    transform: translateY(-1px);
}

.quick-action-icon {
    width: 38px;
    height: 38px;

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

    flex-shrink: 0;

    border-radius: 8px;
    background: #EFF6FF;
    color: var(--secondary);

    font-weight: 800;
}

.quick-action-card strong {
    display: block;
    font-size: 0.76rem;
}

.quick-action-card span {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.65rem;
}


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

.dashboard-footer {
    width: min(100%, var(--max-width));
    margin: 50px auto 0;
    padding: 22px 0;

    border-top: 1px solid var(--border);

    color: var(--muted);
    font-size: 0.7rem;
}


/* =========================================================
   TRAINING PAGE
========================================================= */

.training-session-panel,
.training-attendance-panel,
.actual-attendance-panel,
.upcoming-training-panel {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;
}

.training-panel-eyebrow {
    margin-bottom: 5px !important;

    color: var(--secondary) !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em;
}

.training-session-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-secondary-button {
    min-height: 44px;
    padding: 0 17px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    color: var(--text);

    font-size: 0.78rem;
    font-weight: 700;

    transition: 0.2s ease;
}

.training-secondary-button:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.training-session-details {
    padding: 20px 22px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.training-detail {
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 13px;

    border: 1px solid var(--border);
    border-radius: 10px;
}

.training-detail-icon {
    width: 38px;
    height: 38px;

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

    flex-shrink: 0;

    border-radius: 8px;
    background: #EFF6FF;
    color: var(--secondary);

    font-size: 0.9rem;
    font-weight: 800;
}

.training-detail span {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 700;
}

.training-detail strong {
    display: block;
    font-size: 0.78rem;
}


/* =========================================================
   TRAINING RESPONSES
========================================================= */

.training-response-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.response-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 0.67rem;
    font-weight: 800;
}

.response-count.going {
    color: var(--healthy);
}

.response-count.going > span {
    background: var(--healthy);
}

.response-count.not-going {
    color: var(--unavailable);
}

.response-count.not-going > span {
    background: var(--unavailable);
}

.response-count.no-response {
    color: var(--resting);
}

.response-count.no-response > span {
    background: var(--resting);
}


/* =========================================================
   TRAINING PLAYER SEARCH
========================================================= */

.training-player-search {
    padding: 18px 22px;

    border-bottom: 1px solid var(--border);
}

.training-player-search .player-search {
    width: 100%;
    min-width: 0;
    height: 25px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #F8FAFC;
    color: var(--text);

    outline: none;

    transition: 0.2s ease;
}

.training-player-search .player-search::placeholder {
    color: #94A3B8;
}

.training-player-search .player-search:focus {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* =========================================================
   TRAINING PLAYER LIST
========================================================= */

.training-player-list {
    padding: 0 22px;
}

.training-player-row {
    min-height: 72px;

    display: grid;
    grid-template-columns: minmax(180px, 1fr) 130px minmax(180px, 1fr);
    align-items: center;
    gap: 18px;

    border-bottom: 1px solid #F1F5F9;
}

.training-player-row:last-child {
    border-bottom: 0;
}

.training-player-main {
    display: flex;
    align-items: center;
    gap: 11px;
}

.training-player-details strong {
    display: block;
    font-size: 0.78rem;
}

.training-message-preview {
    overflow: hidden;

    color: var(--muted);
    font-size: 0.7rem;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.training-list-footer {
    min-height: 58px;
    padding: 0 22px;

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

    border-top: 1px solid var(--border);

    color: var(--muted);
    font-size: 0.68rem;
}

.training-list-footer a {
    color: var(--secondary);
    font-weight: 800;
}


/* =========================================================
   ACTUAL ATTENDANCE
========================================================= */

.attendance-status {
    padding: 7px 11px;

    border-radius: 20px;

    background: #F1F5F9;
    color: var(--muted);

    font-size: 0.65rem;
    font-weight: 800;
}

.attendance-explanation {
    margin: 20px 22px;
    padding: 16px;

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

    border-radius: 10px;
    background: #F8FAFC;
}

.attendance-explanation-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

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

    border-radius: 8px;
    background: #DCFCE7;
    color: var(--healthy);

    font-size: 0.8rem;
    font-weight: 800;
}

.attendance-explanation strong {
    display: block;
    margin-bottom: 3px;

    font-size: 0.76rem;
}

.attendance-explanation p {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

.attendance-table {
    padding: 0 22px;
}

.attendance-table-header,
.attendance-table-row {
    display: grid;
    grid-template-columns: 1fr 150px 260px;
    align-items: center;
    gap: 18px;
}

.attendance-table-header {
    min-height: 38px;

    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attendance-table-row {
    min-height: 68px;

    border-top: 1px solid #F1F5F9;
}

.attendance-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-player strong {
    font-size: 0.76rem;
}

.attendance-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attendance-option {
    position: relative;

    min-height: 36px;
    padding: 0 11px;

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

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--white);

    color: var(--muted);

    font-size: 0.66rem;
    font-weight: 700;

    cursor: pointer;
}

.attendance-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-option.selected {
    border-color: #BBF7D0;
    background: #F0FDF4;
    color: var(--healthy);
}

.attendance-footer {
    min-height: 72px;
    padding: 0 22px;

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

    border-top: 1px solid var(--border);
}

.attendance-footer p {
    color: var(--muted);
    font-size: 0.68rem;
}


/* =========================================================
   UPCOMING TRAINING
========================================================= */

.upcoming-training-list {
    padding: 0 22px;
}

.upcoming-training-item {
    min-height: 82px;

    display: grid;
    grid-template-columns: 58px 1fr 80px;
    align-items: center;
    gap: 15px;

    border-bottom: 1px solid #F1F5F9;
}

.upcoming-training-item:last-child {
    border-bottom: 0;
}

.upcoming-training-date {
    width: 48px;
    height: 56px;

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

    border-radius: 8px;
    background: #EFF6FF;
    color: var(--secondary);
}

.upcoming-training-date strong {
    font-size: 1.15rem;
    line-height: 1;
}

.upcoming-training-date span {
    margin-top: 3px;
    font-size: 0.55rem;
    font-weight: 800;
}

.upcoming-training-info strong {
    display: block;
    font-size: 0.78rem;
}

.upcoming-training-info span {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.68rem;
}

.upcoming-training-count {
    text-align: right;
}

.upcoming-training-count strong {
    display: block;
    font-size: 1rem;
}

.upcoming-training-count span {
    display: block;

    color: var(--muted);
    font-size: 0.62rem;
}


/* =========================================================
   PLAYERS PAGE
========================================================= */

.player-controls {
    width: min(100%, var(--max-width));
    margin: 0 auto 18px;

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

.player-search {
    min-width: 220px;
    height: 36px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    outline: none;
}

.player-search:focus {
    border-color: var(--secondary);
}

.player-filters {
    display: flex;
    gap: 8px;
}

.player-filters select {
    height: 35px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    color: var(--text);
}

.players-table {
    width: min(100%, var(--max-width));
    margin: 0 auto;

    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.players-table-header,
.players-table-row {
    display: grid;
    grid-template-columns: 1.6fr 90px 130px 130px 140px 70px;
    align-items: center;
    gap: 12px;
}

.players-table-header {
    min-height: 50px;
    padding: 0 22px;

    background: #F8FAFC;
    border-bottom: 1px solid var(--border);

    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.players-table-row {
    min-height: 72px;
    padding: 0 22px;

    border-bottom: 1px solid #F1F5F9;
}

.players-table-row:last-child {
    border-bottom: 0;
}

.player-view-link {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
}

.players-table-footer {
    min-height: 58px;
    padding: 0 22px;

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

    border-top: 1px solid var(--border);
}

.players-table-footer span {
    color: var(--muted);
    font-size: 0.68rem;
}

.player-pagination {
    display: flex;
    gap: 5px;
}

.player-pagination button {
    width: 30px;
    height: 30px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--white);

    color: var(--muted);
    font-size: 0.68rem;
}

.player-pagination button.active {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
}

.player-status-info {
    width: min(100%, var(--max-width));
    margin: 24px auto;
}

.status-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.status-info-card {
    padding: 14px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.status-info-card strong {
    display: block;
    font-size: 0.72rem;
}

.status-info-card p {
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.64rem;
}


/* =========================================================
   PLAYER PROFILE PAGE
========================================================= */

.player-back-link {
    width: min(100%, var(--max-width));
    margin: 0 auto 20px;

    display: block;

    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 800;
}

.player-profile-header {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;
    padding: 24px;

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

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.player-profile-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-profile-avatar {
    width: 70px;
    height: 70px;

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

    border-radius: 16px;
    background: var(--primary);
    color: var(--accent);

    font-size: 1.1rem;
    font-weight: 800;
}

.player-profile-name h1 {
    margin-bottom: 5px;

    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.player-profile-name h1 span {
    color: var(--secondary);
}

.player-profile-name > p:last-child {
    color: var(--muted);
    font-size: 0.75rem;
}

.player-profile-status {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-status-label {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
}

.player-page-grid {
    width: min(100%, var(--max-width));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.player-page-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.player-detail-panel {
    overflow: hidden;
}

.player-information-grid {
    padding: 20px 22px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.player-information-item span {
    display: block;
    margin-bottom: 4px;

    color: var(--muted);
    font-size: 0.63rem;
}

.player-information-item strong {
    font-size: 0.77rem;
}

.player-control-info {
    margin: 20px 22px;
    padding: 15px;

    display: flex;
    gap: 12px;

    border-radius: 9px;
    background: #EFF6FF;
}

.control-info-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

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

    border-radius: 7px;
    background: #DBEAFE;
    color: var(--secondary);

    font-weight: 800;
}

.control-info-icon + div strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.74rem;
}

.control-info-icon + div p {
    color: var(--muted);
    font-size: 0.68rem;
}

.availability-message {
    margin: 0 22px 22px;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 9px;
}

.availability-message span {
    display: block;
    margin-bottom: 5px;

    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
}

.availability-message p {
    font-size: 0.75rem;
}

.availability-message small {
    display: block;
    margin-top: 7px;

    color: var(--muted);
    font-size: 0.62rem;
}

.player-form-grid {
    padding: 20px 22px 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.player-form-group {
    padding: 20px 22px 0;
}

.player-form-grid .player-form-group {
    padding: 0;
}

.player-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.player-form-actions {
    padding: 20px 22px;
    display: flex;
    justify-content: flex-end;
}

.eligibility-options {
    padding: 20px 22px;

    display: grid;
    gap: 9px;
}

.eligibility-option {
    padding: 13px;

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

    border: 1px solid var(--border);
    border-radius: 9px;

    cursor: pointer;
}

.eligibility-option.selected {
    border-color: #BFDBFE;
    background: #EFF6FF;
}

.eligibility-option input {
    margin-top: 3px;
}

.eligibility-option-content strong {
    display: block;
    font-size: 0.75rem;
}

.eligibility-option-content small {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.64rem;
}

.player-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.player-summary-list {
    padding: 6px 22px;
}

.player-summary-item {
    min-height: 54px;

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

    border-bottom: 1px solid #F1F5F9;
}

.player-summary-item:last-child {
    border-bottom: 0;
}

.player-summary-item span {
    color: var(--muted);
    font-size: 0.7rem;
}

.player-summary-item strong {
    font-size: 0.7rem;
}

.summary-unavailable {
    color: var(--unavailable);
}

.summary-injured {
    color: var(--injured);
}

.summary-not-eligible {
    color: var(--injured);
}

.injury-summary-content {
    padding: 20px 22px;
}

.injury-summary-status {
    margin-bottom: 15px;
}

.injury-summary-content > strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.injury-summary-content > p {
    color: var(--muted);
    font-size: 0.69rem;
}

.injury-return {
    margin-top: 16px;
    padding-top: 13px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--border);
}

.injury-return span {
    color: var(--muted);
    font-size: 0.65rem;
}

.injury-return strong {
    font-size: 0.67rem;
}

.player-message-list {
    padding: 6px 22px;
}

.player-message {
    padding: 13px 0;

    display: flex;
    gap: 10px;

    border-bottom: 1px solid #F1F5F9;
}

.player-message:last-child {
    border-bottom: 0;
}

.player-message strong {
    font-size: 0.7rem;
}

.player-message p {
    margin-top: 2px;

    color: var(--muted);
    font-size: 0.67rem;
}

.player-message span {
    display: block;
    margin-top: 4px;

    color: #94A3B8;
    font-size: 0.59rem;
}

.player-message-button {
    display: block;
    margin: 0 22px 20px;
    padding: 11px;

    text-align: center;

    border-radius: 8px;
    background: #EFF6FF;
    color: var(--secondary);

    font-size: 0.68rem;
    font-weight: 800;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .overview-grid,
    .training-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .event-list {
        grid-template-columns: 1fr;
    }

    .quick-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .training-player-row {
        grid-template-columns: 1fr 130px;
    }

    .training-message-preview {
        grid-column: 1 / -1;
        padding-bottom: 12px;
    }

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

    .players-table-header,
    .players-table-row {
        grid-template-columns: 1.5fr 70px 120px 120px 70px;
    }

    .players-table-header span:nth-child(4),
    .players-table-row > div:nth-child(4) {
        display: none;
    }
}


@media (max-width: 850px) {

    .sidebar {
        width: 210px;
    }

    .dashboard-main {
        padding: 28px;
    }

    .player-page-grid {
        grid-template-columns: 1fr;
    }

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

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

    .attendance-table-header,
    .attendance-table-row {
        min-width: 680px;
    }

    .player-profile-status {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
    }
}


@media (max-width: 700px) {

    .navbar-inner {
        width: calc(100% - 28px);
        min-height: 68px;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn {
        height: 40px;
        padding: 0 12px;
        font-size: 0.76rem;
    }

    .dashboard-navbar {
        height: 48px;
    }

    .dashboard-navbar-inner {
        padding: 0 16px;
    }

    .dashboard-user-info {
        display: none;
    }

    .dashboard-layout {
        min-height: calc(100vh - 64px);
    }

    .sidebar {
        position: fixed;
        left: 0;
        bottom: 0;
        top: 45px;

        width: 46px;
        height: calc(100vh - 45px);

        padding: 1px 10px;

        z-index: 40;
    }

    .sidebar-team {
        justify-content: center;
        padding: 6px;
    }

    .sidebar-team > div:last-child {
        display: none;
    }

    .sidebar-nav {
        align-items: center;
    }

    .sidebar-link {
        width: 32px;
        min-height: 43px;
        padding: 0;

        justify-content: center;
        font-size: 0;
    }

    .sidebar-link:not(.active) {
        color: #CBD5E1;
    }

    .sidebar-icon {
        font-size: 0.9rem;
    }

    .message-count {
        position: absolute;
        margin: -25px 0 0 25px;
    }

    .sidebar-bottom {
        display: contents;
    }

    .dashboard-main {
        margin-left: 72px;
        padding: 24px 18px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-heading h1 {
        font-size: 2.2rem;
    }

    .training-session-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .training-session-actions .dashboard-action,
    .training-session-actions .training-secondary-button {
        flex: 1;
    }

    .training-response-summary {
        width: 100%;
        padding-top: 4px;
    }

    .panel-header {
        flex-direction: column;
    }

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

    .player-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .player-search {
        min-width: 0;
        width: 100%;
    }

    .player-filters {
        width: 100%;
    }

    .player-filters select {
        flex: 1;
    }

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

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

    .player-profile-main {
        align-items: flex-start;
    }

    .player-information-grid {
        grid-template-columns: 1fr;
    }

    .player-form-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-training-item {
        grid-template-columns: 58px 1fr;
    }

    .upcoming-training-count {
        display: none;
    }
}


@media (max-width: 600px) {

    .hero-content {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3.3rem;
    }

    .intro {
        padding: 70px 0;
    }

    .signup-page,
    .login-page {
        padding: 60px 16px;
    }

    .signup-card,
    .login-card {
        padding: 24px;
    }

    .overview-grid,
    .training-summary-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .training-player-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
    }

    .training-message-preview {
        grid-column: auto;
        padding-bottom: 0;
    }

    .attendance-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 22px;
    }

    .player-profile-avatar {
        width: 58px;
        height: 58px;
    }

    .player-profile-name h1 {
        font-size: 1.7rem;
    }
}


@media (max-width: 480px) {

    .nav-actions .btn {
        height: 30px;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .dashboard-navbar-inner {
        padding: 0 3px;
    }

    .dashboard-logo {
        font-size: 1.15rem;
    }

    .dashboard-main {
        padding: 22px 14px;
    }

    .dashboard-heading h1 {
        font-size: 1.9rem;
    }

    .dashboard-action {
        width: 80%;
    }

    .training-session-actions .dashboard-action,
    .training-session-actions .training-secondary-button {
        width: 100%;
        flex: none;
    }

    .training-list-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

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

    .player-profile-header {
        padding: 18px;
    }

    .player-profile-main {
        gap: 11px;
    }

    .player-profile-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-detail {
        align-items: flex-start;
    }

    .upcoming-training-item {
        min-height: 74px;
    }
}

/* =========================================================
   MATCHES PAGE
========================================================= */

.match-day-panel,
.match-management-panel,
.upcoming-match-days {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;
}

.matches-panel-eyebrow {
    margin-bottom: 5px !important;

    color: var(--secondary) !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em;
}


/* =========================================================
   MATCH DAY CONTROLS
========================================================= */

.match-day-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-day-arrow {
    width: 38px;
    height: 38px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--white);
    color: var(--muted);

    font-size: 0.85rem;
    font-weight: 700;

    transition: 0.2s ease;
}

.match-day-arrow:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    color: var(--text);
}

.match-day-date {
    min-width: 48px;
    height: 48px;

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

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    color: var(--muted);

    transition: 0.2s ease;
}

.match-day-date strong {
    font-size: 0.85rem;
    line-height: 1;
}

.match-day-date span {
    margin-top: 3px;

    font-size: 0.52rem;
    font-weight: 800;
}

.match-day-date:hover {
    border-color: #BFDBFE;
    background: #EFF6FF;
    color: var(--secondary);
}

.match-day-date.active {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
}


/* =========================================================
   SELECTED MATCH DAY
========================================================= */

.selected-match-day {
    padding: 0 22px;
}

.selected-match-day-heading {
    min-height: 64px;

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

    border-bottom: 1px solid var(--border);
}

.selected-match-day-heading strong {
    display: block;
    font-size: 0.82rem;
}

.selected-match-day-heading span {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.67rem;
}

.match-day-filter {
    height: 38px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--white);
    color: var(--text);

    font-size: 0.68rem;
    font-weight: 700;
}


/* =========================================================
   FIXTURE CARDS
========================================================= */

.fixture-card {
    min-height: 92px;

    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 150px 90px;
    align-items: center;
    gap: 18px;

    border-bottom: 1px solid #F1F5F9;
}

.fixture-card:last-child {
    border-bottom: 0;
}

.fixture-time {
    text-align: center;
}

.fixture-time strong {
    display: block;

    font-size: 1rem;
    line-height: 1;
}

.fixture-time span {
    display: block;
    margin-top: 4px;

    color: var(--muted);
    font-size: 0.55rem;
    font-weight: 800;
}

.fixture-teams {
    min-width: 0;
}

.fixture-type {
    display: block;
    margin-bottom: 4px;

    color: var(--secondary);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.fixture-teams strong {
    display: block;

    font-size: 0.8rem;
    line-height: 1.3;
}

.fixture-teams strong span {
    margin: 0 4px;

    color: var(--muted);
    font-weight: 500;
}

.fixture-teams p {
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.66rem;
}

.fixture-status {
    text-align: right;
}

.fixture-status-label {
    display: inline-block;
    margin-bottom: 5px;

    font-size: 0.61rem;
    font-weight: 800;
}

.fixture-status-label.needs-squad {
    color: var(--resting);
}

.fixture-status-label.squad-ready {
    color: var(--healthy);
}

.fixture-status-label.awaiting {
    color: var(--secondary);
}

.fixture-status strong {
    display: inline-block;

    font-size: 0.78rem;
}

.fixture-status > span:last-child {
    margin-left: 3px;

    color: var(--muted);
    font-size: 0.61rem;
}

.fixture-action {
    color: var(--secondary);

    font-size: 0.68rem;
    font-weight: 800;

    text-align: right;
    white-space: nowrap;
}


/* =========================================================
   MATCH OVERVIEW
========================================================= */

.match-overview-grid {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* =========================================================
   MATCH MANAGEMENT
========================================================= */

.match-management-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.matches-secondary-button {
    min-height: 44px;
    padding: 0 17px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    color: var(--text);

    font-size: 0.78rem;
    font-weight: 700;

    transition: 0.2s ease;
}

.matches-secondary-button:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.match-management-details {
    padding: 20px 22px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.match-management-detail {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 9px;
}

.match-management-detail span {
    display: block;
    margin-bottom: 5px;

    color: var(--muted);
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.match-management-detail strong {
    display: block;

    font-size: 0.76rem;
}

.match-management-footer {
    min-height: 72px;
    padding: 0 22px;

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

    border-top: 1px solid var(--border);
}

.match-management-footer strong {
    display: block;

    font-size: 0.75rem;
}

.match-management-footer p {
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.66rem;
}

.match-management-footer a {
    color: var(--secondary);

    font-size: 0.68rem;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   UPCOMING MATCH DAYS
========================================================= */

.upcoming-match-day-list {
    padding: 0 22px;
}

.upcoming-match-day {
    min-height: 82px;

    display: grid;
    grid-template-columns: 58px 1fr 40px;
    align-items: center;
    gap: 15px;

    border-bottom: 1px solid #F1F5F9;
}

.upcoming-match-day:last-child {
    border-bottom: 0;
}

.upcoming-match-day-date {
    width: 48px;
    height: 56px;

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

    border-radius: 8px;
    background: #EFF6FF;
    color: var(--secondary);
}

.upcoming-match-day-date strong {
    font-size: 1.15rem;
    line-height: 1;
}

.upcoming-match-day-date span {
    margin-top: 3px;

    font-size: 0.55rem;
    font-weight: 800;
}

.upcoming-match-day-info {
    min-width: 0;
}

.upcoming-match-day-info strong {
    display: block;

    font-size: 0.78rem;
}

.upcoming-match-day-info span {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.67rem;
}

.upcoming-match-day-count {
    width: 30px;
    height: 30px;

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

    border-radius: 50%;
    background: #EFF6FF;
    color: var(--secondary);

    font-size: 0.7rem;
}


/* =========================================================
   MATCHES RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .match-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .match-management-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .fixture-card {
        grid-template-columns: 65px minmax(0, 1fr) 130px 75px;
    }
}


@media (max-width: 850px) {

    .match-day-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .selected-match-day-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .fixture-card {
        grid-template-columns: 65px minmax(0, 1fr) 110px;
    }

    .fixture-action {
        display: none;
    }

    .match-management-actions {
        width: 100%;
    }

    .match-management-actions .dashboard-action,
    .match-management-actions .matches-secondary-button {
        flex: 1;
    }
}


@media (max-width: 700px) {

    .match-day-controls {
        justify-content: space-between;
    }

    .match-day-date {
        flex: 1;
    }

    .match-day-arrow {
        flex-shrink: 0;
    }

    .fixture-card {
        grid-template-columns: 58px 1fr;
        gap: 10px 14px;

        padding: 16px 0;
    }

    .fixture-time {
        grid-row: 1 / 3;
    }

    .fixture-teams {
        grid-column: 2;
    }

    .fixture-status {
        grid-column: 2;

        display: flex;
        align-items: center;
        gap: 8px;

        text-align: left;
    }

    .fixture-status-label {
        margin-bottom: 0;
    }

    .fixture-status strong {
        margin-left: auto;
    }

    .fixture-status > span:last-child {
        margin-left: 0;
    }

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

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

    .match-management-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px 22px;
    }
}


@media (max-width: 600px) {

    .match-day-controls {
        gap: 4px;
    }

    .match-day-date {
        min-width: 0;
        height: 44px;
    }

    .match-day-arrow {
        width: 34px;
        height: 34px;
    }

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

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

    .match-management-actions {
        flex-direction: column;
    }

    .match-management-actions .dashboard-action,
    .match-management-actions .matches-secondary-button {
        width: 100%;
        flex: none;
    }
}


@media (max-width: 480px) {

    .selected-match-day {
        padding: 0 16px;
    }

    .fixture-card {
        grid-template-columns: 50px 1fr;
    }

    .fixture-teams strong {
        font-size: 0.74rem;
    }

    .upcoming-match-day-list {
        padding: 0 16px;
    }
}

/* =========================================================
   SETTINGS PAGE
========================================================= */

.settings-layout {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.settings-navigation {
    position: sticky;
    top: 20px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.settings-navigation-title {
    padding: 8px 10px 9px;
    color: var(--muted);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.settings-nav-link {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.settings-nav-link span {
    width: 15px;
    text-align: center;
    font-size: 0.62rem;
}

.settings-nav-link:hover {
    background: #F8FAFC;
    color: var(--text);
}


.settings-nav-link.danger {
    margin-top: 5px;
    color: #DC2626;
}

.settings-content {
    min-width: 0;
}

.settings-section {
    margin-bottom: 18px;
    overflow: hidden;
}

.settings-section-header {
    padding: 21px 22px;
    border-bottom: 1px solid var(--border);
}

.settings-eyebrow {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.settings-section-header h2 {
    font-size: 0.95rem;
}

.settings-section-header > div > p:last-child {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.5;
}

.settings-section-body {
    padding: 22px;
}

.settings-team-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-team-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #F8FAFC;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 900;
}

.settings-team-logo-info strong {
    display: block;
    font-size: 0.76rem;
}

.settings-team-logo-info p {
    margin: 4px 0 9px;
    color: var(--muted);
    font-size: 0.63rem;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.settings-field {
    min-width: 0;
}

.settings-field-full {
    grid-column: 1 / -1;
}

.settings-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.64rem;
    font-weight: 800;
}

.settings-field input,
.settings-field select {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.69rem;
    transition: 0.2s ease;
}

.settings-field input:focus,
.settings-field select:focus {
    border-color: #93C5FD;
    box-shadow: 0 0 0 3px #EFF6FF;
}

.settings-field input:disabled {
    background: #F8FAFC;
    color: var(--muted);
    cursor: not-allowed;
}

.settings-secondary-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.settings-secondary-button:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.settings-info-box {
    margin-top: 22px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    background: #EFF6FF;
}

.settings-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 800;
}

.settings-info-box strong {
    display: block;
    font-size: 0.65rem;
}

.settings-info-box p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.61rem;
    line-height: 1.5;
}

.settings-options {
    padding: 0;
}

.settings-option {
    min-height: 74px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.settings-option:last-child {
    border-bottom: 0;
}

.settings-option strong {
    display: block;
    font-size: 0.72rem;
}

.settings-option p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.63rem;
}

.settings-toggle {
    position: relative;
    width: 38px;
    height: 21px;
    flex-shrink: 0;
    cursor: pointer;
}

.settings-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-toggle span {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #CBD5E1;
    transition: 0.2s ease;
}

.settings-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--white);
    transition: 0.2s ease;
}

.settings-toggle input:checked + span {
    background: var(--secondary);
}

.settings-toggle input:checked + span::after {
    transform: translateX(17px);
}

.settings-security-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.settings-security-row + .settings-security-row {
    padding-top: 15px;
}

.settings-security-row:last-child {
    border-bottom: 0;
}

.settings-security-row strong {
    display: block;
    font-size: 0.72rem;
}

.settings-security-row p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.63rem;
}

.settings-danger {
    border-color: #FECACA;
}

.settings-danger .settings-section-header {
    background: #FFF7F7;
}

.settings-danger .settings-eyebrow {
    color: #DC2626;
}

.settings-danger-row {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.settings-danger-row strong {
    display: block;
    color: #991B1B;
    font-size: 0.72rem;
}

.settings-danger-row p {
    max-width: 550px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.63rem;
    line-height: 1.5;
}

.settings-danger-button {
    min-height: 38px;
    flex-shrink: 0;
    padding: 0 13px;
    border: 1px solid #FCA5A5;
    border-radius: 7px;
    background: var(--white);
    color: #DC2626;
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 800;
    transition: 0.2s ease;
}

.settings-danger-button:hover {
    border-color: #DC2626;
    background: #FEF2F2;
}


/* =========================================================
   SETTINGS RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-navigation {
        position: static;
        display: flex;
        align-items: center;
        gap: 3px;
        overflow-x: auto;
        padding: 7px;
    }

    .settings-navigation-title {
        display: none;
    }

    .settings-nav-link {
        flex-shrink: 0;
    }

    .settings-nav-link.danger {
        margin-top: 0;
    }
}


@media (max-width: 650px) {

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-field-full {
        grid-column: auto;
    }

    .settings-section-header,
    .settings-section-body {
        padding: 18px;
    }

    .settings-team-header {
        align-items: flex-start;
    }

    .settings-option {
        padding: 15px 18px;
    }

    .settings-security-row,
    .settings-danger-row {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 15px 0;
    }

    .settings-security-row + .settings-security-row {
        padding-top: 15px;
    }

    .settings-danger-button,
    .settings-secondary-button {
        width: 100%;
    }
}

/* =========================================================
   HELP & FEEDBACK PAGE
========================================================= */

.help-search-panel {
    width: min(100%, var(--max-width));
    margin: 0 auto 20px;
    overflow: hidden;
}

.help-search-content {
    padding: 32px;
    background:
        linear-gradient(
            135deg,
            #F8FAFC 0%,
            #FFFFFF 55%,
            #EFF6FF 100%
        );
}

.help-search-eyebrow,
.help-section-eyebrow {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.help-search-content h2 {
    font-size: 1.2rem;
}

.help-search-content > p:not(.help-search-eyebrow) {
    max-width: 600px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.5;
}

.help-search {
    max-width: 650px;
    height: 46px;
    margin-top: 20px;
    padding-left: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.help-search > span {
    color: var(--muted);
    font-size: 1rem;
}

.help-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.69rem;
}

.help-search input::placeholder {
    color: #94A3B8;
}

.help-search button {
    height: 36px;
    margin-right: 5px;
    padding: 0 15px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 0.63rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.help-search button:hover {
    background: #172554;
}

.help-category-grid {
    width: min(100%, var(--max-width));
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.help-category-card {
    min-height: 135px;
    position: relative;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    transition: 0.2s ease;
}

.help-category-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.help-category-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.help-category-icon.blue {
    background: #EFF6FF;
    color: var(--secondary);
}

.help-category-icon.green {
    background: #F0FDF4;
    color: #16A34A;
}

.help-category-icon.amber {
    background: #FFFBEB;
    color: #D97706;
}

.help-category-icon.purple {
    background: #F5F3FF;
    color: #7C3AED;
}

.help-category-card strong {
    display: block;
    font-size: 0.73rem;
}

.help-category-card p {
    max-width: 210px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.61rem;
    line-height: 1.45;
}

.help-category-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 800;
}

.help-main-grid {
    width: min(100%, var(--max-width));
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 20px;
}

.help-faq,
.help-contact {
    overflow: hidden;
}

.help-section-header {
    min-height: 95px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.help-section-header h2 {
    font-size: 0.92rem;
}

.help-section-header > div > p:last-child {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.63rem;
}

.help-view-all {
    color: var(--secondary);
    font-size: 0.63rem;
    font-weight: 800;
    white-space: nowrap;
}

.help-question-list {
    padding: 0 22px;
}

.help-question {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 700;
}

.help-question:last-child {
    border-bottom: 0;
}

.help-question:hover {
    color: var(--secondary);
}

.help-question strong {
    color: var(--muted);
    font-size: 0.75rem;
}

.help-contact-body {
    padding: 20px 22px;
}

.help-support-status {
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    background: #F0FDF4;
}

.help-status-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--healthy);
}

.help-support-status strong {
    display: block;
    font-size: 0.66rem;
}

.help-support-status p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.6rem;
}

.help-contact-options {
    margin-top: 12px;
}

.help-contact-option {
    min-height: 65px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text);
}

.help-contact-option:last-child {
    border-bottom: 0;
}

.help-contact-option:hover strong {
    color: var(--secondary);
}

.help-contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #EFF6FF;
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
}

.help-contact-option strong {
    display: block;
    font-size: 0.68rem;
}

.help-contact-option span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.59rem;
}

.feedback-panel {
    width: min(100%, var(--max-width));
    min-height: 105px;
    margin: 0 auto 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-color: #D9F99D;
    background: #FBFFF5;
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feedback-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.85rem;
}

.feedback-content h2 {
    font-size: 0.88rem;
}

.feedback-content > div > p:last-child {
    max-width: 620px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.63rem;
    line-height: 1.45;
}

.help-app-info {
    width: min(100%, var(--max-width));
    min-height: 72px;
    margin: 0 auto 24px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.help-app-info span {
    display: block;
    margin-bottom: 4px;
    color: var(--secondary);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.help-app-info strong {
    font-size: 0.7rem;
}

.help-version {
    color: var(--muted);
    font-size: 0.6rem;
}


/* =========================================================
   HELP & FEEDBACK RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .help-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-main-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .help-search-content {
        padding: 24px 18px;
    }

    .help-search {
        height: auto;
        min-height: 44px;
        padding-left: 10px;
    }

    .help-search button {
        height: 34px;
    }

    .help-category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .help-category-card {
        min-height: 125px;
        padding: 15px;
    }

    .help-section-header {
        padding: 18px;
    }

    .help-question-list,
    .help-contact-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .feedback-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .feedback-panel .dashboard-action {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .help-category-grid {
        grid-template-columns: 1fr;
    }

    .help-search {
        flex-wrap: wrap;
        padding: 8px;
    }

    .help-search input {
        min-width: 120px;
        height: 34px;
    }

    .help-search button {
        width: 100%;
        margin: 0;
    }

    .help-app-info {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 15px 18px;
    }
}

/* =========================================================
   PLAYER DASHBOARD - UPDATED AVAILABILITY & HEALTH
   ========================================================= */

.player-dashboard-body {
    background: #f8fafc;
}


/* ---------------------------------------------------------
   Player Overview
   --------------------------------------------------------- */

.player-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.player-status-card,
.player-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 5px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.player-status-card-top,
.player-info-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.player-card-label {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.player-status-card h2,
.player-info-card h2 {
    margin: 0;
    color: #0b132b;
    font-size: 15px;
    font-weight: 700;
}

.player-status-card > p {
    margin: 14px 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.player-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.player-status-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.player-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.player-card-action:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.player-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #0b132b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.player-info-card-top {
    justify-content: flex-start;
    align-items: center;
}

.player-info-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.player-info-details span,
.player-info-details strong {
    display: block;
}

.player-info-details span {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
}

.player-info-details strong {
    color: #0b132b;
    font-size: 14px;
}


/* ---------------------------------------------------------
   Main Player Content
   --------------------------------------------------------- */

.player-dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.player-event-panel,
.player-match-panel {
    min-width: 0;
}

.player-feature-event {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
}

.player-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    min-width: 68px;
    height: 72px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.player-event-date strong {
    font-size: 24px;
    line-height: 1;
}

.player-event-date span {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

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

.player-event-details h3 {
    margin: 5px 0;
    color: #0b132b;
    font-size: 17px;
}

.player-event-details p {
    margin: 0 0 4px;
    color: #475569;
    font-size: 13px;
}

.event-location {
    color: #94a3b8;
    font-size: 12px;
}

.player-attendance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 4px;
    padding-top: 17px;
    border-top: 1px solid #eef2f7;
}

.player-attendance strong,
.player-attendance div:first-child span {
    display: block;
}

.player-attendance strong {
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 13px;
}

.player-attendance div:first-child span {
    color: #94a3b8;
    font-size: 12px;
}

.attendance-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.attendance-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}


/* ---------------------------------------------------------
   Match
   --------------------------------------------------------- */

.player-match-card {
    margin-top: 4px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f8fafc;
}

.match-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.match-card-header > span:last-child {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.match-team-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 9px;
    border-radius: 12px;
    background: #0b132b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.match-team-logo.opponent {
    background: #2563eb;
}

.match-team strong {
    color: #0b132b;
    font-size: 12px;
}

.match-vs {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.match-details {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11px;
}

.selection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    padding: 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.selection-status.selected {
    background: #ecfdf3;
    color: #15803d;
}

.selection-status span {
    font-size: 13px;
}


/* ---------------------------------------------------------
   Secondary Content
   --------------------------------------------------------- */

.player-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 20px;
    margin-bottom: 24px;
}


/* ---------------------------------------------------------
   Health Status - Read Only
   --------------------------------------------------------- */

.health-status-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.health-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 20px;
    font-weight: 800;
}

.health-status-display .player-card-label {
    margin-bottom: 5px;
}

.health-status-display h3 {
    margin: 0 0 5px;
    color: #0b132b;
    font-size: 17px;
}

.health-status-display p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
}

.health-readonly-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
    border-radius: 9px;
    background: #f8fafc;
}

.health-readonly-note > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.health-readonly-note p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Upcoming Events
   --------------------------------------------------------- */

.player-event-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.player-event-status.confirmed,
.player-event-status.selected {
    background: #ecfdf3;
    color: #15803d;
}


/* ---------------------------------------------------------
   Quick Actions
   --------------------------------------------------------- */

.player-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .player-overview-grid,
    .player-dashboard-content-grid,
    .player-secondary-grid {
        grid-template-columns: 1fr;
    }

    .player-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .player-overview-grid {
        gap: 14px;
    }

    .player-status-card,
    .player-info-card {
        padding: 18px;
    }

    .player-status-card-top {
        flex-direction: column;
        gap: 12px;
    }

    .player-attendance {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-match-card {
        padding: 14px;
    }

    .match-teams {
        gap: 6px;
    }

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

    .event-card {
        flex-wrap: wrap;
    }

    .player-event-status {
        margin-left: 86px;
    }

    .player-quick-actions {
        grid-template-columns: 1fr;
    }

    .health-status-display {
        align-items: flex-start;
    }
}

/* Player Dashboard Action Link Fix */
.player-dashboard-body .dashboard-heading .dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 37px;
    padding: 0 18px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

/* =========================================================
   DASHBOARD FOOTER CENTERING
   ========================================================= */

.dashboard-body footer {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.dashboard-body footer p {
    margin: 0;
    text-align: center;
}

/* =========================================================
   PLAYER TRAINING PAGE
   ========================================================= */

.training-player-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.player-next-training-panel {
    margin-bottom: 24px;
}

.player-training-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.player-training-confirmed span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.player-training-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding: 20px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.player-training-detail {
    display: flex;
    align-items: center;
    gap: 13px;
}

.player-training-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
    font-weight: 800;
}

.player-training-detail span,
.player-training-detail strong {
    display: block;
}

.player-training-detail span {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 11px;
}

.player-training-detail strong {
    color: #0b132b;
    font-size: 13px;
}

.player-training-response {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
}

.player-training-response > div:first-child strong {
    display: block;
    margin-bottom: 5px;
    color: #0b132b;
    font-size: 14px;
}

.player-training-response > div:first-child p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
}

.player-response-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-response-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 110px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.player-response-button:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.player-response-button.selected {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.player-response-button.selected:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.player-response-button span {
    font-size: 13px;
}

.player-response-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 17px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f8fafc;
}

.player-response-note > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.player-response-note p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.player-upcoming-training-panel {
    margin-bottom: 24px;
}

.player-upcoming-training-list {
    display: flex;
    flex-direction: column;
}

.player-upcoming-training-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid #eef2f7;
}

.player-upcoming-training-item:first-child {
    border-top: none;
}

.player-upcoming-training-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 50px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.player-upcoming-training-date strong {
    font-size: 12px;
    line-height: 1;
}

.player-upcoming-training-date span {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-upcoming-training-info {
    min-width: 0;
}

.player-upcoming-training-info strong,
.player-upcoming-training-info span {
    display: block;
}

.player-upcoming-training-info strong {
    margin-bottom: 5px;
    color: #0b132b;
    font-size: 14px;
}

.player-upcoming-training-info span {
    color: #94a3b8;
    font-size: 12px;
}

.player-upcoming-training-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 112px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.player-upcoming-training-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
}

.player-upcoming-training-status.confirmed {
    background: #ecfdf3;
    color: #15803d;
}

.player-upcoming-training-status.confirmed span {
    background: #22c55e;
}

.player-training-history-panel {
    margin-bottom: 24px;
}

.player-training-history {
    display: flex;
    flex-direction: column;
}

.player-training-history-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 120px 120px;
    align-items: center;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid #eef2f7;
}

.player-training-history-row:first-child {
    border-top: none;
}

.player-history-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #f8fafc;
}

.player-history-date strong {
    color: #0b132b;
    font-size: 17px;
    line-height: 1;
}

.player-history-date span {
    margin-top: 4px;
    color: #0b132b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-history-info strong,
.player-history-info span,
.player-history-response span,
.player-history-response strong,
.player-history-attendance span,
.player-history-attendance strong {
    display: block;
}

.player-history-info strong {
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 13px;
}

.player-history-info span {
    color: #94a3b8;
    font-size: 11px;
}

.player-history-response span,
.player-history-attendance span {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 10px;
}

.player-history-response strong {
    color: #475569;
    font-size: 12px;
}

.player-history-attendance strong {
    font-size: 12px;
}

.player-history-attendance.present strong {
    color: #15803d;
}

.player-history-attendance.absent strong {
    color: #dc2626;
}

.player-training-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.player-training-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.player-training-note strong {
    display: block;
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 12px;
}

.player-training-note p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.player-training-actions-panel {
    margin-bottom: 24px;
}


/* PLAYER TRAINING RESPONSIVE */

@media (max-width: 1100px) {

    .training-player-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .player-training-history-row {
        grid-template-columns: 58px minmax(0, 1fr) 100px 100px;
        gap: 12px;
    }

}


@media (max-width: 800px) {

    .player-training-response {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-response-buttons {
        width: 100%;
    }

    .player-response-button {
        flex: 1;
    }

    .player-training-history-row {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .player-history-response,
    .player-history-attendance {
        padding-left: 70px;
    }

}


@media (max-width: 700px) {

    .training-player-summary-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .player-upcoming-training-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    .player-upcoming-training-status {
        grid-column: 2;
        justify-self: start;
    }

    .player-training-history-row {
        gap: 10px;
    }

    .player-history-response,
    .player-history-attendance {
        padding-left: 68px;
    }

}


@media (max-width: 500px) {

    .player-response-buttons {
        flex-direction: column;
        width: 100%;
    }

    .player-response-button {
        width: 100%;
    }

    .player-training-detail {
        align-items: flex-start;
    }

}

/* =========================================================
   PLAYER MATCHES PAGE
   ========================================================= */

.player-match-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.player-next-match-panel {
    margin-bottom: 24px;
}

.player-match-selection {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.player-match-selection span,
.player-fixture-selection span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.player-match-selection.selected {
    background: #ecfdf3;
    color: #15803d;
}

.player-match-selection.selected span {
    background: #22c55e;
}

.player-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    margin-top: 28px;
    padding: 28px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.player-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-match-team-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 11px;
    border-radius: 14px;
    background: #0b132b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.player-match-team-logo.opponent {
    background: #2563eb;
}

.player-match-team strong {
    color: #0b132b;
    font-size: 14px;
}

.player-match-team span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}

.player-match-vs {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.player-match-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.player-match-details span,
.player-match-details strong {
    display: block;
}

.player-match-details span {
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.player-match-details strong {
    color: #0b132b;
    font-size: 13px;
}

.player-selection-message {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 15px;
    border-radius: 10px;
    background: #ecfdf3;
}

.player-selection-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #22c55e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.player-selection-message strong {
    display: block;
    margin-bottom: 3px;
    color: #166534;
    font-size: 13px;
}

.player-selection-message p {
    margin: 0;
    color: #15803d;
    font-size: 11px;
}

.player-fixtures-panel {
    margin-bottom: 24px;
}

.player-fixture-list {
    display: flex;
    flex-direction: column;
}

.player-fixture-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid #eef2f7;
}

.player-fixture-card:first-child {
    border-top: none;
}

.player-fixture-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.player-fixture-date strong {
    font-size: 20px;
    line-height: 1;
}

.player-fixture-date span {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-fixture-main {
    min-width: 0;
}

.player-fixture-type {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-fixture-main > strong {
    display: block;
    color: #0b132b;
    font-size: 14px;
}

.player-fixture-main > strong span {
    margin: 0 5px;
    color: #94a3b8;
    font-size: 10px;
}

.player-fixture-main p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 11px;
}

.player-fixture-selection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 120px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.player-fixture-selection.selected {
    background: #ecfdf3;
    color: #15803d;
}

.player-fixture-selection.selected span {
    background: #22c55e;
}

.player-fixture-selection.awaiting {
    background: #f1f5f9;
    color: #64748b;
}

.player-fixture-selection.awaiting span {
    background: #94a3b8;
}

.player-selection-panel {
    margin-bottom: 24px;
}

.player-selection-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}

.player-selection-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.player-selection-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    background: #0b132b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.player-selection-profile strong,
.player-selection-profile span {
    display: block;
}

.player-selection-profile strong {
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 14px;
}

.player-selection-profile span {
    color: #94a3b8;
    font-size: 11px;
}

.player-selection-status {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border-radius: 12px;
}

.player-selection-status.selected {
    background: #ecfdf3;
    color: #15803d;
}

.player-selection-status > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #22c55e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.player-selection-status strong {
    display: block;
    margin-bottom: 3px;
    color: #166534;
    font-size: 13px;
}

.player-selection-status p {
    margin: 0;
    color: #15803d;
    font-size: 11px;
}

.player-selection-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 17px;
    padding: 12px;
    border-radius: 9px;
    background: #f8fafc;
}

.player-selection-note > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.player-selection-note p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.player-match-history-panel {
    margin-bottom: 24px;
}

.player-match-history {
    display: flex;
    flex-direction: column;
}

.player-match-history-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 120px 120px;
    align-items: center;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid #eef2f7;
}

.player-match-history-row:first-child {
    border-top: none;
}

.player-history-match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #f8fafc;
}

.player-history-match-date strong {
    color: #0b132b;
    font-size: 17px;
    line-height: 1;
}

.player-history-match-date span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-history-match-info strong,
.player-history-match-info span,
.player-history-selection span,
.player-history-selection strong,
.player-history-result span,
.player-history-result strong {
    display: block;
}

.player-history-match-info strong {
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 13px;
}

.player-history-match-info span {
    color: #94a3b8;
    font-size: 11px;
}

.player-history-selection span,
.player-history-result span {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 10px;
}

.player-history-selection strong {
    color: #475569;
    font-size: 12px;
}

.player-history-result strong {
    font-size: 12px;
}

.player-history-result.played strong {
    color: #15803d;
}

.player-history-result.not-played strong {
    color: #64748b;
}

.player-match-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.player-match-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.player-match-note strong {
    display: block;
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 12px;
}

.player-match-note p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.player-match-actions-panel {
    margin-bottom: 24px;
}


/* =========================================================
   PLAYER MATCHES RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .player-match-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .player-selection-content {
        grid-template-columns: 1fr;
    }

    .player-match-history-row {
        grid-template-columns: 58px minmax(0, 1fr) 100px 100px;
        gap: 12px;
    }

}


@media (max-width: 800px) {

    .player-fixture-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    .player-fixture-selection {
        grid-column: 2;
        justify-self: start;
    }

    .player-match-history-row {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
    }

    .player-history-selection,
    .player-history-result {
        padding-left: 68px;
    }

}


@media (max-width: 700px) {

    .player-match-summary-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .player-match-teams {
        gap: 12px;
    }

    .player-match-team strong {
        font-size: 12px;
    }

}


@media (max-width: 500px) {

    .player-match-teams {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .player-match-vs {
        order: 2;
         justify-content: center;
        text-align: center;
    }

    .player-match-team:last-child {
        order: 3;
    }

}

/* =========================================================
   PLAY READY HQ — PLAYER MESSAGES
   ========================================================= */


/* =========================================================
   MESSAGE SUMMARY
========================================================= */

.player-message-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}


/* =========================================================
   PAGE NOTICES
========================================================= */

.player-messages-notice,
.player-message-form-notice {
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.5;
}

.player-messages-notice.error,
.player-message-form-notice.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.player-messages-notice.success,
.player-message-form-notice.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}


/* =========================================================
   MAIN MESSAGES PANEL
========================================================= */

.player-messages-panel {
    margin-bottom: 24px;
    overflow: hidden;
}

.player-messages-inbox-header {
    margin-bottom: 18px;
}

.player-messages-inbox-header .panel-header {
    margin-bottom: 0;
}

.player-messages-total {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   MESSAGE TOOLBAR
========================================================= */

.player-messages-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f7;
}

.player-message-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.player-message-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.player-message-filter:hover {
    background: #f8fafc;
    color: #0b132b;
}

.player-message-filter.active {
    border-color: #dbe3ee;
    background: #f8fafc;
    color: #0b132b;
}

.player-message-filter span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 9px;
}

.player-messages-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 230px;
    height: 36px;
    flex-shrink: 0;
    padding: 0 11px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
}

.player-messages-search span {
    color: #94a3b8;
    font-size: 15px;
}

.player-messages-search input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #0b132b;
    font-family: inherit;
    font-size: 11px;
}

.player-messages-search input::placeholder {
    color: #94a3b8;
}


/* =========================================================
   INBOX AND DETAIL LAYOUT
========================================================= */

.player-messages-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
}

.player-messages-layout.message-open {
    grid-template-columns: minmax(0, 1fr);
}

.player-message-list-panel {
    min-width: 0;
}

.player-message-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


/* =========================================================
   MESSAGE CARDS
========================================================= */

.player-message-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 19px 12px;
    border: none;
    border-top: 1px solid #eef2f7;
    border-radius: 0;
    background: #ffffff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-message-card:first-child {
    border-top: none;
}

.player-message-card:hover {
    background: #f8fafc;
}

.player-message-card.unread {
    background: #fbfdff;
}

.player-message-card.selected {
    background: #eff6ff;
}

.player-message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #0b132b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.player-message-avatar.announcement-player-avatar {
    background: #eff6ff;
    color: #2563eb;
    font-size: 19px;
}

.player-message-content {
    min-width: 0;
}

.player-message-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.player-message-top > div {
    min-width: 0;
}

.player-message-top strong {
    display: block;
    margin-bottom: 3px;
    color: #0b132b;
    font-size: 13px;
    font-weight: 750;
}

.player-message-top > div > span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
}

.player-message-time {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 10px;
}

.player-message-subject {
    margin-top: 7px;
    color: #0b132b;
    font-size: 12px;
    font-weight: 700;
}

.player-message-content > p {
    margin: 8px 0 11px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.player-message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-message-context,
.player-message-type {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
}

.player-message-context.announcement {
    background: #eff6ff;
    color: #2563eb;
}

.player-message-context.training {
    background: #eff6ff;
    color: #2563eb;
}

.player-message-context.match {
    background: #f0fdf4;
    color: #15803d;
}

.player-message-context.general {
    background: #f1f5f9;
    color: #64748b;
}

.player-message-type {
    background: #f8fafc;
    color: #64748b;
}

.player-message-unread-dot {
    position: absolute;
    top: 25px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
}


/* =========================================================
   MESSAGE LIST STATES
========================================================= */

.player-message-list-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 30px 20px;
    text-align: center;
}

.player-message-list-state h3 {
    margin: 0 0 7px;
    color: #0b132b;
    font-size: 14px;
}

.player-message-list-state p {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   MESSAGE LIST FOOTER
========================================================= */

.player-message-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 4px;
    padding-top: 17px;
    border-top: 1px solid #eef2f7;
}

.player-message-list-footer span {
    color: #94a3b8;
    font-size: 11px;
}

.player-message-list-footer button {
    border: none;
    background: transparent;
    color: #2563eb;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   MESSAGE DETAIL
========================================================= */

.player-message-detail {
    min-width: 0;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.player-message-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 30px 20px;
    text-align: center;
}

.player-message-detail-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    border-radius: 15px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 21px;
}

.player-message-detail-empty h3 {
    margin: 0 0 7px;
    color: #0b132b;
    font-size: 15px;
}

.player-message-detail-empty p {
    max-width: 300px;
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}

.player-message-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

.player-message-back-button,
.player-message-mark-unread {
    padding: 7px 0;
    border: none;
    background: transparent;
    color: #2563eb;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.player-message-mark-unread {
    color: #64748b;
}

.player-message-mark-unread:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.player-message-detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f7;
}

.player-message-detail-header h2 {
    margin: 12px 0;
    color: #0b132b;
    font-size: 20px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.player-message-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 10px;
}

.player-message-detail-meta span:first-child {
    color: #475569;
    font-weight: 700;
}

.player-message-detail-body {
    padding: 22px 0;
}

.player-message-detail-body p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================================
   CONVERSATION
========================================================= */

.player-message-conversation {
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.player-message-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.player-message-conversation-header h3 {
    margin: 0;
    color: #0b132b;
    font-size: 14px;
}

.player-message-conversation-header span {
    color: #94a3b8;
    font-size: 10px;
}

.player-message-conversation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-message-reply-item {
    padding: 15px;
    border: 1px solid #eef2f7;
    border-radius: 9px;
    background: #ffffff;
}

.player-message-reply-item.own {
    border-color: #dbeafe;
    background: #f8fbff;
}

.player-message-reply-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.player-message-reply-item-header strong {
    color: #0b132b;
    font-size: 11px;
}

.player-message-reply-item-header span {
    color: #94a3b8;
    font-size: 9px;
}

.player-message-reply-item p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


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

.player-message-reply-form {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.player-message-reply-form label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.player-message-reply-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 95px;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #0b132b;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
    resize: vertical;
}

.player-message-reply-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.player-message-reply-form textarea::placeholder {
    color: #94a3b8;
}

.player-message-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 12px;
}

.player-message-reply-footer > span {
    color: #94a3b8;
    font-size: 10px;
}


/* =========================================================
   SEND MESSAGE PANEL
========================================================= */

.player-send-message-panel {
    margin-bottom: 24px;
}

.player-message-form {
    margin-top: 5px;
}

.player-message-form label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.player-message-recipient,
.player-message-subject,
.player-message-body-field {
    margin-bottom: 17px;
}

.player-message-recipient select,
.player-message-subject input,
.player-message-body-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #0b132b;
    font-family: inherit;
    font-size: 12px;
    transition: 0.2s ease;
}

.player-message-recipient select,
.player-message-subject input {
    height: 42px;
    padding: 0 12px;
}

.player-message-body-field textarea {
    min-height: 125px;
    padding: 12px;
    resize: vertical;
    line-height: 1.6;
}

.player-message-recipient select:focus,
.player-message-subject input:focus,
.player-message-body-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.player-message-recipient select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.player-message-subject input::placeholder,
.player-message-body-field textarea::placeholder {
    color: #94a3b8;
}

.player-message-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 4px;
}

.player-message-form-footer p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}

.player-message-form button:disabled,
.player-message-reply-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================================
   COMMUNICATION NOTE
========================================================= */

.player-messages-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.player-messages-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.player-messages-note strong {
    display: block;
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 12px;
}

.player-messages-note p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.player-message-actions-panel {
    margin-bottom: 24px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .player-message-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 800px) {

    .player-messages-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-messages-search {
        width: 100%;
        box-sizing: border-box;
    }

    .player-message-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 700px) {

    .player-message-summary-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .player-message-top {
        flex-direction: column;
        gap: 6px;
    }

    .player-message-time {
        flex-shrink: 1;
    }

    .player-message-unread-dot {
        right: 4px;
    }

    .player-message-detail-header h2 {
        font-size: 17px;
    }

    .player-message-reply-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 500px) {

    .player-message-filters {
        width: 100%;
        gap: 5px;
    }

    .player-message-filter {
        flex: 1 1 auto;
        padding: 0 9px;
        font-size: 10px;
    }

    .player-message-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 16px 7px;
    }

    .player-message-avatar {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .player-message-detail-toolbar {
        align-items: flex-start;
    }

    .player-message-list-footer {
        align-items: flex-start;
    }

    .player-message-form-footer .dashboard-action,
    .player-message-reply-footer .dashboard-action {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
   PLAYER SETTINGS
   ========================================================= */

.player-settings-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef2f7;
}

.player-settings-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #0b132b;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.player-settings-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.player-settings-profile-info strong {
    color: #0b132b;
    font-size: 17px;
    font-weight: 700;
}

.player-settings-profile-info span {
    margin-top: 4px;
    margin-bottom: 11px;
    color: #64748b;
    font-size: 11px;
}

.player-settings-profile-info .settings-secondary-button {
    margin-top: 0;
}

.player-settings-info-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
}

.player-settings-info-box .settings-info-icon {
    flex-shrink: 0;
}

.player-settings-info-box strong {
    display: block;
    margin-bottom: 4px;
    color: #0b132b;
    font-size: 11px;
}

.player-settings-info-box p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

.player-settings-signout-row {
    border-bottom: none;
}


/* =========================================================
   PLAYER SETTINGS RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .player-settings-profile-header {
        align-items: flex-start;
    }

    .player-settings-avatar {
        width: 60px;
        height: 60px;
    }

    .player-settings-profile-info strong {
        font-size: 15px;
    }

}

@media (max-width: 500px) {

    .player-settings-profile-header {
        flex-direction: column;
    }

    .player-settings-profile-info {
        width: 100%;
    }

}

/* =========================================================
   ADD PLAYER PAGE
========================================================= */

/* Form sections */

.form-section {
    padding: 28px 0;
    border-bottom: 1px solid #E2E8F0;
}

.form-section:first-child {
    padding-top: 0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-heading {
    margin-bottom: 22px;
}

.form-section-heading h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.form-section-heading p {
    margin: 0;
    font-size: 14px;
    color: #64748B;
}


/* Form grid */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


/* Form groups */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.form-group label span {
    color: #EF4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--primary);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

.form-group small {
    font-size: 12px;
    line-height: 1.5;
    color: #64748B;
}


/* File input */

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #E2E8F0;
    color: var(--primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}


/* Current team card */

.form-team-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
}

.form-team-card .team-logo-placeholder {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.form-team-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-team-card strong {
    font-size: 15px;
    color: var(--primary);
}

.form-team-card span {
    font-size: 13px;
    color: #64748B;
}


/* Player ID information */

.player-id-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
}

.player-id-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(163, 230, 53, 0.18);
    color: #365314;
    font-size: 13px;
    font-weight: 800;
}

.player-id-info > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-id-info strong {
    font-size: 14px;
    color: var(--primary);
}

.player-id-info span {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
}

.form-info-text {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748B;
}


/* Account information box */

.form-info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    background: #EFF6FF;
}

.form-info-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #DBEAFE;
    color: #2563EB;
    font-weight: 700;
}

.form-info-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--primary);
}

.form-info-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}


/* Form actions */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 28px;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.secondary-action:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
    color: var(--primary);
}


/* Add player button */

.form-actions .dashboard-action {
    min-height: 44px;
    border: none;
    cursor: pointer;
}


/* =========================================================
   ADD PLAYER RESPONSIVE
========================================================= */

@media (max-width: 768px) {

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

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .dashboard-action,
    .secondary-action {
        width: 100%;
        box-sizing: border-box;
    }

}

/* =========================================================
   PLAYER HELP & FEEDBACK
========================================================= */

.player-help-search-panel {
    margin-bottom: 24px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(37, 99, 235, 0.10),
            transparent 35%
        ),
        var(--white);
}

.player-help-search-content {
    max-width: 760px;
    padding: 34px;
}

.player-help-eyebrow,
.player-help-section-eyebrow {
    margin: 0 0 8px;
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.player-help-search-content h2 {
    margin-bottom: 8px;
    font-size: 1.7rem;
    letter-spacing: -0.035em;
}

.player-help-search-content > p:not(.player-help-eyebrow) {
    max-width: 620px;
    margin-bottom: 22px;
    color: var(--muted);
    line-height: 1.6;
}

.player-help-search {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 50px;
    padding: 5px 6px 5px 15px;

    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
}

.player-help-search > span {
    color: var(--muted);
    font-size: 1.15rem;
}

.player-help-search input {
    flex: 1;
    min-width: 0;

    border: none;
    outline: none;
    background: transparent;

    color: var(--text);
    font-size: 0.85rem;
}

.player-help-search input::placeholder {
    color: #94A3B8;
}

.player-help-search button {
    min-height: 38px;
    padding: 0 17px;

    border: none;
    border-radius: 7px;

    background: var(--secondary);
    color: var(--white);

    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   HELP CATEGORIES
========================================================= */

.player-help-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.player-help-category-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;

    min-height: 130px;
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--white);
    color: inherit;
    text-decoration: none;

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

.player-help-category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-md);
}

.player-help-category-icon {
    width: 38px;
    height: 38px;

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

    flex-shrink: 0;

    border-radius: 9px;

    font-size: 0.9rem;
    font-weight: 800;
}

.player-help-category-icon.blue {
    background: rgba(37, 99, 235, 0.10);
    color: var(--secondary);
}

.player-help-category-icon.green {
    background: rgba(34, 197, 94, 0.10);
    color: #16A34A;
}

.player-help-category-icon.amber {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}

.player-help-category-icon.purple {
    background: rgba(139, 92, 246, 0.10);
    color: #7C3AED;
}

.player-help-category-card strong {
    display: block;
    margin-bottom: 5px;

    color: var(--text);
    font-size: 0.82rem;
}

.player-help-category-card p {
    margin: 0;

    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.5;
}

.player-help-category-card > span {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
}


/* =========================================================
   HELP MAIN GRID
========================================================= */

.player-help-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 24px;
    margin-bottom: 24px;
}

.player-help-faq,
.player-help-contact {
    min-width: 0;
}

.player-help-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 25px 25px 20px;
}

.player-help-section-header h2 {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.player-help-section-header > div > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.player-help-view-all {
    flex-shrink: 0;

    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.player-help-question-list {
    padding: 0 25px 20px;
}

.player-help-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 0;

    border-top: 1px solid var(--border);

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

    font-size: 0.78rem;
    font-weight: 600;
}

.player-help-question:hover {
    color: var(--secondary);
}

.player-help-question strong {
    color: var(--secondary);
    font-size: 0.95rem;
}


/* =========================================================
   CONTACT SUPPORT
========================================================= */

.player-help-contact-body {
    padding: 0 25px 25px;
}

.player-help-support-status {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 14px;

    border-radius: 9px;
    background: #F8FAFC;
}

.player-help-support-status > span {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;
    background: #22C55E;
}

.player-help-support-status strong {
    display: block;
    margin-bottom: 3px;

    color: var(--text);
    font-size: 0.75rem;
}

.player-help-support-status p {
    margin: 0;

    color: var(--muted);
    font-size: 0.65rem;
}

.player-help-contact-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 15px;
}

.player-help-contact-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: inherit;
    text-decoration: none;

    transition: 0.2s ease;
}

.player-help-contact-option:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: #F8FAFC;
}

.player-help-contact-icon {
    width: 32px;
    height: 32px;

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

    flex-shrink: 0;

    border-radius: 7px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--secondary);

    font-size: 0.75rem;
    font-weight: 800;
}

.player-help-contact-option strong {
    display: block;
    margin-bottom: 3px;

    color: var(--text);
    font-size: 0.72rem;
}

.player-help-contact-option span {
    color: var(--secondary);
    font-size: 0.63rem;
    font-weight: 700;
}


/* =========================================================
   FEEDBACK
========================================================= */

.player-feedback-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 24px;
    padding: 25px;
}

.player-feedback-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.player-feedback-icon {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    border-radius: 10px;
    background: rgba(163, 230, 53, 0.15);
    color: #65A30D;

    font-size: 1rem;
}

.player-feedback-content h2 {
    margin-bottom: 5px;

    color: var(--text);
    font-size: 1.05rem;
}

.player-feedback-content > div > p:last-child {
    max-width: 650px;
    margin: 0;

    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.55;
}


/* =========================================================
   APP INFORMATION
========================================================= */

.player-help-app-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
    padding: 18px 22px;
}

.player-help-app-info > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-help-app-info span {
    color: var(--secondary);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.player-help-app-info strong {
    color: var(--text);
    font-size: 0.72rem;
}

.player-help-version {
    color: var(--muted);
    font-size: 0.65rem;
}


/* =========================================================
   PLAYER HELP RESPONSIVE
========================================================= */

@media (max-width: 1150px) {

    .player-help-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .player-help-main-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .player-help-search-content {
        padding: 24px;
    }

    .player-help-search {
        align-items: stretch;
        flex-wrap: wrap;
        padding: 10px;
    }

    .player-help-search > span {
        display: none;
    }

    .player-help-search input {
        width: 100%;
        flex-basis: 100%;
        min-height: 38px;
    }

    .player-help-search button {
        width: 100%;
    }

    .player-help-category-grid {
        grid-template-columns: 1fr;
    }

    .player-help-section-header {
        flex-direction: column;
        padding: 22px 20px 17px;
    }

    .player-help-question-list {
        padding: 0 20px 18px;
    }

    .player-help-contact-body {
        padding: 0 20px 20px;
    }

    .player-feedback-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .player-feedback-panel .dashboard-action {
        width: 100%;
    }

    .player-help-app-info {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .player-help-category-card {
        grid-template-columns: auto 1fr;
    }

    .player-help-category-card > span {
        display: none;
    }

    .player-feedback-content {
        gap: 11px;
    }

}

/* =========================================================
   ADMIN MESSAGES - COMPOSER
========================================================= */

.message-composer-panel {
    display: none;
    margin-bottom: 24px;
    padding: 30px;
}

.message-composer-panel.open {
    display: block;
}

.message-composer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.message-composer-header h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.message-composer-header h2 span {
    color: var(--secondary);
}

.message-composer-header p:last-child {
    margin: 0;
    color: var(--muted);
}

.message-composer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.message-composer-close:hover {
    background: var(--background);
    color: var(--primary);
}

.composer-section {
    margin-bottom: 24px;
}

.composer-label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.message-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.message-type-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.message-type-option:hover {
    border-color: var(--secondary);
}

.message-type-option.active {
    border-color: var(--secondary);
    background: rgba(37, 99, 235, 0.04);
}

.message-type-option input {
    accent-color: var(--secondary);
}

.message-type-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-type-content strong {
    color: var(--primary);
    font-size: 0.92rem;
}

.message-type-content small {
    color: var(--muted);
    font-size: 0.78rem;
}

.composer-select,
.composer-input,
.composer-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary);
    font: inherit;
    outline: none;
    transition: 0.2s ease;
}

.composer-select,
.composer-input {
    min-height: 48px;
    padding: 0 14px;
}

.composer-textarea {
    min-height: 140px;
    padding: 14px;
    resize: vertical;
}

.composer-select:focus,
.composer-input:focus,
.composer-textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.selected-players-section,
.individual-player-section {
    display: none;
}

.selected-players-section.visible,
.individual-player-section.visible {
    display: block;
}

.player-selection-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.player-selection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.player-selection-item:hover {
    border-color: var(--secondary);
}

.player-selection-item input {
    accent-color: var(--secondary);
}

.selection-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
}

.selection-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selection-player-info strong {
    color: var(--primary);
    font-size: 0.82rem;
}

.selection-player-info small {
    color: var(--muted);
    font-size: 0.72rem;
}

.message-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.announcement-message .message-avatar {
    background: rgba(163, 230, 53, 0.15);
    color: #4D7C0F;
}

.message-context.announcement {
    background: rgba(163, 230, 53, 0.15);
    color: #4D7C0F;
}


/* =========================================================
   ADMIN MESSAGES - RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .message-type-options {
        grid-template-columns: 1fr;
    }

    .player-selection-list {
        grid-template-columns: 1fr;
    }

    .message-composer-panel {
        padding: 22px;
    }

}


@media (max-width: 600px) {

    .message-composer-header {
        gap: 12px;
    }

    .message-composer-header h2 {
        font-size: 1.4rem;
    }

    .message-composer-actions {
        flex-direction: column-reverse;
    }

    .message-composer-actions .btn {
        width: 100%;
    }

}

/* =========================================================
   PLAYER MESSAGES - ANNOUNCEMENTS
========================================================= */

.player-announcement-card {
    border-left: 3px solid var(--accent);
}

.announcement-player-avatar {
    background: rgba(163, 230, 53, 0.16);
    color: #4D7C0F;
}

.player-message-context.announcement {
    background: rgba(163, 230, 53, 0.16);
    color: #4D7C0F;
}


/* =========================================================
   PLAYER MESSAGES - RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .player-message-filters {
        flex-wrap: wrap;
    }

}

@media (max-width: 600px) {

    .player-message-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .player-message-form-footer .dashboard-action {
        width: 100%;
    }

}

/* =========================================================
   SQUADS PAGE
   ========================================================= */


/* ---------------------------------------------------------
   PAGE HEADING ACTIONS
   --------------------------------------------------------- */

.dashboard-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-action.secondary {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #dbe2ea;
}

.dashboard-action.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* ---------------------------------------------------------
   SQUAD GRID
   --------------------------------------------------------- */

.squad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/* ---------------------------------------------------------
   SQUAD CARD
   --------------------------------------------------------- */

.squad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    min-width: 0;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.squad-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}


/* ---------------------------------------------------------
   SQUAD CARD TOP
   --------------------------------------------------------- */

.squad-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.squad-badge {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   SQUAD CARD ACTIONS
   --------------------------------------------------------- */

.squad-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.squad-icon-button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.squad-icon-button:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: #cbd5e1;
}

.squad-icon-button.danger:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}


/* ---------------------------------------------------------
   SQUAD CARD CONTENT
   --------------------------------------------------------- */

.squad-card-content {
    margin-top: 20px;
}

.squad-card-content h3 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

.squad-card-content p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   SQUAD CARD STATS
   --------------------------------------------------------- */

.squad-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.squad-card-stats > div {
    padding: 13px;
    border-radius: 10px;
    background: #f8fafc;
}

.squad-card-stats strong {
    display: block;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.squad-card-stats span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}


/* ---------------------------------------------------------
   SQUAD CARD LINK
   --------------------------------------------------------- */

.squad-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.squad-card-link:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   ADD SQUAD CARD
   --------------------------------------------------------- */

.squad-card-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    text-align: center;
    border-style: dashed;
    background: #fafcff;
}

.squad-card-add:hover {
    border-color: #cbd5e1;
}

.squad-add-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--secondary);
    font-size: 28px;
    font-weight: 500;
}

.squad-card-add h3 {
    margin: 0;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

.squad-card-add p {
    max-width: 220px;
    margin: 8px 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   SQUAD INFORMATION
   --------------------------------------------------------- */

.squad-info-panel {
    margin-top: 24px;
}

.squad-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.squad-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.squad-info-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f1f5f9;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
}

.squad-info-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.squad-info-card p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   RESPONSIVE — MOBILE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .dashboard-heading-actions {
        width: 100%;
    }

    .dashboard-heading-actions .dashboard-action {
        flex: 1;
        justify-content: center;
    }

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

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

}


@media (max-width: 520px) {

    .dashboard-heading-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-heading-actions .dashboard-action {
        width: 80%;
    }

    .squad-card {
        padding: 18px;
    }

}

/* =========================================================
   ADD SQUAD PAGE
   ========================================================= */

.add-squad-panel {
    max-width: 900px;
}


/* ---------------------------------------------------------
   ADD SQUAD FORM
   --------------------------------------------------------- */

.add-squad-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 8px;
}


/* ---------------------------------------------------------
   FORM GROUP
   --------------------------------------------------------- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group > label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input[type="text"] {
    height: 48px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-help {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.optional {
    margin-left: 5px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}


/* ---------------------------------------------------------
   SQUAD STATUS CHOICES
   --------------------------------------------------------- */

.form-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.form-choice:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.form-choice input[type="radio"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.form-choice-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-choice-content strong {
    color: var(--primary);
    font-size: 14px;
}

.form-choice-content small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   INFORMATION BOX
   --------------------------------------------------------- */

.form-information {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.form-information-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 800;
}

.form-information strong {
    display: block;
    color: var(--primary);
    font-size: 13px;
}

.form-information p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   FORM ACTIONS
   --------------------------------------------------------- */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid #eef2f7;
}

.form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    padding: 0 18px;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
    margin-right: 10px;
}

.form-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .form-choice-group {
        grid-template-columns: 1fr;
    }

    .form-actions .dashboard-action,
    .form-actions .form-cancel {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

}

/* =========================================================
   TRAINING PAGE UPDATES
   ========================================================= */


/* ---------------------------------------------------------
   TRAINING SESSION ACTIONS
   --------------------------------------------------------- */

.training-session-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.training-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 8px;
    padding: 0 16px;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    background: #ffffff;
    color: var(--primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.training-secondary-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* ---------------------------------------------------------
   TRAINING DETAIL — SQUAD
   --------------------------------------------------------- */

.training-detail-icon {
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   PLAYER DETAILS
   --------------------------------------------------------- */

.training-player-details span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}


/* ---------------------------------------------------------
   UPCOMING TRAINING SQUAD
   --------------------------------------------------------- */

.upcoming-training-info small {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   RESPONSIVE TRAINING ACTIONS
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .training-session-actions {
        width: 100%;
    }

    .training-session-actions .dashboard-action,
    .training-session-actions .training-secondary-button {
        flex: 1;
    }

}

/* =========================================================
   ADD TRAINING PAGE
   ========================================================= */

.add-training-panel {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.add-training-form {
    width: 100%;
}

.add-training-section {
    padding: 28px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.add-training-section-header {
    margin-bottom: 24px;
}

.add-training-section-header h2 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.add-training-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.add-training-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.add-training-form .form-group {
    display: flex;
    flex-direction: column;
}

.add-training-form .form-group label {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.add-training-form .form-group input,
.add-training-form .form-group select,
.add-training-form .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: var(--primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.add-training-form .form-group input,
.add-training-form .form-group select {
    min-height: 46px;
}

.add-training-form .form-group textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.6;
}

.add-training-form .form-group input:focus,
.add-training-form .form-group select:focus,
.add-training-form .form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.add-training-form .form-group input::placeholder,
.add-training-form .form-group textarea::placeholder {
    color: #94a3b8;
}

.add-training-form .form-help {
    margin-top: 7px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.add-training-form .optional {
    margin-left: 5px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.add-training-form .form-information {
    margin: 24px 30px;
}

.add-training-form .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 30px;
    background: #f8fafc;
}

.add-training-form .form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.add-training-form .form-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* =========================================================
   ADD TRAINING RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .add-training-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .add-training-section {
        padding: 24px 20px;
    }

    .add-training-form .form-information {
        margin: 20px;
    }

    .add-training-form .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 20px;
    }

    .add-training-form .form-actions .dashboard-action,
    .add-training-form .form-actions .form-cancel {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   MANAGE MATCH PAGE
   ========================================================= */

.manage-match-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.manage-match-overview {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.manage-match-overview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}

.manage-match-label {
    margin: 0 0 8px;
    color: #64748B;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.manage-match-overview h2 {
    margin: 0;
    color: #0B132B;
    font-size: 25px;
    line-height: 1.3;
}

.manage-match-overview h2 span {
    color: #94A3B8;
    font-weight: 500;
}

.manage-match-date {
    margin: 8px 0 0;
    color: #64748B;
    font-size: 14px;
}

.manage-match-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #15803D;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.manage-match-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 24px;
}

.manage-match-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.manage-match-detail span {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
}

.manage-match-detail strong {
    color: #0B132B;
    font-size: 14px;
}


/* Main Sections */

.manage-match-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.manage-match-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.manage-match-section-header h2 {
    margin: 4px 0 6px;
    color: #0B132B;
    font-size: 20px;
}

.manage-match-section-header p:not(.dashboard-eyebrow) {
    margin: 0;
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
}

.manage-match-link {
    color: #2563EB;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.manage-match-link:hover {
    text-decoration: underline;
}


/* Availability */

.match-availability-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.match-availability-card {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.match-availability-number {
    display: block;
    margin-bottom: 4px;
    color: #0B132B;
    font-size: 26px;
    font-weight: 800;
}

.match-availability-label {
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
}

.match-availability-card.available {
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.match-availability-card.available .match-availability-number {
    color: #15803D;
}

.match-availability-card.unavailable {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.match-availability-card.no-response {
    border-color: #FED7AA;
    background: #FFF7ED;
}

.match-availability-card.no-response .match-availability-number {
    color: #C2410C;
}


/* Note */

.manage-match-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.manage-match-note strong {
    display: block;
    margin-bottom: 4px;
    color: #0B132B;
    font-size: 13px;
}

.manage-match-note p {
    margin: 0;
    color: #64748B;
    font-size: 13px;
    line-height: 1.6;
}


/* Squad Summary */

.match-squad-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.match-squad-stat {
    padding: 18px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
}

.match-squad-stat span {
    display: block;
    margin-bottom: 5px;
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
}

.match-squad-stat strong {
    color: #0B132B;
    font-size: 24px;
}


/* Squad Preview */

.match-squad-preview {
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
}

.match-squad-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.match-squad-preview-header strong {
    color: #0B132B;
    font-size: 14px;
}

.match-squad-preview-header span {
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
}

.match-squad-player-list {
    display: flex;
    flex-direction: column;
}

.match-squad-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid #E2E8F0;
}

.match-squad-player:last-child {
    border-bottom: none;
}

.match-squad-player-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0B132B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
}

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

.match-squad-player-info strong {
    display: block;
    color: #0B132B;
    font-size: 14px;
}

.match-squad-player-info span {
    display: block;
    margin-top: 3px;
    color: #64748B;
    font-size: 12px;
}

.match-squad-selected {
    color: #15803D;
    font-size: 12px;
    font-weight: 800;
}

.match-squad-view-all {
    display: block;
    padding: 15px 18px;
    background: #F8FAFC;
    color: #2563EB;
    border-top: 1px solid #E2E8F0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.match-squad-view-all:hover {
    background: #F1F5F9;
}


/* Match Notes */

.match-notes-display {
    padding: 18px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.match-notes-display p {
    margin: 0 0 10px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.match-notes-display p:last-child {
    margin-bottom: 0;
}


/* Bottom Action */

.manage-match-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 20px;
    border: 1px solid #D9F99D;
    border-radius: 18px;
    background: #F7FEE7;
}

.manage-match-actions h2 {
    margin: 0 0 5px;
    color: #0B132B;
    font-size: 18px;
}

.manage-match-actions p {
    margin: 0;
    color: #64748B;
    font-size: 13px;
    line-height: 1.5;
}


/* Responsive */

@media (max-width: 900px) {

    .manage-match-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .manage-match-header-actions {
        width: 100%;
    }

    .manage-match-header-actions .form-cancel,
    .manage-match-header-actions .dashboard-action {
        flex: 1;
        text-align: center;
    }

    .manage-match-overview-header {
        flex-direction: column;
    }

    .manage-match-section-header {
        flex-direction: column;
    }

    .match-availability-summary,
    .match-squad-summary {
        grid-template-columns: 1fr;
    }

    .manage-match-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-match-actions .dashboard-action {
        text-align: center;
    }

}

@media (max-width: 520px) {

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

    .manage-match-overview,
    .manage-match-section {
        padding: 20px;
    }

    .manage-match-overview h2 {
        font-size: 21px;
    }

    .manage-match-player {
        padding: 14px;
    }

}

/* Center text inside dashboard action buttons */
.dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =========================================================
   MATCH SQUAD BUILDER
========================================================= */

.match-squad-match-card {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 28px;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.match-squad-match-main {
    min-width: 0;
}

.match-squad-match-type {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
}

.match-squad-match-main h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    color: #0B132B;
}

.match-squad-match-main h2 span {
    margin: 0 5px;
    color: #94a3b8;
}

.match-squad-match-main p {
    margin: 8px 0 0;
    color: #64748b;
}

.match-squad-match-details {
    display: flex;
    gap: 36px;
    align-items: center;
}

.match-squad-match-details div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.match-squad-match-details span {
    font-size: 12px;
    color: #64748b;
}

.match-squad-match-details strong {
    font-size: 14px;
    color: #0B132B;
}


/* INFORMATION PANEL */

.match-squad-info-panel {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.match-squad-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0B132B;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.match-squad-info-panel strong {
    display: block;
    margin-bottom: 5px;
    color: #0B132B;
}

.match-squad-info-panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}


/* BUILDER */

.match-squad-builder {
    padding: 28px;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.match-squad-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.match-squad-builder-header .dashboard-eyebrow {
    margin-bottom: 7px;
}

.match-squad-builder-header h2 {
    margin: 0;
    color: #0B132B;
    font-size: 24px;
}

.match-squad-builder-header h2 span {
    color: #2563EB;
}

.match-squad-builder-header p {
    margin: 7px 0 0;
    color: #64748b;
}


/* PROGRESS */

.match-squad-progress {
    min-width: 100px;
    padding: 14px 18px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.match-squad-progress strong {
    display: block;
    font-size: 22px;
    color: #0B132B;
}

.match-squad-progress span {
    font-size: 12px;
    color: #64748b;
}


/* SEARCH */

.match-squad-search {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.match-squad-search label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0B132B;
}

.match-squad-search-box {
    position: relative;
}

.match-squad-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 20px;
}

.match-squad-search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px 0 45px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0B132B;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.match-squad-search-box input:focus {
    border-color: #2563EB;
}


/* SLOTS */

.match-squad-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-squad-slot {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 84px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.match-squad-slot.is-locked {
    background: #f8fafc;
    border-color: #dbe4ee;
}

.match-squad-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    font-size: 24px;
    font-weight: 800;
    color: #0B132B;
}

.match-squad-number span {
    margin-right: 1px;
    font-size: 13px;
    color: #64748b;
}

.match-squad-slot-content {
    flex: 1;
    min-width: 0;
}

.match-squad-slot-label {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}


/* SELECTED PLAYER */

.match-squad-selected-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-squad-player-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0B132B;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.match-squad-player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.match-squad-player-info strong {
    color: #0B132B;
    font-size: 14px;
}

.match-squad-player-info span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}


/* PLAYER PICKER */

.match-squad-player-picker {
    position: relative;
}

.match-squad-picker-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
}

.match-squad-player-picker input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #0B132B;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.match-squad-player-picker input:focus {
    border-color: #2563EB;
}


/* LOCK STATE */

.match-squad-slot-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 125px;
}

.match-squad-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 6px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.match-squad-unlocked {
    color: #94a3b8;
    font-size: 12px;
}

.match-squad-unlock {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.match-squad-unlock:hover {
    border-color: #94a3b8;
    color: #0B132B;
}


/* RESERVES */

.match-squad-reserves-section {
    margin-top: 24px;
}

.match-squad-reserve-start {
    min-width: 120px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}

.match-squad-reserve-start span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
}

.match-squad-reserve-start strong {
    color: #0B132B;
    font-size: 22px;
}

.reserve-slot {
    background: #f8fafc;
}


/* ADD RESERVE */

.match-squad-add-reserve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    border: 1px dashed #94a3b8;
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.match-squad-add-reserve span {
    font-size: 20px;
    line-height: 1;
}

.match-squad-add-reserve:hover {
    border-color: #2563EB;
    color: #2563EB;
}


/* MOBILE */

@media (max-width: 900px) {

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

    .match-squad-match-details {
        flex-wrap: wrap;
        gap: 20px;
    }

    .match-squad-slot {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .match-squad-slot-content {
        min-width: calc(100% - 70px);
    }

    .match-squad-slot-action {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding-left: 70px;
    }

}


@media (max-width: 600px) {

    .match-squad-builder {
        padding: 20px;
    }

    .match-squad-builder-header {
        flex-direction: column;
    }

    .match-squad-progress,
    .match-squad-reserve-start {
        align-self: flex-start;
    }

    .match-squad-slot {
        gap: 12px;
    }

    .match-squad-number {
        flex-basis: 42px;
        width: 42px;
    }

    .match-squad-slot-action {
        padding-left: 54px;
    }

}

/* =========================================================
   MATCH RESULTS PAGE
   ========================================================= */


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.results-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ---------------------------------------------------------
   MATCH SUMMARY CARD
   --------------------------------------------------------- */

.results-match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 30px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.results-match-main {
    min-width: 0;
}

.results-match-type {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
}

.results-match-main h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    color: #0f172a;
}

.results-match-main h2 span {
    margin: 0 8px;
    color: #94a3b8;
    font-weight: 500;
}

.results-match-date {
    margin: 8px 0 0;
    font-size: 14px;
    color: #64748b;
}

.results-match-meta {
    display: flex;
    gap: 36px;
    flex-shrink: 0;
}

.results-match-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.results-match-meta span {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-match-meta strong {
    font-size: 14px;
    color: #0f172a;
}


/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */

.results-section {
    margin-bottom: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.results-section-header {
    margin-bottom: 22px;
}

.results-section-header .dashboard-eyebrow {
    margin-bottom: 6px;
}

.results-section-header h2 {
    margin: 0;
    font-size: 21px;
    color: #0f172a;
}

.results-section-header p {
    margin: 7px 0 0;
    font-size: 14px;
    color: #64748b;
}


/* ---------------------------------------------------------
   SCORE CARD
   --------------------------------------------------------- */

.results-score-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding: 26px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.results-team-score {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.results-team-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #0b132b;
    color: #a3e635;
    font-size: 16px;
    font-weight: 800;
}

.results-opponent-logo {
    background: #e2e8f0;
    color: #334155;
}

.results-team-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.results-team-name span {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.results-team-name strong {
    font-size: 15px;
    color: #0f172a;
}

.results-score-input {
    width: 82px;
    height: 64px;
    padding: 8px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.results-score-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.results-score-divider {
    font-size: 24px;
    font-weight: 700;
    color: #94a3b8;
}


/* ---------------------------------------------------------
   RESULT OUTCOME
   --------------------------------------------------------- */

.results-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.results-outcome-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.results-outcome-option:hover {
    border-color: #94a3b8;
}

.results-outcome-option.selected {
    border-color: #a3e635;
    background: #f7fee7;
    box-shadow: 0 0 0 1px #a3e635;
}

.results-outcome-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.results-outcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 17px;
    font-weight: 800;
}

.results-outcome-option.selected .results-outcome-icon {
    background: #a3e635;
    color: #0b132b;
}

.results-outcome-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.results-outcome-content strong {
    font-size: 14px;
    color: #0f172a;
}

.results-outcome-content small {
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}


/* ---------------------------------------------------------
   RESULT FORM
   --------------------------------------------------------- */

.results-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.results-form-grid .form-group-full {
    grid-column: 1 / -1;
}

.results-form-grid textarea {
    width: 100%;
    resize: vertical;
}


/* ---------------------------------------------------------
   PLAYER STATISTICS TABLE
   --------------------------------------------------------- */

.results-stats-table {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.results-stats-header,
.results-stats-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.7fr) 100px 90px 90px 100px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.results-stats-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.results-stats-header span {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.results-stats-row {
    min-height: 76px;
    border-bottom: 1px solid #e2e8f0;
}

.results-stats-row:last-child {
    border-bottom: none;
}

.results-stat-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.results-stat-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #0b132b;
    color: #a3e635;
    font-size: 12px;
    font-weight: 800;
}

.results-stat-player > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.results-stat-player strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-stat-player span {
    font-size: 12px;
    color: #64748b;
}

.results-stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.results-stats-row input {
    width: 72px;
    height: 40px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    text-align: center;
    outline: none;
}

.results-stats-row input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* ---------------------------------------------------------
   STATISTICS NOTE
   --------------------------------------------------------- */

.results-stats-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.results-stats-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.results-stats-note p {
    margin: 1px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}


/* ---------------------------------------------------------
   BOTTOM ACTIONS
   --------------------------------------------------------- */

.results-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .results-match-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .results-match-meta {
        width: 100%;
    }

    .results-score-card {
        grid-template-columns: 1fr;
    }

    .results-score-divider {
        display: none;
    }

    .results-team-score {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .results-outcome-grid {
        grid-template-columns: 1fr;
    }

    .results-stats-table {
        overflow-x: auto;
    }

    .results-stats-header,
    .results-stats-row {
        min-width: 700px;
    }

}


@media (max-width: 700px) {

    .results-section {
        padding: 20px;
    }

    .results-match-card {
        padding: 22px;
    }

    .results-match-main h2 {
        font-size: 20px;
    }

    .results-match-main h2 span {
        display: block;
        margin: 3px 0;
    }

    .results-match-meta {
        flex-direction: column;
        gap: 16px;
    }

    .results-score-card {
        padding: 18px;
    }

    .results-team-score {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .results-score-input {
        grid-column: 1 / -1;
        width: 100%;
        height: 56px;
    }

    .results-form-grid {
        grid-template-columns: 1fr;
    }

    .results-form-grid .form-group-full {
        grid-column: auto;
    }

    .results-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .results-actions .dashboard-action,
    .results-actions .form-cancel {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

}

/* ---------------------------------------------------------
   SCOREBOARD LAYOUT
   --------------------------------------------------------- */

.results-score-card {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

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

.results-opponent-team {
    justify-content: flex-end;
    text-align: right;
}

.results-score-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}


/* ---------------------------------------------------------
   FINAL SCOREBOARD ALIGNMENT
   --------------------------------------------------------- */

.results-score-card {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.results-team-score {
    display: flex;
    align-items: center;
    gap: 16px;
}

.results-opponent-team .results-team-name {
    align-items: flex-end;
}

/* ---------------------------------------------------------
   SCOREBOARD RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .results-score-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-score-center {
        order: 2;
    }

    .results-opponent-team {
        order: 3;
        justify-content: flex-start;
        text-align: left;
    }

    .results-opponent-team .results-team-name {
        align-items: flex-start;
    }

}

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

.dashboard-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-page-header .dashboard-action {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 768px) {

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

    .dashboard-page-header .dashboard-action {
        margin-left: 0;
    }

}

/* New Message / Dashboard Footer Alignment */

.dashboard-footer {
    text-align: center;
}

/* =========================================================
   MATCH SQUAD - PLAYER & NUMBER BUILDER
========================================================= */

.match-squad-configuration {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.match-squad-config-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-squad-config-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.match-squad-config-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    outline: none;
}

.match-squad-config-field input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* PLAYER ROW */

.match-squad-player-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #FFFFFF;
}

.match-squad-player-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
}

.match-squad-player-row .match-squad-slot-content {
    min-width: 0;
}

.match-squad-player-row .match-squad-slot-label {
    margin-bottom: 8px;
}


/* PLAYER SEARCH */

.match-squad-player-picker {
    position: relative;
    display: flex;
    align-items: center;
}

.match-squad-picker-icon {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: #64748B;
    font-size: 18px;
    pointer-events: none;
}

.match-squad-player-picker input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--primary);
    font-size: 14px;
    outline: none;
}

.match-squad-player-picker input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.match-squad-player-picker input::placeholder {
    color: #94A3B8;
}


/* JERSEY NUMBER */

.match-squad-number-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-squad-number-field label {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
}

.match-squad-number-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.match-squad-number-field input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* SPACING BETWEEN GENERATED ROWS */

.match-squad-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* MOBILE */

@media (max-width: 768px) {

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

    .match-squad-player-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
    }

    .match-squad-number-field {
        grid-column: 2;
    }

    .match-squad-number-field input {
        text-align: left;
    }

}

@media (max-width: 520px) {

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

    .match-squad-player-order {
        width: 40px;
        height: 40px;
    }

    .match-squad-number-field {
        grid-column: auto;
    }

}

/* =========================================
   PLAYER AVAILABILITY TOGGLE
========================================= */

.availability-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.availability-toggle-row > span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.availability-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 52px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #CBD5E1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.availability-toggle.active {
    background: var(--accent);
}

.availability-toggle-track {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 999px;
}

.availability-toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.availability-toggle.active .availability-toggle-knob {
    transform: translateX(22px);
}

/* =========================================================
   SEND FEEDBACK PAGE
========================================================= */

.feedback-form-panel {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;
    padding: 32px;
}

.feedback-form-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.feedback-form-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feedback-form-header h2 {
    font-size: 1.25rem;
}

.feedback-form-header p {
    max-width: 650px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.6;
}

.feedback-form {
    max-width: 850px;
    padding-top: 28px;
}

.feedback-form-field {
    margin-bottom: 22px;
}

.feedback-form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
}

.feedback-form-field input,
.feedback-form-field select,
.feedback-form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.72rem;
    outline: none;
    transition: 0.2s ease;
}

.feedback-form-field input,
.feedback-form-field select {
    height: 44px;
    padding: 0 13px;
}

.feedback-form-field textarea {
    min-height: 170px;
    padding: 13px;
    resize: vertical;
    line-height: 1.5;
}

.feedback-form-field input::placeholder,
.feedback-form-field textarea::placeholder {
    color: #94A3B8;
}

.feedback-form-field input:focus,
.feedback-form-field select:focus,
.feedback-form-field textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.feedback-form-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.6rem;
}

.feedback-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.feedback-form-note {
    width: min(100%, var(--max-width));
    margin: 0 auto 24px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.feedback-note-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EFF6FF;
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
}

.feedback-form-note strong {
    display: block;
    font-size: 0.7rem;
}

.feedback-form-note p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.64rem;
    line-height: 1.5;
}

@media (max-width: 700px) {

    .feedback-form-panel {
        padding: 22px;
    }

    .feedback-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .feedback-form-actions .dashboard-action,
    .feedback-form-actions .matches-secondary-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

} 

.feedback-form-actions .matches-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   PLAY READY HQ — PLAYERS PAGE RESPONSIVE
   ========================================= */

/* Tablet and mobile */
@media (max-width: 700px) {

    /* Page spacing */
    .dashboard-main {
        padding: 20px 14px;
        min-width: 0;
        width: 100%;
    }

    .dashboard-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .dashboard-heading h1 {
        font-size: 20px;
    }

    .dashboard-heading-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dashboard-heading-actions a {
        flex: 1 1 140px;
        justify-content: center;
        text-align: center;
    }

    /* Overview cards */
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .overview-card {
        min-width: 0;
        padding: 15px;
    }

    .overview-card-top {
        gap: 8px;
    }

    .overview-card-top > span {
        font-size: 10px;
    }

    .overview-card > strong {
        font-size: 16px;
    }

    .overview-card > p {
        font-size: 12px;
    }

    /* Panel headings */
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 18px 16px;
    }

    .panel-header h2 {
        font-size: 15px;
    }

    /* Search and filters */
    .player-controls {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .player-search {
        width: 100%;
        min-width: 0;
    }

    .player-search input {
        width: 100%;
        min-width: 0;
    }

    .player-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
    }

    .player-filters select {
        width: 100%;
        min-width: 0;
    }

    /* Hide the desktop table headings */
    .players-table-header {
        display: none;
    }

    /* Each player becomes a compact card */
    #players-table-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    #players-table-body .players-table-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px 12px;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface, #ffffff);
        min-width: 0;
    }

    /* Player name spans the card width */
    #players-table-body .player-info {
        grid-column: 1 / -1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    #players-table-body .player-info strong {
        overflow-wrap: anywhere;
    }

    #players-table-body .player-info > div:last-child {
        min-width: 0;
    }

    #players-table-body .player-squad,
    #players-table-body .player-availability,
    #players-table-body .player-health,
    #players-table-body .player-staff-status {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 13px;
    }

    /* Add labels above each value */
    #players-table-body .player-squad::before {
        content: "Squad";
    }

    #players-table-body .player-availability::before {
        content: "Availability";
    }

    #players-table-body .player-health::before {
        content: "Health";
    }

    #players-table-body .player-staff-status::before {
        content: "Staff status";
    }

    #players-table-body .player-squad::before,
    #players-table-body .player-availability::before,
    #players-table-body .player-health::before,
    #players-table-body .player-staff-status::before {
        display: block;
        margin-bottom: 5px;
        color: var(--text-muted, #64748b);
        font-size: 11px;
        font-weight: 600;
    }

    #players-table-body .player-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    #players-table-body .player-actions button {
        width: 100%;
    }

    /* Loading and empty messages */
    #players-table-body .players-table-row > p {
        grid-column: 1 / -1;
        overflow-wrap: anywhere;
    }

    /* Pagination */
    .players-table-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .players-table-footer > span {
        font-size: 13px;
    }

    .player-pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .player-pagination button {
        min-width: 38px;
        min-height: 38px;
    }

    /* Status information */
    .status-info-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .status-info-card {
        min-width: 0;
    }

    /* Prevent long content from forcing horizontal overflow */
    .dashboard-panel {
        min-width: 0;
        max-width: 100%;
    }

    .players-table {
        min-width: 0;
        width: 100%;
    }

    .dashboard-footer {
        text-align: center;
        padding: 18px 10px;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {

    .dashboard-main {
        padding: 16px 10px;
    }

    .overview-grid {
        gap: 8px;
    }

    .overview-card {
        padding: 12px 10px;
    }

    #players-table-body .players-table-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    #players-table-body .player-info,
    #players-table-body .player-actions {
        grid-column: 1;
    }
}

/* =========================================
   ADMIN PLAYERS TABLE — COMPACT LAYOUT
========================================= */

.players-table-header {
    font-size: 0.76rem;
}

.players-table-row {
    font-size: 0.8rem;
}

.players-table-row .player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.players-table-row .player-avatar {
    flex-shrink: 0;
}

.players-table-row .player-info > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.players-table-row .player-info strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.players-table-row .player-info span {
    font-size: 0.7rem;
    line-height: 1.3;
}

.players-table-row .player-squad,
.players-table-row .player-availability,
.players-table-row .player-health,
.players-table-row .player-staff-status {
    font-size: 0.76rem;
}

.players-table-row .player-actions button {
    font-size: 0.76rem;
    padding: 7px 11px;
}

@media (max-width: 768px) {
    .players-table-header {
        font-size: 0.7rem;
    }

    .players-table-row .player-info strong {
        font-size: 0.78rem;
    }

    .players-table-row .player-squad,
    .players-table-row .player-availability,
    .players-table-row .player-health,
    .players-table-row .player-staff-status {
        font-size: 0.72rem;
    }
}

/* =========================================
   PLAYERS TABLE — COLOURED STATUS LABELS
========================================= */

.players-table-row .table-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.players-table-row .table-status > span {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
}

.players-table-row .player-status.healthy > span {
    background: var(--healthy);
}

.players-table-row .player-status.available > span {
    background: #263cc1;
}

.players-table-row .player-status.resting > span {
    background: var(--resting);
}

.players-table-row .player-status.injured > span,
.players-table-row .player-status.not-eligible > span {
    background: var(--injured);
}

.players-table-row .player-status.unavailable > span {
    background: var(--unavailable);
}

.players-table-row .player-status.eligible > span {
    background: #7C3AED;
}

/* SQUADS EMPTY STATE */

.squad-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 48px 20px;
}

.squad-empty-state h3 {
    margin: 0 0 10px;
    text-align: center;
}

.squad-empty-state p {
    margin: 0 0 22px;
    text-align: center;
}

.squad-empty-state .dashboard-action {
    align-self: center;
}


/* =========================================================
   EDIT SQUAD — PLAYER LIST (MATCH PLAYERS PAGE)
========================================================= */

.squad-players-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

.squad-players-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
}

.squad-players-table thead {
    background: #F8FAFC;
}

.squad-players-table thead tr,
.squad-players-table tbody tr {
    display: grid;
    grid-template-columns: 65px 1.5fr 1.2fr 130px 120px 140px;
    align-items: center;
    gap: 12px;
}

.squad-players-table thead th {
    padding: 16px 10px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.squad-players-table tbody tr {
    min-height: 72px;
    padding: 0 10px;
    border-bottom: 1px solid #F1F5F9;
}

.squad-players-table tbody tr:last-child {
    border-bottom: 0;
}

.squad-players-table tbody tr:hover {
    background: #F8FAFC;
}

.squad-players-table th:first-child,
.squad-players-table td:first-child {
    text-align: center;
}

.squad-players-table td {
    min-width: 0;
    padding: 12px 10px;
    color: var(--text);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.squad-players-table .squad-player-name {
    color: var(--primary);
    font-weight: 700;
}

.squad-players-table input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--healthy);
    cursor: pointer;
}

/* Status badges: text only, no dots */

.squad-players-table .player-status,
.squad-players-table .player-status > span {
    display: inline;
}

.squad-players-table .player-status {
    padding: 5px 9px;
    border: 0;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.squad-players-table .player-status > span:first-child {
    display: none !important;
}

.squad-players-table .player-status.healthy {
    color: #16A34A;
    background: #DCFCE7;
}

.squad-players-table .player-status.available {
    color: #263CC1;
    background: #EEF2FF;
}

.squad-players-table .player-status.injured {
    color: #DC2626;
    background: #FEE2E2;
}

.squad-players-table .player-status.not-eligible {
    color: #DC2626;
    background: #FEE2E2;
}

.squad-players-table .player-status.resting {
    color: #B45309;
    background: #FEF3C7;
}

.squad-players-table .player-status.unavailable {
    color: #475569;
    background: #F1F5F9;
}

.squad-players-table .player-status.eligible {
    color: #7C3AED;
    background: #F3E8FF;
}

.squad-players-table .player-status:not(
    .healthy,
    .available,
    .resting,
    .injured,
    .not-eligible,
    .unavailable,
    .eligible
) {
    color: #64748B;
    background: #F1F5F9;
}

.squad-player-empty {
    padding: 28px 20px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1100px) {
    .squad-players-table thead tr,
    .squad-players-table tbody tr {
        grid-template-columns: 50px 1.5fr 1.2fr 120px 110px 125px;
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .squad-players-table {
        min-width: 800px;
    }
}

/* EDIT SQUAD — STATUS STYLES MATCH THE PLAYERS PAGE */

.squad-players-table .player-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.squad-players-table .player-status > span:first-child {
    display: inline-block !important;
    flex: 0 0 7px !important;
    width: 7px !important;
    min-width: 7px !important;
    max-width: 7px !important;
    height: 7px !important;
    min-height: 7px !important;
    max-height: 7px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
}

.squad-players-table .player-status > .player-status-label {
    display: inline !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    line-height: inherit !important;
}

/* Availability */
.squad-players-table .player-status.available {
    color: #263cc1 !important;
}

.squad-players-table .player-status.available > span:first-child {
    background: #263cc1 !important;
}

/* Health */
.squad-players-table .player-status.healthy {
    color: var(--healthy) !important;
}

.squad-players-table .player-status.healthy > span:first-child {
    background: var(--healthy) !important;
}

.squad-players-table .player-status.injured {
    color: var(--injured) !important;
}

.squad-players-table .player-status.injured > span:first-child {
    background: var(--injured) !important;
}

.squad-players-table .player-status.resting {
    color: var(--resting) !important;
}

.squad-players-table .player-status.resting > span:first-child {
    background: var(--resting) !important;
}

/* Unavailable */
.squad-players-table .player-status.unavailable {
    color: var(--unavailable) !important;
}

.squad-players-table .player-status.unavailable > span:first-child {
    background: var(--unavailable) !important;
}

/* Eligibility */
.squad-players-table .player-status.eligible {
    color: #7C3AED !important;
}

.squad-players-table .player-status.eligible > span:first-child {
    background: #7C3AED !important;
}

.squad-players-table .player-status.not-eligible {
    color: var(--injured) !important;
}

.squad-players-table .player-status.not-eligible > span:first-child {
    background: var(--injured) !important;
}


/* =========================================
   TRAINING — PLAYER RESPONSES
   ========================================= */

/* Standard panel heading layout */

.training-responses-v2 .training-responses-header {
    width: 100%;
    min-width: 0;
}

.training-responses-v2 .training-responses-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.training-responses-v2 .training-responses-header h2 {
    margin: 0;
}

.training-responses-v2 .training-responses-header p {
    margin: 6px 0 0;
}

/* Response summary container */

.training-responses-v2 .training-responses-summary {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Individual response counts */

.training-responses-v2 .training-response-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: auto;
    min-width: max-content;
    height: auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.4;
}

/* Response status dots */

.training-responses-v2 .training-response-dot {
    display: block;
    flex: 0 0 7px;
    width: 7px;
    min-width: 7px;
    height: 7px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
}

/* Going */

.training-responses-v2 .training-response-going {
    color: var(--healthy);
}

.training-responses-v2 .training-response-going .training-response-dot {
    background: var(--healthy);
}

/* Not Going */

.training-responses-v2 .training-response-not-going {
    color: var(--unavailable);
}

.training-responses-v2 .training-response-not-going .training-response-dot {
    background: var(--unavailable);
}

/* No Response */

.training-responses-v2 .training-response-no-response {
    color: var(--resting);
}

.training-responses-v2 .training-response-no-response .training-response-dot {
    background: var(--resting);
}

/* Responsive layout */

@media (max-width: 700px) {

    .training-responses-v2 .training-responses-summary {
        width: 100%;
        gap: 12px 18px;
    }

}

/* =====================================================
   PLAYER UPCOMING TRAINING — FINAL ROW ALIGNMENT
===================================================== */

.player-upcoming-training-list .player-upcoming-training-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 100px;
    align-items: center;
    gap: 15px;

    width: 100%;
    min-height: 82px;
    box-sizing: border-box;
    padding: 12px 0;

    border-bottom: 1px solid #F1F5F9;
}

.player-upcoming-training-list .player-upcoming-training-item:last-child {
    border-bottom: 0;
}

.player-upcoming-training-list .player-upcoming-training-date {
    width: 90px;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
}

.player-upcoming-training-list .player-upcoming-training-info {
    min-width: 0;
    margin: 0;
}

.player-upcoming-training-list .player-upcoming-training-info strong,
.player-upcoming-training-list .player-upcoming-training-info span {
    display: block;
    overflow-wrap: anywhere;
}

.player-upcoming-training-list .player-upcoming-training-status {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    justify-self: stretch;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .player-upcoming-training-list .player-upcoming-training-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px 12px;
    }

    .player-upcoming-training-list .player-upcoming-training-date {
        width: 72px;
    }

    .player-upcoming-training-list .player-upcoming-training-status {
        grid-column: 1,5;
        text-align: left;
    }
}

/* =====================================================
   ADMIN UPCOMING TRAINING — EDIT ACTION
===================================================== */

.upcoming-training-item {
    grid-template-columns: 58px minmax(0, 1fr) 65px auto;
}

.upcoming-training-edit {
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .upcoming-training-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    .upcoming-training-count {
        grid-column: 2;
    }

    .upcoming-training-edit {
        grid-column: 2;
        justify-self: start;
    }
}

/* PLAYER TRAINING — UPCOMING SESSION ROWS */

.player-upcoming-training-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.player-upcoming-training-item {
    display: grid;
    grid-template-columns: 90px minmax(180px, 1fr) auto 130px;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.player-upcoming-training-item:last-child {
    border-bottom: none;
}

.player-upcoming-training-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    text-align: center;
    min-width: 0;
}

.player-upcoming-training-date strong,
.player-upcoming-training-date span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
}

.player-upcoming-training-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding-left: 5px;
}

.player-upcoming-training-info strong {
    color: #0b132b;
    font-size: 14px;
}

.player-upcoming-training-info span {
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.player-upcoming-training-actions {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 6px;
    white-space: nowrap;
    padding-right: 40px;
}

.player-upcoming-training-actions .player-response-button {
    min-width: 95px;
    padding: 10px 12px;
    margin: 0;
    white-space: nowrap;
}

.player-upcoming-training-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

/* Smaller screens */

@media (max-width: 900px) {
    .player-upcoming-training-item {
        grid-template-columns: 75px minmax(0, 1fr) 120px;
        gap: 12px;
        padding: 14px 12px;
    }

    .player-upcoming-training-actions {
        grid-column: 2 / 4;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-left: 32px;
    }

    .player-upcoming-training-status {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 520px) {
    .player-upcoming-training-item {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
    }

    .player-upcoming-training-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .player-upcoming-training-status {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: start;
    }
}


/* =========================================
   PLAY READY HQ — ADMIN MATCHES
========================================= */

.matches-page {
    width: 100%;
}

.matches-page [hidden] {
    display: none !important;
}

.matches-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 36px;
}

.matches-stat-card {
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.matches-stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.matches-stat-card > strong {
    color: #0b132b;
    font-size: 32px;
    line-height: 1.2;
}

.matches-stat-description {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.matches-list-section {
    margin-top: 24px;
}

.matches-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.matches-list-header h2 {
    margin: 6px 0 10px;
    color: #0b132b;
    font-size: 26px;
}

.matches-list-header h2 span {
    color: #22c55e;
}

.matches-list-header p:not(.dashboard-eyebrow) {
    color: #64748b;
    line-height: 1.6;
}

.matches-filter {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 160px;
}

.matches-filter label {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.matches-filter select {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #0b132b;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.matches-fixture-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.matches-fixture-main {
    min-width: 0;
    flex: 1;
}

.matches-fixture-type {
    display: inline-block;
    margin-bottom: 10px;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matches-fixture-title {
    margin: 0 0 8px;
    color: #0b132b;
    font-size: 21px;
    overflow-wrap: anywhere;
}

.matches-fixture-opponent {
    margin: 0 0 12px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.matches-fixture-date,
.matches-fixture-venue {
    margin: 6px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.matches-fixture-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.matches-status,
.matches-selection-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
}

.matches-fixture-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
}

.matches-fixture-actions a {
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.matches-squad-link {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #0b132b;
    font-size: 12.6px;
    font-weight: 600;
    margin-right: 10px;
    text-align: center;
}

.matches-squad-link:hover {
    background: #f8fafc;
}

.matches-empty-state {
    padding: 40px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.matches-empty-state h3 {
    margin: 0 0 10px;
    color: #0b132b;
    font-size: 20px;
}

.matches-empty-state p {
    max-width: 500px;
    margin: 0 auto 20px;
    color: #64748b;
    line-height: 1.7;
}

.matches-notice {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 14px;
}

@media (max-width: 1050px) {
    .matches-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matches-fixture-card {
        align-items: flex-start;
    }

    .matches-fixture-actions {
        min-width: 145px;
    }
}

@media (max-width: 650px) {
    .matches-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .matches-stat-card {
        padding: 16px;
    }

    .matches-stat-card > strong {
        font-size: 27px;
    }

    .matches-list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .matches-filter {
        width: 100%;
    }

    .matches-fixture-card {
        flex-direction: column;
        padding: 18px;
    }

    .matches-fixture-actions {
        width: 100%;
    }

    .matches-fixture-actions a {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Keep custom match type hidden until Other is selected */
#create-match-form #custom-match-type-group[hidden] {
    display: none !important;
}


/* Keep the custom match type field hidden unless Other is selected */
#custom-match-type-group[hidden] {
    display: none !important;
}


/* Manage Match visibility */
#manage-match-content[hidden],
#manage-match-loading[hidden],
#manage-match-error[hidden],
#manage-match-result[hidden] {
    display: none !important;
}


/* MANAGE MATCH - SQUAD SORTING */

.match-squad-preview-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#manage-squad-sort {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0B132B;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.match-squad-player-number {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #0B132B;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.match-squad-player {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* PLAYER MATCHES - PAGE STATES */

#player-matches-content[hidden],
#player-matches-loading[hidden],
#player-matches-error[hidden],
#player-match-team-selector[hidden] {
    display: none !important;
}

/* PLAYER MATCHES - TEAM SELECTOR */

#player-match-team-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#player-match-team-selector label {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}

#player-match-team {
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0B132B;
    font-size: 13px;
    font-weight: 600;
}

/* PLAYER MATCHES - SELECTION STATES */

.player-match-selection.reserve,
.player-fixture-selection.reserve {
    color: #B45309;
}

.player-match-selection.not-selected,
.player-fixture-selection.not-selected {
    color: #64748B;
}

.player-selection-status.reserve {
    border-color: #F59E0B;
}

.player-selection-status.not-selected {
    border-color: #CBD5E1;
}

/* Player Matches - Full Match Squad Layout */

.player-match-squad-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.player-match-squad-player {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 65px;
    padding: 12px 16px;
    gap: 14px;
    border-bottom: 1px solid #E2E8F0;
    box-sizing: border-box;
}

.player-match-squad-number {
    flex: 0 0 35px;
    text-align: center;
    font-weight: 700;
}

.player-match-squad-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.player-match-squad-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.player-match-squad-status {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
}

/* =========================================
   PLAYER MATCH QUICK ACTIONS
========================================= */

.player-match-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.player-match-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0b132b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.player-match-quick-link:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.player-match-quick-link span {
    font-size: 18px;
}

#player-next-match,
#player-full-match-squad,
#player-upcoming-matches,
#player-match-history-section {
    scroll-margin-top: 100px;
}

@media (max-width: 900px) {
    .player-match-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .player-match-quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .player-match-quick-link {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* =========================================
   ACTUAL TRAINING ATTENDANCE
========================================= */

.attendance-session-selector {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 22px 0;
    max-width: 450px;
}

.attendance-session-selector label {
    color: #0b132b;
    font-size: 14px;
    font-weight: 700;
}

#actual-attendance-session {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0b132b;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

#actual-attendance-session:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Attendance summary */

.attendance-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 22px 0;
}

.attendance-summary > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 90px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.attendance-summary strong {
    color: #0b132b;
    font-size: 25px;
    font-weight: 800;
}

.attendance-summary span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

/* Player attendance list */

#training-actual-attendance {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
}

#training-actual-attendance > p {
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.actual-attendance-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.actual-attendance-player:last-child {
    border-bottom: none;
}

.actual-attendance-select {
    min-width: 165px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #0b132b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Save button */

#save-actual-attendance {
    min-height: 43px;
    padding: 0 22px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

#save-actual-attendance:hover {
    background: #1d4ed8;
}

#save-actual-attendance:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile */

@media (max-width: 600px) {
    .attendance-summary {
        gap: 8px;
    }

    .attendance-summary > div {
        min-height: 80px;
        padding: 10px 5px;
    }

    .attendance-summary strong {
        font-size: 21px;
    }

    .attendance-summary span {
        font-size: 11px;
    }

    .actual-attendance-player {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 15px 10px;
    }

    .actual-attendance-select {
        width: 100%;
    }
}


/* =========================================
   PLAY READY HQ - TEAM CALENDAR
========================================= */

.calendar-page {
    display: flex;
    flex-direction: column;
}

/* CALENDAR MAIN SECTION */

.calendar-main-section,
.calendar-selected-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.calendar-month-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}

.calendar-month-navigation h2 {
    margin: 0;
    color: #0b132b;
    font-size: 14px;
    font-weight: 800;
}

.calendar-nav-button,
.calendar-today-button {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0b132b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.calendar-nav-button:hover,
.calendar-today-button:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.calendar-today-button {
    padding: 0 18px;
}

/* EVENT LEGEND */

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.calendar-event-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
}

.training-dot {
    background: #2563eb;
}

.match-dot {
    background: #22c55e;
}

/* CALENDAR GRID */

.calendar-grid-container {
    width: 100%;
    overflow-x: auto;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

.calendar-weekdays > div {
    padding: 13px 5px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.calendar-grid {
    border-left: 1px solid #e2e8f0;
}

.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 115px;
    padding: 10px 8px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
   transition: background 0.2s ease;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.other-month {
    background: #f8fafc;
}

.calendar-day.other-month .calendar-day-number {
    color: #94a3b8;
}

.calendar-day.selected {
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px #2563eb;
}

.calendar-day.today .calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
}

.calendar-day-number {
    align-self: flex-start;
    color: #0b132b;
    font-size: 13px;
    font-weight: 700;
}

/* CALENDAR EVENTS */

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.calendar-event-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-event-indicator.training-event {
    background: #dbeafe;
    color: #1d4ed8;
}

.calendar-event-indicator.match-event {
    background: #dcfce7;
    color: #15803d;
}

.calendar-more-events {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

/* SELECTED DATE SECTION */

.calendar-selected-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-selected-header h2 {
    margin: 5px 0 8px;
    color: #0b132b;
    font-size: 15px;
    font-weight: 800;
}

.calendar-selected-header > div > p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* CREATE EVENT OPTIONS */

.calendar-create-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.calendar-create-option {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.calendar-create-option:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
}

.calendar-create-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: 19px;
}

.training-icon {
    background: #dbeafe;
    color: #2563eb;
}

.match-icon {
    background: #dcfce7;
    color: #16a34a;
}

.calendar-create-option > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.calendar-create-option strong {
    color: #0b132b;
    font-size: 13px;
    font-weight: 700;
}

.calendar-create-option small {
    color: #64748b;
    font-size: 11px;
}

.calendar-option-arrow {
    color: #94a3b8;
    font-size: 14px;
}

/* SELECTED DATE EVENTS */

.calendar-selected-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-empty-state {
    padding: 25px 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    text-align: center;
}

.calendar-empty-state p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

/* NOTICES AND STATES */

.calendar-notice {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.calendar-loading,
.calendar-loading-state,
.calendar-error-state {
    padding: 25px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

.calendar-error-state {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
}

/* RESPONSIVE CALENDAR */

@media (max-width: 900px) {

    .calendar-day {
        min-height: 95px;
        padding: 8px 5px;
    }

    .calendar-event-indicator {
        font-size: 9px;
        padding: 4px;
    }

}

@media (max-width: 600px) {

    .calendar-main-section,
    .calendar-selected-section {
        padding: 15px;
    }

    .calendar-toolbar {
        align-items: flex-start;
    }

    .calendar-month-navigation {
        gap: 9px;
    }

    .calendar-month-navigation h2 {
        font-size: 13px;
    }

    .calendar-nav-button {
        min-width: 34px;
        height: 36px;
    }

    .calendar-today-button {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .calendar-weekdays > div {
        font-size: 10px;
        padding: 11px 2px;
    }

    .calendar-day {
        min-height: 75px;
        padding: 6px 3px;
        gap: 5px;
    }

    .calendar-day-number {
        font-size: 11px;
    }

    .calendar-event-indicator {
        padding: 3px;
        font-size: 8px;
    }

    .calendar-event-indicator .calendar-event-title {
        display: none;
    }

    .calendar-create-options {
        grid-template-columns: 1fr;
    }

    .calendar-legend {
        gap: 15px;
    }

}

/* =========================================
   PLAY READY HQ - ADMIN CALENDAR EVENT CARDS
   Matching Player Calendar Design
   ========================================= */

.calendar-page .calendar-selected-event {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
}

/* Training event card */

.calendar-page .calendar-selected-event.training-event {
    border-left-color: #2563eb;
}

/* Match event card */

.calendar-page .calendar-selected-event.match-event {
    border-left-color: #22c55e;
}

/* Event title */

.calendar-page .calendar-selected-event h3 {
    margin: 0;
    color: #0b132b;
    font-size: 15px;
    font-weight: 800;
}

/* Event information */

.calendar-page .calendar-selected-event p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* Team name */

.calendar-page .calendar-event-team {
    color: #2563eb !important;
    font-weight: 700;
}

/* Event actions */

.calendar-page .calendar-event-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* Admin event action buttons */

.calendar-page .calendar-event-actions a,
.calendar-page .calendar-event-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Button hover */

.calendar-page .calendar-event-actions a:hover,
.calendar-page .calendar-event-actions button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Responsive event cards */

@media (max-width: 600px) {

    .calendar-page .calendar-selected-event {
        padding: 15px;
    }

    .calendar-page .calendar-event-actions {
        gap: 8px;
    }

    .calendar-page .calendar-event-actions a,
    .calendar-page .calendar-event-actions button {
        min-height: 36px;
        padding: 0 13px;
        font-size: 11px;
    }

}
/* =========================================
   PLAY READY HQ - PLAYER CALENDAR
   ========================================= */

/* PLAYER CALENDAR PAGE */

.player-calendar-page {
    display: flex;
    flex-direction: column;
}

/* CALENDAR MAIN SECTION */

.player-calendar-page .calendar-main-section,
.player-calendar-page .calendar-selected-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px;
}

.player-calendar-page .calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.player-calendar-page .calendar-month-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}

.player-calendar-page .calendar-month-navigation h2 {
    margin: 0;
    color: #0b132b;
    font-size: 22px;
    font-weight: 800;
}

.player-calendar-page .calendar-nav-button,
.player-calendar-page .calendar-today-button {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0b132b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.player-calendar-page .calendar-nav-button:hover,
.player-calendar-page .calendar-today-button:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.player-calendar-page .calendar-today-button {
    padding: 0 18px;
}

/* EVENT LEGEND */

.player-calendar-page .calendar-legend {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.player-calendar-page .calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.player-calendar-page .calendar-event-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
}

.player-calendar-page .training-dot {
    background: #2563eb;
}

.player-calendar-page .match-dot {
    background: #22c55e;
}

/* CALENDAR GRID */

.player-calendar-page .calendar-grid-container {
    width: 100%;
    overflow-x: auto;
}

.player-calendar-page .calendar-weekdays,
.player-calendar-page .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.player-calendar-page .calendar-weekdays {
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

.player-calendar-page .calendar-weekdays > div {
    padding: 13px 5px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.player-calendar-page .calendar-grid {
    border-left: 1px solid #e2e8f0;
}

.player-calendar-page .calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 115px;
    padding: 10px 8px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-calendar-page .calendar-day:hover {
    background: #f8fafc;
}

.player-calendar-page .calendar-day.other-month {
    background: #f8fafc;
}

.player-calendar-page .calendar-day.other-month .calendar-day-number {
    color: #94a3b8;
}

.player-calendar-page .calendar-day.selected {
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px #2563eb;
}

.player-calendar-page .calendar-day.today .calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
}

.player-calendar-page .calendar-day-number {
    align-self: flex-start;
    color: #0b132b;
    font-size: 13px;
    font-weight: 700;
}

/* CALENDAR EVENTS */

.player-calendar-page .calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.player-calendar-page .calendar-event-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-calendar-page .calendar-event-indicator.training-event {
    background: #dbeafe;
    color: #1d4ed8;
}

.player-calendar-page .calendar-event-indicator.match-event {
    background: #dcfce7;
    color: #15803d;
}

.player-calendar-page .calendar-more-events {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

/* SELECTED DATE SECTION */

.player-calendar-page .calendar-selected-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-calendar-page .calendar-selected-header h2 {
    margin: 5px 0 8px;
    color: #0b132b;
    font-size: 15px;
    font-weight: 800;
}

.player-calendar-page .calendar-selected-header > div > p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* SELECTED DATE EVENTS */

.player-calendar-page .calendar-selected-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-calendar-page .calendar-empty-state {
    padding: 25px 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    text-align: center;
}

.player-calendar-page .calendar-empty-state p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

/* NOTICES AND STATES */

.player-calendar-page .calendar-notice {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.player-calendar-page .calendar-loading,
.player-calendar-page .calendar-loading-state,
.player-calendar-page .calendar-error-state {
    padding: 25px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

.player-calendar-page .calendar-error-state {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
}

/* RESPONSIVE PLAYER CALENDAR */

@media (max-width: 900px) {

    .player-calendar-page .calendar-day {
        min-height: 95px;
        padding: 8px 5px;
    }

    .player-calendar-page .calendar-event-indicator {
        font-size: 9px;
        padding: 4px;
    }

}

@media (max-width: 600px) {

    .player-calendar-page .calendar-main-section,
    .player-calendar-page .calendar-selected-section {
        padding: 15px;
    }

    .player-calendar-page .calendar-toolbar {
        align-items: flex-start;
    }

    .player-calendar-page .calendar-month-navigation {
        gap: 9px;
    }

    .player-calendar-page .calendar-month-navigation h2 {
        font-size: 17px;
    }

    .player-calendar-page .calendar-nav-button {
        min-width: 34px;
        height: 36px;
    }

    .player-calendar-page .calendar-today-button {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .player-calendar-page .calendar-weekdays > div {
        font-size: 10px;
        padding: 11px 2px;
    }

    .player-calendar-page .calendar-day {
        min-height: 75px;
        padding: 6px 3px;
        gap: 5px;
    }

    .player-calendar-page .calendar-day-number {
        font-size: 11px;
    }

    .player-calendar-page .calendar-event-indicator {
        padding: 3px;
        font-size: 8px;
    }

    .player-calendar-page .calendar-event-indicator .calendar-event-title {
        display: none;
    }

    .player-calendar-page .calendar-legend {
        gap: 15px;
    }

}

/* PLAYER CALENDAR MAIN SECTION */

.player-calendar-page .calendar-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px;
}

@media (max-width: 600px) {

    .player-calendar-page .calendar-section {
        padding: 15px;
    }

}

/* =========================================
   PLAYER CALENDAR - SELECTED EVENT CARDS
   ========================================= */

.player-calendar-page .calendar-selected-event {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
}

/* Training event card */

.player-calendar-page .calendar-selected-event.training-event {
    border-left-color: #2563eb;
}

/* Match event card */

.player-calendar-page .calendar-selected-event.match-event {
    border-left-color: #22c55e;
}

/* Event title */

.player-calendar-page .calendar-selected-event h3 {
    margin: 0;
    color: #0b132b;
    font-size: 16px;
    font-weight: 800;
}

/* Event information */

.player-calendar-page .calendar-selected-event p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* Team name */

.player-calendar-page .calendar-event-team {
    color: #2563eb !important;
    font-weight: 700;
}

/* Event action */

.player-calendar-page .calendar-event-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

/* VIEW EVENT BUTTON */

.player-calendar-page .calendar-event-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.player-calendar-page .calendar-event-view-link:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}



/* =========================================================
   PLAY READY HQ — ADMIN MESSAGES
   Page-specific styling
========================================================= */


/* =========================================================
   MESSAGES PANEL
========================================================= */

.messages-inbox-panel {
    width: 100%;
    min-width: 0;
}

.messages-inbox-panel [hidden] {
    display: none !important;
}

.messages-summary-grid {
    margin-bottom: 25px;
}


/* =========================================================
   MESSAGE TOOLBAR AND FILTERS
========================================================= */

.messages-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    margin: 22px 0;
}

.messages-filter-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.message-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 9px 13px;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    background: #ffffff;
    color: #475569;

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

    cursor: pointer;
    transition: 0.2s ease;
}

.message-filter:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.message-filter.active {
    background: #0b132b;
    border-color: #0b132b;
    color: #ffffff;
}

.message-filter span {
    font-size: 11px;
    opacity: 0.8;
}


/* =========================================================
   FULL-WIDTH INBOX
========================================================= */

#messages-inbox-view {
    width: 100%;
    min-width: 0;
}

#messages-inbox-header {
    width: 100%;
}

.message-list-panel {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;

    background: #ffffff;
}

.message-list-header {
    min-height: 58px;
    padding: 16px 22px;

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

    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.message-list-header strong {
    color: #0b132b;
    font-size: 14px;
    font-weight: 700;
}

.message-list-header span {
    color: #64748b;
    font-size: 12px;
}

.message-list {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
}

.message-list-state {
    width: 100%;
    padding: 40px 20px;

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

.message-list-state h3 {
    margin: 0 0 8px;
    color: #0b132b;
    font-size: 15px;
}

.message-list-state p {
    margin: 0;
    line-height: 1.7;
}

.message-list-footer {
    width: 100%;
    padding: 13px 22px;

    border-top: 1px solid #e2e8f0;

    color: #64748b;
    font-size: 12px;
    background: #ffffff;
}


/* =========================================================
   INDIVIDUAL MESSAGE CARDS
========================================================= */

.message-card {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;

    column-gap: 24px;
    row-gap: 7px;

    width: 100%;
    min-width: 0;
    min-height: 106px;

    padding: 17px 22px;

    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;

    background: #ffffff;
    color: inherit;
    text-align: left;

    font: inherit;
    cursor: pointer;

    transition: background 0.2s ease;
}

.message-card:last-child {
    border-bottom: none;
}

.message-card:hover {
    background: #f8fafc;
}

.message-card.selected {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

.message-card.unread {
    background: #f8fafc;
}

.message-card.unread:hover {
    background: #f1f5f9;
}

.message-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -3px;
}


/* SENDER AND DATE */

.message-card-top {
    grid-column: 1;
    grid-row: 1;

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

    width: 100%;
    min-width: 0;
}

.message-card-top strong {
    min-width: 0;

    color: #0b132b;
    font-size: 13px;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-card-date {
    flex-shrink: 0;

    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
}


/* MESSAGE SUBJECT */

.message-card-subject {
    grid-column: 1;
    grid-row: 2;

    width: 100%;
    min-width: 0;

    color: #0b132b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* MESSAGE PREVIEW */

.message-preview {
    grid-column: 1;
    grid-row: 3;

    width: 100%;
    min-width: 0;
    margin: 0;

    color: #64748b;
    font-size: 12px;
    line-height: 1.6;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* MESSAGE TYPE AND UNREAD INDICATOR */

.message-card-bottom {
    grid-column: 2;
    grid-row: 1 / 4;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    min-width: 100px;
}

.message-context {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 5px;

    background: #f1f5f9;
    color: #475569;

    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.message-context.announcement {
    background: #eff6ff;
    color: #2563eb;
}

.message-context.training {
    background: #ecfdf5;
    color: #15803d;
}

.message-context.match {
    background: #fff7ed;
    color: #c2410c;
}

.message-context.direct {
    background: #f1f5f9;
    color: #475569;
}

.message-unread-dot {
    display: block;
    flex-shrink: 0;

    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #2563eb;
}

.player-calendar-page > .dashboard-heading {
    width: 100%;
    align-self: stretch;
    text-align: left;
    justify-content: space-between;
}

.player-calendar-page > .dashboard-heading > div {
    text-align: left;
    align-items: flex-start;
}


/* =========================================================
   FULL-WIDTH MESSAGE DETAIL VIEW
========================================================= */

#message-detail-view {
    width: 100%;
    min-width: 0;
}

.message-detail-panel {
    width: 100%;
    min-width: 0;

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

    overflow: hidden;
    background: #ffffff;
}

.message-detail {
    width: 100%;
    min-width: 0;
}

.message-detail:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* =========================================================
   MESSAGE DETAIL HEADER
========================================================= */

.message-detail-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;

    width: 100%;
    padding: 24px;

    border-bottom: 1px solid #e2e8f0;
}

#message-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
}

.message-detail-heading-content {
    min-width: 0;
}

.message-detail-heading-content h2 {
    margin: 7px 0;

    color: #0b132b;
    font-size: 20px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.message-detail-heading-content p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.message-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    flex-shrink: 0;
}


/* =========================================================
   SENDER AND RECIPIENT INFORMATION
========================================================= */

.message-detail-information {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    width: 100%;
    padding: 20px 24px;

    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.message-detail-information > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;

    min-width: 0;
}

.message-detail-information span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.message-detail-information strong {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}


/* =========================================================
   MESSAGE BODY
========================================================= */

.message-detail-body {
    width: 100%;
    min-width: 0;
    min-height: 160px;

    padding: 28px 24px;

    color: #334155;
    background: #ffffff;

    font-size: 14px;
    line-height: 1.8;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================================
   CONVERSATION
========================================================= */

.message-conversation {
    width: 100%;
    min-width: 0;

    padding: 25px 24px;

    border-top: 1px solid #e2e8f0;
}

.message-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 20px;
}

.message-conversation-header h3 {
    margin: 0;
    color: #0b132b;
    font-size: 16px;
}

.message-conversation-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.message-conversation-header > span {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 11px;
}

.message-conversation-list {
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
    min-width: 0;
}

.message-conversation-list > p {
    color: #64748b;
    font-size: 12px;
}


/* INDIVIDUAL REPLIES */

.message-reply-item {
    width: 100%;
    min-width: 0;

    padding: 17px 19px;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background: #f8fafc;
}

.message-reply-item.sent {
    align-self: flex-end;
    border-color: #dbeafe;
    background: #eff6ff;
}

.message-reply-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 15px;

    margin-bottom: 12px;
}

.message-reply-item-header strong,
.message-reply-item strong {
    color: #0b132b;
    font-size: 12px;
    font-weight: 700;
}

.message-reply-item-header span,
.message-reply-item span {
    color: #94a3b8;
    font-size: 10px;
}

.message-reply-item p {
    margin: 0;

    color: #475569;
    font-size: 13px;
    line-height: 1.7;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


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

.message-reply-form {
    display: flex;
    flex-direction: column;
    gap: 15px;

    width: 100%;
    min-width: 0;

    padding: 24px;

    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.message-reply-form label {
    display: block;
    margin-bottom: 7px;

    color: #0b132b;
    font-size: 13px;
    font-weight: 700;
}

.message-reply-form > div:first-child p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.message-reply-form textarea {
    display: block;

    width: 100%;
    min-height: 120px;
    padding: 13px 15px;

    resize: vertical;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    background: #ffffff;
    color: #0b132b;

    font: inherit;
    font-size: 13px;
    line-height: 1.6;

    outline: none;
}

.message-reply-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.message-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.message-reply-footer span {
    color: #94a3b8;
    font-size: 11px;
}


/* =========================================================
   EMPTY DETAIL STATE
========================================================= */

.message-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 300px;
    padding: 40px 24px;

    text-align: center;
}

.message-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    margin-bottom: 16px;

    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;

    font-size: 22px;
}

.message-detail-empty h3 {
    margin: 0 0 8px;
    color: #0b132b;
    font-size: 18px;
}

.message-detail-empty p {
    max-width: 360px;
    margin: 0;

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


/* =========================================================
   RESPONSIVE LAYOUT
========================================================= */

@media (max-width: 900px) {

    .message-detail-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 16px;
    }

    .message-detail-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

}


@media (max-width: 640px) {

    /* FILTERS */

    .messages-toolbar {
        align-items: stretch;
    }

    .messages-filter-list {
        width: 100%;
        gap: 7px;
    }

    .message-filter {
        flex: 1 1 auto;
        padding: 9px 10px;
        font-size: 12px;
    }


    /* MESSAGE CARDS */

    .message-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;

        gap: 8px;
        padding: 16px;
    }

    .message-card-top {
        grid-column: 1;
        grid-row: 1;
    }

    .message-card-subject {
        grid-column: 1;
        grid-row: 2;
    }

    .message-preview {
        grid-column: 1;
        grid-row: 3;
    }

    .message-card-bottom {
        grid-column: 1;
        grid-row: 4;

        justify-content: flex-start;
        min-width: 0;
        margin-top: 3px;
    }


    /* MESSAGE DETAIL */

    .message-detail-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 19px;
    }

    .message-detail-actions {
        grid-column: 1;
        width: 100%;
    }

    .message-detail-heading-content h2 {
        font-size: 18px;
    }

    .message-detail-information {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
        padding: 18px;
    }

    .message-detail-body {
        min-height: 130px;
        padding: 20px 18px;
        font-size: 13px;
    }

    .message-conversation {
        padding: 20px 18px;
    }

    .message-reply-form {
        padding: 20px 18px;
    }

    .message-reply-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .message-reply-footer button {
        width: 100%;
    }

}


@media (max-width: 400px) {

    .message-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

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

}


/* ============================================================
   ADMIN DASHBOARD - QUICK ACCESS
============================================================ */

.dashboard-quick-actions {
    margin-top: 32px;
}

.dashboard-quick-actions .panel-header {
    margin-bottom: 20px;
}

.dashboard-quick-actions .quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-quick-actions .quick-action-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 100px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #0B132B;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-quick-actions .quick-action-card:hover {
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 19, 43, 0.07);
}

.dashboard-quick-actions .quick-action-icon {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 10px;
    color: #2563EB;
}

.dashboard-quick-actions .quick-action-icon .sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.dashboard-quick-actions .quick-action-card > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.dashboard-quick-actions .quick-action-card strong {
    color: #0B132B;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-quick-actions .quick-action-card > div:last-child span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-quick-actions .quick-action-notification {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #EF4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.dashboard-quick-actions .quick-action-notification[hidden] {
    display: none;
}


/* ============================================================
   ADMIN DASHBOARD - RESPONSIVE
============================================================ */

@media (max-width: 1000px) {

    .dashboard-quick-actions .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .dashboard-quick-actions {
        margin-top: 24px;
    }

    .dashboard-quick-actions .quick-action-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-quick-actions .quick-action-card {
        min-height: 1px;
        padding: 2px;
    }

}

/* =========================================================
   TEAM MANAGEMENT
========================================================= */

.settings-administrators {
    margin-top: 28px;
}

.settings-administrators-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.settings-administrators-header strong,
.settings-invite-admin strong,
.settings-permissions-note strong {
    display: block;
    color: #0B132B;
    font-size: 14px;
    font-weight: 700;
}

.settings-administrators-header p,
.settings-invite-admin p,
.settings-permissions-note p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.settings-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #0B132B;
    font-size: 12px;
    font-weight: 700;
}

.settings-administrators-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-empty-state {
    margin: 0;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}


/* =========================================================
   ADMINISTRATOR INVITATIONS
========================================================= */

.settings-invite-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.settings-invite-admin > div:first-child {
    min-width: 0;
}

.settings-invite-admin .settings-secondary-button {
    flex-shrink: 0;
}

.settings-invitation-result {
    width: 100%;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.settings-invitation-result[hidden] {
    display: none;
}

.settings-invitation-result label {
    display: block;
    margin-bottom: 8px;
    color: #0B132B;
    font-size: 12px;
    font-weight: 700;
}

.settings-invitation-link {
    display: flex;
    gap: 10px;
}

.settings-invitation-link input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-size: 12px;
}

.settings-invitation-result small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   ADMINISTRATOR PERMISSIONS
========================================================= */

.settings-permissions-note {
    margin-top: 24px;
    padding: 18px 20px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}

.settings-permissions-note p + p {
    margin-top: 10px;
}


/* =========================================================
   TEAM OWNER BADGE
========================================================= */

.settings-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px 11px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563EB;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   DANGER ZONE
========================================================= */

.settings-danger-zone {
    border: 1px solid #fecaca;
}

.settings-danger-zone .settings-section-header {
    border-bottom-color: #fee2e2;
}

.settings-danger-zone .settings-eyebrow {
    color: #EF4444;
}

.settings-danger-zone .settings-section-header h2 {
    color: #991b1b;
}

.settings-danger-zone .settings-security-row {
    align-items: center;
}

.settings-danger-zone .settings-security-row strong {
    color: #991b1b;
}

.settings-danger-note {
    display: block;
    margin-top: 10px;
    color: #b91c1c;
    font-size: 11px;
    line-height: 1.5;
}

.settings-danger-button {
    flex-shrink: 0;
    padding: 10px 16px;
    background: #EF4444;
    border: 1px solid #EF4444;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.settings-danger-button:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
}

.settings-danger-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .settings-invite-admin {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .settings-invitation-link {
        flex-direction: column;
    }

    .settings-invitation-link input {
        width: 100%;
    }

    .settings-administrators-header {
        align-items: flex-start;
    }

    .settings-danger-zone .settings-security-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

}

/* =========================================
   COLLAPSIBLE DASHBOARD SIDEBAR
   ========================================= */

/* Navbar: menu left, logo centred, profile right */

.dashboard-navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 28px;
}

.sidebar-toggle {
    grid-column: 1;
    justify-self: start;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle span {
    display: block;
    width: 15px;
    height: 1px;
    border-radius: 2px;
    background: #FFFFFF;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.dashboard-logo {
    grid-column: 2;
    justify-self: center;
}

.dashboard-user {
    grid-column: 3;
    justify-self: end;
}

/* Layout fills the available screen */

.dashboard-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 72px);
    overflow-x: clip;
    align-items: stretch;
}

/* Sidebar closed by default */

.dashboard-layout .sidebar {
    position: sticky;
    top: 48px;
    align-self: flex-start;

    width: 0;
    min-width: 0;
    flex: 0 0 0;

    height: calc(100vh - 47px);
    padding: 0;

    overflow: hidden;
    visibility: hidden;

    transition:
        flex-basis 0.3s ease,
        width 0.3s ease,
        padding 0.3s ease,
        visibility 0.3s ease;

    box-sizing: border-box;
}

/* Sidebar open: pushes the content */

.dashboard-layout.sidebar-open .sidebar {
    width: 250px;
    flex: 0 0 250px;
    padding: 22px 16px;
    visibility: visible;
}

/* Main content expands into available space */

.dashboard-layout .dashboard-main {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    margin: 0;
    transition: width 0.3s ease;
}

/* Allow dashboard content to use the full available width */

.dashboard-main > .dashboard-heading,
.dashboard-main > .overview-grid,
.dashboard-main > .dashboard-quick-actions {
    width: 100%;
    max-width: none;
}

/* Hamburger animation */

.dashboard-layout.sidebar-open ~ .dashboard-navbar .sidebar-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.dashboard-layout.sidebar-open ~ .dashboard-navbar .sidebar-toggle span:nth-child(2) {
    opacity: 0;
}

.dashboard-layout.sidebar-open ~ .dashboard-navbar .sidebar-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive layout */

@media (max-width: 768px) {

    .dashboard-navbar-inner {
        padding: 0 16px;
    }

    .dashboard-main {
        padding: 24px 20px;
    }

    .dashboard-layout.sidebar-open .sidebar {
        width: 220px;
        flex-basis: 220px;
        padding: 1px 12px;
    }

    .overview-grid,
    .training-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 480px) {

    .dashboard-main {
        padding: 18px 14px;
    }

    .dashboard-layout.sidebar-open .sidebar {
        width: 25px;
        flex-basis: 55px;
    }

}

.dashboard-navbar:has(+ .dashboard-layout.sidebar-open) .sidebar-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.dashboard-navbar:has(+ .dashboard-layout.sidebar-open) .sidebar-toggle span:nth-child(2) {
    opacity: 0;
}

.dashboard-navbar:has(+ .dashboard-layout.sidebar-open) .sidebar-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   PLAYER DASHBOARD - MATCH AVAILABILITY
========================================= */

.player-match-availability-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748B;
    margin: 0 0 18px;
}

.player-match-availability-team {
    color: #64748B;
    font-size: 0.85rem;
    margin: 0 0 6px;
}

.player-match-availability-title {
    display: block;
    color: #0B132B;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.player-match-availability-details,
.player-match-availability-venue {
    color: #64748B;
    font-size: 0.9rem;
    margin: 5px 0;
}

.player-match-availability-label {
    display: block;
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 22px;
    margin-bottom: 8px;
}

.player-match-availability-status {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #475569;
}

.player-match-availability-status.available {
    background: #DCFCE7;
    color: #15803D;
}

.player-match-availability-status.unavailable {
    background: #FEE2E2;
    color: #B91C1C;
}

.player-match-availability-status.no_response {
    background: #FEF3C7;
    color: #B45309;
}

.player-match-availability-question {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 20px 0 12px;
}

.player-match-availability-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.player-match-response-button {
    border: none;
    border-radius: 7px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-match-response-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.player-match-response-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.player-match-response-button.available {
    background: #22C55E;
    color: #FFFFFF;
}

.player-match-response-button.unavailable {
    background: #EF4444;
    color: #FFFFFF;
}

.player-match-response-feedback {
    font-size: 0.82rem;
    margin-top: 12px;
    color: #64748B;
}

.player-match-response-feedback.success {
    color: #15803D;
}

.player-match-response-feedback.error,
.player-match-availability-message.error {
    color: #DC2626;
}

.player-match-availability-message {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.6;
}

.player-match-team-label {
    display: block;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 18px 0 7px;
}

.player-match-team-select {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 7px;
    background: #FFFFFF;
    color: #0B132B;
    font-size: 0.9rem;
}

.player-match-team-selection-message {
    color: #64748B;
    font-size: 0.82rem;
    margin-top: 10px;
}

/* =========================================================
   PLAY READY HQ — HOMEPAGE
========================================================= */

.home-page {
    background: #ffffff;
    color: #0B132B;
    overflow-x: hidden;
}

.home-page * {
    box-sizing: border-box;
}

.home-page a {
    text-decoration: none;
}

.home-page .navbar {
    background: #000000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.home-page .navbar-inner {
    width: min(1500px, 94%);
    min-height: 226px;
    margin: 0 auto;
    padding: 8px 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand links actions";
    align-items: center;
    gap: 24px;
}

.home-page .logo {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    gap: 12px;
    flex-shrink: 0;
}

.home-page .brand-mark {
    width: 48px;
    height: 42px;
}

.home-page .logo-wordmark {
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.home-page .logo-wordmark span {
    color: #16A34A;
}

.home-page .home-nav-links {
    grid-area: links;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(12px, 1.5vw, 23px);
}

.home-page .home-nav-links a {
    color: #d1d5db;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.home-page .home-nav-links a:hover {
    color: #16A34A;
}

.home-page .nav-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 23px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 750;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.home-page .btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #16A34A;
}

.home-page .btn-primary:hover {
    background: #15803D;
    border-color: #15803D;
    transform: translateY(-2px);
}

.home-page .btn-secondary {
    background: transparent;
    color: #0B132B;
    border-color: #d1d5db;
}

.home-page .navbar .btn-secondary {
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.home-page .navbar .btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

.home-page .btn-outline-light {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255,255,255,0.4);
}

.home-page .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}


/* =========================================================
   SHARED HOMEPAGE ELEMENTS
========================================================= */

.home-page .home-eyebrow {
    display: inline-block;
    color: #16A34A;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 2px;
    line-height: 1.6;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    margin-top: 0;
}

.home-page .home-section {
    width: min(1400px, 90%);
    margin: auto;
    padding: 110px 0;
}

.home-page .home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 55px;
}

.home-page .home-section-heading h2,
.home-page .home-centered-heading h2 {
    margin: 14px 0 0;
    color: #0B132B;
    font-size: clamp(34px, 4vw, 51px);
    line-height: 1.13;
    letter-spacing: -2px;
}

.home-page .home-section-heading h2 span,
.home-page .home-centered-heading h2 span {
    color: #16A34A;
}

.home-page .home-section-heading > p {
    max-width: 420px;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.home-page .home-centered-heading {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.home-page .home-centered-heading > p {
    max-width: 570px;
    margin: 18px auto 0;
    color: #64748b;
    line-height: 1.8;
}


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

.home-page .home-hero {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.18), transparent 40%),
        radial-gradient(ellipse at 20% 90%, rgba(22,163,74,0.12), transparent 40%),
        #0B132B;
    color: #ffffff;
    padding: 100px 0 110px;
}

.home-page .home-hero-inner {
    width: min(1400px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    align-items: center;
    gap: 75px;
}

.home-page .home-hero-copy h1 {
    margin: 23px 0;
    font-size: clamp(46px, 5.5vw, 76px);
    line-height: 1.04;
    letter-spacing: -3.5px;
    color: #ffffff;
}

.home-page .home-hero-copy h1 span {
    color: #16A34A;
}

.home-page .home-hero-copy > p {
    max-width: 590px;
    margin-bottom: 30px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.home-page .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.home-page .hero-trust-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 12px;
}

.home-page .hero-trust-line > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 12px rgba(22,163,74,0.7);
}


/* =========================================================
   HERO DASHBOARD PREVIEW
========================================================= */

.home-page .home-hero-visual {
    min-width: 0;
    perspective: 1200px;
}

.home-page .hero-dashboard {
    background: #ffffff;
    color: #0B132B;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,0.35);
    transform: rotateY(-5deg) rotateX(2deg);
}

.home-page .hero-dashboard-header {
    min-height: 65px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.home-page .hero-dashboard-brand {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.home-page .hero-dashboard-brand strong {
    color: #16A34A;
}

.home-page .dashboard-brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: #16A34A;
    border-radius: 50%;
}

.home-page .hero-dashboard-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #0B132B;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.home-page .hero-dashboard-content {
    padding: 25px;
    background: #f8fafc;
}

.home-page .hero-dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

.home-page .hero-dashboard-welcome > div > span {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.home-page .hero-dashboard-welcome h3 {
    margin: 6px 0;
    font-size: 22px;
}

.home-page .hero-dashboard-welcome p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.home-page .dashboard-live-status {
    padding: 7px 10px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.home-page .dashboard-live-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #16A34A;
}

.home-page .hero-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.home-page .hero-dashboard-stats > div {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.home-page .hero-dashboard-stats strong {
    display: block;
    font-size: 25px;
    font-weight: 850;
}

.home-page .hero-dashboard-stats span {
    color: #64748b;
    font-size: 11px;
}

.home-page .hero-preview-card {
    padding: 17px;
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.home-page .hero-preview-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.home-page .hero-preview-card-heading strong {
    font-size: 13px;
}

.home-page .hero-preview-card-heading > span {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
}

.home-page .hero-preview-event {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-page .hero-preview-event-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #2563EB;
    border-radius: 8px;
    font-weight: 850;
}

.home-page .hero-preview-event strong,
.home-page .hero-preview-event span {
    display: block;
}

.home-page .hero-preview-event strong {
    font-size: 12px;
}

.home-page .hero-preview-event span {
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
}

.home-page .hero-preview-response {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #e5e7eb;
    font-size: 11px;
}

.home-page .hero-preview-response span {
    color: #64748b;
}

.home-page .hero-preview-response strong {
    color: #15803d;
}

.home-page .hero-preview-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.home-page .preview-player-avatar {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0B132B;
    font-size: 10px;
    font-weight: 800;
}

.home-page .hero-preview-player > div {
    flex: 1;
}

.home-page .hero-preview-player strong,
.home-page .hero-preview-player span:not(.preview-player-avatar) {
    display: block;
}

.home-page .hero-preview-player strong {
    font-size: 11px;
}

.home-page .hero-preview-player > div span {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

.home-page .preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.home-page .preview-dot.green { background: #16A34A; }
.home-page .preview-dot.orange { background: #F59E0B; }
.home-page .preview-dot.red { background: #EF4444; }


/* =========================================================
   INTRO
========================================================= */

.home-page .home-intro {
    padding: 100px 20px;
    text-align: center;
    background: #ffffff;
}

.home-page .home-intro h2 {
    margin: 17px 0;
    color: #0B132B;
    font-size: clamp(34px, 4vw, 51px);
    line-height: 1.15;
    letter-spacing: -2px;
}

.home-page .home-intro h2 span {
    color: #16A34A;
}

.home-page .home-intro > p:last-child {
    max-width: 670px;
    margin: 20px auto 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   FEATURE GRID
========================================================= */

.home-page .home-features {
    background: #f8fafc;
}

.home-page .home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-page .home-feature-card {
    position: relative;
    min-height: 250px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .home-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11,19,43,0.07);
}

.home-page .feature-index {
    position: absolute;
    top: 25px;
    right: 27px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 850;
}

.home-page .feature-symbol {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    background: #eaf7ee;
    color: #15803d;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 900;
}

.home-page .home-feature-card h3 {
    margin-bottom: 12px;
    font-size: 19px;
    color: #0B132B;
}

.home-page .home-feature-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   ADMINISTRATOR AND PLAYER SECTIONS
========================================================= */

.home-page .home-audience-section {
    padding: 110px 0;
}

.home-page .audience-inner {
    width: min(1250px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 85px;
}

.home-page .audience-copy h2 {
    margin: 17px 0;
    color: #0B132B;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.home-page .audience-copy h2 span {
    color: #16A34A;
}

.home-page .audience-copy > p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.85;
}

.home-page .audience-feature-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 28px 0 32px;
    list-style: none;
}

.home-page .audience-feature-list li {
    position: relative;
    padding-left: 27px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.home-page .audience-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16A34A;
    font-weight: 900;
}

.home-page .admin-audience {
    background: #ffffff;
}

.home-page .player-audience {
    background: #f8fafc;
}

.home-page .player-audience-inner {
    grid-template-columns: 0.9fr 1fr;
}


/* =========================================================
   AUDIENCE VISUAL PANELS
========================================================= */

.home-page .audience-visual {
    padding: 28px;
    background: #0B132B;
    color: #ffffff;
    border-radius: 13px;
    box-shadow: 0 25px 60px rgba(11,19,43,0.14);
}

.home-page .audience-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.home-page .visual-status {
    color: #4ade80;
}

.home-page .audience-tool {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.home-page .audience-tool:last-child {
    border-bottom: 0;
}

.home-page .tool-number {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(22,163,74,0.16);
    color: #4ade80;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.home-page .audience-tool strong,
.home-page .audience-tool span:not(.tool-number) {
    display: block;
}

.home-page .audience-tool strong {
    font-size: 14px;
}

.home-page .audience-tool div span {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 11px;
}

.home-page .player-welcome-preview {
    padding: 28px 0;
}

.home-page .player-welcome-preview > span {
    color: #4ade80;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.home-page .player-welcome-preview h3 {
    margin: 12px 0 7px;
    font-size: 29px;
}

.home-page .player-welcome-preview p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

.home-page .player-preview-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.home-page .player-preview-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    background: rgba(37,99,235,0.3);
    color: #93c5fd;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.home-page .player-preview-item strong,
.home-page .player-preview-item div span {
    display: block;
}

.home-page .player-preview-item strong {
    font-size: 13px;
}

.home-page .player-preview-item div span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.home-page .home-workflow {
    background: #ffffff;
}

.home-page .workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.home-page .workflow-step {
    position: relative;
    padding: 27px 20px;
    border-top: 2px solid #16A34A;
    background: #f8fafc;
    border-radius: 0 0 9px 9px;
}

.home-page .workflow-step > span {
    display: block;
    margin-bottom: 23px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

.home-page .workflow-step h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.home-page .workflow-step p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   PRICING
========================================================= */

.home-page .home-pricing {
    padding: 110px 20px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.12), transparent 55%),
        #0B132B;
}

.home-page .home-pricing .home-centered-heading h2 {
    color: #ffffff;
}

.home-page .home-pricing .home-centered-heading > p {
    color: #aab6c9;
}

.home-page .pricing-card {
    width: min(490px, 100%);
    margin: auto;
    padding: 38px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 13px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
}

.home-page .pricing-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 27px;
}

.home-page .pricing-plan-label {
    color: #0B132B;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.home-page .pricing-plan-tag {
    padding: 7px 9px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 850;
}

.home-page .pricing-card h3 {
    margin-bottom: 10px;
    color: #0B132B;
    font-size: 25px;
}

.home-page .pricing-description {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.home-page .pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: 25px;
    color: #0B132B;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -3px;
}

.home-page .pricing-amount > span {
    color: #16A34A;
    font-size: 35px;
}

.home-page .pricing-amount small {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.home-page .pricing-billing-note {
    color: #64748b;
    font-size: 12px;
}

.home-page .pricing-divider {
    height: 1px;
    margin: 25px 0;
    background: #e2e8f0;
}

.home-page .pricing-feature-list {
    display: grid;
    gap: 15px;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
}

.home-page .pricing-feature-list li {
    position: relative;
    padding-left: 27px;
    color: #334155;
    font-size: 13px;
}

.home-page .pricing-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16A34A;
    font-weight: 900;
}

.home-page .pricing-button {
    width: 100%;
}

.home-page .pricing-small-print {
    margin: 17px 0 0;
    color: #94a3b8;
    font-size: 10px;
    text-align: center;
}


/* =========================================================
   PROBLEM / SOLUTION
========================================================= */

.home-page .home-problem {
    padding: 100px 20px;
    background: #f8fafc;
    text-align: center;
}

.home-page .home-problem-inner {
    max-width: 750px;
    margin: auto;
}

.home-page .home-problem h2 {
    margin: 18px 0;
    color: #0B132B;
    font-size: clamp(35px, 4.5vw, 54px);
    line-height: 1.15;
    letter-spacing: -2px;
}

.home-page .home-problem h2 span {
    color: #16A34A;
}

.home-page .home-problem p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.home-page .home-problem .btn {
    margin-top: 18px;
}


/* =========================================================
   FAQ
========================================================= */

.home-page .home-faq {
    max-width: 1000px;
}

.home-page .faq-list {
    display: grid;
    gap: 12px;
}

.home-page .faq-item {
    padding: 0 23px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.home-page .faq-item summary {
    position: relative;
    padding: 21px 35px 21px 0;
    color: #0B132B;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.home-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.home-page .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 15px;
    color: #16A34A;
    font-size: 24px;
    font-weight: 500;
}

.home-page .faq-item[open] summary::after {
    content: "−";
}

.home-page .faq-item p {
    padding: 0 30px 20px 0;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   FINAL CTA
========================================================= */

.home-page .home-final-cta {
    padding: 95px 20px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(22,163,74,0.18), transparent 55%),
        #0B132B;
    text-align: center;
}

.home-page .home-final-cta-inner {
    max-width: 720px;
    margin: auto;
}

.home-page .home-final-cta h2 {
    margin: 18px 0;
    color: #ffffff;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.13;
    letter-spacing: -2px;
}

.home-page .home-final-cta h2 span {
    color: #16A34A;
}

.home-page .home-final-cta p {
    margin-bottom: 28px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}


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

.home-page .home-footer {
    padding: 60px 0 0;
    background: #000000;
    color: #ffffff;
}

.home-page .home-footer-main {
    width: min(1300px, 90%);
    margin: auto;
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.home-page .footer-logo .logo-wordmark {
    font-size: 19px;
}

.home-page .home-footer-brand p {
    max-width: 290px;
    margin-top: 17px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.home-page .home-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.home-page .home-footer-links strong {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 13px;
}

.home-page .home-footer-links a {
    color: #94a3b8;
    font-size: 12px;
    transition: color 0.2s ease;
}

.home-page .home-footer-links a:hover {
    color: #4ade80;
}

.home-page .home-footer-bottom {
    width: min(1300px, 90%);
    min-height: 65px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.home-page .home-footer-bottom p,
.home-page .home-footer-bottom span {
    margin: 0;
    color: #64748b;
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE NAVIGATION AND LAYOUT
========================================================= */

@media (max-width: 1150px) {

    .home-page .navbar-inner {
        width: 94%;
        min-height: 0;
        padding: 10px 0 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "links links";
        gap: 10px 18px;
    }

    .home-page .home-nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 0 7px;
        gap: 20px;
        scrollbar-width: thin;
    }

    .home-page .home-nav-links a {
        flex-shrink: 0;
    }

    .home-page .home-hero-inner {
        gap: 35px;
    }

    .home-page .audience-inner {
        gap: 45px;
    }
}


@media (max-width: 850px) {

    .home-page .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-page .home-hero-copy {
        max-width: 700px;
    }

    .home-page .home-hero-visual {
        max-width: 650px;
        width: 100%;
        margin: 15px auto 0;
    }

    .home-page .hero-dashboard {
        transform: none;
    }

    .home-page .home-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page .audience-inner,
    .home-page .player-audience-inner {
        grid-template-columns: 1fr;
    }

    .home-page .player-audience-inner .player-visual {
        order: 2;
    }

    .home-page .player-audience-inner .audience-copy {
        order: 1;
    }

    .home-page .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}


@media (max-width: 600px) {

    .home-page .navbar-inner {
        width: 94%;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "links links";
        align-items: center;
        gap: 8px 10px;
        padding: 8px 0 10px;
    }

    .home-page .home-navbar-logo,
    .home-page .home-navbar .home-navbar-logo {
        width: 112px;
        height: 112px;
    }

    .home-page .brand-mark {
        width: 38px;
        height: 35px;
    }

    .home-page .logo-wordmark {
        font-size: 16px;
    }

    .home-page .nav-actions {
        justify-self: end;
        justify-content: flex-end;
        margin-left: auto;
        gap: 7px;
    }

    .home-page .nav-actions .btn {
        min-height: 39px;
        padding: 0 12px;
        font-size: 11px;
    }

    .home-page .home-nav-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 0 9px;
        gap: 21px;
        scrollbar-width: thin;
    }

    .home-page .home-nav-links a {
        flex-shrink: 0;
        font-size: 12px;
    }

    .home-page .home-hero {
        padding: 70px 0;
    }

    .home-page .home-hero-inner {
        width: 90%;
    }

    .home-page .home-hero-copy h1 {
        font-size: 46px;
        letter-spacing: -2.5px;
    }

    .home-page .home-hero-copy > p {
        font-size: 15px;
    }

    .home-page .home-hero-actions {
        flex-direction: column;
    }

    .home-page .home-hero-actions .btn {
        width: 100%;
    }

    .home-page .hero-dashboard-content {
        padding: 15px;
    }

    .home-page .hero-dashboard-stats {
        gap: 7px;
    }

    .home-page .hero-dashboard-stats > div {
        padding: 11px;
    }

    .home-page .hero-dashboard-stats strong {
        font-size: 20px;
    }

    .home-page .home-intro,
    .home-page .home-section,
    .home-page .home-audience-section,
    .home-page .home-pricing {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .home-page .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-page .home-feature-card {
        min-height: auto;
        padding: 27px;
    }

    .home-page .audience-inner {
        width: 90%;
    }

    .home-page .audience-visual {
        padding: 20px;
    }

    .home-page .workflow-grid {
        grid-template-columns: 1fr;
    }

    .home-page .pricing-card {
        padding: 25px;
    }

    .home-page .pricing-amount {
        font-size: 55px;
    }

    .home-page .home-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

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

    .home-page .home-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }

}


@media (max-width: 380px) {

    .home-page .home-navbar-logo {
        width: 92px;
        height: 92px;
    }

    .home-page .nav-actions {
        gap: 5px;
    }

    .home-page .nav-actions .btn {
        min-height: 36px;
        padding: 0 8px;
        font-size: 10px;
    }
}

/* =========================================
   HOMEPAGE BRAND ASSETS
========================================= */

.home-navbar,
.home-navbar .navbar-inner {
    background-color: #000000;
}

.home-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-navbar .home-nav-links a {
    color: #E5E7EB;
}

.home-navbar .home-nav-links a:hover {
    color: #A3E635;
}

/* Keep the two navbar actions together at the far right. */
.home-navbar .nav-actions {
    justify-self: end;
    margin-left: auto;
}

/* =========================================
   HOMEPAGE FOOTER LOGO
========================================= */

.home-page .footer-logo-image {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
/* =========================================================
   FINAL HOMEPAGE NAVBAR
========================================================= */

.home-page .home-navbar {
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.home-page .home-navbar .navbar-inner {
    width: min(1500px, 94%);
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    margin: 0 auto;
    padding: 0;

    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) auto;
    grid-template-areas: "brand links actions";

    align-items: center;
    column-gap: 18px;
    overflow: visible;
}

/* LOGO */

.home-page .home-navbar .logo {
    grid-area: brand;
    width: 270px;
    height: 100px;

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

    overflow: visible;
}

.home-page .home-navbar .home-navbar-logo {
    display: block;
    width: 270px;
    height: 270px;
    min-width: 270px;
    transform: translateY(2px);

    max-width: none;
    max-height: none;

    object-fit: contain;
    flex: 0 0 270px;
}

/* NAVIGATION LINKS */

.home-page .home-navbar .home-nav-links {
    grid-area: links;

    width: 100%;
    min-width: 0;

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

    flex-wrap: nowrap;
    gap: clamp(12px, 1.4vw, 20px);

    overflow: visible;
    white-space: nowrap;
}

.home-page .home-navbar .home-nav-links a {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.4;
}

/* NAVIGATION BUTTONS */

.home-page .home-navbar .nav-actions {
    grid-area: actions;

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

    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    white-space: nowrap;
}

.home-page .home-navbar .nav-actions .btn {
    flex: 0 0 auto;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1150px) {

    .home-page .home-navbar {
        height: 145px;
        min-height: 145px;
        max-height: 145px;
    }

    .home-page .home-navbar .navbar-inner {
        width: 94%;
        height: 145px;
        min-height: 145px;
        max-height: 145px;

        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 95px 50px;
        grid-template-areas:
            "brand actions"
            "links links";

        gap: 0;
    }

    .home-page .home-navbar .logo {
        width: 150px;
        height: 95px;
    }

    .home-page .home-navbar .home-navbar-logo {
        width: 230px;
        height: 230px;
        min-width: 150px;
        flex-basis: 150px;
    }

    .home-page .home-navbar .home-nav-links {
        width: 100%;
        height: 50px;

        justify-content: center;
        gap: 22px;

        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .home-page .home-navbar .home-nav-links::-webkit-scrollbar {
        display: none;
    }

    .home-page .home-navbar .home-nav-links a {
        font-size: 12px;
    }

    .home-page .home-navbar .nav-actions {
        justify-self: end;
    }
}

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

@media (max-width: 600px) {

    .home-page .home-navbar {
        height: 135px;
        min-height: 135px;
        max-height: 135px;
    }

    .home-page .footer-logo-image {
    width: 220px;
    }

    .home-page .home-navbar .navbar-inner {
        width: 94%;
        height: 135px;
        min-height: 135px;
        max-height: 135px;

        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 85px 50px;
        grid-template-areas:
            "brand actions"
            "links links";
    }

    .home-page .home-navbar .logo {
        width: 115px;
        height: 85px;
    }

    .home-page .home-navbar .home-navbar-logo {
        width: 170px;
        height: 170px;
        min-width: 170px;
        flex-basis: 170px;
    }

    .home-page .home-navbar .home-nav-links {
        height: 50px;
        justify-content: flex-start;
        gap: 20px;
        padding: 0 2px;
    }

    .home-page .home-navbar .home-nav-links a {
        font-size: 12px;
    }

    .home-page .home-navbar .nav-actions {
        gap: 7px;
    }

    .home-page .home-navbar .nav-actions .btn {
        min-height: 36px;
        padding: 0 11px;
        font-size: 11px;
    }
}

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

@media (max-width: 380px) {

    .home-page .home-navbar .navbar-inner {
        width: 96%;
    }

    .home-page .home-navbar .logo {
        width: 100px;
    }

    .home-page .footer-logo-image {
    width: 220px;
    }

    .home-page .home-navbar .home-navbar-logo {
        width: 110px;
        height: 110px;
        min-width: 110px;
        flex-basis: 110px;
    }

    .home-page .home-navbar .nav-actions {
        gap: 5px;
    }

    .home-page .home-navbar .nav-actions .btn {
        min-height: 34px;
        padding: 0 8px;
        font-size: 10px;
    }

    .home-page .home-navbar .home-nav-links {
        gap: 16px;
    }

    .home-page .home-navbar .home-nav-links a {
        font-size: 11px;
    }
}

/* AUTH PAGE NAVBAR LOGO */

.navbar-logo {
    display: block;
    width: 220px;
    height: auto;
    object-fit: contain;
}