.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

/* =========================
   WOLF REVEAL SPLASH V1
   ========================= */

.football-splash {
    background:
        radial-gradient(circle at 50% 42%, rgba(200, 155, 60, 0.16), transparent 30%),
        linear-gradient(180deg, #05070a, #111827 62%, #06080c);
}

.wolf-splash-card {
    width: min(92vw, 620px);
    min-height: 430px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.wolf-splash-scene {
    position: relative;
    width: min(82vw, 460px);
    height: 245px;
    overflow: hidden;
}

.wolf-splash-scene::before {
    content: "";
    position: absolute;
    inset: auto 10% 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 155, 60, 0.45), transparent);
    opacity: 0.65;
}

.wolf-runner {
    position: absolute;
    left: -160px;
    top: 84px;
    width: 130px;
    height: 78px;
    opacity: 0;
    filter: drop-shadow(0 0 18px rgba(200, 155, 60, 0.25));
    animation: wolfRunIn 4.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.wolf-body,
.wolf-head,
.wolf-ear,
.wolf-tail,
.wolf-leg {
    position: absolute;
    display: block;
    background: linear-gradient(135deg, #111318, #2f343d 55%, #07090d);
}

.wolf-body {
    left: 24px;
    top: 26px;
    width: 78px;
    height: 32px;
    border-radius: 70% 45% 55% 55%;
}

.wolf-head {
    right: 7px;
    top: 16px;
    width: 34px;
    height: 30px;
    clip-path: polygon(0 35%, 68% 0, 100% 28%, 80% 68%, 30% 88%);
}

.wolf-ear {
    width: 18px;
    height: 22px;
    clip-path: polygon(50% 0, 100% 100%, 0 78%);
}

.wolf-ear-left {
    right: 32px;
    top: 4px;
}

.wolf-ear-right {
    right: 16px;
    top: 2px;
}

.wolf-tail {
    left: 0;
    top: 22px;
    width: 38px;
    height: 16px;
    border-radius: 999px 0 0 999px;
    transform: rotate(-18deg);
}

.wolf-leg {
    width: 12px;
    height: 34px;
    bottom: 2px;
    border-radius: 999px;
    transform-origin: top center;
}

.wolf-leg-front {
    right: 34px;
    animation: wolfLeg 0.36s ease-in-out infinite;
}

.wolf-leg-back {
    left: 42px;
    animation: wolfLeg 0.36s ease-in-out infinite reverse;
}

.wolf-impact {
    position: absolute;
    inset: 72px 0 auto;
    width: 118px;
    height: 118px;
    margin: 0 auto;
    border: 1px solid rgba(200, 155, 60, 0.62);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.4);
    animation: wolfImpact 4.3s ease forwards;
}

.wolf-impact::before,
.wolf-impact::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(200, 155, 60, 0.32);
    border-radius: inherit;
}

.wolf-impact::after {
    inset: 38px;
    background: rgba(200, 155, 60, 0.18);
    filter: blur(8px);
}

.wolf-splash-logo {
    position: absolute;
    left: 50%;
    top: 38px;
    width: 148px;
    height: 148px;
    object-fit: contain;
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
    animation: wolfLogoReveal 4.3s ease forwards;
}

.football-splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateY(-18px);
}

.football-splash-kicker {
    opacity: 0;
    animation: wolfExperience 4.3s ease forwards;
}

.football-splash-content h2 {
    opacity: 0;
    animation: wolfTitleReveal 4.3s ease forwards;
}

.football-splash-content p:last-child {
    opacity: 0;
    animation: wolfSubtitleReveal 4.3s ease forwards;
}

@keyframes wolfRunIn {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.82);
    }
    12% {
        opacity: 1;
    }
    35% {
        opacity: 1;
        transform: translateX(calc(min(82vw, 460px) / 2 - 62px)) scale(1);
    }
    53%,
    100% {
        opacity: 0;
        transform: translateX(calc(min(82vw, 460px) / 2 - 62px)) scale(1.05);
    }
}

@keyframes wolfLeg {
    0%,
    100% {
        transform: rotate(18deg);
    }
    50% {
        transform: rotate(-24deg);
    }
}

@keyframes wolfImpact {
    0%,
    32% {
        opacity: 0;
        transform: scale(0.35);
    }
    44% {
        opacity: 0.92;
        transform: scale(1);
    }
    64%,
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

@keyframes wolfLogoReveal {
    0%,
    48% {
        opacity: 0;
        transform: translateX(-50%) scale(0.72);
    }
    62%,
    88% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.02);
    }
}

@keyframes wolfTitleReveal {
    0%,
    52% {
        opacity: 0;
        transform: translateY(10px);
    }
    66%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@keyframes wolfSubtitleReveal {
    0%,
    56% {
        opacity: 0;
    }
    70%,
    90% {
        opacity: 0.85;
    }
    100% {
        opacity: 0;
    }
}

@keyframes wolfExperience {
    0%,
    76% {
        opacity: 0;
        transform: translateY(8px);
    }
    86%,
    96% {
        opacity: 0.86;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wolf-runner,
    .wolf-leg,
    .wolf-impact,
    .wolf-splash-logo,
    .football-splash-kicker,
    .football-splash-content h2,
    .football-splash-content p:last-child {
        animation: none !important;
    }
}


.match-card {
    grid-column: span 2;
}

.featured-card {
    grid-column: span 2;
}

/* =========================
   PAYMENTS V1
   ========================= */

.payments-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.payments-admin-notice {
    margin-bottom: 18px;
    border-color: rgba(200, 155, 60, 0.55);
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.12), var(--bg-secondary));
}

.payments-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.payment-summary-card {
    min-width: 0;
}

.payment-summary-card .payment-amount {
    margin: 0 0 10px;
}

.payment-list-section {
    margin-top: 22px;
}

.payment-section-header {
    margin-bottom: 12px;
}

.payment-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.payment-item-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.payment-item-main {
    min-width: 0;
}

.payment-item-main h3 {
    margin: 0 0 8px;
    color: var(--accent-gold);
    font-size: var(--font-sm);
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-item-main p {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: var(--font-xs);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.payment-item-main p:last-child {
    margin-bottom: 0;
}

.payment-item-main strong {
    color: var(--text-secondary);
    font-weight: 800;
}

.payment-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-card-actions .btn {
    white-space: nowrap;
}

.payment-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 900;
    line-height: 1.2;
}

.payment-status-badge.active,
.payment-status-badge.paid,
.payment-status-badge.played {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.payment-status-badge.partial,
.payment-status-badge.late,
.payment-status-badge.live {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.payment-status-badge.overdue,
.payment-status-badge.cancelled,
.payment-status-badge.unpaid {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.payment-status-badge.closed,
.payment-status-badge.locked,
.payment-status-badge.upcoming {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.payment-member-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.payment-member-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.payment-member-card h4 {
    margin: 0 0 8px;
    color: var(--accent-gold);
    font-size: var(--font-sm);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-member-card p {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: var(--font-xs);
    line-height: 1.35;
}

.payment-member-card p:last-child {
    margin-bottom: 0;
}

.payment-member-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.payment-member-card-actions .btn {
    flex: 1 1 120px;
}

.payment-form-full-row {
    grid-column: 1 / -1;
}

.payment-readonly-input {
    cursor: not-allowed;
    opacity: 0.85;
}

/* =========================
   MATCHES V0
   ========================= */

.matches-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.match-list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.match-member-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.match-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 800;
}

.match-member-row input {
    flex-shrink: 0;
    accent-color: var(--accent-gold);
}

.match-availability-form {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

/* =========================
   APP MODALS
   ========================= */

.app-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    overflow-y: auto;
    overflow-x: hidden;
}

.app-modal-overlay.is-visible {
    display: flex;
}

.app-modal {
    position: relative;
    width: min(900px, 100%);
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 800;
}

.modal-close-button:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* =========================
   MEMBER MODAL
   ========================= */

.member-modal {
    padding: 16px;
}

.member-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 52px;
    margin-bottom: 22px;
}

.member-modal-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(200, 155, 60, 0.18);
    color: var(--accent-gold);
    font-size: var(--font-lg);
    font-weight: 900;
}

.member-modal-header h2 {
    margin: 0;
    color: var(--accent-gold);
    font-size: var(--font-lg);
    line-height: 1.2;
}

.member-modal-header p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 700;
}

.member-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.member-modal-section {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.member-modal-section h3 {
    margin: 0 0 14px;
    color: var(--accent-gold);
    font-size: var(--font-xs);
    font-weight: 900;
    text-transform: uppercase;
}

.member-modal-section p {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: var(--font-sm);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.member-modal-section p:last-child {
    margin-bottom: 0;
}

.member-modal-section strong {
    color: var(--text-secondary);
    font-weight: 800;
}

.member-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================
   MEMBER INVITATIONS
   ========================= */

.member-invitations-section {
    margin-top: 22px;
}

.member-invitations-header {
    margin-bottom: 12px;
}

.member-invitations-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.invitation-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.invitation-main {
    min-width: 0;
}

.invitation-main h3 {
    margin: 0 0 8px;
    color: var(--accent-gold);
    font-size: var(--font-sm);
    line-height: 1.2;
}

.invitation-main p {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: var(--font-xs);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.invitation-main strong {
    color: var(--text-secondary);
}

.invitation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.invitation-actions .btn {
    flex: 1 1 120px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 800;
}

.status-badge.pending {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.status-badge.accepted {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.status-badge.expired,
.status-badge.cancelled {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

/* =========================
   PROFILE EDIT MODAL
   ========================= */

.profile-modal {
    width: min(520px, 100%);
    padding: 18px;
}

.profile-modal-header {
    padding-right: 52px;
    margin-bottom: 18px;
}

.profile-modal-header h2 {
    margin: 0;
    color: var(--accent-gold);
    font-size: var(--font-lg);
    line-height: 1.2;
}

.profile-modal-header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: var(--font-xs);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-row label {
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 800;
}

.form-help {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    line-height: 1.4;
}

.form-error {
    display: none;
    margin: 0;
    color: var(--accent-red);
    font-size: var(--font-xs);
    line-height: 1.4;
}

.form-error.is-visible {
    display: block;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

/* =========================
   INVITE MEMBER MODAL
   ========================= */

.invite-member-modal {
    width: min(680px, 100%);
    padding: 18px;
}

.invite-member-modal-header {
    padding-right: 52px;
    margin-bottom: 18px;
}

.invite-member-modal-header h2 {
    margin: 0;
    color: var(--accent-gold);
    font-size: var(--font-lg);
    line-height: 1.2;
}

.invite-member-modal-header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: var(--font-xs);
}

.invite-member-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.invite-member-form .form-row,
.invite-member-form .form-error,
.invite-member-form .profile-form-actions {
    min-width: 0;
}

.invite-member-form .form-error,
.invite-member-form .profile-form-actions,
#inviteSecondaryPositionsRow {
    grid-column: 1 / -1;
}

.form-label {
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 800;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-xs);
    line-height: 1.2;
}

.checkbox-grid input {
    flex-shrink: 0;
    accent-color: var(--accent-gold);
}

.form-row.is-hidden {
    display: none;
}

.invite-link-box {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-xs);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.invite-success-actions {
    flex-wrap: wrap;
}

.invite-success-actions .btn {
    text-align: center;
    text-decoration: none;
}

/* =========================
   CONFIRMATION MODAL
   ========================= */

.confirmation-modal-overlay {
    z-index: 1000;
}

.confirmation-modal {
    width: min(420px, 100%);
    padding: 18px;
}

.confirmation-modal-header {
    margin-bottom: 18px;
}

.confirmation-modal-header h2 {
    margin: 0;
    color: var(--accent-gold);
    font-size: var(--font-lg);
    line-height: 1.2;
}

.confirmation-modal-header p {
    margin: 8px 0 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
    line-height: 1.45;
}

.confirmation-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================
   MEMBER TOAST
   ========================= */

.member-toast {
    position: fixed;
    top: 86px;
    right: 18px;
    z-index: 1100;
    max-width: min(340px, calc(100vw - 36px));
    padding: 12px 14px;
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    font-size: var(--font-sm);
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.member-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.member-toast.toast-success {
    border-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.14);
}

.member-toast.toast-warning {
    border-color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.16);
}

.notification-bell-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 2px solid var(--bg-primary);
    border-radius: 999px;
    background: var(--accent-orange);
    color: #111827;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.notifications-modal {
    width: min(560px, calc(100vw - 24px));
}

.notifications-list {
    gap: 10px;
}

.notification-card {
    width: 100%;
    text-align: left;
}

.notification-card.is-unread {
    border-color: var(--accent-gold);
    background: rgba(212, 160, 55, 0.12);
}

.notification-card.is-read {
    opacity: 0.74;
}

.notification-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notification-card h3,
.notification-card p {
    overflow-wrap: anywhere;
}

.notification-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--accent-gold);
}

.notification-card.is-read .notification-dot {
    background: transparent;
}


/* =========================
   STICKY MODAL HEADERS
   ========================= */

.app-modal {
    isolation: isolate;
}

.app-modal > .modal-close-button {
    position: sticky;
    top: 16px;
    right: auto;
    margin-left: auto;
    margin-bottom: -38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.member-modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -16px -16px 18px;
    padding: 16px 52px 14px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.profile-modal-header,
.invite-member-modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -18px -18px 18px;
    padding: 18px 52px 14px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

@media (max-width: 1024px) {
    .matches-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payments-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .payment-item-card {
        grid-template-columns: 1fr;
    }

    .payment-card-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {

    .home-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .match-card,
    .featured-card {
        grid-column: span 1;
    }

    .payments-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

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

    .payments-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .matches-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .match-list-card {
        gap: 12px;
    }

    .payment-list-section {
        margin-top: 18px;
    }

    .payment-item-card {
        gap: 12px;
    }

    .payment-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-card-actions .btn {
        width: 100%;
        white-space: normal;
    }

    .payment-member-card-actions {
        flex-direction: column;
    }

    .payment-member-card-actions .btn {
        width: 100%;
        flex: none;
    }

    .app-modal-overlay {
        align-items: flex-start;
        padding: 10px;
    }

    .app-modal {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: var(--radius-md);
    }

    .member-modal {
        padding: 12px;
    }

    .member-modal-header {
        align-items: flex-start;
        gap: 12px;
        padding-right: 44px;
        margin-bottom: 14px;
    }

    .member-modal-avatar {
        width: 46px;
        height: 46px;
        font-size: var(--font-base);
    }

    .member-modal-header h2 {
        font-size: var(--font-base);
    }

    .member-modal-header p {
        font-size: var(--font-xs);
    }

    .member-modal-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .member-modal-section {
        padding: 12px;
    }

    .member-modal-section h3 {
        margin-bottom: 10px;
        font-size: 0.75rem;
    }

    .member-modal-section p {
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .member-modal-actions .btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .member-invitations-section {
        margin-top: 18px;
    }

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

    .invitation-actions .btn {
        width: 100%;
        flex: none;
    }

    .profile-modal {
        padding: 14px;
    }

    .profile-modal-header {
        padding-right: 44px;
        margin-bottom: 14px;
    }

    .profile-modal-header h2 {
        font-size: var(--font-base);
    }

    .profile-modal-header p {
        font-size: 0.78rem;
    }

    .profile-form {
        gap: 12px;
    }

    .profile-form-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .profile-form-actions .btn {
        width: 100%;
    }

    .invite-member-modal {
        padding: 14px;
    }

    .invite-member-modal-header {
        padding-right: 44px;
        margin-bottom: 14px;
    }

    .invite-member-modal-header h2 {
        font-size: var(--font-base);
    }

    .invite-member-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .confirmation-modal {
        padding: 14px;
    }

    .confirmation-modal-header {
        margin-bottom: 14px;
    }

    .confirmation-modal-header h2 {
        font-size: var(--font-base);
    }

    .confirmation-modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .confirmation-modal-actions .btn {
        width: 100%;
    }

    .member-toast {
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(8px);
        text-align: center;
    }

    .modal-close-button {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: var(--font-xs);
    }

    .app-modal > .modal-close-button {
        top: 10px;
        margin-bottom: -34px;
    }

    .member-modal-header {
        position: sticky;
        top: 0;
        z-index: 20;
        margin: -12px -12px 12px;
        padding: 12px 44px 12px 12px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
    }

    .profile-modal-header,
    .invite-member-modal-header {
        position: sticky;
        top: 0;
        z-index: 20;
        margin: -14px -14px 12px;
        padding: 14px 44px 12px 14px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
    }

}

/* =========================
   MODAL STICKY HEADER FIX
   ========================= */

.app-modal.member-modal,
.app-modal.profile-modal,
.app-modal.invite-member-modal {
    padding-top: 0;
}

.member-modal-header,
.profile-modal-header,
.invite-member-modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -16px 18px;
    padding: 16px 68px 16px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.profile-modal-header,
.invite-member-modal-header {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 68px;
}

.member-modal .modal-close-button,
.profile-modal .modal-close-button,
.invite-member-modal .modal-close-button {
    position: sticky;
    top: 16px;
    z-index: 30;
    float: right;
    margin: 16px 16px -54px 0;
}

@media (max-width: 768px) {
    .member-modal-header,
    .profile-modal-header,
    .invite-member-modal-header {
        margin: 0 -12px 14px;
        padding: 12px 56px 12px 12px;
    }

    .profile-modal-header,
    .invite-member-modal-header {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 56px;
    }

    .member-modal .modal-close-button,
    .profile-modal .modal-close-button,
    .invite-member-modal .modal-close-button {
        top: 10px;
        margin: 10px 10px -44px 0;
    }
}

/* =========================
   ACTIVITY LOGS V0
   ========================= */

.logs-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.logs-toolbar {
    margin-bottom: 18px;
}

.logs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.log-entry-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: flex-start;
}

.log-entry-main {
    min-width: 0;
}

.log-entry-main h3 {
    margin: 0 0 8px;
    color: var(--accent-gold);
    font-size: var(--font-sm);
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.log-entry-main p {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: var(--font-xs);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.log-entry-main p:last-child {
    margin-bottom: 0;
}

.log-entry-main strong {
    color: var(--text-secondary);
    font-weight: 800;
}

.log-entry-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 110px;
}

.log-severity-badge,
.log-module-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.log-severity-badge.info {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.log-severity-badge.warning {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.log-severity-badge.critical {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.log-module-badge {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.log-ip-note {
    color: var(--text-secondary);
    font-size: var(--font-xs);
    line-height: 1.35;
}

.logs-access-denied {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), var(--bg-secondary));
}

@media (max-width: 768px) {
    .logs-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .logs-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .logs-filters .btn {
        width: 100%;
    }

    .log-entry-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .log-entry-meta {
        align-items: flex-start;
        min-width: 0;
    }
}

/* =========================
   MATCH STATS KPI V0
   ========================= */

.stats-kpi-grid {
    align-items: stretch;
}

.stats-kpi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 132px;
    overflow: hidden;
    border-color: rgba(200, 155, 60, 0.35);
    background:
        radial-gradient(circle at top right, rgba(200, 155, 60, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(200, 155, 60, 0.10), var(--bg-card));
}

.stats-kpi-card::before {
    content: "";
    position: absolute;
    inset: -60% auto auto -40%;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(200, 155, 60, 0.10);
    filter: blur(2px);
    animation: statsKpiGlow 4s ease-in-out infinite;
}

.stats-kpi-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 96px;
    height: 96px;
    border: 1px solid rgba(200, 155, 60, 0.22);
    border-radius: 999px;
}

.stats-kpi-card > * {
    position: relative;
    z-index: 1;
}

.stats-kpi-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(200, 155, 60, 0.40);
    border-radius: 20px;
    background: rgba(200, 155, 60, 0.12);
    box-shadow: 0 0 22px rgba(200, 155, 60, 0.10);
    font-size: 1.75rem;
    line-height: 1;
    animation: statsKpiFloat 3.6s ease-in-out infinite;
}

.stats-kpi-card .card-title {
    margin-bottom: 8px;
}

.stats-kpi-card .card-main-text {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stats-ranking-toolbar {
    margin-bottom: 18px;
}

.stats-ranking-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@keyframes statsKpiGlow {
    0%,
    100% {
        opacity: 0.45;
        transform: translate(0, 0) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(16px, 10px) scale(1.08);
    }
}

@keyframes statsKpiFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats-kpi-card::before,
    .stats-kpi-icon {
        animation: none;
    }
}

@media (max-width: 768px) {
    .stats-kpi-card {
        min-height: 116px;
        align-items: flex-start;
    }

    .stats-kpi-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 1.45rem;
    }

    .stats-ranking-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-ranking-filters .btn {
        width: 100%;
    }
}

/* =========================
   MATCH STATS TABLE V0
   ========================= */

.stats-table-card {
    padding: 0;
    overflow: hidden;
    border-color: rgba(200, 155, 60, 0.28);
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.08), transparent 38%),
        var(--bg-card);
}

.stats-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
}

.stats-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(200, 155, 60, 0.42);
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.22), rgba(200, 155, 60, 0.08)),
        var(--bg-secondary);
    color: var(--accent-gold);
    font-size: var(--font-xs);
    font-weight: 950;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.stats-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(255, 255, 255, 0.012);
    color: var(--text-primary);
    font-weight: 750;
    line-height: 1.35;
    vertical-align: middle;
    white-space: nowrap;
}

.stats-table tbody td:first-child {
    color: var(--accent-gold);
    font-weight: 950;
}

.stats-table tbody td:last-child {
    border-right: none;
}

.stats-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
}

.stats-table tbody tr:hover td {
    background: rgba(200, 155, 60, 0.10);
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .stats-table {
        min-width: 620px;
        font-size: 0.82rem;
    }

    .stats-table thead th,
    .stats-table tbody td {
        padding: 12px;
    }

    .stats-table-wrapper {
        border-radius: var(--radius-md);
    }
}

/* =========================
   MATCH STATS KPI MOBILE COMPACT
   ========================= */

@media (max-width: 768px) {
    .stats-kpi-grid {
        display: flex;
        grid-template-columns: none;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .stats-kpi-grid::-webkit-scrollbar {
        height: 4px;
    }

    .stats-kpi-grid::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(200, 155, 60, 0.45);
    }

    .stats-kpi-card {
        flex: 0 0 168px;
        min-height: 106px;
        padding: 12px;
        gap: 10px;
        scroll-snap-align: start;
        align-items: center;
    }

    .stats-kpi-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 1.2rem;
    }

    .stats-kpi-card .card-title {
        margin-bottom: 6px;
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .stats-kpi-card .card-main-text {
        margin-bottom: 6px;
        font-size: 1.55rem;
        line-height: 0.95;
    }

    .stats-kpi-card .small-text {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .stats-kpi-card::after {
        right: -46px;
        bottom: -46px;
        width: 88px;
        height: 88px;
    }
}

/* =========================
   MATCH STATS MOBILE FILTERS + TABLE
   ========================= */

@media (max-width: 768px) {
    .stats-ranking-toolbar {
        padding: 12px;
        overflow: hidden;
    }

    .stats-ranking-filters {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .stats-ranking-filters::-webkit-scrollbar {
        height: 4px;
    }

    .stats-ranking-filters::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(200, 155, 60, 0.45);
    }

    .stats-ranking-filters .btn {
        width: auto;
        min-width: max-content;
        flex: 0 0 auto;
        padding: 10px 14px;
        border-radius: 999px;
        scroll-snap-align: start;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .stats-ranking-filters .btn.btn-gold {
        box-shadow: 0 0 18px rgba(200, 155, 60, 0.18);
    }

    .stats-table-wrapper {
        overflow-x: hidden;
    }

    .stats-table {
        min-width: 0;
        table-layout: fixed;
        font-size: 0.78rem;
    }

    .stats-table thead th,
    .stats-table tbody td {
        padding: 11px 10px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .stats-table thead th:nth-child(3),
    .stats-table tbody td:nth-child(3),
    .stats-table thead th:nth-child(4),
    .stats-table tbody td:nth-child(4) {
        display: none;
    }

    .stats-table thead th:first-child,
    .stats-table tbody td:first-child {
        width: 48px;
    }

    .stats-table thead th:last-child,
    .stats-table tbody td:last-child {
        width: 82px;
        text-align: right;
    }

    .stats-table-card {
        border-radius: var(--radius-md);
    }
}

/* =========================
   MATCH STATS MOBILE FINAL CLEANUP
   ========================= */

.stats-ranking-select {
    display: none;
}

@media (max-width: 768px) {
    .stats-kpi-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .stats-kpi-grid::-webkit-scrollbar {
        display: none;
    }

    .stats-kpi-card {
        flex: none;
        min-width: 0;
        width: auto;
        min-height: 118px;
        padding: 12px;
        scroll-snap-align: unset;
    }

    .stats-kpi-card .small-text {
        display: -webkit-box;
        min-height: 2.5em;
        overflow: hidden;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .stats-ranking-toolbar {
        padding: 12px;
    }

    .stats-ranking-select {
        display: block;
        width: 100%;
        min-height: 42px;
        border-color: rgba(200, 155, 60, 0.55);
        background:
            linear-gradient(135deg, rgba(200, 155, 60, 0.18), transparent),
            var(--bg-card);
        color: var(--text-primary);
        font-weight: 900;
    }

    .stats-ranking-filters {
        display: none;
    }

    .stats-table-wrapper {
        width: 100%;
        overflow-x: hidden;
    }

    .stats-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: 0.76rem;
    }

    .stats-table thead th,
    .stats-table tbody td {
        padding: 10px 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: normal;
    }

    .stats-table thead th:nth-child(3),
    .stats-table tbody td:nth-child(3),
    .stats-table thead th:nth-child(4),
    .stats-table tbody td:nth-child(4) {
        display: table-cell !important;
    }

    .stats-table-ranking .stats-table thead th:nth-child(3),
    .stats-table-ranking .stats-table tbody td:nth-child(3),
    .stats-table-ranking .stats-table thead th:nth-child(4),
    .stats-table-ranking .stats-table tbody td:nth-child(4) {
        display: none !important;
    }

    .stats-table-ranking .stats-table thead th:first-child,
    .stats-table-ranking .stats-table tbody td:first-child {
        width: 42px;
    }

    .stats-table-ranking .stats-table thead th:nth-child(2),
    .stats-table-ranking .stats-table tbody td:nth-child(2) {
        width: auto;
    }

    .stats-table-ranking .stats-table thead th:last-child,
    .stats-table-ranking .stats-table tbody td:last-child {
        width: 72px;
        text-align: right;
    }

    .stats-table-history .stats-table thead th:nth-child(1),
    .stats-table-history .stats-table tbody td:nth-child(1) {
        width: 72px;
    }

    .stats-table-history .stats-table thead th:nth-child(2),
    .stats-table-history .stats-table tbody td:nth-child(2) {
        width: auto;
    }

    .stats-table-history .stats-table thead th:nth-child(3),
    .stats-table-history .stats-table tbody td:nth-child(3) {
        width: 62px;
        text-align: center;
    }

    .stats-table-history .stats-table thead th:nth-child(4),
    .stats-table-history .stats-table tbody td:nth-child(4) {
        width: 96px;
        text-align: right;
    }
}

@media (max-width: 380px) {
    .stats-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MOBILE GLOBAL POLISH V1
   Security note:
   - CSS-only visual hardening, no permission/security logic changed here.
   - Sensitive actions must remain controlled in JavaScript now and backend/RLS later.
   ========================= */

@media (max-width: 768px) {
    .section-header {
        align-items: flex-start;
        gap: 12px;
    }

    .section-header > p {
        margin-bottom: 0;
        color: var(--accent-gold);
        font-size: 0.92rem;
        font-weight: 900;
        letter-spacing: 0.02em;
        line-height: 1.35;
    }

    .section-header > .member-modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
    }

    .section-header > .member-modal-actions .btn {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 950;
        white-space: nowrap;
    }

    .section-header > .member-modal-actions .btn:only-child {
        grid-column: 1 / -1;
    }

    .page-section > .card,
    .page-section > .home-grid > .card,
    .member-invitations-section > .member-invitations-list > .card,
    .payment-list > .card,
    .logs-list > .card {
        border-color: rgba(255, 255, 255, 0.11);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    }

    .home-grid {
        gap: 14px;
    }

    .home-grid > .card,
    .matches-summary-grid > .card,
    .payments-summary-grid > .card,
    .logs-summary-grid > .card {
        position: relative;
        overflow: hidden;
        border-color: rgba(200, 155, 60, 0.20);
        background:
            radial-gradient(circle at top right, rgba(200, 155, 60, 0.10), transparent 34%),
            var(--bg-card);
    }

    .matches-summary-grid,
    .payments-summary-grid,
    .logs-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 18px;
    }

    .matches-summary-grid > .card,
    .payments-summary-grid > .card,
    .logs-summary-grid > .card {
        min-height: 118px;
        padding: 14px;
    }

    .matches-summary-grid .card-title,
    .payments-summary-grid .card-title,
    .logs-summary-grid .card-title {
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .matches-summary-grid .card-main-text,
    .payments-summary-grid .payment-amount,
    .logs-summary-grid .card-main-text {
        font-size: 1.45rem;
        line-height: 1;
    }

    .match-list-card,
    .payment-item-card,
    .log-entry-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .invitation-main h3,
    .payment-item-main h3,
    .log-entry-main h3 {
        font-size: 0.95rem;
    }

    .invitation-main p,
    .payment-item-main p,
    .log-entry-main p {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .invitation-actions,
    .payment-card-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .invitation-actions .btn,
    .payment-card-actions .btn {
        width: 100%;
        min-height: 38px;
        padding: 9px 10px;
        border-radius: 999px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .invitation-actions .btn:only-child,
    .payment-card-actions .btn:only-child {
        grid-column: 1 / -1;
    }

    .members-toolbar,
    .logs-toolbar,
    .stats-ranking-toolbar {
        border-color: rgba(200, 155, 60, 0.18);
        background:
            linear-gradient(135deg, rgba(200, 155, 60, 0.08), transparent),
            var(--bg-card);
    }

    .members-filters,
    .logs-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .members-filters .btn,
    .logs-filters .btn,
    .members-filters .filter-select,
    .logs-filters .filter-select,
    .members-toolbar .search-input {
        width: 100%;
        min-height: 42px;
        border-radius: 999px;
    }

    .member-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        min-height: 110px;
        border-color: rgba(200, 155, 60, 0.16);
    }

    .member-card h3 {
        margin-bottom: 6px;
        font-size: 0.95rem;
    }

    .member-card p {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .member-modal-actions .btn {
        min-height: 40px;
    }

    .profile-form-actions .btn,
    .confirmation-modal-actions .btn {
        min-height: 42px;
        border-radius: 999px;
        font-weight: 950;
    }

    .form-row label,
    .form-label {
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .search-input,
    .filter-select {
        min-height: 42px;
    }

    .payment-status-badge,
    .status-badge,
    .log-severity-badge,
    .log-module-badge {
        font-size: 0.7rem;
        font-weight: 950;
    }

    .app-modal-overlay {
        background: rgba(0, 0, 0, 0.78);
        backdrop-filter: blur(4px);
    }
}

@media (max-width: 420px) {
    .section-header > .member-modal-actions,
    .invitation-actions,
    .payment-card-actions {
        grid-template-columns: 1fr;
    }

    .matches-summary-grid,
    .payments-summary-grid,
    .logs-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MOBILE COMPACT UI V2
   Security note:
   - Visual compactness only.
   - Permission/security decisions must stay enforced in JS now and backend/RLS later.
   ========================= */

@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    .topbar-title h1 {
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .user-subtitle {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .section-header {
        gap: 10px;
        margin-bottom: 14px;
    }

    .section-header > p {
        font-size: 0.82rem;
        line-height: 1.28;
    }

    .card {
        padding: 14px;
    }

    .card-title {
        font-size: 0.76rem;
        line-height: 1.15;
        letter-spacing: 0.04em;
    }

    .card-main-text,
    .payment-amount {
        font-size: 1.25rem;
        line-height: 1.05;
    }

    .small-text,
    .form-help {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .btn {
        min-height: 34px;
        padding: 7px 12px;
        border-radius: 999px;
        font-size: 0.76rem;
        line-height: 1.15;
    }

    .section-header > .member-modal-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .section-header > .member-modal-actions .btn {
        width: auto;
        min-width: 0;
        flex: 1 1 140px;
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .matches-summary-grid,
    .payments-summary-grid,
    .logs-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .matches-summary-grid > .card,
    .payments-summary-grid > .card,
    .logs-summary-grid > .card {
        min-height: 96px;
        padding: 12px;
    }

    .matches-summary-grid .card-title,
    .payments-summary-grid .card-title,
    .logs-summary-grid .card-title {
        font-size: 0.66rem;
    }

    .matches-summary-grid .card-main-text,
    .payments-summary-grid .payment-amount,
    .logs-summary-grid .card-main-text {
        font-size: 1.22rem;
    }

    .stats-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stats-kpi-card {
        min-height: 104px;
        padding: 11px;
        gap: 9px;
    }

    .stats-kpi-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .stats-kpi-card .card-title {
        font-size: 0.64rem;
    }

    .stats-kpi-card .card-main-text {
        font-size: 1.35rem;
    }

    .stats-kpi-card .small-text {
        font-size: 0.66rem;
    }

    .stats-ranking-select {
        display: block;
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 999px;
        font-size: 0.78rem;
    }

    .stats-ranking-filters {
        display: none !important;
    }

    .members-toolbar,
    .logs-toolbar,
    .stats-ranking-toolbar {
        padding: 12px;
    }

    .mobile-filters-button {
        min-height: 36px;
        padding: 8px 12px;
        border-radius: 999px;
        font-size: 0.78rem;
        opacity: 0.92;
    }

    .members-filters,
    .logs-filters {
        gap: 8px;
    }

    .members-filters .btn,
    .logs-filters .btn,
    .members-filters .filter-select,
    .logs-filters .filter-select,
    .members-toolbar .search-input,
    .search-input,
    .filter-select {
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 999px;
        font-size: 0.78rem;
    }

    .invitation-actions,
    .payment-card-actions,
    .payment-member-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn {
        width: auto;
        min-width: 0;
        flex: 1 1 132px;
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.74rem;
    }

    .confirmation-modal {
        padding: 14px;
    }

    .confirmation-modal-header {
        margin-bottom: 14px;
    }

    .confirmation-modal-header h2 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .confirmation-modal-header p {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .confirmation-modal-actions,
    .profile-form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: center;
    }

    .confirmation-modal-actions .btn,
    .profile-form-actions .btn {
        width: 100%;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    .confirmation-modal-actions .btn:only-child,
    .profile-form-actions .btn:only-child {
        grid-column: 1 / -1;
    }

    .member-modal-section,
    .payment-member-card {
        padding: 11px;
    }

    .member-modal-section h3 {
        margin-bottom: 8px;
        font-size: 0.68rem;
    }

    .member-modal-section p,
    .payment-member-card p,
    .invitation-main p,
    .payment-item-main p,
    .log-entry-main p {
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .payment-status-badge,
    .status-badge,
    .log-severity-badge,
    .log-module-badge {
        padding: 3px 7px;
        font-size: 0.66rem;
    }

    .member-toast {
        padding: 10px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .section-header > .member-modal-actions .btn,
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn {
        flex-basis: calc(50% - 4px);
    }

    .confirmation-modal-actions,
    .profile-form-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matches-summary-grid,
    .payments-summary-grid,
    .logs-summary-grid,
    .stats-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 340px) {
    .section-header > .member-modal-actions,
    .invitation-actions,
    .payment-card-actions,
    .payment-member-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .matches-summary-grid,
    .payments-summary-grid,
    .logs-summary-grid,
    .stats-kpi-grid {
        grid-template-columns: 1fr;
    }

    .confirmation-modal-actions,
    .profile-form-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FOOTBALL SPLASH V1
   Security note:
   - Local-only HTML/CSS animation.
   - No external asset, no CDN, no tracker, no network call.
   ========================= */

.football-splash {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(200, 155, 60, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 30%),
        rgba(10, 15, 25, 0.96);
    backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.football-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.football-splash-card {
    position: relative;
    width: min(540px, 100%);
    overflow: hidden;
    border: 1px solid rgba(200, 155, 60, 0.38);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.14), transparent 42%),
        var(--bg-secondary);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.40);
}

.football-splash-skip {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
}

.football-splash-scene {
    position: relative;
    min-height: 260px;
    padding: 22px;
}

.football-splash-field {
    position: relative;
    height: 220px;
    overflow: hidden;
    border: 1px solid rgba(200, 155, 60, 0.20);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 26%),
        linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(15, 23, 42, 0.45));
    background-size: 42px 42px, 42px 42px, auto, auto;
}

.football-splash-field::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
}

.football-splash-goal {
    position: absolute;
    right: 18px;
    top: 62px;
    width: 72px;
    height: 96px;
    border: 3px solid rgba(255, 255, 255, 0.72);
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.football-splash-player {
    position: absolute;
    bottom: 48px;
    width: 30px;
    height: 52px;
    border-radius: 999px 999px 12px 12px;
    background: linear-gradient(180deg, var(--accent-gold), rgba(200, 155, 60, 0.45));
    box-shadow: 0 0 24px rgba(200, 155, 60, 0.22);
}

.player-attacker {
    left: 64px;
}

.player-defender {
    right: 118px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(148, 163, 184, 0.45));
}

.football-splash-ball {
    position: absolute;
    left: 112px;
    bottom: 66px;
    z-index: 3;
    font-size: 2rem;
}

.football-splash-shield {
    position: absolute;
    right: 116px;
    bottom: 82px;
    z-index: 2;
    font-size: 2rem;
    opacity: 0;
}

.football-splash-lines {
    position: absolute;
    left: 128px;
    bottom: 84px;
    width: 150px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(200, 155, 60, 0.88), transparent);
    transform-origin: left center;
    opacity: 0;
}

.football-splash-content {
    padding: 0 22px 22px;
    text-align: center;
}

.football-splash-kicker {
    margin: 0 0 6px;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.football-splash-content h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.65rem, 5vw, 2.4rem);
    line-height: 1.05;
}

.football-splash-content p:last-child {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 800;
}

.football-splash[data-animation="goal"] .football-splash-ball {
    animation: splashGoalBall 2.7s cubic-bezier(0.25, 0.9, 0.2, 1) forwards;
}

.football-splash[data-animation="goal"] .player-attacker {
    animation: splashPlayerRun 2.7s ease forwards;
}

.football-splash[data-animation="goal"] .football-splash-lines {
    animation: splashSpeedLines 2.7s ease forwards;
}

.football-splash[data-animation="defense"] .football-splash-ball {
    animation: splashDefenseBall 2.7s cubic-bezier(0.25, 0.9, 0.2, 1) forwards;
}

.football-splash[data-animation="defense"] .player-defender {
    animation: splashDefenderMove 2.7s ease forwards;
}

.football-splash[data-animation="defense"] .football-splash-shield {
    animation: splashShield 2.7s ease forwards;
}

.football-splash[data-animation="counter"] .football-splash-ball {
    animation: splashCounterBall 2.7s cubic-bezier(0.25, 0.9, 0.2, 1) forwards;
}

.football-splash[data-animation="counter"] .player-attacker {
    animation: splashCounterPlayer 2.7s ease forwards;
}

.football-splash[data-animation="counter"] .football-splash-lines {
    animation: splashSpeedLines 2.7s ease forwards;
}

@keyframes splashGoalBall {
    0% { transform: translate(0, 0) scale(1) rotate(0); }
    72% { transform: translate(280px, -42px) scale(0.9) rotate(520deg); }
    100% { transform: translate(340px, -30px) scale(0.75) rotate(720deg); }
}

@keyframes splashDefenseBall {
    0% { transform: translate(0, 0) scale(1) rotate(0); }
    55% { transform: translate(210px, -18px) scale(0.96) rotate(420deg); }
    100% { transform: translate(150px, 18px) scale(0.9) rotate(620deg); }
}

@keyframes splashCounterBall {
    0% { transform: translate(220px, -20px) scale(0.9) rotate(0); }
    42% { transform: translate(110px, 8px) scale(1) rotate(-320deg); }
    100% { transform: translate(340px, -26px) scale(0.78) rotate(620deg); }
}

@keyframes splashPlayerRun {
    0% { transform: translateX(0); }
    100% { transform: translateX(118px); }
}

@keyframes splashDefenderMove {
    0% { transform: translateX(0); }
    55% { transform: translateX(-18px); }
    100% { transform: translateX(-10px); }
}

@keyframes splashCounterPlayer {
    0% { transform: translateX(0); }
    42% { transform: translateX(76px); }
    100% { transform: translateX(150px); }
}

@keyframes splashShield {
    0%, 40% { opacity: 0; transform: scale(0.7); }
    55%, 78% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.15); }
}

@keyframes splashSpeedLines {
    0%, 30% { opacity: 0; transform: scaleX(0); }
    55% { opacity: 0.95; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1.2); }
}

/* =========================
   MOBILE ACTION BUTTON SHAPE FIX V1
   ========================= */

@media (max-width: 768px) {
    .match-list-card .invitation-actions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .match-list-card .invitation-actions .btn {
        flex: 0 1 auto;
        width: auto;
        min-width: 126px;
        max-width: 180px;
        min-height: 34px;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.76rem;
    }

    .member-modal-section .member-modal-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .member-modal-section .member-modal-actions .btn {
        flex: 1 1 136px;
        width: auto;
        min-height: 34px;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 0.74rem;
    }

    .member-modal-section .member-modal-actions p.small-text {
        flex: 1 1 100%;
    }
}

@media (max-width: 420px) {
    .football-splash-card {
        border-radius: 22px;
    }

    .football-splash-scene {
        min-height: 220px;
        padding: 16px;
    }

    .football-splash-field {
        height: 190px;
    }

    .football-splash-goal {
        right: 12px;
        top: 54px;
        width: 58px;
        height: 82px;
    }

    .football-splash-ball {
        left: 82px;
        bottom: 58px;
        font-size: 1.7rem;
    }

    .player-attacker {
        left: 42px;
    }

    .player-defender {
        right: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .football-splash {
        display: none;
    }

    .football-splash-ball,
    .football-splash-player,
    .football-splash-shield,
    .football-splash-lines {
        animation: none !important;
    }
}

/* =========================
   MOBILE COMPACT ACTIONS + FOOTBALL SPLASH V2
   ========================= */

@media (max-width: 768px) {
    .section-header > .member-modal-actions,
    .payments-actions,
    .member-modal-actions,
    .invitation-actions,
    .payment-card-actions,
    .payment-member-card-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        width: 100% !important;
        align-items: center !important;
        overflow-x: hidden !important;
    }

    .section-header > .member-modal-actions .btn,
    .payments-actions .btn,
    .member-modal-actions .btn,
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 36px !important;
        padding: 7px 9px !important;
        border-radius: var(--radius-md) !important;
        font-size: 0.74rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        flex: none !important;
    }

    .section-header > .member-modal-actions .btn:only-child,
    .payments-actions .btn:only-child,
    .member-modal-actions .btn:only-child,
    .invitation-actions .btn:only-child,
    .payment-card-actions .btn:only-child,
    .payment-member-card-actions .btn:only-child {
        grid-column: auto !important;
        justify-self: start !important;
        width: min(190px, 100%) !important;
    }

    .confirmation-modal-actions,
    .profile-form-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .confirmation-modal-actions .btn,
    .profile-form-actions .btn {
        width: 100% !important;
        min-height: 36px !important;
        padding: 7px 9px !important;
        border-radius: var(--radius-md) !important;
        font-size: 0.74rem !important;
    }

    .stats-table-wrapper {
        overflow-x: hidden !important;
    }

    .stats-kpi-grid,
    .stats-ranking-filters {
        overflow-x: hidden !important;
    }

    .stats-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .stats-table th,
    .stats-table td {
        padding: 7px 5px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 0.68rem !important;
    }
}

@media (max-width: 360px) {
    .section-header > .member-modal-actions,
    .payments-actions,
    .member-modal-actions,
    .invitation-actions,
    .payment-card-actions,
    .payment-member-card-actions {
        gap: 6px !important;
    }

    .section-header > .member-modal-actions .btn,
    .payments-actions .btn,
    .member-modal-actions .btn,
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn,
    .confirmation-modal-actions .btn,
    .profile-form-actions .btn {
        min-height: 34px !important;
        padding: 6px 7px !important;
        font-size: 0.7rem !important;
    }
}

.football-splash {
    background:
        radial-gradient(circle at 15% 10%, rgba(200, 155, 60, 0.20), transparent 30%),
        radial-gradient(circle at 82% 82%, rgba(22, 163, 74, 0.16), transparent 30%),
        rgba(8, 12, 20, 0.96);
}

.football-splash-card {
    width: min(560px, 100%);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.13), rgba(15, 23, 42, 0.08)),
        var(--bg-secondary);
}

.football-splash-field {
    height: 224px;
    border-radius: 20px;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.18) 49.5%, rgba(255, 255, 255, 0.18) 50.5%, transparent 50.5%),
        radial-gradient(circle at center, transparent 0 26px, rgba(255, 255, 255, 0.16) 27px 28px, transparent 29px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 42px),
        linear-gradient(135deg, rgba(22, 101, 52, 0.58), rgba(15, 23, 42, 0.88));
}

.football-splash-goal {
    position: absolute;
    top: 72px;
    width: 42px;
    height: 78px;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.football-splash-goal.goal-left {
    left: 16px;
    right: auto;
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    border-right: 0;
    border-radius: 10px 0 0 10px;
}

.football-splash-goal.goal-right {
    right: 16px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.football-splash-player {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.football-splash-player::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 10px;
    height: 10px;
    border-radius: 6px 6px 3px 3px;
    background: inherit;
    transform: translateX(-50%);
}

.team-green {
    background: linear-gradient(180deg, #34d399, #15803d);
}

.team-dark {
    background: linear-gradient(180deg, #64748b, #1f2937);
}

.player-green-1 { left: 24%; top: 34%; }
.player-green-2 { left: 36%; top: 58%; }
.player-green-3 { left: 46%; top: 42%; }
.player-dark-1 { left: 63%; top: 32%; }
.player-dark-2 { left: 71%; top: 55%; }
.player-dark-3 { left: 80%; top: 42%; }

.football-splash-ball {
    left: 34%;
    top: 48%;
    bottom: auto;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(15, 23, 42, 0.7);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle at 30% 25%, white, #d1d5db);
    font-size: 0;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.football-splash-lines {
    left: 38%;
    top: 52%;
    bottom: auto;
    width: 28%;
    background: linear-gradient(90deg, rgba(200, 155, 60, 0.86), transparent);
}

.football-splash[data-animation="build-up"] .football-splash-ball {
    animation: splashBuildBall 3.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.football-splash[data-animation="build-up"] .team-green {
    animation: splashGreenSupport 3.2s ease forwards;
}

.football-splash[data-animation="transition"] .football-splash-ball {
    animation: splashTransitionBall 3.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.football-splash[data-animation="transition"] .football-splash-lines {
    animation: splashSpeedLines 3.1s ease forwards;
}

.football-splash[data-animation="transition"] .football-splash-player {
    animation: splashTeamPulse 3.1s ease forwards;
}

.football-splash[data-animation="block"] .football-splash-ball {
    animation: splashBlockBall 3.2s cubic-bezier(0.35, 0.85, 0.25, 1) forwards;
}

.football-splash[data-animation="block"] .team-dark {
    animation: splashBlockShift 3.2s ease forwards;
}

@keyframes splashBuildBall {
    0% { transform: translate(0, 0) scale(1); }
    34% { transform: translate(42px, -20px) scale(0.96); }
    68% { transform: translate(88px, 24px) scale(0.92); }
    100% { transform: translate(142px, -10px) scale(0.88); }
}

@keyframes splashGreenSupport {
    0% { transform: translate(0, 0); }
    100% { transform: translate(16px, -3px); }
}

@keyframes splashTransitionBall {
    0% { transform: translate(-48px, 32px) scale(0.95); }
    46% { transform: translate(78px, -26px) scale(0.9); }
    100% { transform: translate(174px, -4px) scale(0.78); }
}

@keyframes splashTeamPulse {
    0% { transform: translate(0, 0); }
    55% { transform: translate(7px, -4px); }
    100% { transform: translate(12px, 0); }
}

@keyframes splashBlockBall {
    0% { transform: translate(86px, -12px) scale(0.92); }
    54% { transform: translate(142px, 4px) scale(0.86); }
    100% { transform: translate(74px, 26px) scale(0.9); }
}

@keyframes splashBlockShift {
    0% { transform: translate(0, 0); }
    55% { transform: translate(-14px, 1px); }
    100% { transform: translate(-20px, 0); }
}

@media (max-width: 420px) {
    .football-splash-scene {
        min-height: 218px;
        padding: 14px;
    }

    .football-splash-field {
        height: 190px;
    }

    .football-splash-player {
        width: 16px;
        height: 16px;
    }

    .football-splash-ball {
        width: 14px;
        height: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .football-splash {
        display: none !important;
    }

    .football-splash-ball,
    .football-splash-player,
    .football-splash-lines {
        animation: none !important;
    }
}

/* =========================
   MOBILE UX FINE TUNE V3
   ========================= */

.logs-filter-select {
    display: none;
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 0.86rem !important;
    }

    .topbar-title h1 {
        font-size: 1.18rem !important;
        line-height: 1.12 !important;
    }

    .user-subtitle,
    .section-header > p,
    .small-text,
    .form-help,
    .form-error,
    .member-modal-section p,
    .invitation-main p,
    .payment-item-main p,
    .log-entry-main p {
        font-size: 0.7rem !important;
        line-height: 1.32 !important;
    }

    .section-header {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .card {
        padding: 12px !important;
    }

    .card-title,
    .form-row label,
    .form-label {
        font-size: 0.66rem !important;
        line-height: 1.16 !important;
    }

    .card-main-text,
    .payment-amount {
        font-size: 1.12rem !important;
        line-height: 1.05 !important;
    }

    .status-badge,
    .payment-status-badge,
    .log-severity-badge,
    .log-module-badge {
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
        padding: 4px 7px !important;
    }

    .btn,
    .search-input,
    .filter-select {
        min-height: 34px !important;
        border-radius: 8px !important;
        font-size: 0.72rem !important;
        line-height: 1.15 !important;
    }

    .btn {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 6px 9px !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    .section-header > .member-modal-actions,
    .payments-actions,
    .member-modal-actions,
    .invitation-actions,
    .payment-card-actions,
    .payment-member-card-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .section-header > .member-modal-actions .btn,
    .payments-actions .btn,
    .member-modal-actions .btn,
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn {
        width: auto !important;
        max-width: 100% !important;
        flex: 0 1 auto !important;
        min-height: 34px !important;
        padding: 6px 9px !important;
        border-radius: 8px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    .confirmation-modal-actions,
    .profile-form-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .confirmation-modal-actions .btn,
    .profile-form-actions .btn {
        width: 100% !important;
        min-height: 34px !important;
        padding: 6px 9px !important;
        border-radius: 8px !important;
        font-size: 0.72rem !important;
    }

    #superAdminPaymentNotice,
    .payments-admin-notice {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }

    #superAdminPaymentNotice .card-main-text,
    .payments-admin-notice .card-main-text {
        font-size: 0.82rem !important;
        line-height: 1.28 !important;
    }

    .matches-summary-grid,
    .payments-summary-grid,
    .logs-summary-grid,
    .stats-kpi-grid,
    #paymentsSummaryGrid.home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        overflow-x: hidden !important;
    }

    .matches-summary-grid > .card,
    .payments-summary-grid > .card,
    .logs-summary-grid > .card,
    .stats-kpi-card,
    #paymentsSummaryGrid.home-grid > .card {
        min-height: 0 !important;
        padding: 10px !important;
        gap: 7px !important;
    }

    .stats-kpi-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }

    .mobile-filters-button {
        display: none !important;
    }

    #page-members .members-toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto !important;
        gap: 7px !important;
        align-items: center !important;
        padding: 10px !important;
        overflow-x: hidden !important;
    }

    #page-members .members-toolbar .search-input {
        grid-column: 1 / 4 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    #membersFilters {
        display: contents !important;
    }

    #memberRoleFilter {
        display: none !important;
    }

    #memberStatusFilter {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    #memberCategoryFilter {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    #memberPositionFilter {
        grid-column: 3 / 5 !important;
        grid-row: 2 !important;
    }

    #resetMemberFiltersButton {
        grid-column: 4 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: auto !important;
        min-height: 34px !important;
        padding-inline: 8px !important;
    }

    #page-members .members-toolbar .filter-select {
        width: 100% !important;
        min-width: 0 !important;
        padding: 6px 7px !important;
        font-size: 0.66rem !important;
    }

    #logsToolbar {
        display: block !important;
        padding: 10px !important;
    }

    #logsFilterSelect {
        display: block !important;
        width: 100% !important;
    }

    #logsFilters {
        display: none !important;
    }

    .stats-ranking-toolbar {
        padding: 10px !important;
    }

    .stats-ranking-select {
        display: block !important;
        width: 100% !important;
    }

    .stats-ranking-filters {
        display: none !important;
    }

    .stats-table-wrapper {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 380px) {
    #page-members .members-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #page-members .members-toolbar .search-input {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #resetMemberFiltersButton {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    #memberStatusFilter {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    #memberCategoryFilter {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    #memberPositionFilter {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }

    .section-header > .member-modal-actions .btn,
    .payments-actions .btn,
    .member-modal-actions .btn,
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn {
        flex: 1 1 calc(50% - 6px) !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

/* =========================
   MOBILE ACTION ALIGNMENT FIX V4
   ========================= */

.invite-success-modal {
    position: relative;
}

.invite-success-header {
    padding-right: 42px;
}

.invite-success-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(248, 113, 113, 0.36);
    border-radius: 50%;
    background: rgba(127, 29, 29, 0.34);
    color: #fecaca;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.invite-success-close-button:hover,
.invite-success-close-button:focus-visible {
    border-color: rgba(248, 113, 113, 0.72);
    background: rgba(153, 27, 27, 0.58);
    color: #ffffff;
}

.invite-link-box {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.invite-success-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.invite-success-actions .btn {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sidebar {
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        gap: 14px !important;
        padding: 16px 12px 14px !important;
        scrollbar-width: thin;
    }

    .mobile-sidebar-header {
        position: sticky;
        top: 0;
        z-index: 2;
        padding-bottom: 4px;
        background: var(--bg-secondary);
    }

    .logo-section img {
        width: 68px !important;
        height: 68px !important;
    }

    .logo-section h2 {
        font-size: 0.84rem !important;
        line-height: 1.15 !important;
    }

    .menu {
        flex: 0 0 auto;
        gap: 5px !important;
        padding-bottom: 6px;
    }

    .menu a {
        padding: 9px 11px !important;
        border-radius: 10px !important;
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
    }

    .menu a[data-page="about"] {
        display: block !important;
        visibility: visible !important;
    }

    .sidebar-footer {
        flex: 0 0 auto;
        margin-top: 4px !important;
        padding: 0 0 12px;
        font-size: 0.68rem !important;
    }

    #paymentsMainActions.payments-actions,
    #paymentsMainActions.member-modal-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    #paymentsMainActions .btn {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        min-height: 34px !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
        font-size: 0.68rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .payment-card-actions,
    .invitation-actions {
        display: flex !important;
        flex-flow: row wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        align-content: flex-start !important;
        gap: 7px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .payment-card-actions .btn,
    .invitation-actions .btn {
        flex: 0 1 auto !important;
        align-self: flex-start !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 34px !important;
        height: auto !important;
        padding: 6px 9px !important;
        border-radius: 8px !important;
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    .invite-success-modal {
        width: min(430px, calc(100vw - 24px)) !important;
    }

    .invite-success-actions {
        display: flex !important;
        grid-template-columns: none !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .invite-success-actions .btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 34px !important;
        padding: 7px 9px !important;
        font-size: 0.7rem !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
    }
}

@media (max-width: 380px) {
    .payment-card-actions .btn,
    .invitation-actions .btn {
        flex: 0 1 auto !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .invite-success-actions {
        flex-wrap: wrap !important;
    }

    .invite-success-actions .btn {
        flex: 1 1 100% !important;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .sidebar {
        gap: 9px !important;
        padding-top: 12px !important;
    }

    .logo-section img {
        width: 54px !important;
        height: 54px !important;
    }

    .logo-section h2 {
        margin-top: 5px !important;
        font-size: 0.78rem !important;
    }

    .menu a {
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
    }
}

/* =========================
   INVITE SUCCESS MOBILE FIX V5
   ========================= */

@media (max-width: 768px) {
    .confirmation-modal-actions.invite-success-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        flex-direction: initial !important;
        flex-wrap: initial !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .confirmation-modal-actions.invite-success-actions .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 34px !important;
        padding: 7px 8px !important;
        border-radius: 8px !important;
        font-size: 0.68rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
    }
}

@media (max-width: 360px) {
    .confirmation-modal-actions.invite-success-actions {
        gap: 6px !important;
    }

    .confirmation-modal-actions.invite-success-actions .btn {
        min-height: 34px !important;
        padding: 6px 6px !important;
        font-size: 0.62rem !important;
    }
}

/* =========================
   ACTION BUTTON ALIGNMENT FINAL V6
   Objectif:
   - boutons d'actions compacts;
   - largeur selon le label;
   - 2 ou 3 boutons sur une même ligne si possible;
   - si un seul bouton: pas de pleine largeur automatique;
   - aucun scroll horizontal.
   Sécurité:
   - CSS uniquement, aucune permission métier modifiée.
   ========================= */

.invitation-actions,
.payment-card-actions,
.payment-member-card-actions,
.member-modal-section .member-modal-actions {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.invitation-actions .btn,
.payment-card-actions .btn,
.payment-member-card-actions .btn,
.member-modal-section .member-modal-actions .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: 100% !important;
    min-height: 34px !important;
    height: auto !important;
    padding: 7px 13px !important;
    border-radius: 10px !important;
    font-size: 0.74rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    text-align: center !important;
}

.invitation-actions .btn:only-child,
.payment-card-actions .btn:only-child,
.payment-member-card-actions .btn:only-child,
.member-modal-section .member-modal-actions .btn:only-child {
    justify-self: auto !important;
    margin-inline: 0 !important;
}

/* Les actions de cartes ne doivent plus devenir des barres pleine largeur. */
.invitation-card .invitation-actions,
.payment-item-card .payment-card-actions,
.match-list-card .invitation-actions,
.member-modal-section .member-modal-actions {
    justify-content: flex-start !important;
}

/* Si une carte contient beaucoup d'actions, on garde une grille souple et compacte. */
.invitation-actions:has(.btn:nth-of-type(4)),
.payment-card-actions:has(.btn:nth-of-type(4)),
.payment-member-card-actions:has(.btn:nth-of-type(4)),
.member-modal-section .member-modal-actions:has(.btn:nth-of-type(4)) {
    max-width: 640px !important;
}

@media (min-width: 769px) {
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn,
    .member-modal-section .member-modal-actions .btn {
        font-size: 0.78rem !important;
        padding-inline: 15px !important;
    }

    .invitation-card .invitation-actions {
        margin-top: 12px !important;
    }
}

@media (max-width: 768px) {
    .invitation-actions,
    .payment-card-actions,
    .payment-member-card-actions,
    .member-modal-section .member-modal-actions {
        gap: 7px !important;
    }

    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn,
    .member-modal-section .member-modal-actions .btn {
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 33px !important;
        padding: 6px 10px !important;
        border-radius: 9px !important;
        font-size: 0.68rem !important;
        line-height: 1.12 !important;
    }

    /* Sur mobile: 2 à 3 boutons par ligne si la largeur le permet. */
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn,
    .member-modal-section .member-modal-actions .btn {
        flex: 0 1 auto !important;
    }

    /* Un seul bouton reste compact et lisible, jamais pleine largeur. */
    .invitation-actions .btn:only-child,
    .payment-card-actions .btn:only-child,
    .payment-member-card-actions .btn:only-child,
    .member-modal-section .member-modal-actions .btn:only-child {
        width: auto !important;
        min-width: min(126px, 100%) !important;
        max-width: min(220px, 100%) !important;
    }

    /* Les textes d'aide dans les zones d'actions prennent toute la ligne. */
    .member-modal-section .member-modal-actions p.small-text,
    .invitation-actions p.small-text,
    .payment-card-actions p.small-text,
    .payment-member-card-actions p.small-text {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Les boutons importants peuvent rester dorés, mais sans s'étirer. */
    .invitation-actions .btn.btn-gold,
    .payment-card-actions .btn.btn-gold,
    .payment-member-card-actions .btn.btn-gold,
    .member-modal-section .member-modal-actions .btn.btn-gold {
        box-shadow: none !important;
    }

    /* Les actions principales de la page paiements restent sur une ligne. */
    #paymentsMainActions.payments-actions,
    #paymentsMainActions.member-modal-actions {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    #paymentsMainActions .btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    /* Les actions de confirmation restent équilibrées car elles sont des choix directs. */
    .confirmation-modal-actions .btn,
    .profile-form-actions .btn {
        min-height: 34px !important;
        border-radius: 9px !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 420px) {
    .invitation-actions,
    .payment-card-actions,
    .payment-member-card-actions,
    .member-modal-section .member-modal-actions {
        gap: 6px !important;
    }

    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn,
    .member-modal-section .member-modal-actions .btn {
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }

    /* Sur écran étroit, deux boutons par ligne quand les labels sont longs. */
    .invitation-actions:has(.btn:nth-of-type(3)) .btn,
    .payment-card-actions:has(.btn:nth-of-type(3)) .btn,
    .payment-member-card-actions:has(.btn:nth-of-type(3)) .btn,
    .member-modal-section .member-modal-actions:has(.btn:nth-of-type(3)) .btn {
        max-width: calc(50% - 3px) !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .invitation-actions .btn:only-child,
    .payment-card-actions .btn:only-child,
    .payment-member-card-actions .btn:only-child,
    .member-modal-section .member-modal-actions .btn:only-child {
        max-width: min(210px, 100%) !important;
    }
}

@media (max-width: 340px) {
    .invitation-actions .btn,
    .payment-card-actions .btn,
    .payment-member-card-actions .btn,
    .member-modal-section .member-modal-actions .btn {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

/* =========================
   CARD GRID LAYOUT FINAL V7
   Objectif:
   - éviter les grands blocs vides sur desktop/tablette;
   - afficher 2 à 3 cartes par ligne quand l'espace le permet;
   - garder 1 carte par ligne sur mobile;
   - ne modifier aucune logique métier.
   ========================= */

/* Invitations membres: plusieurs cartes par ligne sur grands écrans. */
.member-invitations-list,
#memberInvitationsList {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

/* Chaque carte garde une structure propre, mais sans forcer une énorme largeur utile. */
.member-invitations-list .invitation-card,
#memberInvitationsList .invitation-card {
    min-width: 0 !important;
    height: 100% !important;
}

/* Les actions restent en bas de la carte quand possible. */
.member-invitations-list .invitation-card,
#memberInvitationsList .invitation-card {
    display: flex !important;
    flex-direction: column !important;
}

.member-invitations-list .invitation-main,
#memberInvitationsList .invitation-main {
    flex: 1 1 auto !important;
}

.member-invitations-list .invitation-actions,
#memberInvitationsList .invitation-actions {
    margin-top: 12px !important;
}

/* Sur très grands écrans, on évite des cartes trop larges si peu nombreuses. */
@media (min-width: 1200px) {
    .member-invitations-list,
    #memberInvitationsList {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
    }
}

/* Sur tablette, 2 cartes par ligne si possible. */
@media (min-width: 769px) and (max-width: 1199px) {
    .member-invitations-list,
    #memberInvitationsList {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    }
}

/* Sur mobile, une carte par ligne pour rester lisible. */
@media (max-width: 768px) {
    .member-invitations-list,
    #memberInvitationsList {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .member-invitations-list .invitation-actions,
    #memberInvitationsList .invitation-actions {
        margin-top: 10px !important;
    }
}

/* Paiements et matchs: on garde une colonne par défaut car le contenu peut devenir plus long,
   mais on autorise une grille compacte sur desktop uniquement si l'espace est suffisant. */
@media (min-width: 1100px) {
    .payment-list,
    #paymentCampaignsList {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important;
        align-items: stretch !important;
    }

    .payment-list .payment-item-card,
    #paymentCampaignsList .payment-item-card {
        min-width: 0 !important;
        height: 100% !important;
    }
}

/* =========================
   LOGS TABLE MODERN V1
   Objectif:
   - journal lisible style table moderne;
   - desktop/tablette: vraie table compacte;
   - mobile: lignes transformées en cartes condensées;
   - aucun changement de permission métier.
   ========================= */

.logs-table-list {
    display: block !important;
    width: 100% !important;
}

.logs-table-card {
    padding: 0 !important;
    overflow: hidden !important;
    border-color: rgba(200, 155, 60, 0.26) !important;
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.08), transparent 38%),
        var(--bg-card) !important;
}

.logs-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.logs-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
    font-size: var(--font-xs);
}

.logs-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 12px;
    border-bottom: 1px solid rgba(200, 155, 60, 0.38);
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.18), rgba(200, 155, 60, 0.06)),
        var(--bg-secondary);
    color: var(--accent-gold);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.logs-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.35;
    vertical-align: top;
}

.logs-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

.logs-table tbody tr:hover td {
    background: rgba(200, 155, 60, 0.08);
}

.logs-table tbody tr:last-child td {
    border-bottom: none;
}

.logs-table th:nth-child(1),
.logs-table td:nth-child(1) {
    width: 132px;
}

.logs-table th:nth-child(2),
.logs-table td:nth-child(2),
.logs-table th:nth-child(3),
.logs-table td:nth-child(3) {
    width: 94px;
}

.logs-table th:nth-child(4),
.logs-table td:nth-child(4) {
    width: 160px;
}

.logs-table th:nth-child(5),
.logs-table td:nth-child(5) {
    width: 140px;
}

.logs-table th:nth-child(6),
.logs-table td:nth-child(6) {
    width: 150px;
}

.logs-table-muted {
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 750;
}

.logs-table-note {
    margin: 0;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.35;
}

.logs-table .log-module-badge,
.logs-table .log-severity-badge {
    padding: 3px 7px;
    font-size: 0.66rem;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logs-table-card {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .logs-table-wrapper {
        overflow-x: hidden !important;
    }

    .logs-table,
    .logs-table thead,
    .logs-table tbody,
    .logs-table tr,
    .logs-table th,
    .logs-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .logs-table thead {
        display: none;
    }

    .logs-table tbody {
        display: grid;
        gap: 10px;
    }

    .logs-table tbody tr {
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: var(--radius-md);
        background:
            linear-gradient(135deg, rgba(200, 155, 60, 0.07), transparent 44%),
            var(--bg-card);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

    .logs-table tbody td {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        padding: 6px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: transparent !important;
        font-size: 0.72rem;
        overflow-wrap: anywhere;
    }

    .logs-table tbody td:last-child {
        border-bottom: none;
    }

    .logs-table tbody td::before {
        content: attr(data-label);
        color: var(--accent-gold);
        font-size: 0.64rem;
        font-weight: 950;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .logs-table-note {
        margin-top: 10px;
        padding: 10px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.68rem;
    }
}

/* =========================
   ACTIVITY LOGS MOBILE TABLE FINAL V7
   Objectif:
   - desktop: garder la table complète moderne;
   - mobile: mini-table Date/heure | Action | Par;
   - détails complets via modal au clic;
   - aucun scroll horizontal.
   ========================= */

.logs-table-card,
.logs-mobile-table-card {
    width: 100%;
}

.logs-mobile-table-card {
    display: none;
}

.logs-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.logs-table {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
    font-size: var(--font-xs);
}

.logs-table th {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(200, 155, 60, 0.34);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.logs-table td {
    max-width: 240px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.logs-table tbody tr {
    cursor: pointer;
}

.logs-table tbody tr:hover td {
    background: rgba(200, 155, 60, 0.08);
}

.logs-table tbody tr:last-child td {
    border-bottom: none;
}

.log-detail-modal {
    width: min(680px, 100%);
}

.log-detail-content {
    padding: 0 18px 18px;
}

.log-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.log-detail-grid p {
    margin: 0;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-xs);
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.log-detail-grid strong {
    color: var(--accent-gold);
    font-weight: 950;
}

.log-detail-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .logs-list {
        display: block !important;
    }

    .logs-table-card {
        display: none !important;
    }

    .logs-mobile-table-card {
        display: block !important;
        padding: 10px !important;
        overflow: hidden !important;
    }

    .logs-mobile-table {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .logs-mobile-table-head,
    .logs-mobile-row {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr) 72px;
        gap: 8px;
        align-items: center;
    }

    .logs-mobile-table-head {
        padding: 8px 8px 10px;
        border-bottom: 1px solid rgba(200, 155, 60, 0.24);
        color: var(--accent-gold);
        font-size: 0.64rem;
        font-weight: 950;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .logs-mobile-row {
        width: 100%;
        min-height: 42px;
        padding: 9px 8px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075);
        background: transparent;
        color: var(--text-primary);
        cursor: pointer;
        font: inherit;
        text-align: left;
    }

    .logs-mobile-row:last-child {
        border-bottom: none;
    }

    .logs-mobile-row:hover,
    .logs-mobile-row:focus-visible {
        background: rgba(200, 155, 60, 0.08);
        outline: none;
    }

    .logs-mobile-row span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.7rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .logs-mobile-row span:first-child {
        color: var(--text-secondary);
        white-space: normal;
    }

    .logs-mobile-row span:nth-child(2) {
        color: var(--text-primary);
        font-weight: 900;
    }

    .logs-mobile-row span:last-child {
        color: var(--accent-gold);
        text-align: right;
    }

    .log-detail-content {
        padding: 0 14px 14px;
    }

    .log-detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .log-detail-grid p {
        padding: 9px 10px;
        font-size: 0.74rem;
    }
}

@media (max-width: 380px) {
    .logs-mobile-table-head,
    .logs-mobile-row {
        grid-template-columns: 78px minmax(0, 1fr) 58px;
        gap: 6px;
    }

    .logs-mobile-row span {
        font-size: 0.66rem;
    }
}

/* Final priority overrides for Wolf Reveal */
.football-splash[data-animation="wolf-reveal"] {
    background:
        radial-gradient(circle at 50% 42%, rgba(200, 155, 60, 0.16), transparent 30%),
        linear-gradient(180deg, #05070a, #111827 62%, #06080c);
}

.football-splash[data-animation="wolf-reveal"] .wolf-splash-card {
    width: min(92vw, 620px);
    min-height: 430px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.football-splash[data-animation="wolf-reveal"] .wolf-splash-scene {
    position: relative;
    width: min(82vw, 460px);
    height: 245px;
    overflow: hidden;
}

.football-splash[data-animation="wolf-reveal"] .football-splash-field,
.football-splash[data-animation="wolf-reveal"] .football-splash-goal,
.football-splash[data-animation="wolf-reveal"] .football-splash-player,
.football-splash[data-animation="wolf-reveal"] .football-splash-ball,
.football-splash[data-animation="wolf-reveal"] .football-splash-lines {
    display: none;
}

.football-splash[data-animation="wolf-reveal"] .wolf-runner,
.football-splash[data-animation="wolf-reveal"] .wolf-impact,
.football-splash[data-animation="wolf-reveal"] .wolf-splash-logo {
    display: block;
}
/* =========================
   WOLF RUN -> LOGO REVEAL FINAL V2
   Objectif:
   - animation premium courte (~4,3 s);
   - responsive desktop + mobile;
   - aucun asset externe;
   - aucune logique métier / permission modifiée;
   - fail-open: le bouton Passer reste toujours accessible.
   ========================= */

.football-splash {
    position: fixed !important;
    inset: 0 !important;
    z-index: 5000 !important;
    display: grid !important;
    place-items: center !important;
    padding: clamp(14px, 3vw, 28px) !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.07), transparent 18%),
        radial-gradient(circle at 18% 8%, rgba(200, 155, 60, 0.13), transparent 24%),
        radial-gradient(circle at 82% 8%, rgba(200, 155, 60, 0.10), transparent 24%),
        linear-gradient(180deg, #030507 0%, #090d13 56%, #030507 100%) !important;
    backdrop-filter: none !important;
}

.football-splash::before,
.football-splash::after {
    content: "";
    position: absolute;
    top: -18vh;
    width: min(26vw, 280px);
    height: 78vh;
    pointer-events: none;
    opacity: 0.42;
    filter: blur(8px);
    background: linear-gradient(
        180deg,
        rgba(255, 245, 210, 0.22),
        rgba(255, 245, 210, 0.08) 42%,
        transparent 76%
    );
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
}

.football-splash::before {
    left: 7vw;
    transform: rotate(-9deg);
}

.football-splash::after {
    right: 7vw;
    transform: rotate(9deg);
}

.football-splash.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.football-splash-card,
.football-splash[data-animation="wolf-reveal"] .wolf-splash-card {
    position: relative !important;
    z-index: 2 !important;
    width: min(94vw, 720px) !important;
    min-height: 470px !important;
    display: grid !important;
    grid-template-rows: 1fr auto !important;
    align-items: center !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.football-splash-skip {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 20 !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    border: 1px solid rgba(255, 255, 255, 0.17) !important;
    border-radius: 999px !important;
    background: rgba(4, 7, 11, 0.62) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.02em !important;
    backdrop-filter: blur(10px) !important;
}

.football-splash-skip:hover,
.football-splash-skip:focus-visible {
    border-color: rgba(200, 155, 60, 0.62) !important;
    color: #f5d58f !important;
    outline: none !important;
}

.football-splash-scene,
.football-splash[data-animation="wolf-reveal"] .wolf-splash-scene {
    position: relative !important;
    width: min(88vw, 600px) !important;
    height: 310px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.football-splash-scene::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 32px;
    width: 92%;
    height: 118px;
    transform: translateX(-50%) perspective(420px) rotateX(68deg);
    transform-origin: center bottom;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50% 50% 12px 12px;
    background:
        linear-gradient(90deg, transparent 49.6%, rgba(255,255,255,0.10) 49.6%, rgba(255,255,255,0.10) 50.4%, transparent 50.4%),
        linear-gradient(180deg, rgba(23, 74, 45, 0.70), rgba(9, 29, 18, 0.78));
    box-shadow:
        0 -24px 60px rgba(31, 91, 55, 0.12),
        inset 0 0 48px rgba(255,255,255,0.025);
    opacity: 0.9;
}

.football-splash-scene::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 36px;
    width: 78%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 155, 60, 0.38) 18%,
        rgba(255, 227, 162, 0.62) 50%,
        rgba(200, 155, 60, 0.38) 82%,
        transparent
    );
    box-shadow: 0 0 18px rgba(200, 155, 60, 0.20);
    opacity: 0.72;
}

.football-splash[data-animation="wolf-reveal"] .football-splash-field,
.football-splash[data-animation="wolf-reveal"] .football-splash-goal,
.football-splash[data-animation="wolf-reveal"] .football-splash-player,
.football-splash[data-animation="wolf-reveal"] .football-splash-ball,
.football-splash[data-animation="wolf-reveal"] .football-splash-lines,
.football-splash-field,
.football-splash-goal,
.football-splash-player,
.football-splash-ball,
.football-splash-lines,
.football-splash-shield {
    display: none !important;
}

.wolf-runner {
    position: absolute !important;
    left: -170px !important;
    top: 118px !important;
    z-index: 5 !important;
    width: 150px !important;
    height: 92px !important;
    opacity: 0;
    transform-origin: center center !important;
    filter:
        drop-shadow(0 10px 14px rgba(0, 0, 0, 0.48))
        drop-shadow(0 0 18px rgba(200, 155, 60, 0.12)) !important;
    animation: wolfFinalRun 4.3s cubic-bezier(0.22, 0.78, 0.22, 1) forwards !important;
}

.wolf-body,
.wolf-head,
.wolf-ear,
.wolf-tail,
.wolf-leg {
    position: absolute !important;
    display: block !important;
    background: linear-gradient(135deg, #4a4f58 0%, #1a1e25 48%, #07090d 100%) !important;
}

.wolf-body {
    left: 27px !important;
    top: 30px !important;
    width: 88px !important;
    height: 36px !important;
    border-radius: 66% 48% 56% 58% !important;
    transform: skewX(-5deg) !important;
}

.wolf-head {
    right: 6px !important;
    top: 16px !important;
    width: 42px !important;
    height: 34px !important;
    clip-path: polygon(0 38%, 58% 2%, 100% 28%, 82% 66%, 52% 78%, 28% 94%) !important;
}

.wolf-head::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e6bd5f;
    box-shadow: 0 0 9px rgba(230, 189, 95, 0.75);
}

.wolf-ear {
    width: 19px !important;
    height: 24px !important;
    clip-path: polygon(50% 0, 100% 100%, 0 78%) !important;
}

.wolf-ear-left {
    right: 37px !important;
    top: 2px !important;
    transform: rotate(-10deg) !important;
}

.wolf-ear-right {
    right: 19px !important;
    top: 0 !important;
    transform: rotate(7deg) !important;
}

.wolf-tail {
    left: 0 !important;
    top: 25px !important;
    width: 46px !important;
    height: 17px !important;
    border-radius: 999px 4px 4px 999px !important;
    transform: rotate(-22deg);
    transform-origin: right center !important;
    animation: wolfFinalTail 0.34s ease-in-out infinite !important;
}

.wolf-leg {
    width: 12px !important;
    height: 38px !important;
    bottom: 1px !important;
    border-radius: 999px 999px 5px 5px !important;
    transform-origin: top center !important;
}

.wolf-leg-front {
    right: 37px !important;
    animation: wolfFinalLeg 0.32s ease-in-out infinite !important;
}

.wolf-leg-back {
    left: 46px !important;
    animation: wolfFinalLeg 0.32s ease-in-out infinite reverse !important;
}

.wolf-impact {
    position: absolute !important;
    left: 50% !important;
    top: 92px !important;
    z-index: 4 !important;
    width: 136px !important;
    height: 136px !important;
    margin: 0 !important;
    transform: translateX(-50%) scale(0.34);
    border: 1px solid rgba(224, 181, 88, 0.62) !important;
    border-radius: 50% !important;
    opacity: 0;
    background:
        radial-gradient(circle, rgba(224, 181, 88, 0.20), rgba(224, 181, 88, 0.05) 44%, transparent 70%) !important;
    box-shadow:
        0 0 24px rgba(224, 181, 88, 0.20),
        inset 0 0 28px rgba(224, 181, 88, 0.10) !important;
    animation: wolfFinalImpact 4.3s ease-out forwards !important;
}

.wolf-impact::before,
.wolf-impact::after {
    content: "" !important;
    position: absolute !important;
    border: 1px solid rgba(224, 181, 88, 0.24) !important;
    border-radius: 50% !important;
}

.wolf-impact::before {
    inset: 18px !important;
}

.wolf-impact::after {
    inset: 36px !important;
    background: rgba(224, 181, 88, 0.10) !important;
    filter: blur(6px) !important;
}

.wolf-splash-logo {
    position: absolute !important;
    left: 50% !important;
    top: 66px !important;
    z-index: 8 !important;
    width: clamp(132px, 25vw, 172px) !important;
    height: clamp(132px, 25vw, 172px) !important;
    object-fit: contain !important;
    opacity: 0;
    transform: translateX(-50%) scale(0.74);
    filter:
        drop-shadow(0 18px 26px rgba(0, 0, 0, 0.52))
        drop-shadow(0 0 18px rgba(200, 155, 60, 0.16)) !important;
    animation: wolfFinalLogo 4.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.wolf-splash-logo::after {
    content: none !important;
}

.football-splash-content {
    position: relative !important;
    z-index: 10 !important;
    padding: 0 20px 14px !important;
    text-align: center !important;
    transform: translateY(-2px) !important;
}

.football-splash-kicker {
    margin: 0 0 8px !important;
    color: #d9b55e !important;
    font-size: clamp(0.68rem, 1.8vw, 0.78rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    opacity: 0;
    animation: wolfFinalExperience 4.3s ease forwards !important;
}

.football-splash-content h2 {
    margin: 0 !important;
    color: #f8fafc !important;
    font-size: clamp(1.7rem, 5vw, 2.55rem) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
    opacity: 0;
    animation: wolfFinalTitle 4.3s ease forwards !important;
}

.football-splash-content p:last-child {
    margin: 9px 0 0 !important;
    color: rgba(226, 232, 240, 0.76) !important;
    font-size: clamp(0.78rem, 2vw, 0.92rem) !important;
    font-weight: 750 !important;
    letter-spacing: 0.025em !important;
    opacity: 0;
    animation: wolfFinalSubtitle 4.3s ease forwards !important;
}

@keyframes wolfFinalRun {
    0% {
        opacity: 0;
        transform: translate3d(0, 6px, 0) scale(0.78);
    }
    8% {
        opacity: 1;
    }
    18% {
        transform: translate3d(118px, 0, 0) scale(0.9);
    }
    38% {
        opacity: 1;
        transform: translate3d(300px, -2px, 0) scale(1);
    }
    48% {
        opacity: 1;
        transform: translate3d(352px, -1px, 0) scale(1.03);
    }
    53%,
    100% {
        opacity: 0;
        transform: translate3d(352px, -1px, 0) scale(1.06);
    }
}

@keyframes wolfFinalLeg {
    0%,
    100% {
        transform: rotate(22deg) translateY(0);
    }
    50% {
        transform: rotate(-30deg) translateY(-2px);
    }
}

@keyframes wolfFinalTail {
    0%,
    100% {
        transform: rotate(-18deg);
    }
    50% {
        transform: rotate(-29deg);
    }
}

@keyframes wolfFinalImpact {
    0%,
    40% {
        opacity: 0;
        transform: translateX(-50%) scale(0.28);
    }
    49% {
        opacity: 0.95;
        transform: translateX(-50%) scale(0.88);
    }
    61% {
        opacity: 0.34;
        transform: translateX(-50%) scale(1.24);
    }
    72%,
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.58);
    }
}

@keyframes wolfFinalLogo {
    0%,
    49% {
        opacity: 0;
        transform: translateX(-50%) scale(0.72);
    }
    61% {
        opacity: 1;
        transform: translateX(-50%) scale(1.035);
    }
    70%,
    89% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.015);
    }
}

@keyframes wolfFinalTitle {
    0%,
    55% {
        opacity: 0;
        transform: translateY(12px);
    }
    68%,
    91% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-5px);
    }
}

@keyframes wolfFinalSubtitle {
    0%,
    61% {
        opacity: 0;
        transform: translateY(7px);
    }
    72%,
    91% {
        opacity: 0.78;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@keyframes wolfFinalExperience {
    0%,
    75% {
        opacity: 0;
        transform: translateY(8px);
    }
    84%,
    96% {
        opacity: 0.92;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .football-splash {
        padding: 14px !important;
    }

    .football-splash::before,
    .football-splash::after {
        width: 38vw;
        opacity: 0.26;
    }

    .football-splash-card,
    .football-splash[data-animation="wolf-reveal"] .wolf-splash-card {
        width: min(96vw, 520px) !important;
        min-height: 420px !important;
    }

    .football-splash-skip {
        top: 2px !important;
        right: 2px !important;
        min-height: 32px !important;
        padding: 6px 11px !important;
        font-size: 0.68rem !important;
    }

    .football-splash-scene,
    .football-splash[data-animation="wolf-reveal"] .wolf-splash-scene {
        width: min(92vw, 460px) !important;
        height: 276px !important;
    }

    .football-splash-scene::before {
        bottom: 26px;
        width: 96%;
        height: 104px;
    }

    .football-splash-scene::after {
        bottom: 30px;
        width: 86%;
    }

    .wolf-runner {
        left: -146px !important;
        top: 108px !important;
        width: 132px !important;
        height: 82px !important;
    }

    .wolf-body {
        left: 24px !important;
        top: 27px !important;
        width: 78px !important;
        height: 32px !important;
    }

    .wolf-head {
        width: 37px !important;
        height: 31px !important;
    }

    .wolf-tail {
        width: 40px !important;
        height: 15px !important;
    }

    .wolf-leg {
        width: 10px !important;
        height: 34px !important;
    }

    .wolf-impact {
        top: 86px !important;
        width: 122px !important;
        height: 122px !important;
    }

    .wolf-splash-logo {
        top: 63px !important;
        width: clamp(124px, 34vw, 154px) !important;
        height: clamp(124px, 34vw, 154px) !important;
    }

    @keyframes wolfFinalRun {
        0% {
            opacity: 0;
            transform: translate3d(0, 6px, 0) scale(0.78);
        }
        8% {
            opacity: 1;
        }
        20% {
            transform: translate3d(92px, 0, 0) scale(0.9);
        }
        40% {
            opacity: 1;
            transform: translate3d(230px, -1px, 0) scale(1);
        }
        49% {
            opacity: 1;
            transform: translate3d(278px, -1px, 0) scale(1.03);
        }
        54%,
        100% {
            opacity: 0;
            transform: translate3d(278px, -1px, 0) scale(1.06);
        }
    }
}

@media (max-width: 420px) {
    .football-splash-card,
    .football-splash[data-animation="wolf-reveal"] .wolf-splash-card {
        min-height: 390px !important;
    }

    .football-splash-scene,
    .football-splash[data-animation="wolf-reveal"] .wolf-splash-scene {
        width: min(94vw, 360px) !important;
        height: 248px !important;
    }

    .football-splash-scene::before {
        bottom: 23px;
        height: 92px;
    }

    .football-splash-scene::after {
        bottom: 27px;
    }

    .wolf-runner {
        left: -132px !important;
        top: 97px !important;
        transform: scale(0.92);
    }

    .wolf-impact {
        top: 76px !important;
        width: 112px !important;
        height: 112px !important;
    }

    .wolf-splash-logo {
        top: 55px !important;
        width: 138px !important;
        height: 138px !important;
    }

    .football-splash-content {
        padding-inline: 12px !important;
    }

    @keyframes wolfFinalRun {
        0% {
            opacity: 0;
            transform: translate3d(0, 6px, 0) scale(0.72);
        }
        8% {
            opacity: 1;
        }
        22% {
            transform: translate3d(70px, 0, 0) scale(0.82);
        }
        41% {
            opacity: 1;
            transform: translate3d(174px, -1px, 0) scale(0.9);
        }
        49% {
            opacity: 1;
            transform: translate3d(216px, -1px, 0) scale(0.93);
        }
        54%,
        100% {
            opacity: 0;
            transform: translate3d(216px, -1px, 0) scale(0.96);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .football-splash {
        display: none !important;
    }

    .wolf-runner,
    .wolf-tail,
    .wolf-leg,
    .wolf-impact,
    .wolf-splash-logo,
    .football-splash-kicker,
    .football-splash-content h2,
    .football-splash-content p:last-child {
        animation: none !important;
    }
}
/* =========================
   SPLASH VARIANT B — HEARTBEAT LOGO V1
   Étape 1/2 :
   - ajoute le rendu du second splash;
   - ne change encore aucun choix d'animation en JavaScript;
   - desktop + mobile;
   - aucune permission, authentification ou donnée métier modifiée.
   ========================= */

.football-splash[data-animation="heartbeat-logo"] {
    background:
        radial-gradient(circle at 50% 42%, rgba(200, 155, 60, 0.17), transparent 26%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035), transparent 42%),
        linear-gradient(180deg, #030507 0%, #090d13 58%, #020304 100%) !important;
}

.football-splash[data-animation="heartbeat-logo"]::before,
.football-splash[data-animation="heartbeat-logo"]::after {
    opacity: 0.24;
}

.football-splash[data-animation="heartbeat-logo"] .wolf-splash-card {
    width: min(94vw, 720px) !important;
    min-height: 470px !important;
    display: grid !important;
    grid-template-rows: 1fr auto !important;
    place-items: center !important;
    overflow: visible !important;
}

.football-splash[data-animation="heartbeat-logo"] .wolf-splash-scene {
    position: relative !important;
    width: min(90vw, 640px) !important;
    height: 330px !important;
    margin: 0 auto !important;
    overflow: visible !important;
}

.football-splash[data-animation="heartbeat-logo"] .wolf-splash-scene::before,
.football-splash[data-animation="heartbeat-logo"] .wolf-splash-scene::after {
    content: none !important;
    display: none !important;
}

.football-splash[data-animation="heartbeat-logo"] .wolf-runner,
.football-splash[data-animation="heartbeat-logo"] .wolf-impact {
    display: none !important;
    animation: none !important;
}

.football-splash[data-animation="heartbeat-logo"] .wolf-splash-logo {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 8 !important;
    width: clamp(150px, 25vw, 190px) !important;
    height: clamp(150px, 25vw, 190px) !important;
    object-fit: contain !important;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.84);
    transform-origin: center center !important;
    filter:
        drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 22px rgba(200, 155, 60, 0.22)) !important;
    animation: clubHeartbeatLogo 4.3s cubic-bezier(0.22, 0.78, 0.22, 1) forwards !important;
    will-change: transform, opacity, filter;
}

.football-splash[data-animation="heartbeat-logo"] .football-splash-content {
    position: relative !important;
    z-index: 12 !important;
    min-height: 52px !important;
    padding: 0 18px 24px !important;
    text-align: center !important;
    transform: none !important;
}

.football-splash[data-animation="heartbeat-logo"] .football-splash-content h2,
.football-splash[data-animation="heartbeat-logo"] .football-splash-content p:last-child {
    display: none !important;
    animation: none !important;
}

.football-splash[data-animation="heartbeat-logo"] .football-splash-kicker {
    display: block !important;
    margin: 0 !important;
    color: #e1bd67 !important;
    font-size: clamp(0.72rem, 1.8vw, 0.86rem) !important;
    font-weight: 950 !important;
    letter-spacing: 0.17em !important;
    line-height: 1.35 !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 22px rgba(200, 155, 60, 0.26);
    opacity: 0;
    animation: clubHeartbeatSignature 4.3s ease forwards !important;
}

@keyframes clubHeartbeatLogo {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.72);
        filter:
            drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 8px rgba(200, 155, 60, 0.08));
    }

    7% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.92);
    }

    /* Battement 1 */
    14% {
        transform: translate(-50%, -50%) scale(1.10);
    }

    21% {
        transform: translate(-50%, -50%) scale(0.91);
    }

    /* Battement 2 */
    31% {
        transform: translate(-50%, -50%) scale(1.12);
    }

    38% {
        transform: translate(-50%, -50%) scale(0.93);
    }

    /* Battement 3 */
    48% {
        transform: translate(-50%, -50%) scale(1.14);
        filter:
            drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 34px rgba(200, 155, 60, 0.34));
    }

    57% {
        transform: translate(-50%, -50%) scale(1);
    }

    72% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
    }

    /* Zoom final continu façon vidéo : aucune étape intermédiaire. */
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(16);
        filter:
            drop-shadow(0 0 0 rgba(0, 0, 0, 0))
            drop-shadow(0 0 90px rgba(200, 155, 60, 0.08));
    }
}

@keyframes clubHeartbeatSignature {
    0%,
    18% {
        opacity: 0;
        transform: translateY(8px);
    }

    27%,
    73% {
        opacity: 0.96;
        transform: translateY(0);
    }

    80%,
    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

/* Signature EdgarLabs plus visible sur Wolf Reveal aussi. */
@keyframes wolfFinalExperience {
    0%,
    58% {
        opacity: 0;
        transform: translateY(8px);
    }

    68%,
    95% {
        opacity: 0.94;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .football-splash[data-animation="heartbeat-logo"] .wolf-splash-card {
        width: min(96vw, 520px) !important;
        min-height: 420px !important;
    }

    .football-splash[data-animation="heartbeat-logo"] .wolf-splash-scene {
        width: min(94vw, 460px) !important;
        height: 292px !important;
    }

    .football-splash[data-animation="heartbeat-logo"] .wolf-splash-logo {
        width: clamp(140px, 38vw, 172px) !important;
        height: clamp(140px, 38vw, 172px) !important;
    }

    .football-splash[data-animation="heartbeat-logo"] .football-splash-content {
        min-height: 48px !important;
        padding: 0 14px 20px !important;
    }

    .football-splash[data-animation="heartbeat-logo"] .football-splash-kicker {
        font-size: clamp(0.66rem, 3.2vw, 0.78rem) !important;
        letter-spacing: 0.13em !important;
    }
}

@media (max-width: 420px) {
    .football-splash[data-animation="heartbeat-logo"] .wolf-splash-card {
        min-height: 390px !important;
    }

    .football-splash[data-animation="heartbeat-logo"] .wolf-splash-scene {
        width: min(94vw, 360px) !important;
        height: 260px !important;
    }

    .football-splash[data-animation="heartbeat-logo"] .wolf-splash-logo {
        width: 144px !important;
        height: 144px !important;
    }

    .football-splash[data-animation="heartbeat-logo"] .football-splash-content {
        padding-bottom: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .football-splash[data-animation="heartbeat-logo"] .wolf-splash-logo,
    .football-splash[data-animation="heartbeat-logo"] .football-splash-kicker {
        animation: none !important;
    }
}
/* =========================
   PUBLIC LANDING V1 — FINAL
   Desktop + mobile
   Public-by-default / private-after-active-session
   ========================= */

html {
    scroll-behavior: smooth;
}

body.is-public {
    overflow-x: hidden;
    background: #05080d;
}

body.is-public .app-container {
    display: block !important;
    min-height: 100vh;
}

body.is-public .sidebar,
body.is-public .topbar,
body.is-public .mobile-overlay,
body.is-public #memberHomePanel {
    display: none !important;
}

body.is-public .main-content {
    width: 100% !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

body.is-public .page-section {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.is-public #page-home {
    display: block !important;
    min-height: 100vh;
}

.public-home {
    position: relative;
    min-height: 100vh;
    overflow: clip;
    color: #f8fafc;
    background:
        radial-gradient(circle at 50% -8%, rgba(203, 157, 56, 0.16), transparent 29%),
        radial-gradient(circle at 12% 28%, rgba(18, 94, 59, 0.18), transparent 28%),
        linear-gradient(180deg, #05080d 0%, #080d14 48%, #030507 100%);
}

.public-home[hidden] {
    display: none !important;
}

.public-home::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.public-landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 58px);
    border-bottom: 1px solid rgba(203, 157, 56, 0.18);
    background: rgba(5, 8, 13, 0.84);
    backdrop-filter: blur(18px);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 950;
    letter-spacing: 0.01em;
}

.public-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.38));
}

.public-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-landing-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 2vw, 26px);
}

.public-nav-link {
    position: relative;
    padding: 8px 0;
    color: rgba(241, 245, 249, 0.78);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 850;
    transition: color 180ms ease;
}

.public-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 1px;
    height: 1px;
    background: #d3a63f;
    transition: right 180ms ease;
}

.public-nav-link:hover,
.public-nav-link:focus-visible {
    color: #f3c85e;
}

.public-nav-link:hover::after,
.public-nav-link:focus-visible::after {
    right: 0;
}

.public-login-button {
    min-height: 40px;
    padding-inline: 18px;
    border-color: rgba(211, 166, 63, 0.55) !important;
}

.public-landing-main {
    position: relative;
    z-index: 2;
}

.public-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    align-items: center;
    gap: clamp(38px, 6vw, 82px);
    width: min(100% - 36px, 1240px);
    min-height: min(740px, calc(100vh - 76px));
    margin: 0 auto;
    padding: clamp(62px, 9vw, 118px) 0 clamp(58px, 8vw, 98px);
}

.public-hero::before,
.public-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.public-hero::before {
    left: -22vw;
    right: -22vw;
    bottom: 0;
    height: 40%;
    opacity: 0.62;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,0.07) 49.8%, rgba(255,255,255,0.07) 50.2%, transparent 50.2%),
        linear-gradient(180deg, rgba(20, 74, 44, 0.08), rgba(14, 57, 34, 0.34));
    clip-path: polygon(7% 32%, 93% 32%, 100% 100%, 0 100%);
}

.public-hero::after {
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 241, 200, 0.16), transparent 7%),
        radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.10), transparent 4%);
    opacity: 0.52;
}

.public-hero-copy,
.public-hero-visual {
    position: relative;
    z-index: 2;
}

.public-hero-kicker,
.public-section-eyebrow {
    margin: 0 0 13px;
    color: #d8ad4b;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.public-hero h2 {
    display: grid;
    gap: 2px;
    margin: 0;
    max-width: 780px;
    color: #f8fafc;
    font-size: clamp(2.7rem, 5.6vw, 5.75rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.public-hero h2 span:last-child {
    color: #e3b956;
}

.public-hero-description {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: clamp(1rem, 1.7vw, 1.16rem);
    line-height: 1.72;
}

.public-home-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.public-home-actions .btn,
.public-final-cta .btn {
    min-height: 46px;
    padding-inline: 20px;
}

.public-experience-signature {
    margin: 24px 0 0;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

.public-experience-signature strong {
    color: #dcb052;
}

.public-hero-visual {
    display: grid;
    place-items: center;
    min-height: 430px;
    isolation: isolate;
}

.public-logo-glow {
    position: absolute;
    width: min(420px, 82%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 166, 63, 0.22), rgba(211, 166, 63, 0.06) 42%, transparent 72%);
    filter: blur(2px);
}

.public-logo-orbit {
    position: absolute;
    border: 1px solid rgba(211, 166, 63, 0.18);
    border-radius: 50%;
}

.public-logo-orbit-outer {
    width: min(430px, 86%);
    aspect-ratio: 1;
}

.public-logo-orbit-inner {
    width: min(340px, 69%);
    aspect-ratio: 1;
    border-color: rgba(255, 255, 255, 0.08);
}

.public-home-logo {
    position: relative;
    z-index: 4;
    display: block;
    width: clamp(210px, 26vw, 340px);
    height: clamp(210px, 26vw, 340px);
    object-fit: contain;
    filter:
        drop-shadow(0 30px 38px rgba(0, 0, 0, 0.48))
        drop-shadow(0 0 24px rgba(211, 166, 63, 0.18));
}

.public-hero-chip {
    position: absolute;
    z-index: 5;
    padding: 8px 12px;
    border: 1px solid rgba(211, 166, 63, 0.28);
    border-radius: 999px;
    background: rgba(7, 11, 17, 0.78);
    color: rgba(241, 245, 249, 0.78);
    font-size: 0.72rem;
    font-weight: 850;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.public-hero-chip-one {
    left: 3%;
    top: 28%;
}

.public-hero-chip-two {
    right: 1%;
    top: 44%;
}

.public-hero-chip-three {
    left: 12%;
    bottom: 17%;
}

.public-feature-section,
.public-club-section,
.public-edgar-labs-section,
.public-final-cta,
.public-footer {
    width: min(100% - 36px, 1240px);
    margin-inline: auto;
}

.public-feature-section {
    padding: clamp(64px, 8vw, 98px) 0;
}

.public-section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.public-section-heading h2,
.public-club-copy h2,
.public-edgar-labs-intro h2,
.public-final-cta h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.public-section-heading > p:last-child {
    max-width: 680px;
    margin: 16px auto 0;
    color: rgba(226, 232, 240, 0.68);
    line-height: 1.7;
}

.public-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(211, 166, 63, 0.20);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(13, 19, 28, 0.70);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.public-feature-card {
    position: relative;
    min-width: 0;
    min-height: 230px;
    padding: 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(23, 31, 43, 0.72), rgba(12, 18, 26, 0.74));
}

.public-feature-card:last-child {
    border-right: 0;
}

.public-feature-card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, #d3a63f, transparent);
    transition: opacity 180ms ease;
}

.public-feature-card:hover::after {
    opacity: 1;
}

.public-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border: 1px solid rgba(211, 166, 63, 0.34);
    border-radius: 14px;
    background: rgba(211, 166, 63, 0.08);
    font-size: 1.35rem;
}

.public-feature-card h3 {
    margin: 0 0 10px;
    color: #f3c85e;
    font-size: 1rem;
    font-weight: 950;
}

.public-feature-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.66);
    line-height: 1.62;
}

.public-club-section {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 0;
    margin-top: 20px;
    margin-bottom: clamp(64px, 8vw, 98px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(10, 15, 22, 0.78);
}

.public-club-visual {
    min-height: 410px;
    padding: 34px;
    background:
        radial-gradient(circle at 50% 35%, rgba(211, 166, 63, 0.12), transparent 32%),
        linear-gradient(145deg, rgba(18, 77, 46, 0.32), rgba(7, 12, 18, 0.96));
}

.public-pitch {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,0.11) 49.8%, rgba(255,255,255,0.11) 50.2%, transparent 50.2%),
        repeating-linear-gradient(90deg, rgba(25, 96, 58, 0.22) 0 12.5%, rgba(18, 73, 44, 0.18) 12.5% 25%);
}

.public-pitch img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 142px;
    height: 142px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.public-pitch-circle,
.public-pitch-box {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.public-pitch-circle {
    left: 50%;
    top: 50%;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.public-pitch-box {
    top: 29%;
    width: 23%;
    height: 42%;
}

.public-pitch-box-left {
    left: -1px;
}

.public-pitch-box-right {
    right: -1px;
}

.public-club-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 62px);
}

.public-club-copy > p:not(.public-section-eyebrow) {
    margin: 22px 0 0;
    color: rgba(226, 232, 240, 0.70);
    line-height: 1.72;
}

.public-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.public-trust-grid span {
    padding: 12px 14px;
    border: 1px solid rgba(211, 166, 63, 0.20);
    border-radius: 12px;
    background: rgba(211, 166, 63, 0.06);
    color: rgba(241, 245, 249, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
}

.public-edgar-labs-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(34px, 6vw, 72px);
    overflow: hidden;
    margin-bottom: 28px;
    padding: clamp(40px, 6vw, 72px);
    border: 1px solid rgba(211, 166, 63, 0.30);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(13, 19, 28, 0.98), rgba(5, 8, 13, 0.98)),
        radial-gradient(circle at 90% 15%, rgba(211, 166, 63, 0.12), transparent 34%);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.30);
}

.public-edgar-labs-watermark {
    position: absolute;
    right: -18px;
    top: 8px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(211, 166, 63, 0.10);
    font-size: clamp(4.2rem, 10vw, 9rem);
    font-weight: 950;
    line-height: 0.78;
    letter-spacing: -0.07em;
    pointer-events: none;
    user-select: none;
}

.public-edgar-labs-intro,
.public-edgar-labs-pillars,
.public-edgar-labs-signature {
    position: relative;
    z-index: 2;
}

.public-edgar-labs-intro h2 {
    font-size: clamp(2.7rem, 5.4vw, 5rem);
}

.public-edgar-labs-quote {
    margin: 20px 0 !important;
    color: #e4ba58 !important;
    font-weight: 850;
}

.public-edgar-labs-intro > p:not(.public-section-eyebrow):not(.public-edgar-labs-quote) {
    margin: 0 0 14px;
    color: rgba(226, 232, 240, 0.70);
    line-height: 1.7;
}

.public-edgar-labs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.public-edgar-labs-tags span {
    padding: 8px 11px;
    border: 1px solid rgba(211, 166, 63, 0.22);
    border-radius: 999px;
    color: rgba(241, 245, 249, 0.76);
    font-size: 0.72rem;
    font-weight: 850;
}

.public-edgar-labs-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 88px;
}

.public-edgar-labs-pillars article {
    padding: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.public-edgar-labs-pillars article:first-child {
    border-left: 0;
}

.public-edgar-labs-pillars article > span {
    display: block;
    margin-bottom: 10px;
    color: #e3b956;
    font-size: 2rem;
}

.public-edgar-labs-pillars h3 {
    margin: 0 0 9px;
    color: #f8fafc;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.public-edgar-labs-pillars p {
    margin: 0;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.8rem;
    line-height: 1.58;
}

.public-edgar-labs-signature {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(211, 166, 63, 0.14);
    color: rgba(241, 245, 249, 0.74);
    text-align: center;
    letter-spacing: 0.02em;
}

.public-edgar-labs-signature strong {
    color: #dcb052;
}

.public-final-cta {
    position: relative;
    overflow: hidden;
    margin-top: 26px;
    margin-bottom: 26px;
    padding: clamp(44px, 7vw, 74px) 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        radial-gradient(circle at 80% 40%, rgba(211, 166, 63, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(14, 61, 37, 0.36), rgba(7, 11, 17, 0.96));
    text-align: center;
}

.public-final-cta::before {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -36%;
    height: 66%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(420px) rotateX(58deg);
    background: repeating-linear-gradient(90deg, rgba(20, 85, 50, 0.20) 0 8%, rgba(14, 65, 39, 0.16) 8% 16%);
}

.public-final-cta > * {
    position: relative;
    z-index: 2;
}

.public-final-cta > p:not(.public-section-eyebrow) {
    max-width: 620px;
    margin: 14px auto 24px;
    color: rgba(226, 232, 240, 0.68);
}

.public-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 28px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.public-footer-brand div,
.public-footer-powered,
.public-footer-legal {
    display: grid;
    gap: 3px;
}

.public-footer-brand strong,
.public-footer-powered strong {
    color: #f8fafc;
}

.public-footer-brand span,
.public-footer-powered span,
.public-footer-legal span {
    color: rgba(226, 232, 240, 0.54);
    font-size: 0.76rem;
}

.public-footer-powered {
    text-align: center;
}

.public-footer-powered strong {
    color: #dcb052;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.public-footer-legal {
    justify-items: end;
    text-align: right;
}

@media (max-width: 980px) {
    .public-nav-link {
        display: none;
    }

    .public-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: auto;
        padding-top: 74px;
        text-align: center;
    }

    .public-hero-description {
        margin-inline: auto;
    }

    .public-home-actions {
        justify-content: center;
    }

    .public-hero-visual {
        min-height: 360px;
    }

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

    .public-feature-card:nth-child(2) {
        border-right: 0;
    }

    .public-feature-card:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .public-club-section {
        grid-template-columns: 1fr;
    }

    .public-club-visual {
        min-height: 330px;
    }

    .public-edgar-labs-section {
        grid-template-columns: 1fr;
    }

    .public-edgar-labs-pillars {
        margin-top: 8px;
    }
}

@media (max-width: 640px) {
    .public-landing-header {
        min-height: 66px;
        padding: 9px 14px;
    }

    .public-brand {
        gap: 9px;
        font-size: 0.86rem;
    }

    .public-brand img {
        width: 40px;
        height: 40px;
    }

    .public-login-button {
        min-height: 38px;
        padding-inline: 13px;
        font-size: 0.76rem;
    }

    .public-hero,
    .public-feature-section,
    .public-club-section,
    .public-edgar-labs-section,
    .public-final-cta,
    .public-footer {
        width: min(100% - 28px, 1240px);
    }

    .public-hero {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .public-hero h2 {
        font-size: clamp(2.45rem, 13vw, 4.1rem);
    }

    .public-hero-description {
        font-size: 0.96rem;
    }

    .public-home-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

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

    .public-experience-signature {
        text-align: center;
    }

    .public-hero-visual {
        min-height: 290px;
    }

    .public-home-logo {
        width: min(58vw, 230px);
        height: min(58vw, 230px);
    }

    .public-logo-orbit-outer {
        width: min(78vw, 300px);
    }

    .public-logo-orbit-inner {
        width: min(61vw, 240px);
    }

    .public-hero-chip {
        font-size: 0.64rem;
    }

    .public-hero-chip-one {
        left: 2%;
    }

    .public-hero-chip-two {
        right: 0;
    }

    .public-hero-chip-three {
        left: 5%;
        bottom: 12%;
    }

    .public-feature-section {
        padding: 54px 0;
    }

    .public-feature-grid {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .public-feature-card,
    .public-feature-card:nth-child(2) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

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

    .public-club-visual {
        min-height: 260px;
        padding: 20px;
    }

    .public-pitch {
        min-height: 230px;
    }

    .public-pitch img {
        width: 108px;
        height: 108px;
    }

    .public-club-copy {
        padding: 28px 22px 30px;
    }

    .public-trust-grid {
        grid-template-columns: 1fr;
    }

    .public-edgar-labs-section {
        gap: 26px;
        padding: 30px 20px;
    }

    .public-edgar-labs-watermark {
        right: -8px;
        top: 12px;
        font-size: 4rem;
    }

    .public-edgar-labs-intro h2 {
        font-size: clamp(2.55rem, 14vw, 4rem);
    }

    .public-edgar-labs-pillars {
        grid-template-columns: 1fr;
    }

    .public-edgar-labs-pillars article {
        padding: 18px 4px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .public-edgar-labs-pillars article:first-child {
        border-top: 0;
    }

    .public-final-cta {
        padding: 42px 18px;
    }

    .public-final-cta .btn {
        width: 100%;
    }

    .public-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .public-footer-brand {
        justify-content: center;
    }

    .public-footer-legal {
        justify-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .public-nav-link::after,
    .public-feature-card::after {
        transition: none;
    }
}
/* =========================
   WELCOME CLUB SCREEN V1
   Animation -> photo -> application
   ========================= */

body.is-welcome {
    overflow: hidden !important;
    background: #020304;
}

body.is-welcome .app-container {
    display: none !important;
}

.club-welcome {
    position: fixed;
    inset: 0;
    z-index: 4800;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #020304;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 560ms ease,
        visibility 560ms ease;
}

.club-welcome[hidden] {
    display: none !important;
}

.club-welcome.is-visible {
    opacity: 1;
    visibility: visible;
}

.club-welcome-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.club-welcome-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.68) 100%),
        radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.14) 100%);
}

.club-welcome-action {
    position: absolute;
    left: 50%;
    bottom: clamp(24px, 4.4vh, 54px);
    z-index: 3;
    width: min(calc(100% - 32px), 390px);
    transform: translateX(-50%);
}

.club-welcome-enter-button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 22px;
    border: 1px solid rgba(224, 181, 88, 0.72);
    border-radius: 12px;
    background: rgba(3, 6, 9, 0.78);
    color: #f8fafc;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.40),
        inset 0 0 22px rgba(224, 181, 88, 0.035);
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.club-welcome-enter-button span:last-child {
    color: #e4ba58;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.club-welcome-enter-button:hover,
.club-welcome-enter-button:focus-visible {
    transform: translateY(-2px);
    border-color: #e4ba58;
    background: rgba(10, 13, 17, 0.90);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.44),
        0 0 24px rgba(224, 181, 88, 0.12);
    outline: none;
}

.club-welcome-enter-button:hover span:last-child,
.club-welcome-enter-button:focus-visible span:last-child {
    transform: translateX(4px);
}

.public-club-visual {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    padding: 0 !important;
    background: #05080d !important;
}

.public-club-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 980px) {
    .public-club-photo {
        min-height: 330px;
    }
}

@media (max-width: 640px) {
    .club-welcome {
        background: #000;
    }

    .club-welcome-image {
        object-fit: contain;
        object-position: center center;
    }

    .club-welcome-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.02) 55%, rgba(0, 0, 0, 0.34) 78%, rgba(0, 0, 0, 0.86) 100%);
    }

    .club-welcome-action {
        bottom: max(18px, env(safe-area-inset-bottom));
        width: min(calc(100% - 28px), 360px);
    }

    .club-welcome-enter-button {
        min-height: 52px;
        padding-inline: 18px;
        font-size: 0.78rem;
    }

    .public-club-visual,
    .public-club-photo {
        min-height: 250px;
    }

    .public-club-photo {
        object-fit: cover;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-welcome,
    .club-welcome-enter-button,
    .club-welcome-enter-button span:last-child {
        transition: none !important;
    }
}
/* =========================
   LANDING CLUB PHOTO — MOBILE RESTORE
   Desktop conservé exactement comme la V2.
   Mobile : comportement restauré comme lors du premier rendu validé.
   ========================= */

@media (max-width: 640px) {
    .public-club-visual,
    .public-club-photo {
        min-height: 0 !important;
    }

    .public-club-visual {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background: #020403 !important;
    }

    .public-club-photo {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}
/* =========================
   PREMIUM TYPOGRAPHY V1
   Landing publique uniquement.
   Aucun chargement de police externe :
   rendu rapide, robuste et sans dépendance tierce.
   ========================= */

.public-home {
    --public-display-font:
        "Palatino Linotype",
        "Book Antiqua",
        Palatino,
        Georgia,
        "Times New Roman",
        serif;

    --public-ui-font:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* Interface générale : nette et moderne */
.public-home,
.club-welcome-enter-button {
    font-family: var(--public-ui-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

/* Titres : caractère plus éditorial / premium */
.public-hero h2,
.public-section-heading h2,
.public-club-copy h2,
.public-edgar-labs-intro h2,
.public-final-cta h2 {
    font-family: var(--public-display-font);
    font-weight: 700;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

/* Hero : signature visuelle forte mais sobre */
.public-hero h2 {
    line-height: 0.96;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.025),
        0 16px 34px rgba(0, 0, 0, 0.34);
}

.public-hero h2 span:first-child {
    color: #f7f4ec;
}

.public-hero h2 span:last-child {
    color: transparent;
    background:
        linear-gradient(
            105deg,
            #b88729 0%,
            #e8c56b 28%,
            #fff0b5 48%,
            #d2a542 68%,
            #9b711f 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 8px 18px rgba(211, 166, 63, 0.10));
}

/* Petits libellés : finition "luxe discret" */
.public-hero-kicker,
.public-section-eyebrow {
    font-family: var(--public-ui-font);
    font-weight: 900;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.public-hero-kicker::before,
.public-section-eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: linear-gradient(90deg, transparent, #d7ab49);
}

/* Edgar Labs : identité légèrement différente */
.public-edgar-labs-intro h2 {
    position: relative;
    display: inline-block;
    color: #f8fafc;
    letter-spacing: -0.035em;
}

.public-edgar-labs-intro h2::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: -10px;
    width: 58%;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #8d671e,
            #e2b958 45%,
            rgba(226, 185, 88, 0)
        );
    box-shadow: 0 0 14px rgba(226, 185, 88, 0.16);
}

.public-edgar-labs-quote {
    font-family: var(--public-display-font);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-style: italic;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
}

/* Signature Edgar Labs */
.public-edgar-labs-signature,
.public-experience-signature {
    letter-spacing: 0.045em;
}

.public-edgar-labs-signature strong,
.public-experience-signature strong,
.public-footer-powered strong {
    font-family: var(--public-display-font);
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* Bouton welcome : plus "cinematic" */
.club-welcome-enter-button {
    letter-spacing: 0.11em;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.06);
}

.club-welcome-enter-button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 10px;
    pointer-events: none;
    background:
        linear-gradient(
            110deg,
            transparent 18%,
            rgba(255, 231, 168, 0.045) 48%,
            transparent 72%
        );
}

.club-welcome-enter-button {
    position: relative;
    overflow: hidden;
}

/* Cartes : titres un peu plus premium sans changer la lisibilité */
.public-feature-card h3,
.public-edgar-labs-pillars h3 {
    letter-spacing: 0.035em;
}

/* Mobile : garder la typographie forte sans la rendre envahissante */
@media (max-width: 640px) {
    .public-hero h2 {
        letter-spacing: -0.05em;
        line-height: 0.98;
    }

    .public-section-heading h2,
    .public-club-copy h2,
    .public-edgar-labs-intro h2,
    .public-final-cta h2 {
        letter-spacing: -0.035em;
    }

    .public-hero-kicker,
    .public-section-eyebrow {
        letter-spacing: 0.15em;
    }

    .public-edgar-labs-intro h2::after {
        bottom: -8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-hero h2 span:last-child {
        filter: none;
    }
}

/* =========================
   WELCOME CLUB BRANDING V2
   Photo clean + HTML/CSS overlay only.
   No JavaScript or animation logic changed.
   ========================= */

.club-welcome-branding,
.club-welcome-values,
.club-welcome-signature {
    position: absolute;
    z-index: 3;
}

.club-welcome-branding {
    left: 50%;
    top: clamp(24px, 4.2vh, 58px);
    width: min(92vw, 860px);
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.82),
        0 1px 2px rgba(0, 0, 0, 0.95);
}

.club-welcome-brand-logo {
    display: block;
    width: clamp(66px, 6.4vw, 104px);
    height: clamp(66px, 6.4vw, 104px);
    margin: 0 auto 4px;
    object-fit: contain;
    filter:
        drop-shadow(0 12px 22px rgba(0, 0, 0, 0.62))
        drop-shadow(0 0 16px rgba(224, 181, 88, 0.14));
}

.club-welcome-branding h1 {
    margin: 0;
    color: #f8fafc;
    font-family:
        "Arial Narrow",
        "Roboto Condensed",
        "Segoe UI",
        sans-serif;
    font-size: clamp(2.2rem, 5.4vw, 5.3rem);
    font-weight: 950;
    line-height: 0.96;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.club-welcome-branding p {
    margin: 10px 0 0;
    color: #e7bd5d;
    font-size: clamp(0.72rem, 1.55vw, 1.16rem);
    font-weight: 900;
    letter-spacing: 0.24em;
    line-height: 1.2;
    text-transform: uppercase;
}

.club-welcome-values {
    left: 50%;
    bottom: clamp(92px, 12vh, 142px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2.2vw, 30px);
    width: min(calc(100% - 72px), 1080px);
    transform: translateX(-50%);
    pointer-events: none;
}

.club-welcome-value {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(224, 181, 88, 0.26);
    color: #f8fafc;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.club-welcome-value-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #d9ad49;
}

.club-welcome-value-icon svg {
    width: 32px;
    height: 32px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.68));
}

.club-welcome-value strong,
.club-welcome-value small {
    display: block;
}

.club-welcome-value strong {
    color: #f1c65f;
    font-size: clamp(0.68rem, 1vw, 0.82rem);
    font-weight: 950;
    letter-spacing: 0.07em;
    line-height: 1.15;
    text-transform: uppercase;
}

.club-welcome-value small {
    margin-top: 4px;
    color: rgba(248, 250, 252, 0.72);
    font-size: clamp(0.58rem, 0.8vw, 0.7rem);
    font-weight: 700;
    line-height: 1.3;
}

.club-welcome-signature {
    left: 50%;
    bottom: clamp(76px, 9.4vh, 108px);
    margin: 0;
    transform: translateX(-50%);
    color: rgba(245, 215, 147, 0.68);
    font-family:
        "Palatino Linotype",
        "Book Antiqua",
        Palatino,
        Georgia,
        serif;
    font-size: clamp(0.78rem, 1.4vw, 1.06rem);
    font-style: italic;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92);
    pointer-events: none;
}

.club-welcome-signature strong {
    color: #e2b957;
    font-weight: 700;
}

@media (max-width: 980px) and (min-width: 641px) {
    .club-welcome-branding {
        top: clamp(20px, 3vh, 36px);
    }

    .club-welcome-values {
        bottom: 106px;
        width: min(calc(100% - 40px), 900px);
        gap: 12px;
    }

    .club-welcome-value {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 7px;
    }

    .club-welcome-value-icon {
        width: 28px;
        height: 28px;
    }

    .club-welcome-value-icon svg {
        width: 27px;
        height: 27px;
    }

    .club-welcome-signature {
        bottom: 78px;
    }
}

@media (max-width: 640px) {
    /*
    On mobile the club image uses object-fit: contain.
    Branding is intentionally moved into the lower dark zone so it never
    covers faces or the team.
    */
    .club-welcome-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.04) 44%,
                rgba(0, 0, 0, 0.18) 62%,
                rgba(0, 0, 0, 0.84) 78%,
                #000 100%
            ) !important;
    }

    .club-welcome-branding {
        top: auto;
        bottom: 226px;
        width: min(calc(100% - 28px), 390px);
    }

    .club-welcome-brand-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 2px;
    }

    .club-welcome-branding h1 {
        font-size: clamp(1.26rem, 7vw, 1.75rem);
        letter-spacing: 0.045em;
    }

    .club-welcome-branding p {
        margin-top: 5px;
        font-size: clamp(0.5rem, 2.65vw, 0.64rem);
        letter-spacing: 0.15em;
    }

    .club-welcome-values {
        bottom: 96px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 12px;
        width: min(calc(100% - 28px), 390px);
    }

    .club-welcome-value {
        grid-template-columns: 27px minmax(0, 1fr);
        gap: 7px;
        min-height: 48px;
        padding: 6px 0;
        border-top-color: rgba(224, 181, 88, 0.20);
    }

    .club-welcome-value-icon {
        width: 25px;
        height: 25px;
    }

    .club-welcome-value-icon svg {
        width: 24px;
        height: 24px;
        stroke-width: 1.6;
    }

    .club-welcome-value strong {
        font-size: 0.56rem;
        letter-spacing: 0.04em;
    }

    .club-welcome-value small {
        margin-top: 2px;
        font-size: 0.49rem;
        line-height: 1.2;
    }

    .club-welcome-signature {
        bottom: 178px;
        font-size: 0.72rem;
    }

    .club-welcome-action {
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
        width: min(calc(100% - 28px), 390px) !important;
    }

    .club-welcome-enter-button {
        min-height: 50px !important;
    }
}

@media (max-width: 390px) {
    .club-welcome-branding {
        bottom: 220px;
    }

    .club-welcome-values {
        bottom: 92px;
        gap: 6px 9px;
    }

    .club-welcome-signature {
        bottom: 172px;
    }
}

@media (max-height: 700px) and (max-width: 640px) {
    .club-welcome-branding {
        bottom: 204px;
    }

    .club-welcome-signature {
        bottom: 158px;
    }

    .club-welcome-values {
        bottom: 84px;
    }

    .club-welcome-value small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-welcome-branding,
    .club-welcome-values,
    .club-welcome-signature {
        transition: none !important;
    }
}

/* =========================
   WELCOME CLUB BRANDING V3
   Mobile portrait + landscape refinements
   CSS only — animation/JS untouched
   ========================= */

/* Button slightly more compact everywhere */
.club-welcome-action {
    width: min(calc(100% - 36px), 350px) !important;
}

.club-welcome-enter-button {
    min-height: 48px !important;
    padding: 10px 18px !important;
    font-size: 0.82rem !important;
}

/* Mobile portrait */
@media (max-width: 640px) and (orientation: portrait) {
    .club-welcome-image {
        object-fit: contain !important;
        object-position: center 30% !important;
    }

    .club-welcome-signature {
        top: max(18px, env(safe-area-inset-top)) !important;
        bottom: auto !important;
        width: min(calc(100% - 28px), 390px);
        text-align: center;
        font-size: 0.7rem !important;
        color: rgba(245, 215, 147, 0.78) !important;
    }

    .club-welcome-branding {
        top: auto !important;
        bottom: 208px !important;
        width: min(calc(100% - 28px), 390px) !important;
    }

    .club-welcome-brand-logo {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 2px !important;
    }

    .club-welcome-branding h1 {
        font-size: clamp(1.18rem, 6.6vw, 1.62rem) !important;
        line-height: 1 !important;
    }

    .club-welcome-branding p {
        margin-top: 4px !important;
        font-size: clamp(0.48rem, 2.5vw, 0.6rem) !important;
        letter-spacing: 0.14em !important;
    }

    .club-welcome-values {
        bottom: 82px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px 12px !important;
        width: min(calc(100% - 28px), 390px) !important;
    }

    .club-welcome-value {
        min-height: 42px !important;
        padding: 5px 0 !important;
    }

    .club-welcome-value-icon {
        width: 23px !important;
        height: 23px !important;
    }

    .club-welcome-value-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .club-welcome-value strong {
        font-size: 0.54rem !important;
    }

    .club-welcome-value small {
        font-size: 0.47rem !important;
        line-height: 1.15 !important;
    }

    .club-welcome-action {
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: min(calc(100% - 28px), 330px) !important;
    }

    .club-welcome-enter-button {
        min-height: 46px !important;
        padding: 9px 14px !important;
        font-size: 0.72rem !important;
    }
}

/* Mobile landscape */
@media (max-width: 920px) and (max-height: 520px) and (orientation: landscape) {
    .club-welcome-image {
        object-fit: contain !important;
        object-position: center center !important;
    }

    .club-welcome-signature {
        top: 8px !important;
        bottom: auto !important;
        width: auto !important;
        font-size: 0.62rem !important;
        color: rgba(245, 215, 147, 0.78) !important;
    }

    .club-welcome-branding {
        top: 22px !important;
        bottom: auto !important;
        width: min(74vw, 680px) !important;
    }

    .club-welcome-brand-logo {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 0 !important;
    }

    .club-welcome-branding h1 {
        font-size: clamp(1.4rem, 4.2vw, 2.3rem) !important;
        line-height: 0.98 !important;
    }

    .club-welcome-branding p {
        margin-top: 3px !important;
        font-size: clamp(0.46rem, 1.55vw, 0.7rem) !important;
        letter-spacing: 0.14em !important;
    }

    .club-welcome-values {
        bottom: 64px !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: min(calc(100% - 52px), 880px) !important;
    }

    .club-welcome-value {
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 6px !important;
        min-height: 34px !important;
        padding: 4px 0 !important;
    }

    .club-welcome-value-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .club-welcome-value-icon svg {
        width: 21px !important;
        height: 21px !important;
    }

    .club-welcome-value strong {
        font-size: 0.5rem !important;
        letter-spacing: 0.035em !important;
    }

    .club-welcome-value small {
        display: none !important;
    }

    .club-welcome-action {
        bottom: 10px !important;
        width: min(320px, calc(100% - 40px)) !important;
    }

    .club-welcome-enter-button {
        min-height: 42px !important;
        padding: 8px 14px !important;
        font-size: 0.68rem !important;
    }
}

/* Very short landscape screens */
@media (max-width: 920px) and (max-height: 420px) and (orientation: landscape) {
    .club-welcome-branding {
        top: 16px !important;
    }

    .club-welcome-brand-logo {
        width: 36px !important;
        height: 36px !important;
    }

    .club-welcome-values {
        bottom: 56px !important;
    }

    .club-welcome-action {
        bottom: 8px !important;
    }
}

/* =========================
   MEMBER CONTACT / WHATSAPP V2
   Clear, premium and accessible contact action.
   ========================= */

#memberModalPhoneRow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

#memberModalPhoneRow > strong {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

#memberModalPhone {
    display: block;
    width: 100%;
}

.member-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-width: 180px;
    padding: 10px 13px;
    border: 1px solid rgba(74, 222, 128, 0.22);
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.08);
    color: var(--text-color);
    text-decoration: none;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.member-whatsapp-link:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 222, 128, 0.46);
    background: rgba(34, 197, 94, 0.13);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.member-whatsapp-link:focus-visible {
    outline: 2px solid rgba(74, 222, 128, 0.72);
    outline-offset: 3px;
}

.member-whatsapp-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.14);
    color: #58d68d;
}

.member-whatsapp-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-whatsapp-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.1;
}

.member-whatsapp-text strong {
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 900;
}

.member-whatsapp-text small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@media (max-width: 640px) {
    .member-whatsapp-link {
        min-width: 0;
        width: 100%;
        max-width: 260px;
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-whatsapp-link {
        transition: none;
    }
}

/* =========================
   MATCH HOME LEADER CARDS — PREMIUM V1
   Objectif:
   - compacter les noms MVP / meilleur buteur sur mobile;
   - ajouter deux emblèmes premium sans asset externe;
   - CSS uniquement, aucune logique métier modifiée.
   ========================= */

#matchesSummaryGrid > .card:has(#matchesLastMvp),
#matchesSummaryGrid > .card:has(#matchesTopScorer) {
    position: relative;
    padding-right: 54px;
    border-color: rgba(227, 185, 86, 0.30);
    background:
        radial-gradient(circle at 88% 18%, rgba(227, 185, 86, 0.12), transparent 28%),
        var(--bg-card);
}

#matchesLastMvp,
#matchesTopScorer {
    max-width: 100%;
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(0.92rem, 1.3vw, 1.08rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.018em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

/* Badge premium commun */
#matchesSummaryGrid > .card:has(#matchesLastMvp)::before,
#matchesSummaryGrid > .card:has(#matchesTopScorer)::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(227, 185, 86, 0.42);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(227, 185, 86, 0.18), rgba(227, 185, 86, 0.05)),
        rgba(8, 12, 20, 0.48);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.22),
        inset 0 0 14px rgba(227, 185, 86, 0.06);
}

/* MVP — trophée ligne premium */
#matchesSummaryGrid > .card:has(#matchesLastMvp)::after {
    content: "";
    position: absolute;
    top: 19px;
    right: 19px;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3b956' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v4a4 4 0 0 1-8 0V4Z'/%3E%3Cpath d='M8 6H5v1a4 4 0 0 0 4 4'/%3E%3Cpath d='M16 6h3v1a4 4 0 0 1-4 4'/%3E%3Cpath d='M12 12v4'/%3E%3Cpath d='M9 20h6'/%3E%3Cpath d='M10 16h4v4h-4z'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 6px rgba(227, 185, 86, 0.24));
}

/* Meilleur buteur — ballon ligne premium */
#matchesSummaryGrid > .card:has(#matchesTopScorer)::after {
    content: "";
    position: absolute;
    top: 19px;
    right: 19px;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3b956' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m12 7 3 2-1 4h-4L9 9l3-2Z'/%3E%3Cpath d='M9 9 5.5 8.5'/%3E%3Cpath d='M15 9 18.5 8.5'/%3E%3Cpath d='M10 13 7.5 16.5'/%3E%3Cpath d='M14 13 16.5 16.5'/%3E%3Cpath d='M8.5 20 7.5 16.5'/%3E%3Cpath d='M15.5 20 16.5 16.5'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 6px rgba(227, 185, 86, 0.24));
}

@media (max-width: 768px) {
    #matchesSummaryGrid > .card:has(#matchesLastMvp),
    #matchesSummaryGrid > .card:has(#matchesTopScorer) {
        padding-right: 44px !important;
    }

    #matchesLastMvp,
    #matchesTopScorer {
        font-size: 0.88rem !important;
        line-height: 1.08 !important;
        letter-spacing: -0.012em !important;
    }

    #matchesSummaryGrid > .card:has(#matchesLastMvp)::before,
    #matchesSummaryGrid > .card:has(#matchesTopScorer)::before {
        top: 9px;
        right: 9px;
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    #matchesSummaryGrid > .card:has(#matchesLastMvp)::after,
    #matchesSummaryGrid > .card:has(#matchesTopScorer)::after {
        top: 14px;
        right: 14px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 420px) {
    #matchesLastMvp,
    #matchesTopScorer {
        font-size: 0.82rem !important;
        line-height: 1.07 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #matchesSummaryGrid > .card:has(#matchesLastMvp)::after,
    #matchesSummaryGrid > .card:has(#matchesTopScorer)::after {
        filter: none;
    }
}

/* =========================
   MATCH STATS SCOPE — MOBILE FIX V2
   Objectif:
   - afficher "Statistiques générales" et "Mes stats" sur mobile;
   - conserver les badges premium Matchs déjà validés;
   - boutons plus compacts sur mobile;
   - CSS uniquement.
   ========================= */

@media (max-width: 768px) {
    #matchStatsScopeToolbar {
        display: block !important;
        padding: 8px !important;
        margin-bottom: 10px !important;
        border-color: rgba(200, 155, 60, 0.22) !important;
        background:
            linear-gradient(135deg, rgba(200, 155, 60, 0.06), transparent),
            var(--bg-card) !important;
    }

    #matchStatsScopeFilters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    #matchStatsScopeFilters .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 32px !important;
        padding: 5px 7px !important;
        border-radius: 8px !important;
        font-size: 0.62rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
    }
}

@media (max-width: 340px) {
    #matchStatsScopeFilters {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   PROFILE OVERVIEW — PREMIUM V1
   ========================= */

.profile-overview-modal {
    width: min(760px, 100%);
    padding: 20px;
}

.profile-overview {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-overview-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    padding-right: 54px;
    border: 1px solid rgba(200, 155, 60, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0 0, rgba(200, 155, 60, 0.14), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 64%),
        var(--bg-card);
}

.profile-overview-avatar {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(200, 155, 60, 0.42);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.14), transparent 28%),
        rgba(200, 155, 60, 0.14);
    color: var(--accent-gold);
    font-size: 1.45rem;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.profile-overview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-overview-identity {
    min-width: 0;
}

.profile-overview-eyebrow {
    margin: 0 0 4px;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-overview-identity h2 {
    margin: 0;
    color: var(--accent-gold);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.1;
}

#profileSummaryName {
    margin: 6px 0 10px;
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(200, 155, 60, 0.28);
    border-radius: 999px;
    background: rgba(200, 155, 60, 0.08);
    color: var(--accent-gold);
    font-size: var(--font-xs);
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-overview-section {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.profile-overview-stats-section {
    grid-column: 1 / -1;
}

.profile-overview-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
}

.profile-overview-section-icon {
    width: 29px;
    height: 29px;
    border: 1px solid rgba(200, 155, 60, 0.2);
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(200, 155, 60, 0.08);
    font-size: 0.82rem;
}

.profile-overview-section h3 {
    margin: 0;
    color: var(--accent-gold);
    font-size: var(--font-xs);
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.profile-overview-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-overview-details > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: start;
}

.profile-overview-details dt,
.profile-overview-details dd {
    margin: 0;
    font-size: var(--font-xs);
    line-height: 1.35;
}

.profile-overview-details dt {
    color: var(--text-secondary);
    font-weight: 800;
}

.profile-overview-details dd {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.profile-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-overview-stats article {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(200, 155, 60, 0.16);
    border-radius: var(--radius-md);
    background: rgba(200, 155, 60, 0.045);
    text-align: center;
}

.profile-overview-stats span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 800;
}

.profile-overview-stats strong {
    display: block;
    color: var(--accent-gold);
    font-size: 1.2rem;
    line-height: 1;
}

.profile-overview-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-edit-form {
    max-width: 560px;
    margin: 0 auto;
}

.profile-edit-form[hidden],
.profile-overview[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .profile-overview-modal {
        width: min(100%, 620px);
        padding: 14px;
    }

    .profile-overview {
        gap: 12px;
    }

    .profile-overview-hero {
        gap: 12px;
        padding: 14px 46px 14px 14px;
    }

    .profile-overview-avatar {
        width: 58px;
        height: 58px;
        font-size: 1.2rem;
    }

    .profile-overview-identity h2 {
        font-size: 1.15rem;
    }

    #profileSummaryName {
        margin: 4px 0 8px;
        font-size: 0.8rem;
    }

    .profile-role-badge {
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .profile-overview-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .profile-overview-stats-section {
        grid-column: auto;
    }

    .profile-overview-section {
        padding: 12px;
    }

    .profile-overview-section-heading {
        margin-bottom: 10px;
    }

    .profile-overview-details {
        gap: 8px;
    }

    .profile-overview-details > div {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 8px;
    }

    .profile-overview-details dt,
    .profile-overview-details dd {
        font-size: 0.72rem;
    }

    .profile-overview-stats {
        gap: 7px;
    }

    .profile-overview-stats article {
        padding: 10px 7px;
    }

    .profile-overview-stats span {
        font-size: 0.66rem;
    }

    .profile-overview-stats strong {
        font-size: 1.05rem;
    }

    .profile-overview-actions .btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .profile-overview-stats {
        grid-template-columns: 1fr;
    }

    .profile-overview-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .profile-overview-details dd {
        text-align: left;
    }
}

/* =========================
   TOPBAR PROFILE BUTTON — V1
   ========================= */

.topbar-profile-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.topbar-profile-button:hover {
    transform: translateY(-1px);
}

.topbar-profile-button:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

.topbar-profile-button .avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

@media (max-width: 768px) {
    .topbar-profile-button {
        width: 40px;
        height: 40px;
    }
}

/* =========================
   PAYMENTS HISTORY MODAL V1
   ========================= */

.payment-history-section-header {
    align-items: center;
}

.payment-history-section-header > div {
    min-width: 0;
}

.payment-history-section-header > div > p {
    margin-bottom: 4px;
}

.payment-history-modal {
    width: min(980px, 100%);
}

.payment-history-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.payment-history-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
}

.payment-history-table th,
.payment-history-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.payment-history-table th {
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.18), rgba(200, 155, 60, 0.06)),
        var(--bg-secondary);
    color: var(--accent-gold);
    font-size: var(--font-xs);
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.payment-history-table tbody tr:last-child td {
    border-bottom: none;
}

.payment-history-row {
    cursor: pointer;
    transition: background 0.18s ease;
}

.payment-history-row:hover td,
.payment-history-row:focus td {
    background: rgba(200, 155, 60, 0.10);
}

.payment-history-row:focus {
    outline: none;
}

.payment-history-row:focus-visible td {
    box-shadow: inset 0 0 0 1px rgba(200, 155, 60, 0.55);
}

.payment-history-empty-cell {
    padding: 22px !important;
    color: var(--text-secondary);
    text-align: center !important;
    white-space: normal !important;
}

@media (max-width: 768px) {
    .payment-history-section-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .payment-history-section-header .btn {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .payment-history-modal {
        width: 100%;
    }

    .payment-history-table {
        min-width: 680px;
        font-size: 0.76rem;
    }

    .payment-history-table th,
    .payment-history-table td {
        padding: 11px 10px;
    }
}
