﻿/* Gedian Sports - Coach Home */

.referee-profile-page {
    min-height: calc(100vh - 70px);
    padding: 26px 0 60px;
    background: radial-gradient(circle at top right, rgba(91, 140, 59, .10), transparent 31%), linear-gradient(180deg, #f4f8f2 0%, #eef3f6 100%);
    color: #071a33;
    font-family: "Tajawal", sans-serif;
}

.referee-profile-alert {
    margin-bottom: 18px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(7, 26, 51, .08);
}

.referee-header-card,
.referee-section-card,
.referee-sidebar-card {
    border: 1px solid #dfe7df;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 26, 51, .07);
}

.referee-header-card {
    overflow: hidden;
    margin-bottom: 22px;
    border-radius: 24px;
}

.referee-cover {
    position: relative;
    min-height: 310px;
    background: #0b284b;
}

.referee-cover-image {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    transition: object-position .18s ease, filter .18s ease;
}

.referee-cover.is-positioning {
    outline: 3px solid rgba(91, 140, 59, .92);
    outline-offset: -3px;
}

    .referee-cover.is-positioning .referee-cover-image {
        cursor: grab;
        touch-action: none;
        filter: brightness(.82);
        transition: none;
    }

.referee-cover.is-dragging .referee-cover-image {
    cursor: grabbing;
}

.referee-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(7, 26, 51, .02), rgba(7, 26, 51, .58));
}

.referee-cover-fallback {
    display: flex;
    height: 310px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient( circle at 20% 20%, rgba(91, 140, 59, .42), transparent 26%), linear-gradient( 135deg, #071a33, #0d365f 64%, #154c7a);
    color: #fff;
}

    .referee-cover-fallback span {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: .15em;
        text-transform: uppercase;
    }

    .referee-cover-fallback strong {
        margin-top: 8px;
        font-size: clamp(1.8rem, 4vw, 3.2rem);
        font-weight: 900;
    }

.referee-cover-actions {
    position: absolute;
    z-index: 4;
    left: 20px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.referee-cover.is-positioning .referee-cover-actions {
    display: none;
}

.referee-cover-upload-form {
    position: static;
    margin: 0;
}

.referee-change-cover-button,
.referee-adjust-cover-button {
    display: inline-flex;
    align-items: center;
    min-height: 41px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 11px;
    background: rgba(7, 26, 51, .72);
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
    transition: .2s ease;
}

    .referee-change-cover-button:hover,
    .referee-adjust-cover-button:hover {
        background: #fff;
        color: #071a33;
    }

.referee-adjust-cover-button {
    display: inline-flex;
    align-items: center;
    min-height: 41px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 11px;
    background: rgba(7, 26, 51, .72);
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
    transition: .2s ease;
}

.referee-cover-position-hint {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 50%;
    max-width: calc(100% - 36px);
    padding: 10px 15px;
    transform: translateX(50%);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(7, 26, 51, .78);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.referee-banner-position-form {
    position: absolute;
    z-index: 6;
    right: 20px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 13px;
    background: rgba(7, 26, 51, .78);
    backdrop-filter: blur(9px);
}

    .referee-banner-position-form button {
        min-height: 38px;
        padding: 0 14px;
        border-radius: 9px;
        font-size: .75rem;
        font-weight: 900;
    }

.referee-save-cover-position-button {
    border: 1px solid #5b8c3b;
    background: #5b8c3b;
    color: #fff;
}

.referee-center-cover-button {
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.referee-cancel-cover-position-button {
    border: 1px solid rgba(255, 255, 255, .45);
    background: #fff;
    color: #071a33;
}

.referee-header-content {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    min-height: 150px;
    padding: 24px 28px 28px;
}

.referee-avatar-area {
    position: relative;
    width: 152px;
    margin-top: -92px;
}

.referee-avatar {
    display: grid;
    width: 152px;
    height: 152px;
    place-items: center;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #eaf3e5;
    color: #4d7d31;
    box-shadow: 0 10px 30px rgba(7, 26, 51, .17);
    font-size: 3.6rem;
    font-weight: 900;
}

    .referee-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.referee-avatar-upload-form {
    position: absolute;
    left: 4px;
    bottom: 8px;
}

.referee-change-avatar-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #5b8c3b;
    color: #fff;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 7px 16px rgba(7, 26, 51, .18);
}

.referee-identity {
    min-width: 0;
}

.referee-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

    .referee-name-row h1 {
        margin: 0;
        color: #071a33;
        font-size: clamp(1.6rem, 3vw, 2.35rem);
        font-weight: 900;
    }

.referee-verified-badge,
.referee-available-badge,
.referee-assignment-status,
.referee-career-status,
.referee-license-status,
.referee-status-chip,
.referee-verification-chip,
.referee-content-type,
.referee-content-category,
.referee-license-category,
.referee-highest-license,
.referee-expiry-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

.referee-verified-badge {
    padding: 6px 10px;
    background: #e7f6ec;
    color: #1f7a42;
}

.referee-available-badge {
    padding: 6px 10px;
    background: #eaf3e5;
    color: #4d7d31;
}

.referee-english-name {
    margin-top: 5px;
    color: #7e8997;
    font-size: .9rem;
}

.referee-summary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
    color: #33465d;
    font-size: .92rem;
    font-weight: 700;
}

.referee-summary-separator {
    color: #98a4b1;
}

.referee-account-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: #7d8997;
    font-size: .78rem;
}

.referee-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ea86e;
    box-shadow: 0 0 0 4px rgba(78, 168, 110, .14);
}

.referee-header-actions {
    align-self: center;
}

.referee-more-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #dce4df;
    border-radius: 12px;
    background: #fff;
    color: #071a33;
    font-size: 1.35rem;
    font-weight: 900;
}

.referee-options-menu {
    min-width: 220px;
    border: 1px solid #e1e7e2;
    border-radius: 13px;
    box-shadow: 0 18px 42px rgba(7, 26, 51, .15);
}

.referee-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.referee-main-column,
.referee-sidebar {
    display: grid;
    gap: 20px;
}

.referee-sidebar {
    position: sticky;
    top: 20px;
}

.referee-statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.referee-stat-box {
    min-height: 122px;
    padding: 18px;
    border: 1px solid #dfe7df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(7, 26, 51, .06);
}

    .referee-stat-box span {
        display: block;
        color: #81909e;
        font-size: .76rem;
        font-weight: 700;
    }

    .referee-stat-box strong {
        display: block;
        margin-top: 12px;
        color: #071a33;
        font-size: 1.05rem;
        font-weight: 900;
        line-height: 1.55;
    }

.referee-section-card,
.referee-sidebar-card {
    border-radius: 20px;
}

.referee-section-card {
    padding: 24px;
}

.referee-sidebar-card {
    padding: 20px;
}

.referee-section-heading,
.referee-sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

    .referee-section-heading h2,
    .referee-sidebar-heading h2 {
        margin: 0;
        color: #071a33;
        font-size: 1.02rem;
        font-weight: 900;
    }

    .referee-section-heading small {
        display: block;
        margin-top: 4px;
        color: #8793a0;
        font-size: .72rem;
    }

.referee-bio,
.referee-content-summary,
.referee-career-content p,
.referee-media-card-body p,
.referee-audio-content p,
.referee-document-content p {
    margin: 0;
    color: #5f6f80;
    line-height: 1.9;
}

.referee-empty-section {
    padding: 24px;
    border: 1px dashed #cfdacb;
    border-radius: 14px;
    background: #fbfdfb;
    color: #8995a2;
    text-align: center;
    font-size: .83rem;
}

.referee-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.referee-philosophy-wide {
    grid-column: 1 / -1;
}

.referee-philosophy-item {
    padding: 18px;
    border: 1px solid #e2e8e3;
    border-radius: 15px;
    background: #fafcf9;
}

    .referee-philosophy-item span {
        display: block;
        margin-bottom: 9px;
        color: #7f8b98;
        font-size: .73rem;
        font-weight: 700;
    }

    .referee-philosophy-item p {
        margin: 0;
        color: #40536a;
        font-size: .85rem;
        line-height: 1.85;
    }

    .referee-philosophy-item strong {
        color: #102840;
        font-size: .92rem;
    }

.referee-current-assignment-grid,
.referee-license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.referee-current-assignment-card,
.referee-license-card {
    border: 1px solid #dfe7df;
    border-radius: 17px;
    background: linear-gradient(180deg, #fff, #fbfdfb);
}

.referee-current-assignment-card,
.referee-license-card {
    padding: 18px;
}

.referee-assignment-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.referee-assignment-status {
    padding: 5px 8px;
}

    .referee-assignment-status.is-current {
        background: #e7f6ec;
        color: #247545;
    }

    .referee-assignment-status.is-primary {
        background: #e9f0fb;
        color: #2d5f9e;
    }

    .referee-assignment-status.is-interim {
        background: #fff2d8;
        color: #93600a;
    }

.referee-current-assignment-card h3,
.referee-license-card h3,
.referee-content-card h3 {
    margin: 0;
    color: #071a33;
    font-size: 1rem;
    font-weight: 900;
}

.referee-assignment-organization {
    display: block;
    margin-top: 7px;
    color: #4d7d31;
    font-size: .9rem;
}

.referee-assignment-meta,
.referee-career-meta,
.referee-media-meta,
.referee-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 12px;
    color: #7b8997;
    font-size: .72rem;
}

.referee-assignment-period {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8ece9;
    color: #33485e;
    font-size: .76rem;
    font-weight: 700;
}

.referee-career-timeline {
    position: relative;
    display: grid;
    gap: 15px;
}

    .referee-career-timeline::before {
        position: absolute;
        top: 10px;
        right: 9px;
        bottom: 10px;
        width: 2px;
        content: "";
        background: #dfe8dc;
    }

.referee-career-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
}

.referee-career-marker {
    z-index: 1;
    width: 20px;
    height: 20px;
    margin-top: 18px;
    border: 5px solid #eaf3e5;
    border-radius: 50%;
    background: #5b8c3b;
}

.referee-career-content {
    padding: 17px;
    border: 1px solid #e0e7e1;
    border-radius: 15px;
    background: #fff;
}

.referee-career-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .referee-career-heading h3 {
        margin: 0;
        color: #071a33;
        font-size: .95rem;
        font-weight: 900;
    }

    .referee-career-heading strong {
        display: block;
        margin-top: 6px;
        color: #4d7d31;
        font-size: .83rem;
    }

.referee-career-status {
    padding: 5px 9px;
    background: #eef1f3;
    color: #667485;
}

    .referee-career-status.is-current {
        background: #e7f6ec;
        color: #247545;
    }

.referee-career-content p {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf1ee;
    font-size: .8rem;
}

.referee-license-card-top,
.referee-license-bottom,
.referee-content-topline,
.referee-media-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.referee-license-category,
.referee-content-type,
.referee-content-category {
    padding: 5px 8px;
    background: #eef4eb;
    color: #4d7d31;
}

.referee-highest-license {
    margin-right: 5px;
    padding: 5px 8px;
    background: #fff4d9;
    color: #8d6308;
}

.referee-license-status {
    padding: 6px 9px;
}

    .referee-license-status.is-valid {
        background: #e7f6ec;
        color: #247545;
    }

    .referee-license-status.is-expired,
    .referee-license-status.is-suspended {
        background: #fde9eb;
        color: #b52f40;
    }

    .referee-license-status.is-pending {
        background: #fff3d9;
        color: #90610a;
    }

.referee-license-card h3 {
    margin-top: 14px;
}

.referee-license-name-en {
    margin-top: 5px;
    color: #84909c;
    font-size: .78rem;
}

.referee-license-details {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

    .referee-license-details > div {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding-top: 8px;
        border-top: 1px solid #edf1ee;
    }

    .referee-license-details dt {
        color: #84909d;
        font-size: .7rem;
        font-weight: 700;
    }

    .referee-license-details dd {
        margin: 0;
        color: #33485e;
        font-size: .76rem;
        font-weight: 700;
    }

.referee-license-bottom {
    flex-wrap: wrap;
    margin-top: 15px;
}

.referee-verification-chip,
.referee-expiry-warning {
    padding: 6px 9px;
}

    .referee-verification-chip.is-verified {
        background: #e7f6ec;
        color: #247545;
    }

    .referee-verification-chip.is-pending {
        background: #eef1f3;
        color: #687786;
    }

.referee-expiry-warning {
    background: #fff1d8;
    color: #98650a;
}

.referee-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.referee-media-card,
.referee-video-card,
.referee-audio-card,
.referee-document-card,
.referee-content-card {
    overflow: hidden;
    border: 1px solid #e0e7e2;
    border-radius: 16px;
    background: #fff;
}

.referee-image-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #eef2ef;
}

.referee-media-card-body,
.referee-audio-content,
.referee-document-content,
.referee-content-body {
    padding: 15px;
}

    .referee-media-card-body > strong,
    .referee-audio-content > strong,
    .referee-document-content > strong {
        display: block;
        color: #102840;
        font-size: .86rem;
    }

    .referee-media-card-body p,
    .referee-audio-content p,
    .referee-document-content p {
        margin-top: 7px;
        font-size: .76rem;
    }

.referee-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.referee-status-chip {
    padding: 5px 8px;
}

    .referee-status-chip.is-approved,
    .referee-status-chip.is-public {
        background: #e7f6ec;
        color: #247545;
    }

    .referee-status-chip.is-pending {
        background: #fff2d8;
        color: #91600a;
    }

    .referee-status-chip.is-private {
        background: #eef1f3;
        color: #667485;
    }

.referee-video-list,
.referee-audio-list,
.referee-document-list,
.referee-content-list {
    display: grid;
    gap: 14px;
}

.referee-video-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
}

    .referee-video-card video {
        width: 100%;
        height: 100%;
        min-height: 230px;
        object-fit: cover;
        background: #071a33;
    }

.referee-audio-card,
.referee-document-card,
.referee-content-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.referee-audio-icon,
.referee-document-icon,
.referee-content-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-right: 15px;
    place-items: center;
    border-radius: 16px;
    background: #eef4eb;
    color: #4d7d31;
    font-size: 1.35rem;
    font-weight: 900;
}

.referee-audio-content audio {
    width: 100%;
    margin-top: 12px;
}

.referee-document-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.referee-content-card {
    align-items: flex-start;
}

.referee-content-icon {
    margin-top: 15px;
}

.referee-content-topline {
    align-items: flex-start;
    flex-wrap: wrap;
}

.referee-content-actions {
    margin-top: 10px;
}

.referee-content-body h3 {
    margin-top: 14px;
}

.referee-content-summary {
    margin-top: 8px;
    font-size: .82rem;
}

.referee-article-details {
    margin-top: 14px;
    border: 1px solid #e1e8e2;
    border-radius: 12px;
    background: #fafcf9;
}

    .referee-article-details summary {
        padding: 12px 14px;
        cursor: pointer;
        color: #4d7d31;
        font-size: .78rem;
        font-weight: 900;
    }

.referee-article-body {
    padding: 0 14px 15px;
    color: #45576c;
    line-height: 2;
    white-space: pre-wrap;
}

.referee-external-link {
    margin-top: 14px;
}

.referee-sidebar-heading strong {
    color: #4d7d31;
    font-size: 1rem;
}

.referee-sidebar-card p {
    margin: 12px 0 0;
    color: #778593;
    font-size: .76rem;
    line-height: 1.7;
}

.referee-profile-progress {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e9eeea;
}

    .referee-profile-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #5b8c3b, #79a95d);
    }

.referee-information-list {
    display: grid;
    gap: 0;
    margin: 0;
}

    .referee-information-list > div {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 0;
        border-bottom: 1px solid #edf1ee;
    }

        .referee-information-list > div:last-child {
            border-bottom: 0;
        }

    .referee-information-list dt,
    .referee-professional-status span {
        color: #85919e;
        font-size: .7rem;
        font-weight: 700;
    }

    .referee-information-list dd,
    .referee-professional-status strong {
        margin: 0;
        color: #263c53;
        font-size: .76rem;
        font-weight: 800;
        line-height: 1.6;
    }

.referee-professional-status {
    display: grid;
    gap: 10px;
}

    .referee-professional-status > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px solid #edf1ee;
    }

        .referee-professional-status > div:last-child {
            border-bottom: 0;
        }

.referee-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .referee-social-links a {
        padding: 8px 11px;
        border: 1px solid #dce5dc;
        border-radius: 10px;
        background: #fafcf9;
        color: #456c2e;
        text-decoration: none;
        font-size: .75rem;
        font-weight: 800;
    }

        .referee-social-links a:hover {
            border-color: #5b8c3b;
            background: #eef5ea;
        }

.referee-license-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

    .referee-license-summary div {
        padding: 12px 7px;
        border: 1px solid #e1e8e2;
        border-radius: 12px;
        background: #fafcf9;
        text-align: center;
    }

    .referee-license-summary strong {
        display: block;
        color: #071a33;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .referee-license-summary span {
        display: block;
        margin-top: 5px;
        color: #84909c;
        font-size: .63rem;
        line-height: 1.4;
    }

.referee-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(7, 26, 51, .22);
}

    .referee-modal-content .modal-header {
        background: #071a33;
        color: #fff;
    }

    .referee-modal-content .modal-title {
        font-size: 1.05rem;
        font-weight: 900;
    }

    .referee-modal-content .modal-header .btn-close {
        filter: invert(1);
    }

.referee-upload-note {
    padding: 13px;
    border: 1px solid #e0e8dc;
    border-radius: 12px;
    background: #f5faf2;
    color: #617181;
    font-size: .76rem;
    line-height: 1.7;
}

@media (max-width: 1199.98px) {
    .referee-profile-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .referee-statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referee-philosophy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .referee-profile-layout {
        grid-template-columns: 1fr;
    }

    .referee-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referee-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .referee-profile-page {
        padding-top: 10px;
    }

    .referee-header-card {
        border-radius: 17px;
    }

    .referee-cover,
    .referee-cover-image,
    .referee-cover-fallback {
        min-height: 220px;
        height: 220px;
    }

    .referee-header-content {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 18px;
    }

    .referee-avatar-area {
        grid-column: 1 / -1;
        width: 118px;
        margin-top: -75px;
    }

    .referee-avatar {
        width: 118px;
        height: 118px;
        font-size: 2.7rem;
    }

    .referee-identity {
        grid-column: 1;
    }

    .referee-header-actions {
        grid-column: 2;
        align-self: start;
    }

    .referee-statistics-grid,
    .referee-current-assignment-grid,
    .referee-license-grid,
    .referee-philosophy-grid,
    .referee-sidebar {
        grid-template-columns: 1fr;
    }

    .referee-section-card,
    .referee-sidebar-card {
        padding: 18px;
        border-radius: 16px;
    }

    .referee-image-grid {
        grid-template-columns: 1fr;
    }

    .referee-video-card,
    .referee-audio-card,
    .referee-document-card,
    .referee-content-card {
        grid-template-columns: 1fr;
    }

    .referee-audio-icon,
    .referee-document-icon,
    .referee-content-icon {
        margin: 15px 15px 0;
    }

    .referee-video-card video {
        min-height: 210px;
    }

    .referee-document-actions {
        flex-direction: row;
        padding-top: 0;
    }

    .referee-media-actions,
    .referee-license-card-top,
    .referee-license-bottom,
    .referee-content-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   Referee-specific match and professional sections
   ========================================================= */

.referee-section-error {
    padding: 14px 18px;
    border: 1px solid #f1c9c9;
    border-radius: 14px;
    background: #fff2f2;
    color: #a33b3b;
    font-size: .84rem;
    font-weight: 700;
}

.referee-status-badge,
.referee-class-badge,
.referee-match-status,
.referee-assignment-chip,
.referee-license-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.referee-status-badge {
    padding: 7px 11px;
    background: #e8f6e4;
    color: #397421;
    font-size: .73rem;
}

.referee-class-badge {
    padding: 7px 11px;
    background: #e7eef7;
    color: #133f70;
    font-size: .73rem;
}

.referee-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.referee-match-card {
    overflow: hidden;
    border: 1px solid #dfe7e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(7, 26, 51, .055);
}

.referee-match-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #edf1ee;
    background: #f9fbf9;
}

.referee-match-role {
    color: #4d7d31;
    font-size: .78rem;
    font-weight: 900;
}

.referee-match-status {
    padding: 5px 9px;
    font-size: .68rem;
}

    .referee-match-status.is-live {
        background: #ffe4e4;
        color: #b51f2e;
    }

    .referee-match-status.is-completed {
        background: #e7f6ec;
        color: #247545;
    }

    .referee-match-status.is-warning {
        background: #fff2d8;
        color: #91600a;
    }

    .referee-match-status.is-cancelled {
        background: #f2e8ea;
        color: #8b3d48;
    }

    .referee-match-status.is-scheduled {
        background: #eaf0f7;
        color: #23527b;
    }

.referee-match-card-body {
    padding: 18px;
}

    .referee-match-card-body h3 {
        margin: 0;
        color: #071a33;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1.6;
    }

.referee-match-competition {
    display: block;
    margin-top: 5px;
    color: #7b8997;
    font-size: .75rem;
}

.referee-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

    .referee-match-meta span {
        padding: 6px 9px;
        border-radius: 9px;
        background: #f2f5f3;
        color: #657481;
        font-size: .7rem;
        font-weight: 700;
    }

.referee-match-verification {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.referee-assignment-chip {
    padding: 5px 9px;
    font-size: .67rem;
}

    .referee-assignment-chip.is-positive {
        background: #e7f6ec;
        color: #247545;
    }

    .referee-assignment-chip.is-pending {
        background: #fff2d8;
        color: #91600a;
    }

.referee-history-list {
    display: grid;
    gap: 11px;
}

.referee-history-row {
    display: grid;
    grid-template-columns: minmax(170px, .75fr) minmax(250px, 1.3fr) minmax(145px, .65fr) auto;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e8e4;
    border-radius: 14px;
    background: #fff;
}

.referee-history-role strong,
.referee-history-match strong {
    display: block;
    color: #102840;
    font-size: .82rem;
}

.referee-history-role span,
.referee-history-match span,
.referee-history-date span {
    display: block;
    margin-top: 4px;
    color: #8995a1;
    font-size: .68rem;
}

.referee-history-date strong {
    color: #4e6070;
    font-size: .78rem;
}

.referee-license-code {
    min-width: 54px;
    padding: 6px 9px;
    background: #071a33;
    color: #fff;
    font-size: .68rem;
    letter-spacing: .04em;
}

.referee-license-status.is-warning {
    background: #fff1d8;
    color: #98650a;
}

.referee-information-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.referee-information-item {
    padding: 14px;
    border: 1px solid #e1e8e3;
    border-radius: 13px;
    background: #fbfcfb;
}

    .referee-information-item span {
        display: block;
        color: #8995a0;
        font-size: .69rem;
        font-weight: 700;
    }

    .referee-information-item strong {
        display: block;
        margin-top: 7px;
        color: #102840;
        font-size: .82rem;
        line-height: 1.6;
    }

.referee-about-text {
    margin: 0;
    color: #5f6f80;
    line-height: 1.95;
    white-space: pre-line;
}

.referee-social-list {
    display: grid;
    gap: 9px;
}

.referee-social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #e1e7e3;
    border-radius: 12px;
    color: #30465a;
    text-decoration: none;
    font-size: .77rem;
    font-weight: 800;
}

    .referee-social-link:hover {
        border-color: #8bae75;
        color: #4d7d31;
        background: #f7faf5;
    }

.referee-profile-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8ede9;
}

    .referee-profile-progress > span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #4d7d31, #79a95b);
    }

.referee-sidebar-list {
    display: grid;
    gap: 11px;
    margin: 0;
}

    .referee-sidebar-list div {
        padding-bottom: 11px;
        border-bottom: 1px solid #edf1ee;
    }

        .referee-sidebar-list div:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }

    .referee-sidebar-list dt {
        color: #8995a0;
        font-size: .68rem;
    }

    .referee-sidebar-list dd {
        margin: 4px 0 0;
        color: #102840;
        font-size: .8rem;
        font-weight: 800;
        line-height: 1.55;
    }

.referee-modal-note {
    padding: 12px;
    border-radius: 11px;
    background: #f4f7f4;
    color: #73808c;
    font-size: .73rem;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .referee-upcoming-grid {
        grid-template-columns: 1fr;
    }

    .referee-information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referee-history-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .referee-information-grid,
    .referee-history-row {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 575.98px) {
    .referee-cover-actions {
        right: 12px;
        left: 12px;
        bottom: 12px;
        justify-content: center;
    }

    .referee-change-cover-button,
    .referee-adjust-cover-button {
        min-height: 38px;
        padding: 0 12px;
        font-size: .72rem;
    }

    .referee-cover-position-hint {
        top: 12px;
        width: calc(100% - 24px);
        border-radius: 12px;
        font-size: .68rem;
    }

    .referee-banner-position-form {
        right: 12px;
        left: 12px;
        bottom: 12px;
        justify-content: center;
    }

        .referee-banner-position-form button {
            flex: 1 1 auto;
        }
}
