.blacklist-page {
    width: 100%;
    min-height: 100vh;
    padding: 12px;
    background: var(--sc-page-bg);
}

.blacklist-menu {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.blacklist-menu .board-home-button {
    min-width: 98px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 13px;
    background: rgba(255, 255, 255, .76);
    color: #334155;
    font-size: 14px;
    font-weight: var(--sc-font-heavy);
    text-decoration: none;
    box-shadow: 0 9px 22px rgba(37, 99, 235, .07);
}

.blacklist-header {
    position: relative;
    min-height: 128px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 22px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 18px 48px rgba(37, 99, 235, .1);
    backdrop-filter: blur(20px);
}

.blacklist-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}

.blacklist-header h1 {
    margin: 0 0 6px;
    color: #17233d;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: var(--sc-font-black);
}

.blacklist-header p {
    margin: 0;
    color: #52627d;
    font-size: 15px;
    font-weight: 750;
}

.blacklist-content {
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 22px;
    padding: 28px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 48px rgba(37, 99, 235, .1);
    backdrop-filter: blur(20px);
}

.blacklist-columns {
    height: max(360px, calc(100dvh - 300px));
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-rows: 48px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
}

.blacklist-main-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    min-height: 0;
    display: flex;
}

.blacklist-search {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.blacklist-search-field {
    height: 48px;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #fff;
    padding: 0 15px;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .07);
}

.blacklist-search-field:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.blacklist-search svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: #64748b;
    stroke-width: 2;
    stroke-linecap: round;
}

.blacklist-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17233d;
    font-size: 15px;
    font-weight: 750;
}

.blacklist-search input::placeholder {
    color: #94a3b8;
}

.blacklist-search button {
    width: 84px;
    height: 48px;
    flex: 0 0 84px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(79, 70, 229, .2);
}

.blacklist-search button:hover {
    filter: brightness(1.05);
}

.blacklist-card {
    overflow: hidden;
    border: 1px solid #cfe0f5;
    border-radius: 16px;
    background: #fff;
}

.blacklist-user-card {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    display: flex;
    margin-bottom: 0;
}

.blacklist-table-wrap {
    width: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: scroll;
    scrollbar-width: thin;
}

.blacklist-user-card .blacklist-table-wrap,
.blacklist-main-card .blacklist-table-wrap {
    height: 100%;
}

.blacklist-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    table-layout: fixed;
}

.blacklist-user-table {
    min-width: 0;
}

.blacklist-user-table th,
.blacklist-user-table td {
    width: 50% !important;
}

.blacklist-user-table tbody tr {
    cursor: pointer;
}

.blacklist-user-table tbody td {
    transition: background-color .15s ease, color .15s ease;
}

.blacklist-user-table tbody tr:hover td,
.blacklist-user-table tbody tr:focus-visible td {
    outline: 0;
    background: #edf5ff;
    color: #17233d;
}

.blacklist-user-table tbody .permanent-suspension-row td,
.blacklist-user-table tbody .permanent-suspension-row:hover td,
.blacklist-user-table tbody .permanent-suspension-row:focus-visible td {
    background: #e5e7eb;
    color: #64748b;
}

.blacklist-table th,
.blacklist-table td {
    border-right: 0;
    border-bottom: 1px solid #d8e2ef;
    padding: 15px 18px;
    color: #46556c;
    text-align: center;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.blacklist-table th {
    position: sticky;
    z-index: 2;
    top: 0;
    background: #edf5ff;
    color: #17233d;
    font-weight: var(--sc-font-black);
    white-space: nowrap;
}

.blacklist-table td {
    height: 50px;
    font-weight: 800;
}

.blacklist-table tbody td {
    background: #fff;
}

.blacklist-table tbody tr:last-child td {
    border-bottom: 0;
}

.blacklist-editable-row {
    cursor: pointer;
}

.blacklist-editable-row:hover td,
.blacklist-editable-row:focus-visible td {
    background: #f8fbff;
}

.blacklist-table tbody .permanent-suspension-row td,
.blacklist-table tbody .permanent-suspension-row:hover td,
.blacklist-table tbody .permanent-suspension-row:focus-visible td {
    background: #e5e7eb;
    color: #64748b;
}

.blacklist-warning-count {
    display: inline-block;
    color: #dc2626;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
}

.blacklist-table th:nth-child(1),
.blacklist-table th:nth-child(2),
.blacklist-table td:nth-child(1),
.blacklist-table td:nth-child(2) {
    width: 14%;
}

.blacklist-table th:nth-child(3),
.blacklist-table td:nth-child(3) {
    width: 17%;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.blacklist-table th:nth-child(4),
.blacklist-table td:nth-child(4) {
    width: 17%;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.blacklist-table .blacklist-suspension-date {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.blacklist-suspension-date span {
    display: block;
    line-height: 1.35;
}

.blacklist-table th:nth-child(5),
.blacklist-table td:nth-child(5) {
    width: 19%;
}

.blacklist-table th:nth-child(6),
.blacklist-table td:nth-child(6) {
    width: 9%;
}

.blacklist-table th:nth-child(7),
.blacklist-table td:nth-child(7) {
    width: 10%;
}

.blacklist-main-card .blacklist-table tbody td {
    height: 42px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.blacklist-reason {
    text-align: center !important;
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blacklist-reason span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blacklist-soop-link {
    color: #2563eb;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blacklist-soop-link:hover {
    color: #6d28d9;
}

.blacklist-empty {
    padding: 26px 14px !important;
    color: #64748b !important;
}

.blacklist-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(5px);
}

.blacklist-confirm-modal {
    width: min(100%, 420px);
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 20px;
    background: #fff;
    padding: 28px 26px 24px;
    text-align: center;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.blacklist-confirm-modal h2 {
    margin: 0 0 14px;
    color: #17233d;
    font-size: 22px;
    font-weight: 900;
}

.blacklist-confirm-modal p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
}

.blacklist-confirm-modal p strong {
    color: #2563eb;
}

.blacklist-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.blacklist-confirm-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.blacklist-confirm-actions .confirm {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.blacklist-confirm-actions .black {
    background: #111827;
    color: #fff;
}

.blacklist-confirm-actions .cancel {
    background: #eef2f7;
    color: #475569;
}

.blacklist-confirm-actions button:disabled {
    opacity: .55;
    cursor: wait;
}

.blacklist-reason-modal {
    width: min(100%, 500px);
    text-align: left;
}

.blacklist-reason-modal > p {
    margin-bottom: 20px;
    text-align: center;
}

.blacklist-reason-modal .blacklist-warning-user {
    margin-top: -14px;
    color: #64748b;
    font-size: 14px;
}

.blacklist-release-button {
    display: block;
    min-height: 38px;
    margin: 0 0 14px auto;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff1f2;
    color: #dc2626;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.blacklist-release-button:disabled {
    opacity: .55;
    cursor: wait;
}

.blacklist-reason-modal form {
    display: grid;
    gap: 14px;
}

.blacklist-reason-modal label {
    display: grid;
    gap: 7px;
}

.blacklist-reason-modal label span {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.blacklist-reason-modal label small {
    color: #94a3b8;
    font-size: 12px;
}

.blacklist-reason-modal .blacklist-warning-level {
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0;
}

.blacklist-warning-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.blacklist-warning-level legend {
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.blacklist-reason-modal .blacklist-warning-level label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    padding: 8px 10px;
    cursor: pointer;
}

.blacklist-reason-modal .blacklist-warning-level input {
    width: 16px;
    margin: 0 7px 0 0;
    padding: 0;
    accent-color: #2563eb;
}

.blacklist-reason-modal .blacklist-warning-level span {
    font-size: 13px;
    white-space: nowrap;
}

.blacklist-reason-modal input,
.blacklist-reason-modal textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: #17233d;
    padding: 11px 13px;
    font: inherit;
    font-size: 14px;
}

.blacklist-reason-modal textarea {
    min-height: 112px;
    line-height: 1.55;
    resize: vertical;
}

.blacklist-reason-modal input:focus,
.blacklist-reason-modal textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.blacklist-reason-modal input:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.blacklist-form-message {
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.blacklist-reason-modal .blacklist-confirm-actions {
    margin-top: 4px;
}

@media (max-width: 820px) {
    .blacklist-page {
        padding: 10px 8px;
    }

    .blacklist-header {
        min-height: 108px;
        border-radius: 16px;
        padding: 18px 20px;
    }

    .blacklist-header h1 {
        font-size: 30px;
    }

    .blacklist-content {
        border-radius: 16px;
        padding: 14px;
    }

    .blacklist-columns {
        height: clamp(560px, calc(100dvh - 120px), 760px);
        grid-template-columns: 1fr;
        grid-template-rows: 48px repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .blacklist-search {
        grid-column: 1;
        grid-row: 1;
    }

    .blacklist-user-card {
        grid-column: 1;
        grid-row: 2;
    }

    .blacklist-main-card {
        grid-column: 1;
        grid-row: 3;
    }

    .blacklist-user-card .blacklist-table-wrap,
    .blacklist-main-card .blacklist-table-wrap {
        height: 100%;
        max-height: none;
    }

    .blacklist-table th,
    .blacklist-table td {
        padding: 14px 12px;
        font-size: 14px;
    }

    .blacklist-main-card .blacklist-table tbody td {
        height: 40px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
}
