:root {
    --pfl-blue: #064e2f;
    --pfl-blue-2: #12814f;
    --pfl-blue-soft: #dff5e8;
    --pfl-yellow: #c9f24a;
    --pfl-red: #0f8a45;
    --pfl-ink: #142033;
    --pfl-muted: #667085;
    --pfl-line: #dbe3ee;
    --pfl-bg: #dcefe4;
}

body {
    background:
        linear-gradient(180deg, #b8dfc9 0, var(--pfl-bg) 230px, #eef8f2 100%);
    color: var(--pfl-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

a {
    color: var(--pfl-blue-2);
}

.pfl-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--pfl-blue) !important;
    border-bottom: 4px solid var(--pfl-yellow);
    box-shadow: 0 10px 24px rgba(6, 43, 95, 0.18);
}

.scroll-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--pfl-blue);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(6, 78, 47, 0.28);
}

.scroll-top-btn.is-visible {
    display: grid;
    place-items: center;
}

.scroll-top-btn:hover {
    background: var(--pfl-blue-2);
}

.pfl-header .navbar {
    min-height: 66px;
    background: linear-gradient(90deg, #06381f, #0f6f42, var(--pfl-blue-2)) !important;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 34px;
    padding: 0 8px;
    border: 2px solid var(--pfl-yellow);
    border-radius: 4px;
    color: var(--pfl-yellow);
    font-weight: 900;
    line-height: 1;
}

.pfl-header .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.pfl-header .nav-link:hover,
.pfl-header .nav-link:focus {
    color: #fff;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.club-jump-form {
    width: min(280px, 100%);
    margin-right: 14px;
}

.club-jump-form .form-select {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--pfl-blue);
    font-weight: 700;
}

.user-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    padding: 0;
}

.action-icon-btn svg {
    display: block;
}

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

.video-card {
    padding: 18px;
    border: 1px solid rgba(18, 129, 79, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(6, 78, 47, 0.1);
}

.video-card h2 {
    margin: 14px 0 0;
    color: var(--pfl-blue);
    font-size: 18px;
    font-weight: 800;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #0b1f16;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page {
    min-height: calc(100vh - 70px);
}

.page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(6, 78, 47, 0.94), rgba(18, 129, 79, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 16px 34px rgba(6, 78, 47, 0.2);
}

.page-title h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}

.page-subtitle {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--pfl-yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(201, 242, 74, 0.22), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(0, 255, 171, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(4, 45, 27, 0.97), rgba(10, 95, 57, 0.94) 48%, rgba(18, 129, 79, 0.9)),
        var(--pfl-blue);
    overflow-x: hidden;
}

.login-body::before,
.login-body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
}

.login-body::before {
    width: 460px;
    height: 460px;
    right: -160px;
    bottom: -180px;
    background: rgba(201, 242, 74, 0.14);
    filter: blur(4px);
}

.login-body::after {
    width: 360px;
    height: 360px;
    left: -130px;
    top: -120px;
    border: 70px solid rgba(255, 255, 255, 0.06);
}

.login-page {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 28px;
    width: min(980px, 100%);
    align-items: stretch;
}

.login-hero,
.login-card {
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 520px;
    padding: 42px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(6, 78, 47, 0.88), rgba(18, 129, 79, 0.64));
    color: #fff;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(201, 242, 74, 0.28);
    border-radius: 18px;
}

.login-hero-logo {
    position: absolute;
    top: 36px;
    right: 36px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0.92;
}

.login-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--pfl-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-hero h1 {
    position: relative;
    margin: 0;
    max-width: 460px;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    line-height: 1;
}

.login-hero p {
    position: relative;
    max-width: 440px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.45;
}

.login-hero-note {
    position: relative;
    display: inline-flex;
    width: fit-content;
    margin-top: 28px;
    padding: 10px 14px;
    border: 1px solid rgba(201, 242, 74, 0.3);
    border-radius: 999px;
    background: rgba(6, 78, 47, 0.42);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
}

.login-card {
    width: 100%;
    padding: 34px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 5px solid var(--pfl-yellow);
}

.login-brand {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
}

.login-card .login-kicker {
    color: var(--pfl-blue-2);
}

.login-card h2 {
    margin: 0;
    color: var(--pfl-ink);
    font-size: 30px;
    font-weight: 900;
}

.login-card p {
    margin: 6px 0 0;
    color: var(--pfl-muted);
}

.login-form .form-control {
    min-height: 48px;
    border-color: #bddfcf;
    border-radius: 12px;
    background: #f8fffb;
}

.login-form .form-control:focus {
    border-color: var(--pfl-blue-2);
    box-shadow: 0 0 0 0.2rem rgba(18, 129, 79, 0.16);
}

.login-options {
    margin: -2px 0 18px;
}

.btn-login {
    min-height: 48px;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(18, 129, 79, 0.25);
}

.login-form .form-label,
label {
    font-weight: 700;
}

@media (max-width: 860px) {
    .login-page {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
    }

    .login-hero {
        min-height: auto;
        padding: 26px;
    }

    .login-hero-logo {
        position: static;
        width: 96px;
        height: 96px;
        margin-bottom: 18px;
    }

    .login-hero::before {
        inset: 14px;
    }
}

@media (max-width: 575.98px) {
    .login-body {
        padding: 14px;
    }

    .login-card {
        padding: 24px;
    }

}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-primary,
.btn.primary {
    border-color: var(--pfl-blue-2);
    background: var(--pfl-blue-2);
    color: #fff;
}

.btn-primary:hover,
.btn.primary:hover {
    border-color: var(--pfl-blue);
    background: var(--pfl-blue);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--pfl-blue-2);
    color: var(--pfl-blue-2);
}

.btn-outline-primary:hover {
    border-color: var(--pfl-blue-2);
    background: var(--pfl-blue-2);
}

.panel,
.club-card,
.empty-state {
    margin-bottom: 22px;
    padding: 22px;
    background: #f7fff9;
    border: 1px solid #9bd7b5;
    border-top: 4px solid var(--pfl-blue-2);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(6, 78, 47, 0.12);
}

.club-card {
    scroll-margin-top: 96px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-heading h2,
.panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
}

.readonly-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f3b6b6;
    border-left: 5px solid #dc3545;
    border-radius: 8px;
    background: #fff1f1;
    color: #9f1239;
    font-weight: 800;
    line-height: 1.35;
}

.readonly-field[readonly] {
    background-color: #f8f9fa;
    color: #667085;
    cursor: not-allowed;
}

.directory-club-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #9bd7b5;
    border-left: 5px solid var(--pfl-blue-2);
    border-radius: 8px;
    background: #effaf4;
    color: var(--pfl-blue);
    font-weight: 700;
}

.admin-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.org-buttons-count-1 {
    grid-template-columns: 1fr;
}

.org-buttons-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.org-buttons-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-tile,
.org-button {
    min-height: 110px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #effaf4);
    border: 1px solid #9bd7b5;
    border-left: 6px solid var(--pfl-blue-2);
    border-radius: 8px;
    color: var(--pfl-ink);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(6, 78, 47, 0.11);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-organization-tile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-tile-link {
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.admin-tile-actions {
    margin: 0;
}

.admin-tile:hover,
.org-button:hover {
    color: var(--pfl-blue);
    border-color: var(--pfl-blue-2);
    background: linear-gradient(180deg, #ffffff, #dff5e8);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(20, 32, 51, 0.12);
}

.tile-label {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.tile-note {
    display: block;
    margin-top: 6px;
    color: var(--pfl-muted);
    font-size: 13px;
}

.position-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.position-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #9bd7b5;
    border-radius: 10px;
    background: #fafffc;
    font-weight: 800;
}

.position-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--pfl-blue-2);
}

.birthday-person-form,
.birthday-person-row {
    border: 1px solid #d7e7dc;
    border-radius: 12px;
    background: #fbfffc;
    padding: 18px;
}

.birthday-person-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr 1fr 1fr 1fr;
    gap: 12px;
}

.birthday-person-grid label {
    display: block;
    margin-bottom: 6px;
    color: #33513d;
    font-size: 0.78rem;
    font-weight: 700;
}

.birthday-person-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.birthday-person-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .birthday-person-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .birthday-person-grid {
        grid-template-columns: 1fr;
    }
}

.code-hint {
    padding: 14px;
    border: 1px solid #9bd7b5;
    border-radius: 10px;
    background: #072817;
    color: #e9fff0;
    white-space: pre-wrap;
}

.access-copy-status {
    min-height: 1.25rem;
    margin: 10px 0 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.access-copy-status.is-success {
    color: #17733a;
}

.access-copy-status.is-error {
    color: #b42318;
}

.org-button img {
    display: block;
    height: 72px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 12px;
}

@media (max-width: 991.98px) {
    .org-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .org-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        padding: 12px;
    }
}

.organization-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 90px;
    padding: 10px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #9bd7b5;
    border-radius: 8px;
}

.organization-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    margin-bottom: 16px;
}

.autocomplete-wrap {
    position: relative;
}

.autocomplete-box {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1100;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #9bd7b5;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(6, 78, 47, 0.18);
}

.autocomplete-box.is-open {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--pfl-ink);
    text-align: left;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
    background: var(--pfl-blue-soft);
    color: var(--pfl-blue);
}

.autocomplete-item span {
    font-weight: 700;
}

.autocomplete-item small {
    color: var(--pfl-muted);
    white-space: nowrap;
}

.staff-picker-box {
    padding: 16px;
    border: 1px solid #9bd7b5;
    border-left: 5px solid var(--pfl-blue-2);
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fff9, #e9f7ef);
    box-shadow: 0 10px 24px rgba(6, 78, 47, 0.08);
}

.staff-picker-box .form-label {
    margin-bottom: 8px;
    color: var(--pfl-blue);
    font-weight: 900;
}

.staff-picker-control {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) auto auto;
    gap: 10px;
    align-items: stretch;
}

.staff-picker-control .form-control {
    min-height: 44px;
    border-color: #9bd7b5;
    font-size: 15px;
}

.staff-picker-control .btn {
    white-space: nowrap;
}

.staff-picker-box .form-text {
    color: var(--pfl-muted);
    font-size: 13px;
}

.staff-message {
    margin: 12px 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(6, 78, 47, 0.08);
}

.staff-message-warning {
    border: 1px solid #f0d37a;
    background: #fff8df;
    color: #7a5200;
}

.staff-message-danger {
    border: 1px solid #f1a3a3;
    background: #fff1f1;
    color: #9b1c1c;
}

.data-table {
    --bs-table-bg: #fafffc;
    --bs-table-hover-bg: var(--pfl-blue-soft);
    border-color: #a8dcbc;
}

.data-table th {
    background: #cfeedd;
    color: var(--pfl-blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    color: var(--pfl-muted);
}

.pagination {
    margin: 0;
}

.club-card header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.club-card h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.club-profile {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 420px;
    gap: 24px;
    margin-bottom: 20px;
}

.club-logo img,
.logo-placeholder {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.logo-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid #9bd7b5;
    background: #e9f7ef;
    border-radius: 8px;
    color: var(--pfl-muted);
    font-weight: 800;
}

.club-info p {
    margin: 0 0 12px;
    line-height: 1.35;
}

.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    border: 1px solid #9bd7b5;
    border-radius: 50%;
    background: #e9f7ef;
    color: var(--pfl-blue);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

.map-link:hover {
    background: var(--pfl-blue-2);
    color: #fff;
}

.stadium-photo {
    align-self: start;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #9bd7b5;
    border-radius: 8px;
    background: #e9f7ef;
}

.stadium-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stadium-photo-button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.stadium-photo-button img {
    transition: transform 0.2s ease;
}

.stadium-photo-button:hover img {
    transform: scale(1.03);
}

@media (max-width: 767.98px) {
    .stadium-photo {
        display: none;
    }
}

.editable-table td[contenteditable="true"] {
    min-width: 140px;
    background: #fff;
    outline: none;
}

.editable-table td[contenteditable="true"]:focus {
    box-shadow: inset 0 0 0 2px var(--pfl-blue-2);
}

.editable-table td.is-saving {
    background: #fff8e5;
}

.editable-table td.is-saved {
    background: #ecfdf3;
}

.staff-cards {
    display: grid;
    gap: 12px;
}

.staff-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid #9bd7b5;
    border-left: 5px solid var(--pfl-blue-2);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f2fbf6);
    box-shadow: 0 10px 24px rgba(6, 78, 47, 0.09);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.staff-card-main {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.4fr) minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(150px, 1fr);
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.staff-field {
    min-width: 0;
    position: relative;
}

.staff-field span {
    display: block;
    margin-bottom: 4px;
    color: var(--pfl-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.staff-field strong,
.staff-field [contenteditable="true"] {
    display: block;
    min-height: 24px;
    color: var(--pfl-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.staff-field-position strong,
.staff-field-position [contenteditable="true"] {
    overflow-wrap: normal;
    word-break: normal;
}

.staff-field-name strong,
.staff-field-name [contenteditable="true"] {
    font-weight: 900;
}

.staff-field [contenteditable="true"] {
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    outline: none;
}

.staff-field [contenteditable="true"]:focus {
    border-color: var(--pfl-blue-2);
    background: #fff;
    box-shadow: 0 0 0 0.18rem rgba(18, 129, 79, 0.14);
}

.staff-field [contenteditable="true"].is-saving {
    background: #fff8e5;
}

.staff-field [contenteditable="true"].is-saved {
    background: #ecfdf3;
}

.staff-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 154px;
}

.staff-card.is-reordered {
    border-color: var(--pfl-yellow);
    box-shadow: 0 14px 30px rgba(201, 242, 74, 0.25);
    transform: translateY(-2px);
}

.public-staff-cards {
    margin-top: 6px;
}

.public-staff-card {
    display: block;
}

.public-staff-card {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.4fr) minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(150px, 1fr);
    gap: 12px;
}

.club-staff-card {
    grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.4fr) minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.staff-share {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.staff-share-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #9bd7b5;
    border-radius: 999px;
    background: #fff;
    color: var(--pfl-blue);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(6, 78, 47, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.staff-share-toggle:hover,
.staff-share.is-open .staff-share-toggle {
    border-color: var(--pfl-blue-2);
    background: var(--pfl-blue-soft);
    transform: translateY(-1px);
}

.staff-share-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.staff-share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    gap: 7px;
    padding: 8px;
    border: 1px solid #9bd7b5;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(6, 78, 47, 0.18);
}

.staff-share.is-open .staff-share-menu {
    display: flex;
}

.staff-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.staff-share-link:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.staff-share-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.staff-share-viber {
    background: #7360f2;
}

.staff-share-telegram {
    background: #229ed9;
}

.staff-share-whatsapp {
    background: #25d366;
}

.organization-staff-main,
.organization-staff-card {
    grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr);
}

.organization-staff-card {
    grid-template-columns: minmax(170px, 0.95fr) minmax(220px, 1.2fr);
}

.organization-staff-cards {
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    .staff-card {
        display: block;
    }

    .staff-card-main,
    .public-staff-card,
    .club-staff-card,
    .organization-staff-main,
    .organization-staff-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .staff-field-name {
        grid-column: span 2;
    }

    .staff-card-actions {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .staff-card-main,
    .public-staff-card,
    .club-staff-card,
    .organization-staff-main,
    .organization-staff-card {
        grid-template-columns: 1fr;
    }

    .staff-field-name {
        grid-column: auto;
    }

    .staff-card-actions {
        border-top: 1px solid #d7f0e1;
        padding-top: 10px;
    }

    .staff-share {
        justify-content: flex-start;
    }

    .staff-share-menu {
        right: auto;
        left: 0;
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    padding: 40px 18px;
    background: rgba(15, 23, 42, 0.55);
    overflow: auto;
}

.modal.is-open {
    display: block;
}

.modal-panel {
    position: relative;
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border-top: 5px solid var(--pfl-blue-2);
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--pfl-line);
    border-radius: 6px;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.org-modal-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 42px 22px 0;
}

.org-modal-head img {
    width: 96px;
    max-height: 82px;
    object-fit: contain;
    flex: 0 0 auto;
}

.org-modal-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.modal-panel h3 {
    margin: 18px 0 8px;
    color: var(--pfl-blue-2);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

@media (max-width: 575.98px) {
    .org-modal-head {
        align-items: flex-start;
        gap: 12px;
        margin-right: 34px;
    }

    .org-modal-head img {
        width: 68px;
        max-height: 58px;
    }

    .org-modal-head h2 {
        font-size: 21px;
    }
}

.image-modal {
    padding: 24px;
    background: rgba(3, 20, 12, 0.82);
}

.image-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-panel {
    position: relative;
    width: fit-content;
    max-width: min(1920px, calc(100vw - 48px));
    max-height: min(1080px, calc(100vh - 48px));
}

.image-modal-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1920px, calc(100vw - 48px));
    max-height: min(1080px, calc(100vh - 48px));
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.image-modal-close {
    top: -14px;
    right: -14px;
    z-index: 1;
}

.text-block {
    white-space: normal;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .navbar-user,
    .club-jump-form,
    .club-card header {
        align-items: flex-start;
        flex-direction: column;
    }

    .club-jump-form {
        width: 100%;
        margin: 10px 0;
    }

    .staff-picker-control {
        grid-template-columns: 1fr;
    }

    .staff-picker-control .btn {
        width: 100%;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .club-profile {
        grid-template-columns: 1fr;
    }

    .grid-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
