

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
    --mw-bg: #eef0f2;
    --mw-surface: #ffffff;
    --mw-border: #d8e5ee;
    --mw-text: rgb(9, 34, 49);
    --mw-muted: #60717c;
    --mw-primary: rgb(17, 119, 179);
    --mw-primary-dark: rgb(9, 34, 49);
    --mw-primary-soft: #e7f3fc;
    --mw-accent: rgb(74, 147, 230);
}


/* ==========================================================================
   2. Base document styles
   ========================================================================== */

html {
    font-size: 16px;
}

body {
    background: var(--mw-bg);
    color: var(--mw-text);
}

a {
    color: var(--mw-primary);
}

a:hover {
    color: var(--mw-primary-dark);
}


/* ==========================================================================
   3. Global layout & shared components
   ========================================================================== */

.app-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.app-card {
    background: var(--mw-surface);
    border: 1px solid var(--mw-border);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(31, 42, 31, 0.06);
}

.app-card-header {
    border-bottom: 1px solid var(--mw-border);
    padding: 1rem 1rem 0.75rem;
}

.app-card-body {
    padding: 1rem;
}

/* Clickable card links (dashboard bet cards, etc.) */
.app-card[href],
a.app-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.app-card[href]:hover,
a.app-card:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 119, 179, 0.32);
    box-shadow: 0 0.75rem 1.75rem rgba(9, 34, 49, 0.1);
}

.section-kicker {
    color: var(--mw-primary);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.stat-box {
    border: 1px solid var(--mw-border);
    border-radius: 0.75rem;
    background: #f8faf6;
    padding: 0.75rem;
}

.stat-box-label {
    display: block;
    font-size: 0.95rem;
    color: var(--mw-muted);
}

.stat-box-value {
    display: block;
    font-weight: 700;
    color: var(--mw-text);
}

/* Anchor scroll offset for sticky header */
#invite-user {
    scroll-margin-top: 5rem;
}


/* ==========================================================================
   4. Bootstrap overrides
   ========================================================================== */

.btn {
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--mw-primary);
    --bs-btn-border-color: var(--mw-primary);
    --bs-btn-hover-bg: var(--mw-primary-dark);
    --bs-btn-hover-border-color: var(--mw-primary-dark);
    --bs-btn-active-bg: var(--mw-primary-dark);
    --bs-btn-active-border-color: var(--mw-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--mw-primary);
    --bs-btn-border-color: var(--mw-primary);
    --bs-btn-hover-bg: var(--mw-primary);
    --bs-btn-hover-border-color: var(--mw-primary);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: var(--mw-primary-dark);
    --bs-btn-active-border-color: var(--mw-primary-dark);
    --bs-btn-active-color: #ffffff;
}

.badge-soft {
    background: var(--mw-primary-soft);
    color: var(--mw-primary-dark);
}

.table {
    margin-bottom: 0;
}

.table-responsive {
    border-radius: 0.75rem;
}


/* ==========================================================================
   5. Site header & navigation
   ========================================================================== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background:
            radial-gradient(circle at top left, rgba(74, 147, 230, 0.28), transparent 34%),
            linear-gradient(160deg, #0b3146, #1177b3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0.45rem 1.2rem rgba(9, 34, 49, 0.16);
    backdrop-filter: blur(8px);
}

.app-header-inner {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.app-brand:hover,
.app-brand:focus {
    color: #ffffff;
}

.app-brand-logo {
    display: block;
    width: auto;
    height: 2.75rem;
    object-fit: contain;
}

.app-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.app-header .btn {
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.app-header .btn-sm {
    padding: 0.46rem 0.82rem;
    font-size: 0.88rem;
}

.app-nav-link {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
}

.app-nav-link:hover,
.app-nav-link:focus {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.app-nav-link.active {
    border-color: rgba(231, 243, 252, 0.75);
    background: rgba(231, 243, 252, 0.18);
    color: #ffffff;
}

.app-nav-cta {
    border: 1px solid rgba(231, 243, 252, 0.9);
    background: #e7f3fc;
    color: var(--mw-primary-dark);
    box-shadow: 0 0.25rem 0.65rem rgba(9, 34, 49, 0.12);
}

.app-nav-cta:hover,
.app-nav-cta:focus,
.app-nav-cta.active {
    border-color: #b7dcf4;
    background: #d8ecfa;
    color: var(--mw-primary-dark);
}

.app-logout-form {
    margin: 0;
}

.app-nav-logout {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(210, 210, 210, 0.78);
    color: var(--mw-primary-dark);
}

.app-nav-logout:hover,
.app-nav-logout:focus {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Hidden on desktop; shown in mobile media query below */
.app-nav-toggle {
    display: none;
}

/* --- Header: mobile (≤575.98px) --- */
@media (max-width: 575.98px) {
    .app-header {
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 0.35rem 0.9rem rgba(9, 34, 49, 0.14);
    }

    .app-header-inner {
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .app-brand {
        min-width: 0;
        gap: 0.45rem;
        font-size: 0.95rem;
        line-height: 1;
        justify-content: center;
    }

    .app-brand-logo {
        height: 2.2rem;
        max-width: 10rem;
    }

    .app-nav-toggle {
        width: 2.35rem;
        height: 2.35rem;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 0.75rem;
        padding: 0;
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
        cursor: pointer;
    }

    .app-nav-toggle:hover,
    .app-nav-toggle:focus-visible {
        border-color: rgba(255, 255, 255, 0.65);
        background: rgba(255, 255, 255, 0.16);
    }

    .app-nav-toggle span {
        width: 1rem;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .app-nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(0.375rem) rotate(45deg);
    }

    .app-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .app-nav-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-0.375rem) rotate(-45deg);
    }

    .app-nav-collapsible {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        padding-top: 0.15rem;
    }

    .app-nav-collapsible.is-open {
        display: grid;
    }

    .app-nav-actions-auth {
        grid-template-columns: 1fr 1.25fr 0.85fr;
    }

    .app-nav-actions-public {
        grid-template-columns: 1fr 1fr;
    }

    .app-nav-actions {
        gap: 0.4rem;
    }

    .app-nav-actions .btn,
    .app-nav-actions form,
    .app-nav-actions form button {
        width: 100%;
    }

    .app-logout-form {
        grid-column: auto;
        margin: 0;
    }

    .app-header .btn-sm {
        padding: 0.42rem 0.35rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }
}


/* ==========================================================================
   6. Home / landing page
   ========================================================================== */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 2rem;
    padding: 2rem;
    overflow: hidden;
    background:
            radial-gradient(circle at 86% 18%, rgba(17, 119, 179, 0.16), transparent 38%),
            linear-gradient(145deg, #ffffff 0%, #eef7fc 48%, #dceef8 100%);
}

.home-kicker {
    margin-bottom: 0.75rem;
    color: var(--mw-primary);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.home-title {
    max-width: 760px;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.home-lead {
    max-width: 680px;
    color: var(--mw-muted);
    font-size: 1.08rem;
    font-weight: 420;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-score-card {
    width: 100%;
    max-width: 340px;
    border-radius: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(160deg, var(--mw-primary), var(--mw-primary-dark));
    color: #ffffff;
    box-shadow:
            0 1rem 2.2rem rgba(9, 34, 49, 0.18),
            0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-score-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.home-score-header > div {
    display: grid;
    gap: 0.2rem;
}

.home-score-header span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 750;
}

.home-score-header strong {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 950;
}

.home-score-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    background: rgba(231, 243, 252, 0.16);
    border: 1px solid rgba(231, 243, 252, 0.34);
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.home-score-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.home-score-meta span {
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.75rem;
    font-weight: 750;
}

.home-rank-list {
    display: grid;
    gap: 0.55rem;
}

.home-rank-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.09);
}

.home-rank-row-winner {
    border-color: rgba(214, 168, 41, 0.72);
    background: rgba(255, 255, 255, 0.14);
}

.home-rank-user {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.home-rank-user strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
}

.home-rank-user span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    line-height: 1.3;
    font-weight: 650;
}

.home-rank-points {
    display: grid;
    justify-items: end;
    gap: 0.05rem;
}

.home-rank-points strong {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 950;
}

.home-rank-points span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 750;
}

.home-catch-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
}

.home-catch-preview > div:first-child {
    display: grid;
    gap: 0.12rem;
}

.home-catch-preview > div:first-child span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 750;
}

.home-catch-preview > div:first-child strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.home-catch-best {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
}

.home-catch-best > strong {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 950;
}

.home-section {
    margin-top: 2.5rem;
}

.home-section-heading {
    max-width: 720px;
    margin-bottom: 1.25rem;
}

.home-section-heading h2 {
    margin-bottom: 0.6rem;
    color: var(--mw-primary-dark);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 950;
}

.home-section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--mw-muted);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 600;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.25rem;
    border-color: rgba(17, 119, 179, 0.18);
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.12), transparent 38%),
            linear-gradient(160deg, #ffffff, #edf6fc);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--mw-primary), var(--mw-accent));
}

.home-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 119, 179, 0.34);
    box-shadow: 0 0.85rem 1.9rem rgba(9, 34, 49, 0.11);
}

.home-feature-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.85rem;
    background: linear-gradient(160deg, var(--mw-primary), #0d5f91);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 950;
    box-shadow: 0 0.35rem 0.8rem rgba(17, 119, 179, 0.18);
}

.home-feature-label {
    color: var(--mw-primary);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-feature-card h3 {
    margin-bottom: 0.55rem;
    color: var(--mw-primary-dark);
    font-size: 1.12rem;
    line-height: 1.3;
    font-weight: 950;
}

.home-feature-card p {
    margin-bottom: 1.1rem;
    color: var(--mw-muted);
    font-size: 0.96rem;
    line-height: 1.55;
    font-weight: 600;
}

.home-feature-meta {
    margin-top: auto;
    border-top: 1px solid rgba(17, 119, 179, 0.14);
    padding-top: 0.8rem;
    color: var(--mw-primary-dark);
    font-size: 0.84rem;
    line-height: 1.4;
    font-weight: 850;
}

.home-mobile-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.5rem;
    padding: 1.5rem;
    background:
            radial-gradient(circle at top right, rgba(126, 197, 240, 0.25), transparent 38%),
            linear-gradient(160deg, var(--mw-primary-dark), #0d4f78);
    color: #ffffff;
    box-shadow: 0 1rem 2.5rem rgba(9, 34, 49, 0.18);
}

.home-mobile-section .home-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.home-mobile-copy h2 {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 950;
}

.home-mobile-copy > p {
    margin-bottom: 1.15rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

.home-mobile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-mobile-tags span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
}

.home-highlight-list {
    display: grid;
    gap: 0.7rem;
}

.home-highlight-list article {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
}

.home-highlight-number {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.7rem;
    background: rgba(231, 243, 252, 0.16);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 950;
}

.home-highlight-list article > div {
    display: grid;
    gap: 0.2rem;
}

.home-highlight-list strong {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 900;
}

.home-highlight-list article > div > span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 600;
}

/* --- Home: tablet (≤767.98px) --- */
@media (max-width: 767.98px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

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

    .home-mobile-section {
        grid-template-columns: 1fr;
        padding: 1.15rem;
        border-radius: 1.25rem;
    }

    .home-actions .btn {
        width: 100%;
    }

    .home-title {
        font-size: 2.35rem;
    }

    .home-hero-panel {
        justify-content: stretch;
    }

    .home-score-card {
        max-width: none;
    }
}

/* --- Home: mobile (≤575.98px) --- */
@media (max-width: 575.98px) {
    .home-section {
        margin-top: 2rem;
    }

    .home-feature-card {
        padding: 1.1rem;
    }

    .home-highlight-list article {
        padding: 0.8rem;
    }

    .home-rank-row {
        gap: 0.6rem;
        padding: 0.65rem;
    }

    .home-rank-user span {
        font-size: 0.74rem;
    }

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

    .home-catch-best {
        justify-items: start;
    }
}


/* ==========================================================================
   7. Authentication pages (login, register, password reset)
   ========================================================================== */

.auth-page {
    min-height: calc(100vh - 5rem);
}

.auth-page > .row {
    min-height: inherit;
    align-items: center;
}

.auth-panel {
    border: 1px solid rgba(17, 119, 179, 0.16);
    border-radius: 1.5rem;
    padding: 1.5rem;
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.18), transparent 36%),
            linear-gradient(160deg, #ffffff, #e7f3fc);
    box-shadow: 0 0.85rem 2rem rgba(9, 34, 49, 0.1);
}

.auth-panel-header {
    margin-bottom: 1.25rem;
}

.auth-title {
    color: var(--mw-primary-dark);
    font-size: clamp(1.9rem, 4vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.auth-lead {
    color: var(--mw-muted);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.auth-alert {
    border-radius: 1rem;
    font-weight: 700;
}

.auth-form .form-label {
    color: var(--mw-primary-dark);
    font-weight: 850;
}

.auth-form .form-control,
.auth-form .form-select {
    min-height: 2.85rem;
    border: 2px solid rgba(17, 119, 179, 0.42);
    border-radius: 0.85rem;
    background-color: #f8fbfd;
    color: var(--mw-primary-dark);
    font-weight: 650;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: var(--mw-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(17, 119, 179, 0.16);
}

.auth-submit {
    width: 100%;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 900;
}

.auth-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    border-top: 1px solid rgba(17, 119, 179, 0.14);
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    color: var(--mw-muted);
    font-size: 0.96rem;
    font-weight: 650;
}

.auth-switch a {
    color: var(--mw-primary);
    font-weight: 900;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-switch a:focus {
    color: var(--mw-primary-dark);
    text-decoration: underline;
}

/* Remember-me checkbox (login page) */
#remember-me.form-check-input {
    border: 2px solid #788980;
}

#remember-me.form-check-input:focus {
    border-color: #276443;
    box-shadow: 0 0 0 0.2rem rgba(39, 100, 67, 0.18);
}

#remember-me.form-check-input:checked {
    background-color: #276443;
    border-color: #276443;
}

/* REMOVED from original: .auth-card — unused in templates */

@media (max-width: 575.98px) {
    .auth-page > .row {
        align-items: flex-start;
    }

    .auth-panel {
        padding: 1.15rem;
        border-radius: 1.25rem;
    }

    .auth-title {
        font-size: 2rem;
    }
}


/* ==========================================================================
   8. Dashboard
   ========================================================================== */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(17, 119, 179, 0.16);
    border-radius: 1.5rem;
    padding: 1.5rem;
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.18), transparent 36%),
            linear-gradient(160deg, #ffffff, #e7f3fc);
    box-shadow: 0 0.75rem 1.8rem rgba(9, 34, 49, 0.08);
}

.dashboard-title {
    color: var(--mw-primary-dark);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.dashboard-lead {
    color: var(--mw-muted);
    font-size: 1rem;
}

.dashboard-lead strong {
    color: var(--mw-primary-dark);
    font-weight: 900;
}

.dashboard-main-action {
    min-width: fit-content;
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 900;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.dashboard-section-header h2 {
    color: var(--mw-primary-dark);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.dashboard-bet-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(17, 119, 179, 0.16);
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.08), transparent 34%),
            #ffffff;
}

.dashboard-bet-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    background: var(--mw-primary);
}

.dashboard-bet-card-active::before {
    background: #1177b3;
}

.dashboard-bet-card-upcoming::before {
    background: #d6a829;
}

.dashboard-bet-card-expired::before {
    background: #60717c;
}

.dashboard-bet-card .card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.15rem;
}

.dashboard-bet-card h4 {
    color: var(--mw-primary-dark);
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.dashboard-bet-card p {
    color: var(--mw-muted);
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 600;
}

.dashboard-bet-card .small {
    color: var(--mw-muted);
    font-size: 0.96rem;
    line-height: 1.55;
    font-weight: 600;
}

.dashboard-bet-card .small strong {
    color: var(--mw-muted);
    font-weight: 650;
}

.dashboard-bet-card .small > div > span {
    color: var(--mw-primary-dark);
    font-weight: 850;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-status-active {
    background: linear-gradient(160deg, #1177b3, #0d5f91);
    color: #ffffff;
    box-shadow: 0 0.35rem 0.8rem rgba(17, 119, 179, 0.22);
}

.dashboard-status-upcoming {
    background: #fff3c4;
    color: #6f4b08;
    border: 1px solid;
}

.dashboard-status-expired {
    background: #edf1f4;
    color: #42525d;
    border: 1px solid;
}

/* Dashboard invitation cards */
.dashboard-invite-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    padding: 1.15rem;
    background:
            radial-gradient(circle at top right, rgba(126, 197, 240, 0.22), transparent 38%),
            linear-gradient(160deg, #12384d, #0f658f);
    color: #ffffff;
    box-shadow: 0 0.75rem 1.8rem rgba(9, 34, 49, 0.14);
}

.dashboard-invite-card .section-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-invite-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
}

.dashboard-invite-title {
    margin-bottom: 0;
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.dashboard-invite-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(231, 243, 252, 0.42);
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
    background: rgba(231, 243, 252, 0.14);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-invite-description {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    line-height: 1.5;
    font-weight: 600;
}

.dashboard-invite-meta-grid {
    display: grid;
    gap: 0.65rem;
}

.dashboard-invite-meta {
    display: grid;
    gap: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-invite-meta span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-invite-meta strong {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 900;
}

.dashboard-invite-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: auto;
}

.dashboard-invite-actions .btn {
    border-radius: 999px;
    font-weight: 900;
}

.dashboard-invite-actions .btn-primary {
    background: linear-gradient(160deg, #e7f3fc, #b7dcf4);
    border-color: #b7dcf4;
    color: var(--mw-primary-dark);
}

.dashboard-invite-actions .btn-primary:hover,
.dashboard-invite-actions .btn-primary:focus {
    background: linear-gradient(160deg, #d8ecfa, #9dcced);
    border-color: #9dcced;
    color: var(--mw-primary-dark);
}

.dashboard-invite-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-invite-actions .btn-outline-light:hover,
.dashboard-invite-actions .btn-outline-light:focus {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .dashboard-hero {
        display: grid;
        padding: 1.15rem;
        border-radius: 1.25rem;
    }

    .dashboard-main-action {
        width: 100%;
    }

    .dashboard-bet-card .card-body {
        padding: 1.05rem;
    }

    .dashboard-bet-card h4 {
        font-size: 1.2rem;
    }

    .dashboard-bet-card p {
        font-size: 0.96rem;
    }

    .dashboard-bet-card .small {
        font-size: 0.95rem;
    }

    .dashboard-status {
        font-size: 0.8rem;
    }

    .dashboard-section-header {
        align-items: flex-start;
    }

    .dashboard-invite-card {
        padding: 1rem;
    }

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

    .dashboard-invite-title {
        font-size: 1.3rem;
    }
}


/* ==========================================================================
   9. Bet detail page — hero & info cards
   ========================================================================== */

.bet-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.5rem;
    padding: 1.5rem;
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.3), transparent 34%),
            linear-gradient(160deg, var(--mw-primary-dark), #0d4f78);
    color: #ffffff;
    box-shadow: 0 1rem 2.5rem rgba(9, 34, 49, 0.2);
}

.bet-hero .section-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.bet-hero-content {
    min-width: 0;
}

.bet-hero-title {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bet-hero-date {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bet-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.bet-meta-pill {
    display: grid;
    gap: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.bet-meta-pill strong {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bet-meta-pill span {
    color: #ffffff;
    font-weight: 800;
}

.bet-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.65rem;
    min-width: fit-content;
}

.bet-hero-actions .btn-primary {
    background: linear-gradient(160deg, #e7f3fc, #b7dcf4);
    border-color: #b7dcf4;
    color: var(--mw-primary-dark);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.bet-hero-actions .btn-primary:hover,
.bet-hero-actions .btn-primary:focus {
    background: linear-gradient(160deg, #d8ecfa, #9dcced);
    border-color: #9dcced;
    color: var(--mw-primary-dark);
}

.bet-hero-actions .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.bet-entry-notice {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    text-align: right;
}

.bet-soft-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    padding: 1.25rem;
    background:
            radial-gradient(circle at top right, rgba(126, 197, 240, 0.18), transparent 38%),
            linear-gradient(160deg, #12384d, #0d4f78);
    color: #ffffff;
    box-shadow: 0 0.75rem 1.8rem rgba(9, 34, 49, 0.14);
}

.bet-soft-card .section-kicker {
    color: rgba(255, 255, 255, 0.78);
}

.bet-soft-card h2 {
    color: #ffffff;
}

.bet-soft-card p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.bet-soft-card .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 767.98px) {
    .bet-hero {
        display: grid;
        padding: 1.2rem;
        border-radius: 1.25rem;
    }

    .bet-hero-actions {
        align-items: stretch;
    }

    .bet-hero-actions .btn {
        width: 100%;
    }

    .bet-entry-notice {
        max-width: none;
        text-align: left;
    }

    .bet-meta-pill {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .detail-sidebar-card {
        position: sticky;
        top: 5.5rem;
    }
}


/* ==========================================================================
   10. Leaderboard (bet detail)
   ========================================================================== */

.leaderboard-card {
    padding: 1.25rem;
    border: 0;
    background: linear-gradient(160deg, var(--mw-primary-dark), #0d4f78);
    color: #ffffff;
    box-shadow: 0 1rem 2.5rem rgba(9, 34, 49, 0.22);
}

.leaderboard-card .section-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.leaderboard-card h2 {
    color: #ffffff;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.leaderboard-table {
    --bs-table-bg: transparent;
    --bs-table-color: #ffffff;
    --bs-table-border-color: rgba(255, 255, 255, 0.14);
    margin-bottom: 0;
}

.leaderboard-table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.leaderboard-table tbody tr {
    border-color: rgba(255, 255, 255, 0.12);
}

.leaderboard-table tbody td {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    color: #ffffff;
}

.leaderboard-row-winner {
    background: rgba(255, 255, 255, 0.08);
}

.rank-pill {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 800;
}

.rank-pill-first {
    border-color: #d6a829;
    background:
            radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.65), transparent 22%),
            linear-gradient(145deg, #fff1a8 0%, #d6a829 42%, #9b6b12 100%);
    color: #092231;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.55),
            0 0.35rem 0.9rem rgba(155, 107, 18, 0.28);
}

.leaderboard-user {
    display: grid;
    gap: 0.15rem;
}

.leaderboard-user strong {
    color: #ffffff;
}

.leaderboard-user span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 700;
}

.points-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: #ffffff;
    color: var(--mw-primary-dark);
    font-weight: 800;
}

.points-pill small {
    opacity: 0.78;
    font-weight: 700;
}

.score-mini-pill {
    display: inline-flex;
    justify-content: center;
    min-width: 2.2rem;
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-weight: 800;
}

/* Mobile leaderboard cards (replaces table on small screens) */
.mobile-rank-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.12);
}

/* MERGED: was 0.75rem in stat section and 0.85rem here — kept 0.85rem */
.mobile-rank-card + .mobile-rank-card {
    margin-top: 0.85rem;
}

.mobile-rank-card-winner {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(214, 168, 41, 0.85);
}

.mobile-rank-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-rank-name {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 900;
}

.mobile-rank-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
}

.mobile-points {
    text-align: right;
}

.mobile-points strong,
.mobile-points span {
    display: block;
}

.mobile-points strong {
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
}

.mobile-points span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    font-weight: 800;
}

.leaderboard-stat-grid {
    margin-top: 0.5rem;
}

.leaderboard-card .stat-box {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(9, 34, 49, 0.22);
}

.leaderboard-card .stat-box-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 700;
}

.leaderboard-card .stat-box-value {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
}

.leaderboard-note {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.45;
}

.leaderboard-empty {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
    .leaderboard-card {
        padding: 1rem;
    }

    .leaderboard-header {
        display: grid;
    }
}


/* ==========================================================================
   11. Catch overview (bet detail) — SCOPED to fix duplicate .catch-species-card
   ========================================================================== */

.catch-overview-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    padding: 1.25rem;
    background:
            radial-gradient(circle at top right, rgba(126, 197, 240, 0.3), transparent 38%),
            linear-gradient(160deg, #104861, #1680b7);
    color: #ffffff;
    box-shadow: 0 0.75rem 1.8rem rgba(9, 34, 49, 0.14);
}

.catch-overview-card .section-kicker {
    color: rgba(255, 255, 255, 0.84);
}

.catch-overview-header {
    margin-bottom: 1rem;
}

.catch-overview-header h2 {
    color: #ffffff;
}

.catch-overview-card .catch-empty {
    color: rgba(255, 255, 255, 0.88);
}

.catch-species-list {
    display: grid;
    gap: 0.95rem;
}

/* SCOPED: was also defined globally with light theme (dead code) */
.catch-overview-card .catch-species-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.15rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.catch-species-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.catch-species-name {
    margin-bottom: 0.1rem;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
}

.catch-overview-card .catch-species-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 700;
}

.catch-user-list {
    display: grid;
    gap: 0.75rem;
}

.catch-user-row {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1rem;
    padding: 0.9rem;
    background: rgba(9, 34, 49, 0.22);
}

.catch-user-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.catch-user-name {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
}

.catch-overview-card .catch-count {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    font-weight: 700;
}

.catch-best-box {
    text-align: right;
}

.catch-overview-card .catch-best-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.catch-best-length {
    display: block;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 950;
}

.best-catch-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    border-radius: 999px;
    padding: 0.32rem 0.58rem;
    background: linear-gradient(160deg, #e7f3fc, #b7dcf4);
    color: var(--mw-primary-dark);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.best-catch-badge-small {
    margin-top: 0;
    padding: 0.22rem 0.48rem;
    font-size: 0.9rem;
}

.catch-details {
    margin-top: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.catch-overview-card .catch-details summary {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 850;
}

.catch-details[open] summary {
    margin-bottom: 0.65rem;
}

/* MERGED: three duplicate .catch-entry-list blocks → single definition */
.catch-overview-card .catch-entry-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.45;
}

.catch-overview-card .catch-entry-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.catch-entry-length {
    color: #ffffff;
    font-weight: 900;
}

.catch-overview-card .catch-entry-date {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 750;
}

.catch-overview-card .catch-entry-separator {
    color: rgba(255, 255, 255, 0.72);
}

.catch-row-species,
.catch-entry-species {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.18rem 0.45rem;
    background: #d8ecfa;
    color: var(--mw-primary-dark);
    font-weight: 850;
    font-size: 0.85rem;
}

.catch-row-species {
    width: fit-content;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.22rem 0.52rem;
}

@media (max-width: 575.98px) {
    .catch-overview-card {
        padding: 1rem;
    }

    .catch-overview-card .catch-species-card {
        padding: 0.9rem;
    }

    .catch-user-main {
        display: grid;
    }

    .catch-best-box {
        text-align: left;
    }

    .catch-best-length {
        font-size: 1.25rem;
    }

    /* font-size stays 0.95rem from the base rule above;
       the original @media 0.93rem block (line 1497) is overridden
       by the later global 0.95rem block (line 1758) */
}


/* ==========================================================================
   12. Participants card (bet detail)
   ========================================================================== */

.participant-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    padding: 1.25rem;
    background:
            radial-gradient(circle at top right, rgba(126, 197, 240, 0.22), transparent 38%),
            linear-gradient(160deg, #12384d, #0f658f);
    color: #ffffff;
    box-shadow: 0 0.75rem 1.8rem rgba(9, 34, 49, 0.14);
    scroll-margin-top: 5rem;
}

.participant-card .section-kicker {
    color: rgba(255, 255, 255, 0.84);
}

.participant-card-header {
    margin-bottom: 1rem;
}

.participant-card-header h2 {
    color: #ffffff;
}

.participant-alert {
    border-radius: 1rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    font-weight: 750;
}

.participant-alert-success {
    border: 1px solid rgba(183, 220, 244, 0.5);
    background: rgba(231, 243, 252, 0.16);
    color: #ffffff;
}

.participant-alert-danger {
    border: 1px solid rgba(255, 190, 190, 0.5);
    background: rgba(255, 80, 80, 0.14);
    color: #ffffff;
}

.participant-invite-form {
    margin-bottom: 1rem;
}

.participant-label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 850;
}

.participant-input-group {
    display: flex;
    gap: 0.5rem;
}

.participant-input-group .form-control {
    min-width: 0;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--mw-primary-dark);
    font-weight: 700;
}

.participant-input-group .form-control::placeholder {
    color: rgba(9, 34, 49, 0.52);
}

.participant-input-group .btn-primary {
    background: linear-gradient(160deg, #e7f3fc, #b7dcf4);
    border-color: #b7dcf4;
    color: var(--mw-primary-dark);
    font-weight: 900;
}

.participant-list {
    display: grid;
    gap: 0.7rem;
}

.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
}

.participant-name {
    color: #ffffff;
    font-weight: 900;
}

.participant-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 700;
}

.participant-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.32rem 0.58rem;
    font-size: 0.85rem;
    font-weight: 900;
    white-space: nowrap;
}

.participant-status-accepted {
    background: linear-gradient(160deg, #e7f3fc, #b7dcf4);
    color: var(--mw-primary-dark);
}

.participant-status-invited {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.participant-status-declined {
    background: rgba(255, 120, 120, 0.18);
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .participant-card {
        padding: 1rem;
    }

    .participant-input-group {
        display: grid;
    }

    .participant-input-group .btn {
        width: 100%;
    }

    .participant-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================================
   13. Forms — bet creation, catch entry, global catch
   ========================================================================== */

.form-page-hero {
    border: 1px solid rgba(17, 119, 179, 0.16);
    border-radius: 1.5rem;
    padding: 1.5rem;
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.18), transparent 36%),
            linear-gradient(160deg, #ffffff, #e7f3fc);
    box-shadow: 0 0.75rem 1.8rem rgba(9, 34, 49, 0.08);
}

.form-page-title {
    color: var(--mw-primary-dark);
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.form-page-lead {
    color: var(--mw-muted);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.bet-form-card {
    border: 1px solid rgba(17, 119, 179, 0.16);
    border-radius: 1.25rem;
    padding: 1.35rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 1.8rem rgba(9, 34, 49, 0.08);
}

.form-section-title {
    margin-bottom: 1rem;
}

.form-section-title h2 {
    color: var(--mw-primary-dark);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.bet-form-card .form-label {
    color: var(--mw-primary-dark);
    font-weight: 850;
}

.bet-form-card .form-control,
.bet-form-card .form-select {
    min-height: 2.85rem;
    border: 2px solid rgba(17, 119, 179, 0.42);
    border-radius: 0.85rem;
    background-color: #f8fbfd;
    color: var(--mw-primary-dark);
    font-weight: 650;
}

.bet-form-card textarea.form-control {
    min-height: 7rem;
}

.bet-form-card .form-control:focus,
.bet-form-card .form-select:focus {
    border-color: var(--mw-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(17, 119, 179, 0.16);
}

.bet-form-card .form-text {
    color: var(--mw-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.bet-form-card input[type="number"]::-webkit-outer-spin-button,
.bet-form-card input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.bet-form-card input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.bet-form-submit {
    width: 100%;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 900;
}

.rules-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.15rem;
    padding: 1rem;
    background:
            radial-gradient(circle at top right, rgba(126, 197, 240, 0.22), transparent 38%),
            linear-gradient(160deg, #12384d, #0f658f);
    color: #ffffff;
}

.rules-card .section-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.rules-card ul {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}

.rules-card li {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.45;
    font-weight: 600;
}

.rules-list {
    display: grid;
    gap: 0.7rem;
}

.rules-list div {
    display: grid;
    gap: 0.18rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.95rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
}

.rules-list strong {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 900;
}

.rules-list span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.45;
    font-weight: 600;
}

.catch-back-link {
    border-radius: 999px;
    font-weight: 850;
}

.catch-entry-hint {
    display: grid;
    gap: 0.25rem;
    border: 1px solid rgba(17, 119, 179, 0.16);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.12), transparent 36%),
            var(--mw-primary-soft);
}

.catch-entry-hint strong {
    color: var(--mw-primary-dark);
    font-weight: 900;
}

.catch-entry-hint span {
    color: var(--mw-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 600;
}

/* Global catch entry — multi-bet selection */
.global-bet-option-list {
    display: grid;
    gap: 0.85rem;
}

.global-bet-option {
    display: block;
    border: 1.5px solid rgba(17, 119, 179, 0.28);
    border-radius: 1rem;
    padding: 0.9rem;
    background:
            radial-gradient(circle at top right, rgba(74, 147, 230, 0.16), transparent 36%),
            linear-gradient(160deg, #ffffff, #edf6fc);
    cursor: pointer;
    box-shadow: 0 0.45rem 1rem rgba(9, 34, 49, 0.07);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.global-bet-option:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 119, 179, 0.5);
    box-shadow: 0 0.65rem 1.35rem rgba(9, 34, 49, 0.1);
}

.global-bet-content {
    min-width: 0;
}

.global-bet-option-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.global-bet-option .form-check-input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.18rem;
    border: 1.5px solid rgba(17, 119, 179, 0.55);
    cursor: pointer;
}

.global-bet-option .form-check-input:checked {
    background-color: var(--mw-primary);
    border-color: var(--mw-primary);
}

.global-bet-title {
    display: block;
    color: var(--mw-primary-dark);
    font-size: 1.04rem;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.global-bet-date {
    margin-top: 0.25rem;
    color: var(--mw-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.global-bet-species {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
    color: var(--mw-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.global-bet-species span {
    font-weight: 750;
}

.global-bet-species strong {
    color: var(--mw-primary-dark);
    font-weight: 850;
}

.global-catch-actions {
    display: flex;
    gap: 0.65rem;
}

.global-catch-actions .btn {
    border-radius: 999px;
    font-weight: 900;
}

.global-catch-actions .btn-primary {
    flex: 1 1 auto;
}

@media (max-width: 575.98px) {
    .form-page-hero {
        padding: 1.15rem;
        border-radius: 1.25rem;
    }

    .bet-form-card {
        padding: 1rem;
    }

    .form-page-title {
        font-size: 1.85rem;
    }

    .rules-card {
        padding: 0.9rem;
    }

    .catch-back-link {
        width: 100%;
    }

    .global-bet-option {
        padding: 0.85rem;
    }

    .global-bet-option-main {
        gap: 0.65rem;
    }

    .global-bet-title {
        font-size: 1rem;
    }

    .global-bet-date,
    .global-bet-species {
        font-size: 0.88rem;
    }

    .global-catch-actions {
        display: grid;
    }

    .global-catch-actions .btn {
        width: 100%;
    }
}


/* ==========================================================================
   14. Global mobile tweaks (typography & layout)
   ========================================================================== */

@media (max-width: 575.98px) {
    .app-page {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    h1,
    .h1 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.05rem;
    }

    .card-body {
        padding: 1rem;
    }

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