/* Report UI: match site Mozilla Text + glass pill language */

.report-modal[hidden] {
    display: none !important;
}

body.report-modal-open {
    overflow: hidden;
}

.report-modal {
    --report-accent-rgb: 0, 117, 255;
    position: fixed;
    inset: var(--report-viewport-top, 0px) 0 auto;
    height: 100vh;
    height: var(--report-viewport-height, 100dvh);
    z-index: 1200;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    padding: 18px;
    padding-top: max(18px, calc(var(--report-navbar-bottom, 0px) + clamp(18px, 2.5dvh, 28px)));
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    font-family: "Mozilla Text", sans-serif;
}

.report-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.42);
}

.report-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #181818;
    font-family: inherit;
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    color: #111;
}

.report-modal-close {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
}

.report-modal-copy {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.report-categories {
    border: 0;
    margin: 0 0 6px;
    padding: 0 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, 0.72) rgba(255, 255, 255, 0.22);
}

.report-categories::-webkit-scrollbar {
    width: 12px;
}

.report-categories::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin: 4px 0;
}

.report-categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-categories::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.88);
    background-clip: padding-box;
}

.report-category-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    color: #222;
}

.report-category-option input[type="radio"] {
    accent-color: rgb(var(--report-accent-rgb));
}

.report-category-option:has(input:checked) {
    border-color: rgb(var(--report-accent-rgb));
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(var(--report-accent-rgb), 0.35);
}

.report-note-label {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 750;
    color: #333;
}

#report-reason-text {
    width: 100%;
    resize: vertical;
    min-height: 72px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.55);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #181818;
}

#report-reason-text:focus {
    outline: none;
    border-color: rgb(var(--report-accent-rgb));
}

.report-modal-actions {
    margin-top: 18px;
}

.report-form-error {
    margin: 0;
    color: #8a1f1f;
    font-size: 13px;
    font-weight: 750;
}

.report-modal-actions,
.report-thanks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.report-thanks[hidden],
#report-form[hidden] {
    display: none !important;
}

.report-thanks p {
    margin: 0 0 8px;
    width: 100%;
    font-size: 15px;
    font-weight: 750;
    color: #222;
}

.report-modal .skip-btn,
.report-modal .gold-btn,
.report-modal .report-modal-btn {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    font-family: "Mozilla Text", sans-serif;
    font-size: 14px;
    font-weight: 850;
    color: #222;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: 0.2s ease;
}

.report-modal .skip-btn:hover,
.report-modal .gold-btn:hover,
.report-modal .report-modal-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.34);
}

.report-modal .gold-btn:disabled,
.report-modal .report-modal-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.report-loading {
    margin: 0;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 750;
    color: #555;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.face-slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

/* Glass pill: same language as skip-btn / gold-btn */
.report-trigger-btn {
    align-self: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: "Mozilla Text", sans-serif;
    font-size: 13px;
    font-weight: 850;
    color: #222;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(255, 255, 255, 0.18);
    transition: 0.2s ease;
}

.report-trigger-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.42),
        rgba(255, 255, 255, 0.08) 42%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.report-trigger-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.34);
}
