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

.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: 18px;
    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);
}


/* =========================
   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;
    }
}

