/* =============================================================================
   Event Manager — professional UI system
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap");

:root {
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --teebox-green: #2d4739;
    --teebox-green-dark: #1e392a;
    --teebox-lime: #a3c644;
    --teebox-lime-hover: #8eb23b;
    --color-ink: #1a2e24;
    --color-ink-muted: #5a6f63;
    --color-border: #e4ebe6;
    --color-border-strong: #c5d4c9;
    --color-surface: #f4f7f4;
    --color-surface-elevated: #ffffff;
    --color-accent: var(--teebox-green);
    --color-accent-hover: var(--teebox-green-dark);
    --color-accent-soft: rgba(45, 71, 57, 0.12);
    --color-cta: var(--teebox-lime);
    --color-cta-hover: var(--teebox-lime-hover);
    --color-danger: #dc2626;
    --color-warning-bg: #fffbeb;
    --color-warning-border: #fcd34d;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(30, 57, 42, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(30, 57, 42, 0.1), 0 2px 4px -2px rgba(30, 57, 42, 0.06);
    --shadow-lg: 0 10px 40px -10px rgba(30, 57, 42, 0.2);
    --transition-fast: 0.15s ease;
}

/* -----------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------------- */

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    color: var(--color-ink);
    line-height: 1.55;
}

.app-page {
    min-height: 100vh;
    background-color: var(--color-surface);
    background-image: linear-gradient(180deg, #f8fafc 0%, var(--color-surface) 32%, #e2e8f0 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

a {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

/* -----------------------------------------------------------------------------
   Navbar (admin + member)
   ----------------------------------------------------------------------------- */

.app-navbar {
    background: #ecf2e8 !important;
    box-shadow: var(--shadow-md);
    padding: 0.55rem 1.25rem;
    border-bottom: 1px solid rgba(30, 57, 42, 0.1);
}

.app-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--teebox-green-dark) !important;
    letter-spacing: -0.03em;
}

.app-navbar .navbar-brand:hover {
    color: var(--teebox-green) !important;
}

.app-navbar .nav-link {
    color: var(--teebox-green-dark) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.app-navbar .nav-link:hover {
    color: var(--teebox-green-dark) !important;
    background: rgba(30, 57, 42, 0.08);
}

.app-navbar .navbar-text {
    color: rgba(30, 57, 42, 0.75) !important;
    font-size: 0.9rem;
}

.app-navbar .app-user-menu {
    color: rgba(30, 57, 42, 0.85) !important;
    font-size: 0.9rem;
}

.app-navbar .app-user-menu:hover,
.app-navbar .app-user-menu:focus {
    color: var(--teebox-green-dark) !important;
}

.app-navbar .navbar-toggler {
    border-color: rgba(30, 57, 42, 0.25);
    padding: 0.35rem 0.55rem;
}

.app-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%231e392a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.app-navbar .badge {
    font-weight: 600;
    vertical-align: middle;
}

.app-notifications-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
}

.app-notifications-bell .fa-bell {
    font-size: 1.05rem;
}

.app-notifications-bell__badge {
    position: absolute;
    top: 0.2rem;
    right: 0.05rem;
    font-size: 0.62rem;
    line-height: 1;
    padding: 0.18rem 0.35rem;
    min-width: 1rem;
    border-radius: 999px;
}

.app-notifications-bell:hover .fa-bell,
.app-notifications-bell:focus .fa-bell {
    color: #fff;
}

/* -----------------------------------------------------------------------------
   Main content shell
   ----------------------------------------------------------------------------- */

.app-page > .container-fluid > .row > .col-md-12 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 2.5rem;
}

.container:not(.navbar .container) {
    padding-bottom: 2rem;
}

/* -----------------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------------- */

.app-card {
    background: var(--color-surface-elevated) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.app-card:hover {
    box-shadow: var(--shadow-md);
}

.app-card .card-body {
    background: var(--color-surface-elevated) !important;
}

.app-card .card-header:not(.app-table-header) {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: var(--color-ink) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border) !important;
    padding: 0.85rem 1.15rem;
}

/* Dashboard stat tiles */
.app-stat-card {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.app-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.app-stat-card .card-body {
    padding: 1.35rem 1.5rem;
    position: relative;
}

.app-stat-card .card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.92;
    margin-bottom: 0.35rem;
}

.app-stat-card .display-4 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.app-stat-card a {
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.95;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.app-stat-card a:hover {
    opacity: 1;
    border-bottom-color: #fff;
}

.app-stat-card--events {
    background: linear-gradient(145deg, var(--teebox-green) 0%, var(--teebox-green-dark) 55%, #163328 100%) !important;
    color: #fff !important;
}

.app-stat-card--events .card-body,
.app-stat-card--members .card-body {
    background: transparent !important;
}

.app-stat-card--members {
    background: linear-gradient(145deg, var(--teebox-lime) 0%, var(--teebox-lime-hover) 45%, #6d9429 100%) !important;
    color: var(--teebox-green-dark) !important;
}

.app-stat-card--members a {
    color: var(--teebox-green-dark) !important;
}

/* CTA column on dashboard */
.app-dashboard-cta .btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    border: none;
    background: linear-gradient(180deg, var(--teebox-lime) 0%, var(--teebox-lime-hover) 100%);
    color: var(--teebox-green-dark) !important;
}

.app-dashboard-cta .btn:hover {
    background: linear-gradient(180deg, #b5d45a 0%, var(--teebox-lime) 100%);
    box-shadow: var(--shadow-md);
    color: var(--teebox-green-dark) !important;
}

.app-stat-card--upcoming {
    background: linear-gradient(145deg, #1e5a6e 0%, #164a5c 55%, #0f3544 100%) !important;
    color: #fff !important;
}

.app-stat-card--upcoming a,
.app-stat-card--confirmed a,
.app-stat-card--pending a,
.app-stat-card--leaderboards a {
    color: inherit !important;
    opacity: 0.92;
}

.app-stat-card--confirmed {
    background: linear-gradient(145deg, #0d9488 0%, #0f766e 50%, #115e59 100%) !important;
    color: #fff !important;
}

.app-stat-card--pending {
    background: linear-gradient(145deg, #d97706 0%, #b45309 50%, #92400e 100%) !important;
    color: #fff !important;
}

.app-stat-card--leaderboards {
    background: linear-gradient(145deg, #5b21b6 0%, #4c1d95 50%, #3b0764 100%) !important;
    color: #fff !important;
}

/* Organization dashboard */
.org-dashboard {
    max-width: 1400px;
}

.org-dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--teebox-green-dark) 0%, var(--teebox-green) 55%, #3d5c4a 100%);
    color: #f8fafc;
    box-shadow: var(--shadow-lg);
}

.org-dashboard-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.org-dashboard-hero__title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.org-dashboard-hero__meta {
    font-size: 0.9rem;
    opacity: 0.88;
}

.org-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 99px;
    line-height: 1.3;
}

.org-scope-badge--all {
    background: rgba(163, 198, 68, 0.25);
    color: #e8f5c4;
    border: 1px solid rgba(163, 198, 68, 0.45);
}

.org-scope-badge--org {
    background: rgba(255, 255, 255, 0.14);
    color: #f0fdf4;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.org-scope-badge--impersonate {
    background: rgba(251, 191, 36, 0.2);
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.org-dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.org-dashboard-hero__actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.org-dashboard-hero__actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Org dashboard KPIs — unified white tiles (matches screenshot) */
.org-dashboard .org-kpi-card,
.org-dashboard .org-kpi-card.app-stat-card--events,
.org-dashboard .org-kpi-card.app-stat-card--members,
.org-dashboard .org-kpi-card.app-stat-card--upcoming,
.org-dashboard .org-kpi-card.app-stat-card--confirmed,
.org-dashboard .org-kpi-card.app-stat-card--pending,
.org-dashboard .org-kpi-card.app-stat-card--leaderboards {
    background: var(--color-surface-elevated) !important;
    color: var(--teebox-green) !important;
    border: 1px solid var(--color-border) !important;
}

.org-dashboard .org-kpi-card .card-body {
    padding: 1.1rem 1.25rem 1.15rem;
    background: transparent !important;
}

.org-dashboard .org-kpi-card .card-title {
    color: var(--color-ink-muted) !important;
    opacity: 1;
}

.org-dashboard .org-kpi-card .display-4 {
    color: var(--teebox-green) !important;
}

.org-dashboard .org-kpi-card a {
    color: var(--teebox-green) !important;
    border-bottom-color: var(--color-border-strong) !important;
}

.org-dashboard .org-kpi-card a:hover {
    color: var(--teebox-green-dark) !important;
    border-bottom-color: var(--teebox-green) !important;
}

.org-kpi-card__icon {
    font-size: 1.1rem;
    color: var(--teebox-green);
    opacity: 0.85;
    margin-bottom: 0.35rem;
}

.org-kpi-card .display-4 {
    font-size: 1.85rem;
}

.org-kpi-card__hint {
    font-size: 0.78rem;
    color: var(--color-ink-muted);
    opacity: 1;
}

.org-dashboard-panel {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.org-dashboard-panel__header {
    background: linear-gradient(180deg, var(--teebox-green) 0%, var(--teebox-green-dark) 100%) !important;
    color: #f8fafc !important;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    padding: 0.75rem 1rem;
}

.org-dashboard-panel__header i {
    margin-right: 0.35rem;
    opacity: 0.9;
}

.org-dashboard-panel__body {
    background: var(--color-surface-elevated);
}

.org-panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.org-dashboard-panel__header .org-panel-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    color: #fff !important;
    text-decoration: none;
}

.org-panel-btn--solid {
    background: var(--teebox-lime);
    border-color: var(--teebox-lime);
    color: var(--teebox-green-dark) !important;
}

.org-panel-btn--solid:hover {
    background: #b5d45a;
    border-color: #b5d45a;
    color: var(--teebox-green-dark) !important;
}

.org-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.org-row-actions .org-panel-btn {
    border-color: var(--color-border-strong);
    background: var(--color-surface-elevated);
    color: var(--teebox-green) !important;
}

.org-row-actions .org-panel-btn:hover {
    border-color: var(--teebox-green);
    background: var(--color-accent-soft);
    color: var(--teebox-green-dark) !important;
}

.org-row-actions .org-panel-btn--solid {
    background: var(--teebox-green);
    border-color: var(--teebox-green);
    color: #fff !important;
}

.org-row-actions .org-panel-btn--solid:hover {
    background: var(--teebox-green-dark);
    border-color: var(--teebox-green-dark);
    color: #fff !important;
}

/* Dashboard data tables — single green header on card only */
.org-data-table {
    table-layout: fixed;
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.org-data-table thead th {
    background: #eef3ef !important;
    color: var(--teebox-green) !important;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    padding: 0.65rem 1rem !important;
    vertical-align: middle;
    text-align: left;
}

.org-data-table tbody td {
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
    font-size: 0.88rem;
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    background: var(--color-surface-elevated) !important;
    text-align: left;
}

.org-data-table tbody tr:last-child td {
    border-bottom: none !important;
}

.org-data-table__col-event { width: 38%; }
.org-data-table__col-date { width: 16%; }
.org-data-table__col-confirmed { width: 22%; }
.org-data-table__col-actions { width: 24%; }
.org-data-table thead .org-data-table__col-actions,
.org-data-table tbody .org-data-table__col-actions {
    text-align: right !important;
}

.org-data-table__col-player { width: 32%; }
.org-data-table__col-status { width: 18%; }
.org-data-table__col-course { width: 34%; }
.org-data-table__col-imported { width: 28%; }

.org-event-name {
    font-weight: 600;
    color: var(--color-ink);
}

.org-event-link {
    display: block;
    font-weight: 600;
    color: var(--teebox-green);
    text-decoration: none;
}

.org-event-link:hover {
    color: var(--teebox-green-dark);
    text-decoration: underline;
}

.org-cell-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-ink-muted);
    line-height: 1.3;
}

.org-status-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    border-radius: 99px;
    line-height: 1.3;
}

.org-status-pill--open {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.org-status-pill--pending {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.org-status-pill--declined {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.org-status-pill--completed {
    background: rgba(45, 71, 57, 0.12);
    color: var(--teebox-green);
}

.org-status-pill--closed {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.org-status-pill--draft {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.org-count-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: rgba(45, 71, 57, 0.1);
    color: var(--teebox-green);
}

.org-fill-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
}

.org-fill-bar__track {
    flex: 1;
    min-width: 3.5rem;
    height: 8px;
    background: #d4ddd6;
    border-radius: 99px;
    overflow: hidden;
}

.org-fill-bar__fill {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(90deg, var(--teebox-lime) 0%, var(--teebox-green) 100%);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.org-fill-bar__label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teebox-green);
    white-space: nowrap;
}

.org-empty-cell {
    text-align: center !important;
    padding: 2rem 1rem !important;
    color: var(--color-ink-muted) !important;
}

.org-empty-cell__icon {
    display: block;
    margin: 0 auto 0.65rem;
    font-size: 1.5rem;
    color: var(--teebox-lime-hover);
    opacity: 0.85;
}

.org-empty-cell .org-panel-btn {
    margin-top: 0.5rem;
    border-color: var(--color-border-strong);
    background: var(--color-surface-elevated);
    color: var(--teebox-green) !important;
}

.org-empty-cell .org-panel-btn--solid {
    background: var(--teebox-green);
    border-color: var(--teebox-green);
    color: #fff !important;
}

.org-dashboard-panels__main {
    display: flex;
    flex-direction: column;
}

.org-dashboard-panels__side .org-dashboard-panel {
    min-height: 100%;
}

.org-dashboard-panel--pending .org-dashboard-panel__body--pending {
    min-height: 14rem;
}

.org-data-table--pending tbody tr:only-child td.org-empty-cell {
    min-height: 11rem;
    vertical-align: middle !important;
}

@media (min-width: 1200px) {
    .org-dashboard-panels__side .org-dashboard-panel__body {
        min-height: 12rem;
    }

    .org-dashboard-panel--pending .org-dashboard-panel__body--pending {
        min-height: 18rem;
    }

    .org-data-table--pending tbody tr:only-child td.org-empty-cell {
        min-height: 14rem;
    }
}

.org-dashboard-actions {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.org-dashboard-actions__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink-muted);
    margin-bottom: 1rem;
}

.org-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    min-height: 5.25rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.org-action-card:hover {
    border-color: var(--teebox-lime);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.org-action-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: var(--color-accent-soft);
    color: var(--teebox-green);
    font-size: 1.15rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.org-action-card:hover .org-action-card__icon {
    background: linear-gradient(145deg, var(--teebox-lime) 0%, var(--teebox-lime-hover) 100%);
    color: var(--teebox-green-dark);
}

.org-action-card__body {
    flex: 1;
    min-width: 0;
}

.org-action-card__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--teebox-green);
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.org-action-card__desc {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-ink-muted);
    line-height: 1.35;
}

.org-action-card__arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--color-border-strong);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.org-action-card:hover .org-action-card__arrow {
    color: var(--teebox-green);
    transform: translateX(3px);
}

#chart-reg-month,
#chart-top-events {
    min-height: 200px;
}

@media (max-width: 575.98px) {
    .org-dashboard-hero__title {
        font-size: 1.35rem;
    }

    .org-kpi-card .display-4 {
        font-size: 1.5rem;
    }
}

/* Super admin dashboard */
.super-dashboard {
    max-width: 1200px;
}

.super-dashboard-hero {
    background: linear-gradient(135deg, #1e293b 0%, var(--teebox-green-dark) 45%, var(--teebox-green) 100%);
}

.super-dashboard-hero .org-dashboard-hero__eyebrow i {
    margin-right: 0.35rem;
    opacity: 0.9;
}

.super-kpi-card__label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--teebox-green);
    line-height: 1.3;
}

.super-module-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.super-module-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-lg);
}

.super-module-card__head {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.35rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, var(--color-surface-elevated) 100%);
    border-bottom: 1px solid var(--color-border);
}

.super-module-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: var(--radius-md);
    background: var(--color-accent-soft);
    color: var(--teebox-green);
    font-size: 1.2rem;
}

.super-module-card__icon--events {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.super-module-card__icon--competition {
    background: rgba(163, 198, 68, 0.2);
    color: var(--teebox-green-dark);
}

.super-module-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 0.35rem;
}

.super-module-card__lead {
    font-size: 0.82rem;
    color: var(--color-ink-muted);
    line-height: 1.45;
}

.super-module-card__body {
    padding: 1rem 1.35rem 1.25rem;
    background: var(--color-surface-elevated);
}

.super-module-card__list {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    font-size: 0.82rem;
    color: var(--color-ink-muted);
    line-height: 1.5;
}

.super-module-card__list li + li {
    margin-top: 0.2rem;
}

.super-module-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.super-module-card__actions .btn-dark {
    background: var(--teebox-green);
    border-color: var(--teebox-green);
}

.super-module-card__actions .btn-dark:hover {
    background: var(--teebox-green-dark);
    border-color: var(--teebox-green-dark);
}

.super-dashboard-foot {
    font-size: 0.88rem;
}

.super-dashboard-foot a:hover {
    color: var(--teebox-green) !important;
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
   Tables
   ----------------------------------------------------------------------------- */

.app-table {
    background: var(--color-surface-elevated);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.92rem;
}

.app-table thead.app-table-header th,
.app-table-header th {
    background: linear-gradient(180deg, var(--teebox-green) 0%, var(--teebox-green-dark) 100%) !important;
    color: #f8fafc !important;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none !important;
    padding: 0.75rem 0.85rem !important;
    vertical-align: middle;
}

.app-table td {
    background: var(--color-surface-elevated) !important;
    border-color: var(--color-border) !important;
    padding: 0.65rem 0.85rem !important;
    vertical-align: middle;
}

.app-table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}

.app-table tbody tr:hover td {
    background: var(--color-accent-soft) !important;
}

/* -----------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------------- */

.form-control,
input.form-control,
textarea.form-control,
select.form-control {
    background-color: var(--color-surface-elevated) !important;
    border: 1px solid var(--color-border-strong) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px var(--color-accent-soft) !important;
}

label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--color-ink-muted);
    margin-bottom: 0.35rem;
}

/* -----------------------------------------------------------------------------
   Buttons (Bootstrap overrides)
   ----------------------------------------------------------------------------- */

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.95rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
    background: var(--color-accent) !important;
    border-color: var(--color-accent-hover) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-accent-hover) !important;
    border-color: var(--teebox-green-dark) !important;
    box-shadow: 0 2px 8px rgba(45, 71, 57, 0.35);
}

.btn-teebox-accent {
    background: var(--color-cta) !important;
    border-color: var(--color-cta-hover) !important;
    color: var(--teebox-green-dark) !important;
    font-weight: 700;
}

.btn-teebox-accent:hover,
.btn-teebox-accent:focus {
    background: var(--color-cta-hover) !important;
    border-color: #6d9429 !important;
    color: var(--teebox-green-dark) !important;
    box-shadow: 0 2px 8px rgba(163, 198, 68, 0.45);
}

.btn-success {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border-color: #047857 !important;
}

.btn-success:hover {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
}

.btn-danger {
    background: #dc3545 !important;
    border-color: #c82333 !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
}

.btn-danger:hover,
.btn-danger:focus {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: var(--color-border-strong);
    color: var(--color-ink-muted);
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: var(--color-ink);
    border-color: var(--color-border-strong);
}

.btn-sm {
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
}

.btn-lg {
    border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------------
   Alerts
   ----------------------------------------------------------------------------- */

.alert {
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 0.92rem;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning-border);
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.app-impersonation-banner {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-bottom: 1px solid var(--color-warning-border) !important;
    color: #78350f !important;
    font-size: 0.9rem;
}

.app-impersonation-banner .alert-link {
    font-weight: 600;
    color: #b45309 !important;
}

/* -----------------------------------------------------------------------------
   Auth (login, forgot password, etc.)
   ----------------------------------------------------------------------------- */

.app-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, var(--teebox-green-dark) 0%, var(--teebox-green) 48%, #3d5c48 100%);
    background-attachment: fixed;
}

.app-auth-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.app-auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem 2rem 1.75rem;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.app-auth-card .auth-sub {
    font-size: 0.88rem;
    color: var(--color-ink-muted);
    margin-bottom: 1.5rem;
}

.app-auth-card--wide {
    max-width: 440px;
}

.app-auth-card .btn-primary {
    padding: 0.65rem 1rem;
    width: 100%;
    margin-top: 0.25rem;
}

.app-auth-card .form-group:last-of-type {
    margin-bottom: 0;
}

.app-auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.app-auth-footer a {
    font-weight: 500;
}

/* Standalone auth pages with .container */
.app-auth-page .container {
    max-width: 440px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.app-auth-page .card,
.app-auth-page .alert {
    border-radius: var(--radius-lg);
}

/* -----------------------------------------------------------------------------
   Badges
   ----------------------------------------------------------------------------- */

.badge {
    font-weight: 600;
    padding: 0.35em 0.55em;
    border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------------
   Misc
   ----------------------------------------------------------------------------- */

.list-group-item-action {
    cursor: pointer;
}

.ui-autocomplete {
    z-index: 1050;
}

.status-list-table {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--color-ink-muted) !important;
}

/* Page titles inside containers */
.container > h2,
.container > h4 {
    margin-top: 0.5rem;
}

/* -----------------------------------------------------------------------------
   Print
   ----------------------------------------------------------------------------- */

@media print {
    .no-print {
        display: none !important;
    }

    .app-page {
        background: #fff !important;
    }
}

@media (max-width: 991px) {
    .app-navbar .navbar-collapse {
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(30, 57, 42, 0.12);
    }
}

.table-bordered {
    border-color: var(--color-border);
}

.table-bordered th,
.table-bordered td {
    border-color: var(--color-border) !important;
}

.app-dashboard h2,
.container > h2:first-child {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Centered public flows (register, OTP) */
.app-public-flow {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.phone-input-widget .phone-country-select {
    min-width: 11.5rem;
    max-width: 14rem;
}

@media (max-width: 575.98px) {
    .phone-input-widget .input-group {
        flex-direction: column;
    }

    .phone-input-widget .input-group-prepend,
    .phone-input-widget .phone-country-select,
    .phone-input-widget .phone-local-input {
        width: 100%;
        max-width: none;
        border-radius: 0.25rem !important;
    }

    .phone-input-widget .input-group-prepend {
        margin-bottom: 0.5rem;
    }
}

.app-public-page {
    background: var(--color-surface);
    min-height: 100vh;
}

/* -----------------------------------------------------------------------------
   Player profile
   ----------------------------------------------------------------------------- */

.player-profile-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.player-profile-hero {
    background: linear-gradient(135deg, #003D2B 0%, #00593F 45%, #8CCB4A 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.player-profile-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.player-profile-back {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.player-profile-back:hover {
    color: #fff !important;
}

.player-profile-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.player-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #14b8a6, #0f766e);
    border: 3px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.player-profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    color: #fff;
}

.player-profile-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.player-profile-meta i {
    width: 1.1rem;
    opacity: 0.9;
}

.player-profile-kpi-row {
    margin-bottom: 1.75rem;
}

.player-profile-kpi {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.player-profile-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.player-profile-kpi-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.player-profile-kpi-icon--events { background: rgba(13, 148, 136, 0.15); color: #0d9488; }
.player-profile-kpi-icon--score { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.player-profile-kpi-icon--avg { background: rgba(100, 116, 139, 0.12); color: #475569; }
.player-profile-kpi-icon--skins { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.player-profile-kpi-icon--payout { background: rgba(217, 119, 6, 0.12); color: #d97706; }

.player-profile-kpi-value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    line-height: 1.1;
}

.player-profile-kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-ink-muted);
    margin-top: 0.25rem;
}

.player-profile-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink-muted);
    margin-bottom: 0.85rem;
    padding-left: 0.15rem;
}

.player-profile-achievements-count {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 61, 43, 0.08);
    color: #003D2B;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.player-profile-achievements-card {
    overflow: hidden;
}

.player-profile-achievements {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.player-profile-achievement {
    text-align: center;
    padding: 0.35rem 0.25rem;
    min-width: 0;
}

.player-profile-achievement-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.55rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(145deg, rgba(140, 203, 74, 0.22), rgba(0, 93, 63, 0.12));
    border: 2px solid #8CCB4A;
    color: #00593F;
    box-shadow: 0 4px 12px rgba(0, 61, 43, 0.1);
}

.player-profile-achievement.is-locked .player-profile-achievement-icon {
    background: #f1f5f2;
    border-color: var(--color-border);
    color: #94a3b8;
    opacity: 0.55;
    filter: grayscale(1);
    box-shadow: none;
}

.player-profile-achievement-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.player-profile-achievement.is-locked .player-profile-achievement-name {
    color: var(--color-ink-muted);
}

.player-profile-achievement-meta {
    font-size: 0.68rem;
    line-height: 1.3;
    color: var(--color-ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .player-profile-achievements {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.75rem;
    }

    .player-profile-achievement:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

.player-profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.player-profile-card-header i {
    color: var(--color-accent);
    opacity: 0.9;
}

.player-profile-scorecard-wrap {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.player-profile-scorecard {
    font-size: 0.82rem;
    margin-bottom: 0;
    background: #fff;
    table-layout: fixed;
    width: 100%;
}

.player-profile-scorecard .scorecard-col-label {
    width: 3.25rem;
}

.player-profile-scorecard .scorecard-col-total {
    width: 2.5rem;
}

.player-profile-scorecard th {
    background: #f1f5f9 !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-ink-muted);
}

.player-profile-scorecard td,
.player-profile-scorecard th {
    text-align: center;
    vertical-align: middle;
    padding: 0.45rem 0.35rem !important;
}

.player-profile-scorecard .row-label {
    font-weight: 600;
    background: #f8fafc !important;
    color: var(--color-ink);
    text-align: left !important;
    padding-left: 0.65rem !important;
    white-space: nowrap;
}

.pi-score-eagle { background: #d1e7dd !important; color: #0f5132; font-weight: 600; }
.pi-score-birdie { background: #f8d7da !important; color: #842029; }
.pi-score-par { background: #fff !important; }
.pi-score-bogey { background: #cfe2ff !important; color: #084298; }
.pi-score-double { background: #e2e3e5 !important; color: #495057; }
.pi-skin-hole { box-shadow: inset 0 0 0 2px #16a34a; font-weight: 700; }

.player-profile-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.78rem;
    color: var(--color-ink-muted);
    margin-top: 0.75rem;
}

.player-profile-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.player-profile-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.player-profile-hole-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.88rem;
    margin: 0.25rem 0.35rem 0.25rem 0;
}

.player-profile-hole-chip strong {
    color: var(--color-accent);
}

.player-profile-hole-chip--weak strong {
    color: #dc2626;
}

.player-profile-breakdown-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--color-border);
    margin-bottom: 0.75rem;
}

.player-profile-breakdown-bar span {
    display: block;
    height: 100%;
}

.player-profile-season-bar {
    border-color: var(--color-border);
}

.player-profile-season-bar .form-control {
    max-width: 10rem;
}

.player-profile-filter-bar {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .player-profile-name {
        font-size: 1.4rem;
    }
    .player-profile-kpi-value {
        font-size: 1.35rem;
    }
}

/* AI Performance Summary */
.player-ai-card .card-header {
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.08) 0%, rgba(37, 99, 235, 0.06) 100%);
}

.player-ai-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-ai-meta {
    font-size: 0.75rem;
}

.player-ai-loading {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
}

.player-ai-section {
    margin-bottom: 1.25rem;
}

.player-ai-section h6 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.player-ai-section p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
    color: var(--color-text);
}

.player-ai-section--positive {
    background: rgba(22, 163, 74, 0.06);
    border-left: 3px solid #16a34a;
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.player-ai-section--focus {
    background: rgba(217, 119, 6, 0.06);
    border-left: 3px solid #d97706;
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.player-ai-tip {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.player-ai-tip strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: #0d9488;
}

.player-ai-tip p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.player-ai-disclaimer {
    font-style: italic;
    line-height: 1.45;
}

.player-ai-quick-questions .btn {
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.player-ai-answer {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.player-ai-answer-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.player-ai-answer p {
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Player Compare */
.player-compare-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.player-compare-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2563eb 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.player-compare-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.player-compare-hero-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.player-compare-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #fff;
}

.player-compare-title i {
    opacity: 0.85;
    margin-right: 0.35rem;
}

.player-compare-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 42rem;
}

.player-compare-subtitle i {
    width: 1.1rem;
}

.player-compare-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.player-compare-cards-row {
    margin-bottom: 1.75rem;
}

.player-compare-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid #0d9488;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.player-compare-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.player-compare-accent--1 { border-top-color: #0d9488; }
.player-compare-accent--2 { border-top-color: #2563eb; }
.player-compare-accent--3 { border-top-color: #d97706; }
.player-compare-accent--4 { border-top-color: #7c3aed; }

.player-compare-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.player-compare-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

.player-compare-accent--2 .player-compare-avatar {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.player-compare-accent--3 .player-compare-avatar {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.player-compare-accent--4 .player-compare-avatar {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.player-compare-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.player-compare-name a {
    color: var(--color-text);
    text-decoration: none;
}

.player-compare-name a:hover {
    color: var(--color-accent);
}

.player-compare-event {
    color: var(--color-text-muted);
}

.player-compare-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.player-compare-stat {
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.25rem;
}

.player-compare-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.player-compare-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.player-compare-scoring {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.player-compare-chip {
    font-size: 0.72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.player-compare-table-card .card-body {
    background: #f8fafc;
}

.player-compare-table-wrap {
    max-height: 70vh;
    overflow: auto;
}

.player-compare-table {
    font-size: 0.82rem;
    margin-bottom: 0;
    background: #fff;
    table-layout: fixed;
    width: 100%;
}

.player-compare-col-hole {
    width: 2.75rem;
}

.player-compare-col-par {
    width: 2.5rem;
}

.player-compare-table th,
.player-compare-table td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.player-compare-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f8fafc !important;
    font-weight: 600;
}

.player-compare-table thead .player-compare-sticky-col {
    background: #1e293b !important;
    color: #fff;
    z-index: 3;
}

.player-compare-hole-num {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.player-compare-table-head th {
    background: #1e293b;
    color: #fff;
    border-color: #334155 !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.65rem 0.5rem;
}

.player-compare-table-subhead th {
    background: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    border-color: var(--color-border) !important;
}

.player-compare-accent--1.player-compare-player-head,
.player-compare-accent--1.player-compare-table-subhead th.player-compare-accent--1 {
    background: rgba(13, 148, 136, 0.15);
    color: #0f766e;
}

.player-compare-accent--2.player-compare-player-head,
.player-compare-accent--2.player-compare-table-subhead th.player-compare-accent--2 {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.player-compare-accent--3.player-compare-player-head,
.player-compare-accent--3.player-compare-table-subhead th.player-compare-accent--3 {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.player-compare-accent--4.player-compare-player-head,
.player-compare-accent--4.player-compare-table-subhead th.player-compare-accent--4 {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.player-compare-accent--1-cell { background: rgba(13, 148, 136, 0.03); }
.player-compare-accent--2-cell { background: rgba(37, 99, 235, 0.03); }
.player-compare-accent--3-cell { background: rgba(217, 119, 6, 0.03); }
.player-compare-accent--4-cell { background: rgba(124, 58, 237, 0.03); }

.player-compare-divider td {
    background: #e2e8f0 !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.35rem 0.75rem;
    text-align: left !important;
}

.player-compare-divider i {
    margin-right: 0.35rem;
    opacity: 0.7;
}

.player-compare-totals td {
    background: #f1f5f9 !important;
    font-size: 0.85rem;
}

.player-compare-totals--gross td {
    background: #e2e8f0 !important;
}

.player-compare-best {
    background: rgba(22, 163, 74, 0.12) !important;
    position: relative;
}

.player-compare-best-badge {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #16a34a;
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.35rem;
    vertical-align: middle;
}

.player-compare-skin-icon {
    display: inline-block;
    margin-left: 0.2rem;
    color: #16a34a;
    font-size: 0.65rem;
}

.player-compare-legend {
    margin-top: 0.5rem;
}

.player-compare-best-swatch {
    background: rgba(22, 163, 74, 0.25);
    box-shadow: inset 0 0 0 1px #16a34a;
}

.player-compare-matching-card .card-body {
    background: #f8fafc;
}

.player-compare-matching-intro {
    line-height: 1.5;
}

.player-compare-matching-table {
    font-size: 0.82rem;
    background: #fff;
}

.player-compare-matching-table th {
    background: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.player-compare-matching-step {
    min-width: 8.5rem;
    background: #f8fafc !important;
    text-align: left !important;
    white-space: nowrap;
}

.player-compare-matching-table td {
    text-align: center;
    vertical-align: middle;
}

.player-compare-matching-score {
    font-weight: 700;
    font-size: 0.95rem;
}

.player-compare-matching-decided {
    background: rgba(22, 163, 74, 0.06);
}

.player-compare-matching-winner {
    background: rgba(22, 163, 74, 0.18) !important;
    box-shadow: inset 0 0 0 2px #16a34a;
}

.player-compare-matching-leading {
    background: rgba(148, 163, 184, 0.12) !important;
}

.player-compare-matching-result {
    font-size: 0.88rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.player-compare-tiebreak-hole td {
    border-top-color: #fbbf24 !important;
    border-bottom-color: #fbbf24 !important;
}

.player-compare-tiebreak-hole td:first-child,
.player-compare-tiebreak-hole td:nth-child(2) {
    background: #fffbeb !important;
}

.player-compare-tiebreak-cell {
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.55);
}

.player-compare-tiebreak-swatch {
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px #fbbf24;
}

.pi-score-eagle { background: #d1e7dd; font-weight: 600; }
.pi-score-birdie { background: #f8d7da; }
.pi-score-par { background: #fff; }
.pi-score-bogey { background: #cfe2ff; }
.pi-score-double { background: #e2e3e5; }
.pi-skin-hole { box-shadow: inset 0 0 0 2px #16a34a; }

@media (max-width: 767px) {
    .player-compare-title {
        font-size: 1.35rem;
    }
    .player-compare-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .player-compare-table {
        font-size: 0.75rem;
    }
}

/* Event list — use full main column width (no Bootstrap .container cap) */
.event-list-page {
    width: 100%;
    max-width: none;
}

.event-list-page .app-table {
    table-layout: auto;
}

.event-list-page .app-table td:last-child {
    white-space: nowrap;
}

.event-list-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.event-list-actions form {
    display: inline-flex;
    margin: 0;
}

.event-list-action-btn {
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.event-list-action-btn .fa {
    font-size: 0.78rem;
}

.event-list-action-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    color: var(--color-ink-muted);
    font-size: 0.78rem;
}

.event-list-summary {
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
}

.event-list-search .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-ink-muted);
}

/* Player Insights hub */
.player-insights-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.player-insights-hero {
    background: linear-gradient(135deg, #003D2B 0%, #00593F 45%, #8CCB4A 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.player-insights-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.player-insights-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.player-insights-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #fff;
}

.player-insights-title i {
    margin-right: 0.35rem;
    opacity: 0.9;
}

.player-insights-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.player-insights-subtitle i {
    width: 1.1rem;
}

.player-insights-hero-btn {
    font-weight: 600;
}

.player-insights-alert i {
    margin-right: 0.35rem;
}

.player-insights-filter {
    border: 1px solid var(--color-border);
}

.player-insights-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.player-insights-label i {
    margin-right: 0.25rem;
    opacity: 0.75;
}

.player-insights-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 0.35rem;
    border: 1px solid var(--color-border);
}

.player-insights-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.player-insights-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #334155;
}

.player-insights-tab.active {
    background: #fff;
    color: #0d9488;
    box-shadow: var(--shadow-sm);
}

.player-insights-tab i {
    font-size: 0.8rem;
    opacity: 0.85;
}

.player-insights-kpi-row {
    margin-bottom: 0.25rem;
}

.player-insights-kpi {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.player-insights-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.1;
}

.player-insights-kpi-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.player-insights-kpi--eagle { border-top: 3px solid #198754; }
.player-insights-kpi--birdie { border-top: 3px solid #dc3545; }
.player-insights-kpi--par { border-top: 3px solid #94a3b8; }
.player-insights-kpi--bogey { border-top: 3px solid #0d6efd; }
.player-insights-kpi--double { border-top: 3px solid #495057; }

.player-insights-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.player-insights-card-title i {
    opacity: 0.85;
}

.player-insights-search-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
}

.player-insights-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    pointer-events: none;
    font-size: 0.85rem;
}

.player-insights-search-input {
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.player-insights-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.player-insights-search-input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.15);
}

.app-card .card-header:not(.app-table-header) .player-insights-search-icon {
    color: var(--color-ink-muted);
}

.app-card .card-header:not(.app-table-header) .player-insights-search-input {
    background: #fff;
    border-color: var(--color-border);
    color: var(--color-ink);
}

.app-card .card-header:not(.app-table-header) .player-insights-search-input::placeholder {
    color: #94a3b8;
}

.app-card .card-header:not(.app-table-header) .player-insights-search-input:focus {
    background: #fff;
    border-color: var(--color-accent);
    color: var(--color-ink);
    box-shadow: 0 0 0 0.15rem var(--color-accent-soft);
}

.player-insights-table-card .card-body {
    background: #fafbfc;
}

.player-insights-col-hint {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.75;
    margin-top: 0.1rem;
    line-height: 1.2;
}

.player-insights-table tbody tr:hover td {
    background: rgba(13, 148, 136, 0.04);
}

.player-insights-player-link {
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
}

.player-insights-player-link:hover {
    color: #0d9488;
    text-decoration: none;
}

.player-insights-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.player-insights-rank--1 { background: linear-gradient(145deg, #fbbf24, #d97706); }
.player-insights-rank--2 { background: linear-gradient(145deg, #cbd5e1, #64748b); }
.player-insights-rank--3 { background: linear-gradient(145deg, #fdba74, #c2410c); }

.player-insights-stat {
    display: inline-block;
    min-width: 1.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.player-insights-stat--eagle { background: rgba(25, 135, 84, 0.12); color: #198754; }
.player-insights-stat--par { background: rgba(148, 163, 184, 0.15); color: #475569; }
.player-insights-stat--birdie { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.player-insights-stat--bogey { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.player-insights-stat--double { background: rgba(73, 80, 87, 0.12); color: #495057; }

.player-insights-profile-btn {
    padding: 0.2rem 0.5rem;
}

.player-insights-win-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
    font-weight: 700;
    font-size: 0.82rem;
}

.player-insights-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.player-insights-trend--up {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.player-insights-trend--down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.player-insights-trend--same {
    color: #94a3b8;
}

.player-insights-breakdown-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.player-insights-breakdown-bar span {
    display: block;
    height: 100%;
}

.player-insights-podium-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.player-insights-podium-card--1 { border-top: 4px solid #fbbf24; }
.player-insights-podium-card--2 { border-top: 4px solid #94a3b8; }
.player-insights-podium-card--3 { border-top: 4px solid #fb923c; }

.player-insights-podium-rank {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.player-insights-podium-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 0.35rem;
    text-decoration: none;
}

.player-insights-podium-name:hover {
    color: #0d9488;
    text-decoration: none;
}

.player-insights-podium-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.player-insights-quadrant-wrap {
    position: relative;
    height: 340px;
}

.player-insights-quadrant-labels {
    position: absolute;
    inset: 2.75rem 0.75rem 3.25rem 3.25rem;
    pointer-events: none;
    z-index: 1;
}

.player-insights-quadrant-labels .q-label {
    position: absolute;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(71, 85, 105, 0.55);
}

.player-insights-quadrant-labels .q-tl { top: 0.25rem; left: 0.35rem; }
.player-insights-quadrant-labels .q-tr { top: 0.25rem; right: 0.35rem; }
.player-insights-quadrant-labels .q-bl { bottom: 0.25rem; left: 0.35rem; }
.player-insights-quadrant-labels .q-br { bottom: 0.25rem; right: 0.35rem; }

.player-insights-empty-state,
.player-insights-empty {
    border: 1px dashed var(--color-border);
}

.player-insights-compare-card .card-header,
.player-insights-feedback-intro {
    background: #f8fafc;
}

.compare-select-wrap .select2-container {
    width: 100% !important;
}

.player-insights-grouped-bar-chart {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.player-insights-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.player-insights-star {
    margin: 0;
    cursor: pointer;
}

.player-insights-star input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.player-insights-star span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.player-insights-star input:checked + span {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
}

.player-insights-star span i {
    color: #fbbf24;
}

.player-insights-feedback-list li {
    margin-bottom: 0.35rem;
}

/* Feedback module */
.feedback-stars {
    color: #fbbf24;
    white-space: nowrap;
}

.feedback-stars .fa-star-o {
    color: #cbd5e1;
}

.feedback-stars__value {
    color: #64748b;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.feedback-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
}

.feedback-star-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-star-input label {
    margin: 0;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.feedback-star-input label:hover,
.feedback-star-input label:hover ~ label,
.feedback-star-input input:checked ~ label {
    color: #fbbf24;
}

.feedback-page .card {
    border-radius: 0.5rem;
}

.feedback-sort-form select {
    min-width: 10rem;
}

@media (max-width: 767px) {
    .player-insights-title {
        font-size: 1.35rem;
    }
    .player-insights-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .player-insights-tab span {
        white-space: nowrap;
    }
}

/* Admin sidebar layout */
.app-has-sidebar .app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-layout {
    display: flex;
    flex-wrap: nowrap;
    min-height: calc(100vh - 56px);
    padding: 0;
}

.app-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--teebox-green) 0%, var(--teebox-green-dark) 100%);
    padding: 0.75rem 0.75rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar-brand {
    padding: 0.65rem 0.5rem 1rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-sidebar-brand .teebox-logo--sidebar {
    max-height: 52px;
    width: auto;
    display: block;
}

.app-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    color: #fff;
    background: rgba(163, 198, 68, 0.22);
    border-left: 3px solid var(--teebox-lime);
    padding-left: calc(0.75rem - 3px);
}

.app-sidebar .nav-link i {
    width: 1.25rem;
    margin-right: 0.35rem;
}

.app-main {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.app-main-inner {
    padding: 1rem 1.25rem 2rem;
}

@media (max-width: 991px) {
    .app-layout {
        flex-direction: column;
    }
    .app-sidebar {
        width: 100%;
    }
    .app-sidebar .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
}

/* -----------------------------------------------------------------------------
   teebox.app logo & public landing
   ----------------------------------------------------------------------------- */

.teebox-logo {
    height: auto;
    display: block;
}

.teebox-logo--full {
    max-width: min(320px, 100%);
    margin: 0 auto 0.75rem;
}

.teebox-logo--compact {
    max-width: 220px;
    object-fit: contain;
}

.teebox-logo--sidebar {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.teebox-logo-link {
    display: inline-block;
    text-decoration: none !important;
}

.teebox-logo-wrap--full {
    text-align: center;
    margin-bottom: 1rem;
}

.teebox-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teebox-lime);
    text-align: center;
}

.teebox-tagline::before,
.teebox-tagline::after {
    content: "•";
    margin: 0 0.35rem;
    color: var(--teebox-lime);
}

.app-auth-card--branded .teebox-logo--compact {
    margin: 0 auto;
}

.app-public-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.app-landing {
    min-height: 100vh;
    background: var(--color-surface-elevated);
    color: var(--color-ink);
}

.landing-header {
    background: var(--color-surface-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-header .teebox-logo-link--compact {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.landing-header .teebox-logo--compact {
    height: 56px;
    width: auto;
    max-width: min(240px, 60vw);
    max-height: none;
    object-fit: contain;
}

.landing-header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-header-nav a {
    font-weight: 600;
    color: var(--teebox-green);
    text-decoration: none;
}

.landing-header-nav a:hover {
    color: var(--teebox-green-dark);
}

.landing-hero {
    padding: 2.5rem 0 3rem;
    background:
        linear-gradient(135deg, rgba(30, 57, 42, 0.04) 0%, rgba(163, 198, 68, 0.08) 100%),
        var(--color-surface);
}

.landing-hero-copy {
    padding-right: 1rem;
}

.landing-hero-visual {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 1.25rem;
}

.landing-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.landing-hero-copy .landing-hero-title {
    margin-top: 0;
}

.landing-hero-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--teebox-green-dark);
    margin-bottom: 0.85rem;
}

.landing-hero-lead {
    font-size: 1.05rem;
    color: var(--color-ink-muted);
    max-width: 32rem;
    margin-bottom: 1.25rem;
}

.landing-hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-hero-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0;
    font-weight: 500;
    color: var(--color-ink);
}

.landing-hero-features i {
    color: var(--teebox-lime-hover);
    width: 1.25rem;
    text-align: center;
}

.landing-login-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem 1.5rem;
}

.landing-login-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--teebox-green-dark);
    margin-bottom: 0.2rem;
}

.landing-login-sub {
    color: var(--color-ink-muted);
    font-size: 0.92rem;
    margin-bottom: 1.15rem;
}

.landing-login-tabs {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--color-border);
}

.landing-login-tabs .nav-link {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-ink-muted);
    text-align: center;
}

.landing-login-tabs .nav-link.active {
    background: var(--teebox-green);
    color: #fff !important;
}

.landing-login-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.88rem;
    text-align: center;
}

.landing-login-links a {
    font-weight: 600;
}

.landing-footer {
    padding: 1.5rem 0 2rem;
    background: var(--teebox-green-dark);
    color: rgba(255, 255, 255, 0.75);
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.landing-super-link {
    opacity: 0.65;
    font-size: 0.8rem;
}

.landing-super-link:hover {
    opacity: 1;
    color: var(--teebox-lime) !important;
}

.app-navbar .teebox-logo--compact {
    height: 40px;
    width: auto;
    max-width: 180px;
    max-height: none;
    margin-right: 0.5rem;
}

.app-navbar-brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 991px) {
    .landing-hero-copy {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    .landing-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .landing-hero-features {
        display: inline-block;
        text-align: left;
    }
    .landing-hero-visual {
        max-width: 100%;
    }
}

/* Organization subdomain landing */
.org-landing-kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent, #1f7a4c);
}

.org-landing-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.org-landing-logo {
    height: 56px;
    width: auto;
    max-width: min(240px, 60vw);
    object-fit: contain;
}

.org-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 80px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    background: #fff;
}

.org-logo-preview img {
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
}

/* -----------------------------------------------------------------------------
   Event calendar (month view)
   ----------------------------------------------------------------------------- */

.event-cal-card .card-body {
    padding: 1.25rem;
}

.event-cal-month-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-ink);
}

.event-cal-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: var(--color-accent-soft);
    border: 2px solid var(--teebox-green);
}

.event-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.event-cal-head {
    background: var(--teebox-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-cal-day {
    background: var(--color-surface-elevated);
    min-height: 5.5rem;
    padding: 0.35rem 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
}

.event-cal-day--pad {
    background: #f0f4f1;
    min-height: 2rem;
}

.event-cal-day--today {
    background: rgba(163, 198, 68, 0.12);
    box-shadow: inset 0 0 0 2px var(--teebox-lime);
}

.event-cal-day-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-ink-muted);
    margin-bottom: 0.25rem;
}

.event-cal-day--today .event-cal-day-num {
    color: var(--teebox-green-dark);
}

.event-cal-events {
    flex: 1;
    overflow: hidden;
}

.event-cal-event {
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.event-cal-event-link {
    display: block;
    font-size: 0.7rem;
    padding: 0.15rem 0.25rem;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    color: var(--teebox-green-dark);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-cal-event-link:hover {
    background: var(--teebox-green);
    color: #fff;
    text-decoration: none;
}

.event-cal-event-time {
    font-weight: 600;
}

.event-cal-event-status {
    display: inline-block;
    font-size: 0.6rem;
    margin-top: 0.1rem;
    padding: 0.1rem 0.25rem;
}

.event-cal-event-lock,
.event-cal-legend-lock {
    font-size: 0.65rem;
    opacity: 0.85;
}

.event-cal-event--locked .event-cal-event-link {
    background: #f1f3f5;
    color: #6c757d;
}

.event-cal-event--locked .event-cal-event-link:hover {
    background: #e9ecef;
    color: #495057;
}

/* Week view: one row of seven days with room for event detail */
.event-cal-grid--week {
    grid-template-rows: auto 1fr;
}

.event-cal-day--week {
    min-height: 14rem;
}

.event-cal-event--detail {
    margin-bottom: 0.5rem;
}

.event-cal-event-link--detail {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 0.2rem;
}

.event-cal-event-meta {
    font-size: 0.68rem;
    color: var(--color-ink-muted);
    line-height: 1.35;
    padding: 0 0.15rem 0.25rem;
}

.event-cal-meta-row {
    margin-bottom: 0.15rem;
}

.event-cal-meta-row i {
    width: 0.9rem;
    margin-right: 0.2rem;
    color: var(--teebox-green);
}

.event-cal-meta--ok {
    color: var(--teebox-green-dark);
}

.event-cal-meta--pending {
    color: #8a6d3b;
}

.event-cal-view-toggle .btn.active {
    background: var(--teebox-green);
    border-color: var(--teebox-green);
    color: #fff;
}

@media (max-width: 767px) {
    .event-cal-day {
        min-height: 4rem;
        padding: 0.2rem;
    }
    .event-cal-day--week {
        min-height: 10rem;
    }
    .event-cal-event-link {
        font-size: 0.65rem;
    }
    .event-cal-head {
        font-size: 0.65rem;
        padding: 0.35rem 0.1rem;
    }
    .event-cal-event-meta {
        font-size: 0.62rem;
    }
}

/* Super admin / org messaging policy UI */
.msg-admin__panel {
    border: 0;
    box-shadow: 0 4px 24px rgba(45, 71, 57, 0.08);
}

.msg-admin__search .input-group-text {
    background: #f8faf9;
    border-color: #dee2e6;
}

.msg-admin__table tbody tr:hover {
    background: rgba(163, 198, 68, 0.08);
}

.msg-admin__table .font-weight-medium {
    font-weight: 600;
    color: var(--teebox-green-dark, #2d4739);
}

.msg-admin__status-pill {
    background: #f4f7f5;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    height: 100%;
}

.msg-admin__status-row {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.msg-admin .pagination .page-link {
    color: var(--teebox-green-dark, #2d4739);
}

.msg-admin .pagination .page-item.active .page-link {
    background: var(--teebox-green, #2d4739);
    border-color: var(--teebox-green, #2d4739);
}

.msg-help__steps h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.msg-help__steps h3:first-of-type {
    margin-top: 0;
}

.msg-help__steps ol {
    padding-left: 1.25rem;
}

.msg-help__steps ol li {
    margin-bottom: 0.35rem;
}

.msg-help__toc .nav-link {
    color: var(--teebox-green-dark, #2d4739);
}

.msg-help__toc .nav-link:hover {
    color: var(--teebox-green, #2d4739);
    text-decoration: underline;
}

.msg-help dl dt {
    font-weight: 600;
    color: var(--teebox-green-dark, #2d4739);
}

/* Prominent “credentials help” actions */
.msg-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    border-width: 2px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(163, 198, 68, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.msg-help-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(163, 198, 68, 0.45);
    text-decoration: none;
}

.msg-help-btn--primary {
    color: #1a2e24 !important;
    background: linear-gradient(135deg, #c5e063 0%, #a3c644 55%, #8fb038 100%);
    border-color: #7a9a2e !important;
}

.msg-help-btn--primary:hover {
    color: #0f1f18 !important;
    background: linear-gradient(135deg, #d4eb7a 0%, #b3d454 100%);
    border-color: #6d8828 !important;
}

.msg-help-btn--hero {
    color: #fff !important;
    background: rgba(163, 198, 68, 0.25);
    border-color: #c5e063 !important;
    box-shadow: 0 0 0 1px rgba(197, 224, 99, 0.4), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.msg-help-btn--hero:hover {
    color: #fff !important;
    background: rgba(163, 198, 68, 0.45);
    border-color: #e8f5a0 !important;
}

.msg-help-btn--sm {
    padding: 0.25rem 0.65rem;
    font-size: 0.875rem;
}

.msg-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #3d5c4a !important;
    background: rgba(163, 198, 68, 0.18);
    border: 1px solid rgba(163, 198, 68, 0.55);
    border-radius: 0.375rem;
    padding: 0.35rem 0.65rem;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.msg-help-link:hover {
    color: #1a2e24 !important;
    background: rgba(163, 198, 68, 0.32);
    border-color: #8fb038;
    text-decoration: none !important;
}

.msg-help-link--block {
    display: inline-flex;
    width: fit-content;
}

.msg-help-callout {
    background: linear-gradient(90deg, rgba(163, 198, 68, 0.12) 0%, rgba(163, 198, 68, 0.04) 100%);
    border-left: 4px solid #a3c644;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   Member events list
   ----------------------------------------------------------------------------- */

.member-events-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.member-events-subtitle {
    font-size: 0.92rem;
}

.member-events-subtitle-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.member-events-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-events-section-title i {
    color: var(--teebox-green);
    opacity: 0.85;
}

.member-events-section-title--past i {
    color: var(--color-ink-muted);
}

.member-events-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 99px;
    background: var(--color-accent-soft);
    color: var(--teebox-green);
}

.member-events-count--muted {
    background: #f1f5f3;
    color: var(--color-ink-muted);
}

.member-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-event-card {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.member-event-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
}

.member-event-card--locked {
    background: linear-gradient(180deg, #fafbfa 0%, #fff 100%);
}

.member-event-card--past {
    opacity: 0.92;
    background: #fafbfa;
}

.member-event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.35rem;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--teebox-green) 0%, var(--teebox-green-dark) 100%);
    color: #fff;
    text-align: center;
    line-height: 1.1;
    min-height: 4.25rem;
}

.member-event-card__date--past {
    background: linear-gradient(145deg, #6b7c72 0%, #556860 100%);
}

.member-event-card__weekday {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.88;
}

.member-event-card__day {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0.1rem 0;
}

.member-event-card__month {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.member-event-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    color: var(--color-ink);
}

.member-event-card__title a {
    color: inherit;
    text-decoration: none;
}

.member-event-card__title a:hover {
    color: var(--teebox-green);
    text-decoration: none;
}

.member-event-card__lock {
    margin-left: 0.35rem;
    color: var(--color-ink-muted);
    font-size: 0.82rem;
}

.member-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.84rem;
    color: var(--color-ink-muted);
    margin-bottom: 0.5rem;
}

.member-event-card__meta i {
    margin-right: 0.25rem;
    opacity: 0.75;
}

.member-event-card__status {
    margin-top: 0.15rem;
}

.member-event-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 99px;
    line-height: 1.3;
}

.member-event-pill--yes {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.member-event-pill--no {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.member-event-pill--none {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.member-event-card__actions {
    flex-shrink: 0;
}

.member-event-card__btn {
    white-space: nowrap;
    font-weight: 600;
    border-radius: var(--radius-md);
    min-width: 7.5rem;
}

.member-events-empty {
    border-style: dashed !important;
}

.member-events-empty-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--teebox-green);
    font-size: 1.35rem;
}

@media (max-width: 767.98px) {
    .member-event-card {
        grid-template-columns: 3.75rem 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem 0.85rem;
        padding: 0.9rem;
    }

    .member-event-card__date {
        grid-row: 1 / span 2;
        min-height: 4rem;
    }

    .member-event-card__actions {
        grid-column: 2;
    }

    .member-event-card__btn {
        width: 100%;
        min-width: 0;
    }
}

/* Member post-round recap share card */
.member-recap-wrap {
    position: relative;
}

.member-recap-card {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 1.35rem 1.2rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(163, 198, 68, 0.22);
    background:
        radial-gradient(ellipse 90% 70% at 12% -10%, rgba(163, 198, 68, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 55% at 100% 100%, rgba(37, 99, 235, 0.18), transparent 50%),
        linear-gradient(155deg, #14261c 0%, #1e392a 38%, #2a4a38 72%, #1a3024 100%);
    box-shadow:
        0 18px 40px rgba(20, 38, 28, 0.35),
        0 2px 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset;
    animation: member-recap-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.member-recap-card__glow {
    position: absolute;
    inset: -40% auto auto 50%;
    width: 280px;
    height: 280px;
    margin-left: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 198, 68, 0.35) 0%, transparent 68%);
    filter: blur(8px);
    pointer-events: none;
    animation: member-recap-pulse 4.5s ease-in-out infinite;
}

.member-recap-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.08) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    animation: member-recap-shine 7s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.member-recap-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.member-recap-badge,
.member-recap-finish {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.member-recap-badge {
    color: rgba(244, 247, 244, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.member-recap-finish {
    color: #1a2e1f;
    background: linear-gradient(135deg, #d4ed7a 0%, #a3c644 55%, #8fb534 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(163, 198, 68, 0.35);
}

.member-recap-avatar-wrap {
    position: relative;
    z-index: 1;
    width: 5.25rem;
    height: 5.25rem;
    margin: 0.15rem auto 0.55rem;
}

.member-recap-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(163, 198, 68, 0.28), rgba(163, 198, 68, 0.1));
    border: 3px solid rgba(163, 198, 68, 0.55);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        0 0 0 4px rgba(163, 198, 68, 0.12);
    color: #c5e06a;
    font-size: 1.75rem;
}

.member-recap-avatar--photo {
    background: #1a2e1f;
}

.member-recap-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-recap-avatar-edit {
    position: absolute;
    right: -0.1rem;
    bottom: -0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4f7f4, #dce8d4);
    color: #1e392a;
    border: 2px solid rgba(30, 57, 42, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 0.72rem;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.member-recap-avatar-edit:hover,
.member-recap-avatar-edit:focus {
    transform: scale(1.08);
    color: #14261c;
    background: #fff;
    text-decoration: none;
}

.member-recap-player-name {
    position: relative;
    z-index: 1;
    margin-bottom: 0.65rem;
    font-size: 0.98rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.94);
}

.member-recap-score-block {
    position: relative;
    z-index: 1;
    margin-bottom: 0.85rem;
}

.member-recap-score {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #f0f9c8 0%, #a3c644 48%, #7ea82e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 18px rgba(163, 198, 68, 0.35));
    animation: member-recap-score-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.member-recap-score-label {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.member-recap-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.85rem;
    margin-bottom: 1.15rem;
}

.member-recap-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: rgba(244, 247, 244, 0.88);
}

.member-recap-meta-item i {
    color: #a3c644;
    opacity: 0.9;
    font-size: 0.78rem;
}

.member-recap-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}

.member-recap-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.75rem 0.4rem 0.7rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-recap-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(163, 198, 68, 0.35);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.member-recap-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    margin-bottom: 0.15rem;
    border-radius: 50%;
    font-size: 0.72rem;
    background: rgba(163, 198, 68, 0.16);
    color: #c5e06a;
}

.member-recap-stat--birdies .member-recap-stat-icon {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

.member-recap-stat--skins .member-recap-stat-icon {
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

.member-recap-stat--won .member-recap-stat-icon {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
}

.member-recap-stat strong {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.member-recap-stat span:last-child {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.member-recap-share-btn {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 11.5rem;
    padding: 0.72rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #34e07a 0%, #25d366 45%, #1ebe57 100%);
    box-shadow:
        0 10px 24px rgba(37, 211, 102, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.28) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.member-recap-share-btn__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.member-recap-share-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    color: #fff;
    filter: brightness(1.04);
    box-shadow:
        0 14px 28px rgba(37, 211, 102, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.32) inset;
}

.member-recap-share-btn:hover:not(:disabled) .member-recap-share-btn__glow {
    transform: translateX(120%);
}

.member-recap-share-btn:active:not(:disabled) {
    transform: translateY(0);
}

.member-recap-share-btn:disabled {
    opacity: 0.78;
    cursor: wait;
    filter: grayscale(0.1);
}

.member-recap-share-hint {
    position: relative;
    z-index: 1;
    margin-top: 0.7rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.48);
}

.member-recap-toast {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%) translateY(6px);
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    animation: member-recap-toast-in 0.25s ease both;
}

.member-recap-capture-host {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.member-recap-capture {
    position: relative;
    overflow: hidden;
    width: 600px;
    padding: 40px 36px 32px;
    color: #fff;
    text-align: center;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 90% 70% at 12% -10%, rgba(163, 198, 68, 0.3), transparent 55%),
        radial-gradient(ellipse 70% 55% at 100% 100%, rgba(37, 99, 235, 0.18), transparent 50%),
        linear-gradient(155deg, #14261c 0%, #1e392a 38%, #2a4a38 72%, #1a3024 100%);
}

.member-recap-capture__glow {
    position: absolute;
    inset: -30% auto auto 50%;
    width: 320px;
    height: 320px;
    margin-left: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 198, 68, 0.32) 0%, transparent 68%);
}

.member-recap-capture-brand {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1.35rem;
}

.member-recap-capture-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #f4f7f4;
}

.member-recap-capture-tagline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

.member-recap-capture-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(163, 198, 68, 0.28), rgba(163, 198, 68, 0.1));
    border: 3px solid rgba(163, 198, 68, 0.55);
    color: #c5e06a;
    font-size: 1.55rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.member-recap-capture-avatar--photo {
    background: #1a2e1f;
}

.member-recap-capture-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-recap-capture-name {
    position: relative;
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.94);
}

.member-recap-capture-score {
    position: relative;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #f0f9c8 0%, #a3c644 48%, #7ea82e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.15rem;
}

.member-recap-capture-score-label {
    position: relative;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 0.85rem;
}

.member-recap-capture-sub {
    position: relative;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 1.45rem;
    line-height: 1.4;
}

.member-recap-capture-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.55rem;
}

.member-recap-capture-stat {
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.member-recap-capture-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.member-recap-capture-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.2rem;
}

.member-recap-capture-footer {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.42);
}

@keyframes member-recap-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes member-recap-score-in {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes member-recap-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes member-recap-shine {
    0%, 70%, 100% { transform: translateX(-120%); }
    85% { transform: translateX(120%); }
}

@keyframes member-recap-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-recap-card,
    .member-recap-score,
    .member-recap-card__glow,
    .member-recap-card__shine,
    .member-recap-toast {
        animation: none;
    }

    .member-recap-stat,
    .member-recap-share-btn {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .member-recap-card {
        padding: 1.15rem 0.95rem 1.1rem;
        border-radius: 18px;
    }

    .member-recap-stats {
        gap: 0.45rem;
    }

    .member-recap-stat {
        padding: 0.65rem 0.25rem 0.6rem;
    }

    .member-recap-stat strong {
        font-size: 1.05rem;
    }

    .member-recap-score {
        font-size: 3.1rem;
    }

    .member-recap-card__top {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Member profile photo upload */
.member-profile-photo-card--focus {
    box-shadow: 0 0 0 3px rgba(163, 198, 68, 0.45), 0 12px 28px rgba(30, 57, 42, 0.12);
    border-color: rgba(163, 198, 68, 0.45);
}

.member-profile-photo-layout {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.member-profile-photo-preview {
    flex: 0 0 auto;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e392a, #2d4739);
    border: 3px solid rgba(163, 198, 68, 0.45);
    box-shadow: 0 10px 24px rgba(30, 57, 42, 0.18);
}

.member-profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-profile-photo-fallback {
    color: #a3c644;
    font-size: 2.2rem;
    line-height: 1;
}

.member-profile-photo-copy {
    flex: 1 1 14rem;
    min-width: 0;
}

.member-profile-photo-actions {
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .member-profile-photo-layout {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Discussion feed */
.discussion-compose {
    overflow: hidden;
}

.discussion-compose__trigger {
    display: block;
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.discussion-compose__trigger:hover,
.discussion-compose__trigger:focus {
    background: #f8fafc;
    outline: none;
}

.discussion-compose__trigger-inner {
    gap: 0.85rem;
}

.discussion-compose__trigger-title {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.discussion-compose__trigger-hint {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.discussion-compose__trigger-chevron {
    color: #94a3b8;
    font-size: 0.85rem;
}

.discussion-compose__panel {
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.discussion-compose--open .discussion-compose__panel {
    border-top: 0;
}

.discussion-compose__header {
    gap: 0.85rem;
}

.discussion-compose__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e392a, #2d4739);
    color: #a3c644;
    flex-shrink: 0;
}

.discussion-compose__label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.92rem;
}

.discussion-compose__editor-wrap .ql-toolbar.ql-snow {
    border: 1px solid var(--color-border, #dbe3ea);
    border-radius: 0.6rem 0.6rem 0 0;
    background: #f8fafc;
}

.discussion-compose__editor-wrap .ql-container.ql-snow {
    border: 1px solid var(--color-border, #dbe3ea);
    border-top: 0;
    border-radius: 0 0 0.6rem 0.6rem;
    background: #fff;
    min-height: 8.5rem;
    font-size: 0.98rem;
}

.discussion-editor .ql-editor {
    min-height: 8rem;
}

.discussion-editor .ql-editor.ql-blank::before {
    color: #94a3b8;
    font-style: normal;
}

.discussion-event-select-wrap .select2-container {
    width: 100% !important;
}

.discussion-event-select-wrap .select2-selection {
    min-height: 42px;
    border-color: var(--color-border, #dbe3ea) !important;
    border-radius: 0.5rem !important;
}

.discussion-event-select-wrap .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 0.75rem !important;
}

.discussion-event-select-wrap .select2-selection__arrow {
    height: 40px !important;
}

.discussion-dropzone {
    position: relative;
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.35rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.discussion-dropzone:hover,
.discussion-dropzone:focus,
.discussion-dropzone.is-dragover {
    border-color: #2d4739;
    background: #f0f7ef;
    box-shadow: 0 0 0 3px rgba(163, 198, 68, 0.18);
    outline: none;
}

.discussion-dropzone__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.discussion-dropzone__icons {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.discussion-dropzone__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dbe3ea;
    color: #2d4739;
    font-size: 1rem;
}

.discussion-dropzone__title {
    font-weight: 600;
    color: #1e293b;
}

.discussion-dropzone__hint {
    color: #64748b;
    font-size: 0.92rem;
}

.discussion-dropzone__meta {
    color: #94a3b8;
    font-size: 0.8rem;
}

.discussion-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.discussion-media-preview__item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.discussion-media-preview__thumb {
    height: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #a3c644;
    font-size: 1.4rem;
}

.discussion-media-preview__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discussion-media-preview__meta {
    padding: 0.45rem 0.6rem 0.55rem;
}

.discussion-media-preview__name {
    display: block;
    font-size: 0.78rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discussion-media-preview__size {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
}

.discussion-media-preview__remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    line-height: 1;
    font-size: 1rem;
    cursor: pointer;
}

.discussion-compose__submit {
    min-width: 8.5rem;
}

.discussion-post__body p {
    margin-bottom: 0.5rem;
}

.discussion-post__body p:last-child {
    margin-bottom: 0;
}

.discussion-post__body ul,
.discussion-post__body ol {
    margin: 0.35rem 0 0.5rem 1.2rem;
}

.discussion-post__media--photos {
    display: grid;
    gap: 0.35rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0f172a;
}

.discussion-post__media--compact {
    max-width: 28rem;
}

.discussion-post__media--layout-1 {
    grid-template-columns: 1fr;
}

.discussion-post__media--layout-2 {
    grid-template-columns: 1fr 1fr;
}

.discussion-post__media--layout-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.discussion-post__media--layout-3 .discussion-media-tile:first-child {
    grid-row: 1 / 3;
}

.discussion-post__media--layout-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.discussion-post__media--layout-5 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.discussion-post__media--layout-5 .discussion-media-tile:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.discussion-post__media--layout-compact.discussion-post__media--layout-1,
.discussion-post__media--layout-compact.discussion-post__media--layout-2,
.discussion-post__media--layout-compact.discussion-post__media--layout-3,
.discussion-post__media--layout-compact.discussion-post__media--layout-4,
.discussion-post__media--layout-compact.discussion-post__media--layout-5 {
    min-height: 10rem;
}

.discussion-post__media--layout-1 {
    min-height: 14rem;
    max-height: 28rem;
}

.discussion-post__media--layout-2,
.discussion-post__media--layout-3,
.discussion-post__media--layout-4,
.discussion-post__media--layout-5 {
    min-height: 16rem;
    max-height: 24rem;
}

.discussion-media-tile {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 7rem;
    padding: 0;
    border: 0;
    background: #0f172a;
    cursor: zoom-in;
    overflow: hidden;
}

.discussion-media-tile:focus {
    outline: 2px solid #a3c644;
    outline-offset: -2px;
}

.discussion-media-tile__img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.2s ease;
}

.discussion-media-tile:hover .discussion-media-tile__img {
    transform: scale(1.03);
}

.discussion-media-tile__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    pointer-events: none;
}

.discussion-post__media--videos {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.discussion-media-video-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0f172a;
}

.discussion-post__image,
.discussion-post__video {
    display: block;
    width: 100%;
    max-height: 28rem;
    border-radius: 0.5rem;
    background: #0f172a;
    object-fit: contain;
}

.discussion-post__image--sm,
.discussion-post__video--sm {
    max-height: 14rem;
}

body.discussion-lightbox-open {
    overflow: hidden;
}

.discussion-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discussion-lightbox[hidden] {
    display: none !important;
}

.discussion-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
}

.discussion-lightbox__stage {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1200px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
}

.discussion-lightbox__image {
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.35rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.discussion-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.discussion-lightbox__close:hover,
.discussion-lightbox__close:focus {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.discussion-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.discussion-lightbox__nav:hover:not(:disabled),
.discussion-lightbox__nav:focus:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.discussion-lightbox__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.discussion-lightbox__nav--prev {
    left: 1rem;
}

.discussion-lightbox__nav--next {
    right: 1rem;
}

.discussion-lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.55);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    .discussion-post__media--layout-3,
    .discussion-post__media--layout-5 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: auto;
        max-height: none;
    }

    .discussion-post__media--layout-3 .discussion-media-tile:first-child,
    .discussion-post__media--layout-5 .discussion-media-tile:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 12rem;
    }

    .discussion-media-tile {
        min-height: 8rem;
    }

    .discussion-lightbox__stage {
        padding: 3rem 1rem;
    }

    .discussion-lightbox__nav--prev {
        left: 0.5rem;
    }

    .discussion-lightbox__nav--next {
        right: 0.5rem;
    }
}

.discussion-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.discussion-avatar--initial {
    background: linear-gradient(145deg, #1e392a, #2d4739);
    color: #a3c644;
    font-weight: 700;
    font-size: 0.95rem;
}

.discussion-comment .discussion-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.78rem;
}

.discussion-comments__title {
    color: #475569;
    font-weight: 600;
}

.discussion-comments__count {
    color: #94a3b8;
    font-weight: 500;
}

.discussion-comments__view-all {
    color: #2d4739;
    font-weight: 600;
    text-decoration: none;
}

.discussion-comments__view-all:hover,
.discussion-comments__view-all:focus {
    color: #1e392a;
    text-decoration: underline;
}

.discussion-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.discussion-comment__row {
    gap: 0.35rem;
}

.discussion-comment__bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.55rem 0.75rem;
}

.discussion-comment__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.2rem;
}

.discussion-comment__author {
    font-size: 0.84rem;
    color: #1e293b;
}

.discussion-comment__time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.discussion-comment__text {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
}

.discussion-comment__delete {
    margin-top: 0.15rem;
}

.discussion-comment-form__wrap {
    gap: 0.5rem;
}

.discussion-comment-form__input {
    border-radius: 0.75rem;
    resize: vertical;
    min-height: 2.5rem;
    font-size: 0.92rem;
}

.discussion-comment-form__submit {
    align-self: flex-end;
    border-radius: 999px;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
}

.discussion-post__engagement {
    gap: 0.5rem;
}

.discussion-post__engagement-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.discussion-post__report-btn {
    font-size: 0.82rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.discussion-post__report-btn .fa-flag {
    margin-right: 0.2rem;
    opacity: 0.85;
}

.discussion-post__report-form {
    border-color: #fecaca !important;
    background: #fff5f5 !important;
}

.discussion-report-actions form {
    display: inline-block;
}

.discussion-like {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.discussion-like__btn {
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    padding: 0;
    line-height: 1;
}

.discussion-like__btn i {
    font-size: 1.05rem;
    line-height: 1;
    pointer-events: none;
}

.discussion-like__btn:hover:not(:disabled),
.discussion-like__btn:focus:not(:disabled) {
    background: #fee2e2;
    color: #dc2626;
    outline: none;
}

.discussion-like__btn.is-liked {
    background: #fee2e2;
    color: #dc2626;
}

.discussion-like__btn:active:not(:disabled) {
    transform: scale(0.95);
}

.discussion-like__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.discussion-like__btn--static {
    cursor: default;
}

.discussion-like__count {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    min-width: 1rem;
}

.discussion-post__body,
.discussion-comment__body {
    white-space: normal;
    word-break: break-word;
}

.discussion-post__event .badge {
    font-weight: 500;
    color: #334155;
}

.discussion-moderation .nav-tabs .nav-link {
    color: #475569;
}

.discussion-moderation .nav-tabs .nav-link.active {
    font-weight: 600;
}

.discussion-search .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
}

.discussion-feed-sentinel.is-loading .fa-spinner {
    opacity: 1;
}

.discussion-post--pinned {
    border-left: 4px solid #f59e0b;
    box-shadow: 0 0.35rem 1rem rgba(245, 158, 11, 0.12);
}

.discussion-avatar--org {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
}

.discussion-poll {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem 1rem;
    background: #f8fafc;
    max-width: 100%;
}

@media (min-width: 768px) {
    .discussion-poll {
        max-width: 34rem;
    }

    .discussion-poll__options--grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

.discussion-poll-compose #discussion-poll-options {
    max-width: 100%;
}

@media (min-width: 768px) {
    .discussion-poll-compose #discussion-poll-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.75rem;
        max-width: 34rem;
    }

    .discussion-poll-compose #discussion-poll-options .form-control {
        margin-bottom: 0 !important;
    }

    .discussion-poll-compose #discussion-poll-add-option {
        grid-column: 1 / -1;
    }

    .discussion-poll-compose .form-text {
        grid-column: 1 / -1;
    }
}

.discussion-poll__options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.discussion-poll__choice {
    display: block;
    margin: 0;
    cursor: pointer;
}

.discussion-poll__choice--readonly {
    cursor: default;
}

.discussion-poll__radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.discussion-poll__choice-body {
    position: relative;
    display: block;
    border: 2px solid #dbe3ee;
    border-radius: 0.7rem;
    padding: 0.72rem 0.9rem;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.discussion-poll__choice:hover .discussion-poll__choice-body {
    border-color: #93c5fd;
    background: #f8fbff;
}

.discussion-poll__choice-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.discussion-poll__choice-text {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    flex: 1 1 8rem;
    min-width: 0;
}

.discussion-poll__choice-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.discussion-poll__pct {
    font-weight: 700;
    color: #2563eb;
    min-width: 2.5rem;
    text-align: right;
}

.discussion-poll__votes {
    color: #94a3b8;
}

.discussion-poll__votes::before {
    content: '·';
    margin-right: 0.45rem;
    color: #cbd5e1;
}

.discussion-poll__your-vote {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}

.discussion-poll__bar {
    display: block;
    height: 0.42rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 0.55rem;
}

.discussion-poll__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    border-radius: 999px;
    transition: width 0.45s ease;
}

.discussion-poll__check {
    position: absolute;
    top: 0.72rem;
    right: 0.75rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.discussion-poll__choice:not(.discussion-poll__choice--has-results) .discussion-poll__choice-body {
    padding-right: 2.5rem;
}

.discussion-poll__choice:not(.discussion-poll__choice--has-results) .discussion-poll__choice-meta:empty {
    display: none;
}

.discussion-poll__choice:not(.discussion-poll__choice--has-results) .discussion-poll__bar {
    display: none;
}

.discussion-poll__choice.is-selected .discussion-poll__choice-body,
.discussion-poll__choice.is-user-vote .discussion-poll__choice-body {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.discussion-poll__choice.is-selected .discussion-poll__check,
.discussion-poll__choice.is-user-vote .discussion-poll__check {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.discussion-poll--results .discussion-poll__check {
    display: none;
}

.discussion-poll--results .discussion-poll__choice--has-results .discussion-poll__choice-body {
    padding-right: 0.9rem;
}

.discussion-poll--results .discussion-poll__choice.is-user-vote .discussion-poll__choice-body {
    border-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.discussion-poll__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.discussion-poll__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.discussion-poll__hint {
    line-height: 1.3;
}

.discussion-poll__total {
    margin: 0;
    line-height: 1.35;
}

.discussion-notifications .list-group-item {
    border-left: 0;
    border-right: 0;
}

.discussion-notification--unread {
    background: #eff6ff;
}

.discussion-notification__btn {
    cursor: pointer;
}

.discussion-notification__btn:focus {
    outline: none;
}

.discussion-notifications-link .badge {
    vertical-align: top;
    margin-left: 0.15rem;
}
