:root {
    --payout-accent: var(--beam-color, #d4af37);
    --payout-bg: #09090c;
    --payout-card: #0f1014;
    --payout-card-strong: #131419;
    --payout-border: rgba(255, 255, 255, 0.09);
    --payout-muted: #9a9aa5;
    --payout-success: #35c78a;
}

.payout-page {
    position: relative;
    z-index: 1;
    min-height: 60vh;
    padding: 34px 18px 72px;
    color: #f6f6f7;
}

.payout-shell {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.payout-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 6vw, 64px) clamp(18px, 5vw, 54px);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.18), transparent 48%),
        radial-gradient(circle at 90% 80%, rgba(35, 188, 127, 0.08), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent),
        #0c0d10;
    box-shadow: 0 26px 75px rgba(0, 0, 0, 0.25);
}

.payout-hero::before,
.payout-hero::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.payout-hero::before {
    top: -95px;
    right: -45px;
}

.payout-hero::after {
    bottom: -115px;
    left: -35px;
}

.payout-eyebrow {
    display: inline-flex;
    min-height: 30px;
    padding: 5px 13px;
    align-items: center;
    color: #0b0b0c;
    font-size: 11px;
    font-weight: 900;
    border-radius: 999px;
    background: var(--payout-accent);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.16);
}

.payout-hero h1 {
    max-width: 850px;
    margin: 16px auto 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -0.7px;
}

.payout-hero p {
    max-width: 720px;
    margin: 14px auto 0;
    color: #aaaab3;
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 700;
    line-height: 2;
}

.payout-submit-open,
.payout-submit-button,
.payout-filters > button {
    border: 0;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.payout-submit-open {
    display: inline-flex;
    min-width: min(360px, 100%);
    min-height: 56px;
    margin-top: 24px;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #090a0a;
    font-size: 16px;
    border-radius: 17px;
    background: linear-gradient(135deg, #f0cf68, var(--payout-accent));
    box-shadow: 0 16px 35px rgba(212, 175, 55, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.payout-submit-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(212, 175, 55, 0.25);
}

.payout-submissions-paused {
    display: inline-block;
    margin-top: 22px !important;
    padding: 10px 16px;
    color: #d7d7dc !important;
    border: 1px solid var(--payout-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.payout-alert {
    margin: 18px 0;
    padding: 14px 17px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.85;
}

.payout-alert ul {
    margin: 0;
    padding-inline-start: 20px;
}

.payout-alert--success {
    color: #bcf9df;
    border: 1px solid rgba(53, 199, 138, 0.26);
    background: rgba(53, 199, 138, 0.095);
}

.payout-alert--error {
    color: #ffd0d0;
    border: 1px solid rgba(239, 92, 92, 0.28);
    background: rgba(239, 92, 92, 0.09);
}

.payout-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.payout-stats article {
    min-width: 0;
    padding: 18px 12px;
    text-align: center;
    border: 1px solid var(--payout-border);
    border-radius: 17px;
    background: rgba(15, 16, 20, 0.9);
}

.payout-stats strong,
.payout-stats span {
    display: block;
}

.payout-stats strong {
    overflow: hidden;
    color: var(--payout-accent);
    font-family: Arial, sans-serif;
    font-size: clamp(17px, 2.4vw, 27px);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payout-stats span {
    margin-top: 6px;
    color: var(--payout-muted);
    font-size: 11px;
    font-weight: 800;
}

.payout-filter-card {
    margin-top: 20px;
    padding: 17px;
    border: 1px solid var(--payout-border);
    border-radius: 22px;
    background: rgba(13, 14, 17, 0.91);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
}

.payout-filter-heading {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.payout-filter-heading div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.payout-filter-heading span {
    color: #f3f3f5;
    font-size: 14px;
    font-weight: 900;
}

.payout-filter-heading strong {
    color: var(--payout-muted);
    font-size: 11px;
    font-weight: 800;
}

.payout-reset-filter {
    padding: 6px 10px;
    color: var(--payout-accent);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.045);
}

.payout-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 11px;
}

.payout-filters label,
.payout-submit-form label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.payout-filters label > span,
.payout-submit-form label > span {
    color: #d7d7dc;
    font-size: 11px;
    font-weight: 900;
}

.payout-filters select,
.payout-submit-form input,
.payout-submit-form select,
.payout-submit-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: #f6f6f7;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    outline: none;
    background: #17181d;
}

.payout-filters select:focus,
.payout-submit-form input:focus,
.payout-submit-form select:focus,
.payout-submit-form textarea:focus {
    border-color: var(--payout-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.payout-filters > button {
    min-height: 46px;
    padding: 10px 19px;
    color: #0c0c0d;
    font-size: 12px;
    border-radius: 13px;
    background: var(--payout-accent);
}

.payout-gallery {
    column-count: 4;
    column-gap: 14px;
    margin-top: 20px;
}

.payout-image-card {
    display: block;
    overflow: hidden;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    break-inside: avoid;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #121318;
    box-shadow: 0 13px 34px rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.payout-image-card img {
    display: block;
    width: 100%;
    height: auto;
    background: #121318;
}

.payout-image-card:hover,
.payout-image-card:focus-visible {
    border-color: rgba(212, 175, 55, 0.48);
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.payout-empty {
    margin-top: 20px;
    padding: 48px 20px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.018);
}

.payout-empty h2 {
    margin: 0;
    font-size: 20px;
}

.payout-empty p {
    margin: 9px 0 0;
    color: var(--payout-muted);
    font-size: 12px;
    line-height: 1.9;
}

.payout-pagination {
    display: flex;
    margin-top: 24px;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.payout-pagination a,
.payout-pagination span {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
}

.payout-pagination a {
    color: #0b0b0c;
    text-decoration: none;
    background: var(--payout-accent);
}

.payout-pagination span {
    color: var(--payout-muted);
    border: 1px solid var(--payout-border);
    background: #101115;
}

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

.payout-modal {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: grid;
    padding: 22px;
    place-items: center;
    opacity: 0;
    transition: opacity 180ms ease;
}

.payout-modal.is-open {
    opacity: 1;
}

.payout-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
}

.payout-modal-panel {
    position: relative;
    z-index: 1;
    overflow: auto;
    width: min(940px, 100%);
    max-height: calc(100vh - 44px);
    color: #f6f6f7;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    outline: none;
    background: #0b0d10;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
    transform: translateY(12px) scale(0.985);
    transition: transform 180ms ease;
}

.payout-modal.is-open .payout-modal-panel {
    transform: translateY(0) scale(1);
}

.payout-modal-close {
    position: sticky;
    z-index: 4;
    top: 14px;
    float: left;
    width: 39px;
    height: 39px;
    margin: 14px 0 -53px 14px;
    color: #f6f6f7;
    font: inherit;
    font-size: 27px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    background: rgba(17, 19, 23, 0.9);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.payout-details-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
}

.payout-details-gallery {
    display: flex;
    min-height: 550px;
    padding: 34px 22px 22px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    border-inline-end: 1px solid var(--payout-border);
    background: #111318;
}

.payout-details-gallery > img {
    display: block;
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.payout-details-thumbnails {
    display: flex;
    width: 100%;
    overflow-x: auto;
    justify-content: center;
    gap: 8px;
    scrollbar-width: thin;
}

.payout-details-thumbnails button {
    flex: 0 0 62px;
    overflow: hidden;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #0b0d10;
    cursor: pointer;
}

.payout-details-thumbnails button.active {
    border-color: var(--payout-accent);
}

.payout-details-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.payout-details-content {
    padding: 44px 28px 28px;
}

.payout-company-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.payout-company-heading > img {
    width: 56px;
    height: 56px;
    padding: 7px;
    object-fit: contain;
    border: 1px solid var(--payout-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
}

.payout-company-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.35;
}

.payout-company-heading span {
    display: inline-flex;
    margin-top: 4px;
    color: var(--payout-success);
    font-size: 12px;
    font-weight: 900;
}

.payout-details-rating {
    margin-top: 17px;
    color: #ffc52f;
    font-family: Arial, sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
}

.payout-details-amount {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(53, 199, 138, 0.22);
    border-radius: 18px;
    background: rgba(53, 199, 138, 0.055);
}

.payout-details-amount span,
.payout-details-amount strong {
    display: block;
}

.payout-details-amount span {
    color: #a8a8b0;
    font-size: 12px;
    font-weight: 800;
}

.payout-details-amount strong {
    margin-top: 2px;
    color: var(--payout-success);
    direction: ltr;
    font-family: Arial, sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    text-align: right;
}

.payout-details-amount strong b {
    font-weight: 900;
}

.payout-details-list {
    margin: 18px 0 0;
}

.payout-details-list > div {
    display: flex;
    padding: 13px 2px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.payout-details-list dt {
    color: #8f8f99;
    font-size: 12px;
    font-weight: 800;
}

.payout-details-list dd {
    margin: 0;
    color: #f5f5f7;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
}

.payout-details-note {
    margin-top: 17px;
    padding: 15px;
    border-inline-start: 3px solid var(--payout-success);
    border-radius: 13px;
    background: rgba(53, 199, 138, 0.055);
}

.payout-details-note span {
    color: #9b9ba5;
    font-size: 11px;
    font-weight: 900;
}

.payout-details-note p {
    margin: 6px 0 0;
    color: #ececef;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
    white-space: pre-wrap;
}

.payout-details-footer {
    display: flex;
    margin-top: 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.payout-details-footer small,
.payout-details-footer strong {
    display: block;
}

.payout-details-footer small {
    color: #8e8e98;
    font-size: 10px;
}

.payout-details-footer strong {
    margin-top: 3px;
    font-size: 13px;
}

.payout-reviewed-badge {
    display: inline-flex;
    padding: 7px 10px;
    color: #bdf4dc;
    font-size: 9px;
    font-weight: 900;
    border: 1px solid rgba(53, 199, 138, 0.24);
    border-radius: 999px;
    background: rgba(53, 199, 138, 0.065);
    white-space: nowrap;
}

.payout-submit-panel {
    width: min(760px, 100%);
    padding: 36px 28px 28px;
}

.payout-submit-heading {
    padding-inline-end: 42px;
}

.payout-submit-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 27px;
}

.payout-submit-heading p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--payout-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
}

.payout-submit-form {
    margin-top: 21px;
}

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

.payout-submit-full {
    grid-column: 1 / -1;
}

.payout-submit-form label > span b {
    color: var(--payout-accent);
}

.payout-submit-form textarea {
    min-height: 108px;
    resize: vertical;
}

.payout-file-field input[type="file"] {
    min-height: 88px;
    padding: 22px 14px;
    border-style: dashed;
    cursor: pointer;
}

.payout-file-field em {
    color: #84848e;
    font-size: 10px;
    font-style: normal;
    line-height: 1.7;
}

.payout-declaration {
    margin-top: 17px;
    padding: 13px;
    flex-direction: row !important;
    align-items: flex-start;
    border: 1px solid var(--payout-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.payout-declaration input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    padding: 0;
    border: 0;
    accent-color: var(--payout-accent);
}

.payout-declaration span {
    color: #c5c5cb !important;
    font-size: 10.5px !important;
    line-height: 1.8;
}

.payout-turnstile {
    margin-top: 14px;
}

.payout-submit-button {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    color: #0b0b0c;
    font-size: 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f0cf68, var(--payout-accent));
}

.payout-trap {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

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

@media (max-width: 980px) {
    .payout-gallery {
        column-count: 3;
    }

    .payout-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payout-filters > button {
        grid-column: 1 / -1;
    }

    .payout-details-panel {
        grid-template-columns: 1fr;
    }

    .payout-details-gallery {
        min-height: 350px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--payout-border);
    }
}

@media (max-width: 720px) {
    .payout-page {
        padding: 20px 10px 54px;
    }

    .payout-hero {
        padding: 29px 16px;
        border-radius: 22px;
    }

    .payout-hero h1 {
        font-size: 29px;
    }

    .payout-submit-open {
        min-height: 52px;
        font-size: 14px;
    }

    .payout-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payout-filter-card {
        padding: 13px;
        border-radius: 18px;
    }

    .payout-filter-heading {
        align-items: flex-start;
    }

    .payout-filter-heading div {
        flex-direction: column;
        gap: 2px;
    }

    .payout-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .payout-filters select {
        min-height: 43px;
        padding-inline: 8px;
        font-size: 10.5px;
    }

    .payout-gallery {
        column-count: 2;
        column-gap: 9px;
        margin-top: 14px;
    }

    .payout-image-card {
        margin-bottom: 9px;
        border-radius: 14px;
    }

    .payout-modal {
        padding: 8px;
    }

    .payout-modal-panel {
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .payout-modal-close {
        top: 9px;
        width: 36px;
        height: 36px;
        margin: 9px 0 -45px 9px;
    }

    .payout-details-gallery {
        min-height: 280px;
        padding: 28px 12px 14px;
    }

    .payout-details-gallery > img {
        max-height: 54vh;
    }

    .payout-details-content {
        padding: 25px 18px 20px;
    }

    .payout-company-heading h2 {
        font-size: 21px;
    }

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

    .payout-submit-panel {
        padding: 29px 16px 18px;
    }

    .payout-submit-heading h2 {
        font-size: 23px;
    }

    .payout-submit-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payout-submit-full {
        grid-column: auto;
    }
}

@media (max-width: 380px) {
    .payout-page {
        padding-inline: 7px;
    }

    .payout-hero h1 {
        font-size: 25px;
    }

    .payout-filters label > span {
        font-size: 9.5px;
    }

    .payout-filters select {
        font-size: 9.5px;
    }
}

/* =========================================================
   V2 — modal layering, compact sizing, and site consistency
========================================================= */
.payout-hero {
    padding: clamp(28px, 5vw, 52px);
    border-radius: 26px;
}

.payout-hero h1 {
    max-width: 780px;
    font-size: clamp(28px, 4.3vw, 46px);
    line-height: 1.25;
}

.payout-hero p {
    max-width: 690px;
    font-size: clamp(12px, 1.4vw, 15px);
    line-height: 2;
}

.payout-filter-card {
    padding: 15px;
    border-radius: 18px;
}

/* The header and its toast can reach z-index 999999. */
.payout-modal {
    z-index: 1100000;
    padding: clamp(10px, 2vw, 22px);
    overflow: hidden;
    isolation: isolate;
}

.payout-modal-panel {
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    max-height: calc(100vh - 44px);
    max-height: calc(100dvh - 44px);
}

.payout-modal-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.payout-modal-close {
    position: absolute;
    z-index: 10;
    top: 12px;
    left: 12px;
    float: none;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.payout-details-panel {
    width: min(820px, 100%);
}

.payout-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(290px, 0.96fr);
}

.payout-details-gallery {
    min-height: 420px;
    padding: 30px 18px 18px;
}

.payout-details-gallery > img {
    max-height: 58vh;
    max-height: 58dvh;
}

.payout-details-content {
    padding: 38px 24px 24px;
}

.payout-company-heading h2 {
    font-size: 23px;
}

.payout-details-amount strong {
    font-size: clamp(30px, 4vw, 42px);
}

.payout-submit-panel {
    width: min(700px, 100%);
    padding: 0;
}

.payout-submit-scroll {
    padding: 32px 24px 24px;
}

.payout-submit-heading h2 {
    font-size: 25px;
}

/* Author styles set labels to flex, so hidden needs an explicit override. */
#payout-other-type-wrap[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .payout-details-layout {
        grid-template-columns: 1fr;
    }

    .payout-details-gallery {
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .payout-hero {
        padding: 26px 18px;
        border-radius: 21px;
    }

    .payout-hero h1 {
        font-size: 27px;
    }

    .payout-hero p {
        font-size: 12px;
    }

    .payout-modal {
        padding: 8px;
    }

    .payout-modal-panel {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .payout-modal-close {
        top: 9px;
        left: 9px;
        margin: 0;
    }

    .payout-details-gallery {
        min-height: 250px;
        padding: 28px 12px 14px;
    }

    .payout-details-gallery > img {
        max-height: 48vh;
        max-height: 48dvh;
    }

    .payout-details-content {
        padding: 24px 16px 18px;
    }

    .payout-submit-scroll {
        padding: 28px 16px 18px;
    }

    .payout-submit-heading h2 {
        font-size: 23px;
    }
}

@media (max-width: 380px) {
    .payout-hero h1 {
        font-size: 25px;
    }
}
