:root {
    --wp-blue: #0677f7;
    --wp-blue-strong: #084fdb;
    --wp-blue-medium: #0638b1;
    --wp-blue-dark: #052686;
    --wp-blue-deep: #051c5a;
    --wp-cyan: #22abf8;
    --wp-light: #62c8fa;
    --wp-glow: #abeafd;
}

/* Keep every native slider visible on the blue WPeek surfaces. Some browser
   themes render the default thumb almost black, including on the trainer and
   cursor-volume controls. */
body input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    height: 18px;
    padding: 0;
    background: transparent;
    accent-color: var(--wp-blue);
    cursor: pointer;
}

body input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border: 1px solid rgba(98,200,250, .42);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wp-blue), var(--wp-cyan));
    box-shadow: inset 0 1px 2px rgba(0,10,38, .6), 0 0 10px rgba(6,119,247, .2);
}

body input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 3px solid #e9f8ff;
    border-radius: 50%;
    background: var(--wp-blue);
    box-shadow: 0 0 0 2px rgba(2,14,48, .95), 0 0 13px rgba(34,171,248, .85);
}

body input[type="range"]::-moz-range-track {
    height: 6px;
    border: 1px solid rgba(98,200,250, .42);
    border-radius: 999px;
    background: rgba(8,39,99, .86);
}

body input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wp-blue), var(--wp-cyan));
}

body input[type="range"]::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 3px solid #e9f8ff;
    border-radius: 50%;
    background: var(--wp-blue);
    box-shadow: 0 0 0 2px rgba(2,14,48, .95), 0 0 13px rgba(34,171,248, .85);
}

/* User-management modal: prevent the inherited green Piva panel from
   appearing in the WarriorsPeek administration area. */
body.admin-page .user-edit-dialog {
    background: radial-gradient(circle at 92% 0, rgba(6,119,247, .16), transparent 37%), #030a19;
    border-color: rgba(34,171,248, .62);
    box-shadow: 0 30px 80px rgba(0,0,0, .72), 0 0 34px rgba(6,119,247, .14);
}

body.admin-page .user-edit-dialog .users-kicker { color: var(--wp-cyan); }
body.admin-page .user-edit-dialog h2 { color: #f3fbff; }
body.admin-page .user-edit-close {
    border-color: rgba(98,200,250, .32);
    background: #071a3e;
    color: #e9f8ff;
}

body.admin-page .user-edit-grid label { color: #9ab7cd; }
body.admin-page .user-edit-grid input {
    border-color: rgba(98,200,250, .28);
    background: #020816;
    color: #f3fbff;
}

body.admin-page .user-edit-grid input:focus {
    border-color: var(--wp-cyan);
    box-shadow: 0 0 0 3px rgba(34,171,248, .12);
    outline: 0;
}

body.admin-page .user-edit-submit {
    background: linear-gradient(135deg, var(--wp-blue), var(--wp-cyan));
    color: #020816;
}

body.wpeek-context {
    --accent: var(--wp-blue) !important;
    --accent-2: var(--wp-blue-strong) !important;
    background:
        radial-gradient(circle at 8% 7%, rgba(6,119,247, .14), transparent 31rem),
        radial-gradient(circle at 92% 32%, rgba(34,171,248, .08), transparent 38rem),
        #02050d;
}

body.wpeek-context::before {
    background-image: linear-gradient(rgba(98,200,250, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(98,200,250, .025) 1px, transparent 1px);
    background-size: 46px 46px;
}

.wpeek-context .public-header.cosmetic-theme-original {
    background: linear-gradient(180deg, rgba(2,7,20, .97), rgba(2,7,20, .82));
    border-bottom-color: rgba(98,200,250, .14);
    box-shadow: 0 18px 60px rgba(0,35,105, .22);
}

/* The free WPeek theme must read as equipped, not as the neutral header. */
.wpeek-context .public-header.cosmetic-theme-base-core {
    --accent: var(--wp-blue);
    --accent-2: var(--wp-cyan);
    background:
        linear-gradient(90deg, transparent 0 11%, rgba(34,171,248, .055) 11.1%, transparent 11.2% 88.8%, rgba(34,171,248, .055) 88.9%, transparent 89%),
        repeating-linear-gradient(90deg, transparent 0 91px, rgba(98,200,250, .045) 92px 93px),
        radial-gradient(ellipse 48% 130% at 50% -32%, rgba(6,119,247, .38), transparent 68%),
        linear-gradient(180deg, rgba(3,18,47, .99), rgba(2,8,22, .97));
    border-bottom-color: rgba(34,171,248, .52);
    box-shadow: inset 0 -1px rgba(98,200,250, .12), 0 18px 60px rgba(0,55,155, .3);
}

.wpeek-context .public-header.cosmetic-theme-base-core::before {
    inset: 0;
    height: auto;
    opacity: .82;
    background:
        linear-gradient(90deg, transparent 4%, rgba(34,171,248, .7), transparent 42%) top / 100% 1px no-repeat,
        linear-gradient(105deg, transparent 35%, rgba(171,234,253, .12) 48%, transparent 61%) -120% 0 / 55% 100% no-repeat;
    animation: wpeek-essential-scan 5.8s ease-in-out infinite;
}

.wpeek-context .public-header.cosmetic-theme-base-core .public-nav-links {
    border-color: rgba(34,171,248, .28);
    background: linear-gradient(180deg, rgba(4,24,58, .75), rgba(2,10,27, .82));
    box-shadow: inset 0 0 24px rgba(6,119,247, .08), 0 10px 34px rgba(0,29,90, .24);
}

.wpeek-context .public-header.cosmetic-theme-base-core .public-nav-icon {
    border-color: rgba(34,171,248, .34);
    color: var(--wp-light);
    background: rgba(6,119,247, .1);
    box-shadow: inset 0 0 14px rgba(34,171,248, .08);
}

.wpeek-context .public-header.cosmetic-theme-base-core .public-nav-item.active {
    border-color: rgba(98,200,250, .7);
    background: linear-gradient(145deg, rgba(6,119,247, .3), rgba(5,28,90, .28));
    box-shadow: inset 0 0 22px rgba(34,171,248, .13), 0 0 22px rgba(6,119,247, .14);
}

@keyframes wpeek-essential-scan {
    0%, 18% { background-position: 0 0, -120% 0; }
    72%, 100% { background-position: 0 0, 310% 0; }
}

.wpeek-context .public-brand-mark {
    width: 74px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.wpeek-context .public-brand-mark img {
    width: 74px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 13px rgba(34,171,248, .55));
    transform: none;
}

.wpeek-context .public-nav-item.active,
.wpeek-context .public-nav-item:hover {
    border-color: rgba(98,200,250, .48);
    background: linear-gradient(135deg, rgba(6,119,247, .2), rgba(5,28,90, .22));
    box-shadow: inset 0 0 24px rgba(6,119,247, .08), 0 0 22px rgba(6,119,247, .1);
}

.wpeek-context .hero {
    min-height: min(860px, 88vh);
    background:
        linear-gradient(90deg, rgba(1,4,12, .97) 0%, rgba(2,8,24, .82) 31%, rgba(3,18,53, .22) 60%, rgba(1,5,16, .04) 100%),
        linear-gradient(0deg, #02050d 0%, transparent 25%),
        var(--hero-image) center top / cover no-repeat !important;
}

.wpeek-context .hero::before {
    background: radial-gradient(circle, rgba(6,119,247, .2), transparent 68%);
}

/* End the hero on exactly the same base as the partner section below it. */
.wpeek-context .hero::after {
    background: linear-gradient(180deg, transparent, #02050d);
}

.wpeek-context .hero-copy {
    max-width: 690px;
}

/* WarriorsPeek's supplied motion background; the existing image is fallback. */
.wpeek-context .hero.hero-with-video { isolation: isolate; }
.wpeek-context .hero-background-video {
    position: absolute; inset: 0; z-index: 0;
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    opacity: 1; pointer-events: none; transition: opacity .5s ease;
}
.wpeek-context .hero-video-shade {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #01040c70 0%, #02081845 32%, transparent 64%),
        linear-gradient(0deg, #02050d, transparent 24%);
    opacity: 0; transition: opacity .5s ease;
}
.wpeek-context .hero-video-playing .hero-background-video,
.wpeek-context .hero-video-playing .hero-video-shade { opacity: 1; }
.wpeek-context .hero-with-video::before,
.wpeek-context .hero-with-video::after,
.wpeek-context .hero-with-video .hero-grid-overlay { z-index: 1; }
.wpeek-context .hero-with-video .hero-scroll { z-index: 2; }
.wpeek-context .hero-video-toggle {
    position: absolute; right: 24px; bottom: 26px; z-index: 3;
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid #ffffff38; border-radius: 50%;
    background: #02050db3; color: #fff; font-size: 18px; line-height: 1;
    cursor: pointer; transition: background .2s, border-color .2s;
}
.wpeek-context .hero-video-toggle[hidden] { display: none; }
.wpeek-context .hero-video-toggle:hover { background: #0677f760; border-color: #62c8fa; }
.wpeek-context .hero-video-toggle:focus-visible { outline: 2px solid #62c8fa; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    .wpeek-context .hero-background-video,
    .wpeek-context .hero-video-shade,
    .wpeek-context .hero-video-toggle { transition: none; }
}

.wpeek-context .hero h1 {
    max-width: 720px;
    color: #fff;
    text-shadow: 0 0 34px rgba(6,119,247, .26);
}

.wpeek-context .hero h1::after {
    background: linear-gradient(90deg, var(--wp-blue), var(--wp-cyan), transparent);
    box-shadow: 0 0 22px rgba(34,171,248, .55);
}

.wpeek-context .live-pill,
.wpeek-context .raffle-eyebrow,
.wpeek-context .eyebrow {
    color: var(--wp-light);
}

.wpeek-context .partner-banner {
    display: none;
}

.wpeek-context .wpeek-partner-banner {
    position: relative;
    z-index: 4;
    padding: clamp(28px, 4vw, 58px) 0 clamp(42px, 5vw, 72px);
    border: 0;
    background: transparent;
}

.wpeek-context .wpeek-partner-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 22px);
    align-items: stretch;
}

.wpeek-context .wpeek-partner-banner .wpeek-partner-banner-link {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    transition: transform .2s ease;
}

.wpeek-context .wpeek-partner-banner a.wpeek-partner-banner-link:hover {
    transform: translateY(-2px);
}

.wpeek-context .wpeek-partner-banner-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wpeek-context .announcement {
    border-color: rgba(98,200,250, .18);
    background: linear-gradient(90deg, rgba(5,28,90, .62), rgba(6,119,247, .1), rgba(5,28,90, .62));
}

.wpeek-context .section-heading h2 span,
.wpeek-context .loyalty-home-head h2 span,
.wpeek-context .vip-home-head h2 span,
.wpeek-context em {
    color: var(--wp-cyan);
}

.wpeek-context button:not([disabled]),
.wpeek-context .raffle-primary,
.wpeek-context .google-button,
.wpeek-context [class*="primary"] {
    --button-accent: var(--wp-blue);
}

.wpeek-context .site-footer,
.wpeek-context .raffle-footer {
    border-top-color: rgba(98,200,250, .14);
    background: #020611;
}

.wpeek-context .footer-brand img,
.wpeek-context .raffle-footer-logo,
.wpeek-context .login-logo img {
    width: 104px;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(34,171,248, .45));
}

.wpeek-context .pivazk-coin {
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(34,171,248, .55));
}

/* Mantém a moeda WP proporcional mesmo nos componentes que não possuem uma
   classe própria para o ícone. O arquivo é grande para continuar nítido, mas
   nunca deve usar suas dimensões naturais dentro da interface. */
.wpeek-context img[src*="assets/images/rewards/pivazk-coin-v1.png"] {
    display: inline-block;
    width: var(--wpeek-point-icon-size, 19px) !important;
    min-width: var(--wpeek-point-icon-size, 19px) !important;
    max-width: var(--wpeek-point-icon-size, 19px) !important;
    height: var(--wpeek-point-icon-size, 19px) !important;
    max-height: var(--wpeek-point-icon-size, 19px) !important;
    flex: 0 0 var(--wpeek-point-icon-size, 19px) !important;
    border-radius: 50%;
    object-fit: contain;
    vertical-align: middle;
}

.wpeek-context .loyalty-home .points-value img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 26px;
}

.wpeek-context .loyalty-home-showcase > aside img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 18px;
}

.wpeek-context .rewards-wallet-card .wallet-points img[src*="pivazk-coin-v1.png"],
.wpeek-context .rewards-wallet-card .wallet-card-balance img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 58px;
}

.wpeek-context .store-balance img[src*="pivazk-coin-v1.png"],
.wpeek-context .reward-checkout-product img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 24px;
}

/* Shared value cards keep the store, upgrader and inventory proportional. */
.wpeek-context .points-balance > b.points-value > img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 25px;
}
@media (max-width: 820px) {
    .wpeek-context .points-balance > b.points-value > img[src*="pivazk-coin-v1.png"] {
        --wpeek-point-icon-size: 20px;
    }
}

.wpeek-context .lootbox-prizes-list img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 27px;
}

.wpeek-context .reveal-wheel-item img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 40px;
}

.wpeek-context .reveal-result-prize img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 96px;
}

.wpeek-context .redemption-media > img[src*="pivazk-coin-v1.png"] {
    --wpeek-point-icon-size: 58px;
}

@media (max-width: 650px) {
    .wpeek-context .rewards-wallet-card .wallet-points img[src*="pivazk-coin-v1.png"],
    .wpeek-context .rewards-wallet-card .wallet-card-balance img[src*="pivazk-coin-v1.png"] {
        --wpeek-point-icon-size: 58px;
    }

    .wpeek-context .reveal-wheel-item img[src*="pivazk-coin-v1.png"] {
        --wpeek-point-icon-size: 30px;
    }
}

.wpeek-context .login-card {
    background: linear-gradient(145deg, rgba(7,18,39, .98), rgba(2,7,18, .98));
    border-color: rgba(98,200,250, .2);
    box-shadow: 0 40px 100px rgba(0,18,65, .38), inset 0 1px rgba(171,234,253, .04);
}

/* O seletor de skins usa a identidade azul do WPeek; no CSS compartilhado,
   a paleta padrão permanece verde para o PivaZK. */
.wpeek-context .cursor-custom-modal {
    --cursor-modal-accent: var(--wp-cyan);
    --cursor-modal-accent-soft: rgba(6,119,247, .14);
    --cursor-modal-border: rgba(98,200,250, .48);
    --cursor-modal-bg: #020713;
    --cursor-modal-header: #040b1b;
    --cursor-modal-body: #020611;
    --cursor-modal-footer: #030918;
    --cursor-modal-field: #050d20;
    --cursor-modal-field-border: rgba(98,200,250, .25);
    --cursor-modal-muted: #8394ad;
    box-shadow: 0 35px 110px rgba(0,10,40, .86), 0 0 60px rgba(6,119,247, .13);
}

.wpeek-context .cursor-custom-modal::backdrop {
    background: rgba(0,3,12, .86);
}

.wpeek-context .cursor-custom-modal footer button {
    color: #fff;
    background: linear-gradient(135deg, var(--wp-blue), var(--wp-cyan));
    border-color: rgba(171,234,253, .72);
    box-shadow: 0 10px 26px rgba(6,119,247, .2);
}

.wpeek-context .cursor-custom-results > button.is-current::after {
    color: #fff;
}

.wpeek-context .login-logo img {
    border: 0;
    border-radius: 0;
}

.wpeek-context input:focus,
.wpeek-context select:focus,
.wpeek-context textarea:focus,
.wpeek-context button:focus-visible,
.wpeek-context a:focus-visible {
    outline-color: var(--wp-cyan);
}

@media (max-width: 860px) {
    .wpeek-context .public-menu-toggle {
        position: absolute !important;
        z-index: 4;
        top: 12px;
        right: 12px;
        display: grid !important;
        width: 46px;
        height: 46px;
        place-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        color: #fff;
        background: rgba(6,119,247, .12);
        border: 1px solid rgba(98,200,250, .34);
        box-shadow: 0 0 22px rgba(6,119,247, .12);
    }

    .wpeek-context .hero {
        min-height: 810px;
        background:
            linear-gradient(180deg, rgba(2,5,14, .02) 0%, rgba(2,5,14, .12) 32%, rgba(2,5,14, .9) 58%, #02050d 96%),
            var(--hero-image) 66% 0 / auto 76% no-repeat,
            #02050d !important;
    }

    .wpeek-context .hero-content {
        min-height: 810px;
        align-items: end;
        padding-top: 300px;
        padding-bottom: 54px;
    }

    .wpeek-context .hero-copy {
        padding: 22px;
        border: 1px solid rgba(98,200,250, .16);
        border-radius: 22px;
        background: rgba(2,7,20, .74);
        backdrop-filter: blur(12px);
    }

    .wpeek-context .wpeek-partner-banner {
        padding: 22px 0 34px;
    }

    .wpeek-context .wpeek-partner-banner-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
