/*
 * Satyr PMC - design ported from https://satyr-pmc.plasmic.run/
 * Values (positions, colours, fonts, tokens) are taken from the Plasmic export in /plasmic-export.
 * Plasmic lays every page out on a 7-column grid whose 4th column is 800px wide and centred;
 * absolutely positioned children use that centre column as their containing block, so the
 * left/top values below match the Plasmic canvas exactly.
 */

:root {
    --pl-gold: #E0C083;
    --pl-gold-2: #DCBB70;
    --pl-dark: #2E2E2E;
    --pl-text-light: #EFF6FF;
    --pl-card-text: #C8C8C8;
    --pl-panel-grey: #7B7B7B;
    --pl-panel-dark: #333333;
    --pl-radius-xs: .125rem;
    --pl-radius-sm: .25rem;
    --pl-radius-md: .375rem;
    --pl-radius-lg: 1.5rem;
    --pl-radius-xl: 1.75rem;
}

/* ---------- Base / reset (mirrors Plasmic's .__wab defaults, overrides Bootstrap) ---------- */

body:has(.pl-wrapper) { margin: 0; background: #212121; min-width: 1400px; }

.pl-wrapper {
    display: flex;
    width: 100%;
    min-width: 1400px;
    min-height: 100vh;
    align-items: stretch;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    text-align: left;
}

.pl-wrapper *, .pl-wrapper *::before, .pl-wrapper *::after { box-sizing: border-box; }
.pl-wrapper h1, .pl-wrapper h2, .pl-wrapper h3, .pl-wrapper p { margin: 0; }
.pl-wrapper a { color: inherit; text-decoration: none; }
.pl-wrapper img { display: block; }

.pl-page {
    display: grid;
    position: relative;
    width: 100%;
    min-width: 1400px;
    align-content: flex-start;
    justify-items: center;
    grid-template-columns:
        16px 1fr minmax(0, 224px)
        min(800px, calc(100% - 32px))
        minmax(0, 224px) 1fr 16px;
}

.pl-page > * { grid-column: 4; }
.pl-page > .pl-full { grid-column: 1 / -1; }
.pl-abs { position: absolute; }

/* ---------- Plasmic button (textured nav button, component "jzF4I") ---------- */

.pl-btn {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 94px;
    min-width: .5rem;
    height: 34px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background:
        url(/plasmic/button-texture.png) 0 0 / contain repeat padding-box border-box,
        linear-gradient(0deg, #4B4B4B, #5E5E5E);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    cursor: pointer;
    transition: all 1s ease-in;
}

.pl-btn-texture,
.pl-btn-overlay {
    position: absolute;
    inset: 0;
    display: block;
}

.pl-btn-texture { background: url(/plasmic/button-texture.png) 0 0 / cover; }

.pl-btn-overlay {
    border-radius: var(--pl-radius-md);
    background: url(/plasmic/button-overlay.png) center / cover repeat;
    transition: all 1s;
}

.pl-btn:hover .pl-btn-overlay { background: #0000001A; }
.pl-btn:active .pl-btn-overlay { background: #00000033; }
.pl-btn:focus-visible { outline: .125rem solid #2563EB; outline-offset: 1px; }

.pl-btn-label {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: var(--pl-radius-md) .625rem;
    color: var(--pl-text-light);
    font-family: "Michroma", sans-serif;
    text-align: center;
    text-transform: uppercase;
    white-space: pre-wrap;
}

.pl-btn-13 .pl-btn-label { font-size: 13px; }
.pl-btn-12 .pl-btn-label { font-size: 12px; }

/* ---------- Plasmic dark button (component "e9ISa", used for Search) ---------- */

.pl-dark-btn {
    position: relative;
    display: flex;
    min-width: .5rem;
    padding: 0;
    border: 0;
    border-radius: var(--pl-radius-md);
    background: #000000D9;
    color: var(--pl-text-light);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
}

.pl-dark-btn::before {
    position: absolute;
    inset: 0;
    border-radius: var(--pl-radius-md);
    content: '';
}

.pl-dark-btn:hover::before { background: #0000001A; }
.pl-dark-btn:active::before { background: #00000033; }
.pl-dark-btn:disabled { cursor: not-allowed; }
.pl-dark-btn:disabled::before { background: #FFFFFF40; }
.pl-dark-btn:focus-visible { outline: .125rem solid #2563EB; outline-offset: 1px; }

.pl-dark-btn > span {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: .375rem .625rem;
    white-space: pre;
}

/* ---------- Plasmic text input (component "iTgqP") ---------- */

.pl-input {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: var(--pl-radius-md) .625rem;
    border: 0;
    border-radius: var(--pl-radius-md);
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 1px #D1D5DB;
    color: #030712;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.25;
}

.pl-input:focus { outline: .125rem solid #2563EB; outline-offset: 1px; }

/* =====================================================================
   Marketing pages: home (/), store (/new-page), about (/new-page-2)
   ===================================================================== */

.pl-marketing {
    min-height: max(100vh, 840px);
    border: var(--pl-radius-md) solid var(--pl-gold);
    outline: thick solid var(--pl-dark);
    background: linear-gradient(0deg, var(--pl-dark) 0%, #212121 100%);
    box-shadow: 0 4px 16px 0 var(--pl-dark);
}

.pl-marketing.pl-marketing-store { min-height: max(100vh, 960px); }
.pl-marketing.pl-marketing-about { min-height: 100vh; padding-bottom: 64px; }

.pl-banner {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 133px;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #5F5F5F, #484848);
}

.pl-banner > img {
    width: 1426px;
    height: 133px;
    flex-shrink: 0;
    object-fit: fill;
}

.pl-banner-logo-hit {
    position: absolute;
    left: 50%;
    top: 6px;
    z-index: 1;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.pl-banner-logo-hit:focus-visible { outline: none; }

.pl-site-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    height: 34px;
    margin-top: 5px;
    padding: 0;
    outline: thick solid var(--pl-gold-2);
    background: linear-gradient(0deg, #4B4B4B, #8E8E8E);
}

.pl-site-nav.pl-site-nav-spaced { gap: 5px; }

/* Side cards (career opportunities + latest news) */

.pl-card {
    position: absolute;
    width: 215px;
    height: 283px;
    max-width: 100%;
    padding: 0;
    border-radius: var(--pl-radius-xs);
    background: #373737;
    color: var(--pl-card-text);
}

.pl-card-career { left: 856px; top: 198px; }
.pl-card-news { left: 858px; top: 498px; }

.pl-card-head {
    position: absolute;
    left: 6px;
    top: 9px;
    width: 202px;
    height: 46px;
    border-radius: var(--pl-radius-sm);
    background:
        radial-gradient(ellipse 100% 92% at 50% 100%, #333 39%, #393939 46%) 0 0 / cover no-repeat,
        linear-gradient(0deg, #3B3B3B 48%, #4E4E4E 57%) 0 0 / cover,
        linear-gradient(0deg, var(--pl-dark) 0%, #141414 9%, #3E3E3E 100%);
    box-shadow: 0 4px 16px 0 var(--pl-dark);
    pointer-events: none;
}

.pl-card-career .pl-card-head { height: 66px; }

.pl-card-title {
    position: absolute;
    left: 3px;
    top: 4px;
    width: 131px;
    height: 31px;
    max-width: 100%;
    color: var(--pl-card-text);
    font-family: "Radio Canada", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    white-space: pre-wrap;
}

.pl-card-career .pl-card-title { width: 192px; height: 63px; text-align: left; }

.pl-card-date {
    position: absolute;
    left: -33px;
    top: 29px;
    width: 131px;
    height: 25px;
    color: var(--pl-card-text);
    font-family: "Recursive", sans-serif;
    font-size: 9px;
    text-align: center;
}

.pl-card-body {
    position: absolute;
    left: 6px;
    top: 61px;
    width: 202px;
    height: 213px;
    border-radius: var(--pl-radius-sm);
    background: linear-gradient(0deg, #1E1E1E, #616161);
    box-shadow: 0 4px 16px 0 var(--pl-dark);
    pointer-events: none;
}

.pl-card-body p {
    position: absolute;
    left: 5px;
    top: 2px;
    width: 195px;
    height: 206px;
    overflow: hidden;
    color: var(--pl-card-text);
    font-family: "Radio Canada", sans-serif;
    font-size: 9px;
    line-height: 1.5;
}

.pl-card-image {
    position: absolute;
    left: 11px;
    top: 84px;
    width: 190px;
    max-width: 100%;
    height: auto;
    border-radius: var(--pl-radius-md);
    box-shadow: 0 4px 16px 0 var(--pl-dark);
    object-fit: cover;
}

a.pl-card:focus-visible { outline: 2px solid var(--pl-gold-2); outline-offset: 2px; }

/* Store product panel */

.pl-product {
    position: absolute;
    left: 133px;
    top: 259px;
    width: 556px;
    height: 656px;
    padding: 0 8px 0 0;
    outline: thick solid var(--pl-gold-2);
    background: #37373780;
}

.pl-product-frame {
    position: absolute;
    left: 64px;
    top: 35px;
    width: 420px;
    height: 310px;
    border-radius: var(--pl-radius-sm);
    background: #585858;
    box-shadow: 0 4px 16px 0 var(--pl-dark);
}

.pl-product-image {
    position: absolute;
    left: 1px;
    top: 9px;
    width: 409px;
    height: 296px;
    background: url(/plasmic/plush.png) 0 0 / 100% 100%;
}

.pl-product-info {
    position: absolute;
    left: 62px;
    top: 365px;
    width: 334px;
    height: 184px;
    border-radius: var(--pl-radius-sm);
    background: #585858;
    box-shadow: 0 4px 16px 0 var(--pl-dark);
    color: #D7D7D7;
}

.pl-product-name {
    position: absolute;
    left: 13px;
    top: 6px;
    width: 278px;
    height: 40px;
    font-family: "Michroma", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
}

.pl-product-copy {
    position: absolute;
    left: 14px;
    top: 51px;
    width: 278px;
    height: 60px;
    font-family: "Martian Mono", monospace;
    font-size: 9px;
    line-height: 1.5;
}

.pl-product-price {
    position: absolute;
    left: 14px;
    top: 109px;
    width: 185px;
    height: 25px;
    font-family: "Michroma", sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

.pl-product-buy { position: absolute; left: 16px; top: 140px; }

.pl-buy-note {
    position: absolute;
    left: 120px;
    top: 146px;
    font-family: "Martian Mono", monospace;
    font-size: 10px;
    color: var(--pl-gold-2);
}

/* About page inside marketing frame (/new-page-2) */

.pl-about-wrap {
    width: 100%;
    margin-top: 48px;
    display: grid;
    gap: 20px;
    color: var(--pl-card-text);
}

.pl-about-hero {
    padding: 28px;
    outline: thick solid var(--pl-gold-2);
    background: #37373780;
}

.pl-about-hero h1 {
    color: var(--pl-gold);
    font-family: "Michroma", sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.pl-about-hero p {
    color: var(--pl-card-text);
    font-family: "Radio Canada", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.pl-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pl-about-card {
    padding: 20px;
    border-radius: var(--pl-radius-sm);
    background: linear-gradient(0deg, #272727, #3E3E3E);
    box-shadow: 0 4px 16px 0 var(--pl-dark);
}

.pl-about-card span {
    display: block;
    color: var(--pl-gold-2);
    font-family: "Michroma", sans-serif;
    font-size: 11px;
    margin-bottom: 6px;
}

.pl-about-card h2 {
    color: #fff;
    font-family: "Radio Canada", sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
}

.pl-about-card p {
    font-family: "Radio Canada", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.pl-about-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pl-about-cta {
    margin-top: 0;
    display: inline-flex;
    width: auto;
    padding: 0 18px;
}

/* =====================================================================
   Workspace pages: upload dashboard (/satyr-2) and search (/satyr-3)
   ===================================================================== */

.pl-workspace {
    min-height: max(100vh, 1030px);
    background: #242424;
    box-shadow: 0 4px 16px #0003;
}

.pl-workspace-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    height: 324px;
    padding: 0;
    background: url(/plasmic/workspace-banner.png) left 30% top 0% / cover;
    container-type: inline-size;
}

.pl-workspace-logo-hit {
    position: absolute;
    left: 3.05cqi;
    top: 1.48cqi;
    z-index: 1;
    width: 14.06cqi;
    height: 14.06cqi;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.pl-workspace-logo-hit:focus-visible { outline: none; }

.pl-workspace-bar {
    position: absolute;
    left: 0;
    top: 266px;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 58px;
    background: #5C5C5CA1;
}

.pl-workspace-links {
    position: absolute;
    left: calc(50% + 183px);
    top: 11px;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 20px;
}

.pl-workspace-links > a,
.pl-workspace-links > .pl-workspace-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #000000D9;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
    cursor: pointer;
}

.pl-workspace-links > a:hover,
.pl-workspace-links > .pl-workspace-link-btn:hover { color: #000; text-decoration: underline; }
.pl-workspace-links > a.active { color: #000; font-weight: 600; }
.pl-workspace-links > .pl-dark-btn { align-self: flex-start; width: 100px; }

/* Grey panels (#7b7b7b) holding the old widget iframes - top 365, bottom 40 */
.pl-panel {
    position: absolute;
    top: 365px;
    bottom: 40px;
    padding: 0;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-panel-grey);
}

.pl-panel-earnings { left: -273px; width: 420px; }
.pl-panel-aars { left: 185px; width: 540px; }
.pl-panel-upload { left: 762px; width: 322px; }
.pl-panel-search { left: -273px; width: 1349px; }

.pl-search-results {
    position: absolute;
    left: 28px;
    top: 30px;
    width: 864px;
    height: 564px;
    max-width: 100%;
    overflow: auto;
    padding: 24px 28px;
    border-radius: var(--pl-radius-xl);
    background: var(--pl-panel-dark);
}

.pl-search-box {
    position: absolute;
    left: 921px;
    top: 30px;
    width: 397px;
    height: 171px;
    max-width: 100%;
    border-radius: var(--pl-radius-xl);
    background: var(--pl-panel-dark);
}

.pl-search-box .pl-input { position: absolute; left: 26px; top: 47px; width: 348px; }
.pl-search-box .pl-dark-btn { position: absolute; left: 54px; top: 91px; width: 290px; }

/* Content that replaces the old widget iframes (widget panel styles from the old site) */
.pl-widget {
    position: absolute;
    inset: 44px 8px 8px;
    overflow: auto;
    color: #F5F5F5;
    font: 14px/1.4 Arial, sans-serif;
}

.pl-widget-full { inset: 8px; }
.pl-widget h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.pl-widget h3 { margin: 12px 0 6px; font-size: 15px; }
.pl-widget p { margin: 6px 0; }
.pl-widget label { display: block; margin: 6px 0 4px; }
.pl-widget :is(input, button, select):not(.pl-dx *) { max-width: 100%; font: inherit; }
.pl-widget :is(input:not([type=file]), select):not(.pl-dx *) {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #FFFFFF4D;
    border-radius: 4px;
    background: #1F1F1F;
    color: #F5F5F5;
}
.pl-widget input[type=file] { width: 100%; color: #F5F5F5; }
.pl-widget button:not(.pl-dx *) {
    margin-top: 8px;
    padding: 5px 12px;
    border: 1px solid #FFFFFF4D;
    border-radius: 4px;
    background: #1B1B1B;
    color: #EFF6FF;
    cursor: pointer;
}
.pl-widget button:not(.pl-dx *):hover:not(:disabled) { background: #0D0D0D; border-color: var(--pl-gold-2); }
.pl-widget button:not(.pl-dx *):disabled { opacity: .5; cursor: not-allowed; }
.pl-widget table:not(.pl-dx *) { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; }
.pl-widget :is(th, td):not(.pl-dx *) { padding: 4px 6px; border: 1px solid #FFFFFF4D; text-align: left; vertical-align: top; }
.pl-widget th:not(.pl-dx *) { background: #0003; }
.pl-widget td.num, .pl-widget th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pl-widget ol, .pl-widget ul { margin: 0; padding-left: 38px; }
.pl-stat-box > .pl-widget { inset: 46px 12px 10px; }
.pl-widget li { overflow-wrap: anywhere; }
.pl-widget a { color: #F5F5F5; text-decoration: underline; text-decoration-color: #FFFFFF66; }
.pl-widget a:hover { text-decoration-color: #F5F5F5; }
.pl-widget .pl-muted { color: #E0E0E0; opacity: .8; }
.pl-widget .pl-notice { margin-top: 8px; padding: 6px 8px; border-left: 3px solid; }
.pl-widget .pl-notice-ok { border-color: #B4E07A; background: #0002; }
.pl-widget .pl-notice-error { border-color: #FF8A80; background: #0002; }
.pl-widget .pl-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.pl-widget .pl-kv > div { padding: 8px; border: 1px solid #FFFFFF4D; background: #0002; }
.pl-widget .pl-kv strong { display: block; font-size: 20px; }

.pl-search-results h2 { margin: 0 0 10px; color: var(--pl-gold-2); font-family: "Michroma", sans-serif; font-size: 18px; }
.pl-search-results h2 span { color: #BDBDBD; font-family: "Inter", sans-serif; font-size: 14px; }
.pl-search-results section + section { margin-top: 22px; }
.pl-search-empty { display: grid; height: 100%; place-items: center; color: #BDBDBD; font-family: "Michroma", sans-serif; font-size: 18px; }

.pl-result-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 6px;
    border-bottom: 1px solid #FFFFFF1F;
    color: #F5F5F5;
}

a.pl-result-row:hover { background: #FFFFFF0D; }
.pl-result-row > span:first-child { min-width: 40px; color: var(--pl-gold-2); font: 11px "Michroma", sans-serif; }
.pl-result-row strong { display: block; font-weight: 600; }
.pl-result-row small { color: #BDBDBD; }
.pl-result-row time { margin-left: auto; color: #BDBDBD; font-size: 13px; }

/* =====================================================================
   Stats page (/shit-ass-team-yolo-retards)
   ===================================================================== */

.pl-stats {
    min-height: 3992px;
    align-content: flex-start;
    border: medium solid var(--pl-gold);
    background: var(--pl-panel-dark);
}

.pl-stats-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    max-height: 624px;
    height: auto;
    object-fit: cover;
}

.pl-stats-home-btn {
    position: absolute;
    left: -275px;
    top: 24px;
    z-index: 5;
    min-width: 110px;
    height: 38px;
}

/* =====================================================================
   Plasmic Login Popup Modal
   ===================================================================== */

.pl-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: #00000080;
    backdrop-filter: blur(2px);
}

.pl-modal-backdrop.open {
    display: flex;
}

.pl-modal {
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--pl-radius-xl);
    background: #232320;
    box-shadow: 0 24px 48px -12px #00000080;
    color: #F5F5F5;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
}

.pl-modal-heading {
    width: 100%;
    margin: 0;
    padding: 20px 24px;
    color: #F5F5F5;
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.pl-modal-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 10px;
    padding: 18px 24px 20px;
    background: #292929;
    box-shadow: inset 0 4px 16px 0 #00000033;
}

.pl-modal-label {
    margin: 0;
    color: #C5C5C5;
    font-family: "Radio Canada", sans-serif;
    font-size: 20px;
    line-height: 1.3;
}

.pl-modal-error {
    padding: 8px 10px;
    border-left: 3px solid #FF8A80;
    border-radius: 4px;
    background: #00000040;
    color: #FFB4AB;
    font-size: 13px;
}

.pl-modal-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    width: 100%;
    padding: 16px 24px 14px;
}

.pl-modal-footer form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pl-modal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 8px;
    width: 268px;
    max-width: 100%;
    padding: 8px 18px;
    border: 0;
    border-radius: 9999px;
    background: #DCFCE7;
    color: #14532D;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease;
}

.pl-modal-submit:hover {
    filter: brightness(0.95);
}

.pl-modal-logout {
    background: #FEE2E2;
    color: #7F1D1D;
}

.pl-modal-hint {
    color: #86EFAC;
    font-family: "Radio Canada", sans-serif;
    font-size: 11px;
    font-weight: 400;
    text-align: center;
}

.pl-stats-subtitle {
    position: absolute;
    left: -321px;
    top: 195px;
    width: 1441px;
    height: 60px;
    color: var(--pl-text-light);
    font-family: "Michroma", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.pl-stats-sheet {
    position: absolute;
    left: -275px;
    width: 1350px;
    top: 616px;
    bottom: 47px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-panel-grey);
}

.pl-stat-box {
    position: absolute;
    z-index: 1;
    padding: 0;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-panel-dark);
}

.pl-stat-box > h1 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 12px;
    border-top-left-radius: var(--pl-radius-lg);
    border-top-right-radius: var(--pl-radius-lg);
    background: #0A0A0A80;
    color: var(--pl-gold-2);
    font-family: "Inter", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: center;
}

.pl-stat-upload   { left: 113px;  top: 710px;  width: 574.5px; height: 235px; }
.pl-stat-matches  { left: -208px; top: 978px;  width: 360.5px; height: 200px; }
.pl-stat-players  { left: 220px;  top: 978px;  width: 360.5px; height: 200px; }
.pl-stat-tags     { left: 647px;  top: 978px;  width: 360.5px; height: 200px; }
.pl-stat-compare  { left: -210px; top: 1245px; width: 574.5px; height: 1000px; }
.pl-stat-units    { left: 433px;  top: 1245px; width: 574.5px; height: 1000px; }
.pl-stat-ranking  { left: -208px; top: 2370.375px; width: 1216px; height: 1000px; }

.pl-stats-figure {
    position: absolute;
    left: 164px;
    top: 3480px;
    width: 423px;
    max-width: 100%;
    height: 472px;
    object-fit: cover;
}

.pl-compare-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
/* DevExpress controls (marked .pl-dx) inside widgets; the legacy widget rules above skip them */
.pl-widget .pl-dx-grid { height: 100%; font-size: 13px; }
.pl-widget-stack { display: flex; flex-direction: column; gap: 6px; }
.pl-widget-stack > .pl-dx-grid { flex: 1; min-height: 0; height: auto; }
.pl-compare-win { color: #B4E07A; font-weight: 700; }

/* Player profile & progression page (/player/{key}) */
.pl-profile-page {
    min-height: 100vh;
    padding-bottom: 48px;
}

.pl-profile-nav {
    position: absolute;
    left: -275px;
    top: 24px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.pl-profile-nav .pl-stats-home-btn {
    position: static;
    width: auto;
    min-width: 110px;
    padding: 0 8px;
}

.pl-profile-sheet {
    position: relative;
    z-index: 1;
    width: 1350px;
    margin: 310px auto 0;
    margin-left: -275px;
    padding: 28px 34px 34px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-panel-grey);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pl-profile-sheet-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pl-wrapper a.pl-profile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #FFFFFF4D;
    border-radius: 4px;
    background: #1B1B1B;
    color: #FFFFFF;
    font-family: "Michroma", sans-serif;
    font-size: 12px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pl-wrapper a.pl-profile-back-btn:hover {
    background: #0D0D0D;
    border-color: var(--pl-gold-2);
    color: #DCBB70;
}

.pl-wrapper a.pl-profile-back-btn:focus-visible {
    outline: 2px solid var(--pl-gold-2);
    outline-offset: 2px;
}

.pl-profile-page .pl-stat-box {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pl-profile-page .pl-stat-box > h1 {
    position: relative;
    left: auto;
    top: auto;
}

.pl-profile-page .pl-stat-box > .pl-widget {
    position: relative;
    inset: auto;
    padding: 14px 18px 18px;
    overflow: visible;
}

.pl-profile-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pl-profile-kv {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10px 0 4px;
}

.pl-profile-kv > div {
    padding: 10px 12px;
    border: 1px solid #FFFFFF4D;
    border-radius: 4px;
    background: #00000033;
}

.pl-profile-kv span {
    display: block;
    color: #C8C8C8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pl-profile-kv strong {
    display: block;
    margin-top: 2px;
    color: var(--pl-gold-2);
    font-size: 22px;
}

.pl-profile-kv small {
    display: block;
    margin-top: 2px;
    color: #D0D0D0;
    font-size: 11px;
}

.pl-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.pl-profile-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #DCBB7080;
    border-radius: 4px;
    background: #1B1B1B;
    color: var(--pl-gold-2);
    font-weight: 700;
}

.pl-profile-chart-wrap {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #FFFFFF33;
    border-radius: 6px;
    background: #232323;
}

.pl-profile-delta-pos { color: #B4E07A; font-weight: 700; }
.pl-profile-delta-neg { color: #FF8A80; font-weight: 700; }
.pl-profile-scroll { max-height: 460px; overflow: auto; }

/* Fixed bottom-right "Made by Satyr" Discord badge */

.pl-made-by {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    column-gap: 8px;
    padding: 4px 10px 4px 6px;
    border: 1px solid rgba(224, 192, 131, 0.35);
    border-radius: 6px;
    background: linear-gradient(135deg, #25262E 0%, #1F1F24 100%);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.pl-made-by:hover {
    transform: translateY(-1px);
    border-color: rgba(114, 137, 218, 0.75);
    background: linear-gradient(135deg, #2A2C38 0%, #23242B 100%);
    box-shadow: 0 8px 24px -4px rgba(88, 101, 242, 0.4);
    color: #FFFFFF;
}

.pl-made-by:active { transform: translateY(0); }
.pl-made-by:focus-visible { outline: 2px solid var(--pl-gold); outline-offset: 2px; }

.pl-made-by-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: linear-gradient(135deg, #6370FF 0%, #4752C4 100%);
    color: #FFFFFF;
    flex-shrink: 0;
}

.pl-made-by .pl-made-underline {
    color: var(--pl-gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =====================================================================
   Discord Community Links
   ===================================================================== */

.pl-discord-icon {
    display: block;
    flex-shrink: 0;
}

.pl-wrapper a.pl-inline-discord {
    color: #BAC3FF;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(186, 195, 255, 0.55);
    text-underline-offset: 2px;
    transition: color .15s ease, text-decoration-color .15s ease;
}

.pl-wrapper a.pl-inline-discord:hover {
    color: #FFFFFF;
    text-decoration-color: #FFFFFF;
}

.pl-wrapper .pl-widget a.pl-inline-discord {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    background: #4752C4;
    color: #FFFFFF;
    font-size: 11.5px;
    text-decoration: none;
    transition: background .15s ease;
}

.pl-wrapper .pl-widget a.pl-inline-discord:hover {
    background: #5865F2;
    color: #FFFFFF;
}

.pl-wrapper a.pl-modal-discord {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9AA6FF;
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(154, 166, 255, 0.45);
    text-underline-offset: 2px;
    transition: color .15s ease;
}

.pl-wrapper a.pl-modal-discord:hover {
    color: #FFFFFF;
}

.pl-wrapper a.pl-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--pl-radius-xs);
    background: #5865F2;
    color: #FFFFFF;
    font-family: "Radio Canada", "Inter", sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.pl-wrapper a.pl-discord-btn:hover {
    background: #4752C4;
    border-color: rgba(255, 255, 255, 0.28);
}

.pl-wrapper a.pl-discord-btn:focus-visible {
    outline: 2px solid var(--pl-gold);
    outline-offset: 2px;
}

.pl-wrapper a.pl-discord-btn-compact {
    height: 34px;
    padding: 0 16px;
    font-family: "Michroma", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

