*,
*::before,
*::after {
    box-sizing: border-box;
}

.plc-wa-actions {
    --wa-bg: #081b28;
    --wa-card: #102f43;
    --wa-card-2: #173e55;
    --wa-line: rgba(255, 255, 255, .10);
    --wa-text: #f5f9fc;
    --wa-muted: #a8bfcd;
    --wa-blue: #3d86cc;
    --wa-green: #2dcc8d;
    --wa-red: #f16f78;
    --wa-yellow: #f4c761;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 10px;
    color: var(--wa-text);
    background:
        radial-gradient(circle at 50% 0%, rgba(61, 134, 204, .15), transparent 45%),
        linear-gradient(180deg, #17384c, #091d2a);
    border-radius: 24px;
    font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.plc-wa-topbar {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.plc-wa-back,
.plc-wa-profile {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--wa-line);
    border-radius: 15px;
    color: var(--wa-text);
    background: rgba(7, 24, 35, .78);
    text-decoration: none;
}

.plc-wa-back {
    padding: 0 0 5px;
    font: inherit;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.plc-wa-site-logo {
    min-width: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 6px 12px;
    border: 1px solid var(--wa-line);
    border-radius: 15px;
    color: var(--wa-text);
    background: rgba(7, 24, 35, .78);
    text-decoration: none;
    overflow: hidden;
}

.plc-wa-site-logo-image {
    display: block;
    max-width: 100%;
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.plc-wa-logo-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    color: #071f16;
    background: var(--wa-green);
    font-size: 11px;
    font-weight: 950;
}

.plc-wa-site-logo strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.plc-wa-profile {
    overflow: hidden;
}

.plc-wa-profile-avatar {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.plc-wa-page-heading {
    padding: 8px 3px 9px;
}

.plc-wa-page-heading h1 {
    margin: 0;
    color: var(--wa-text);
    font-size: 24px;
    line-height: 1;
}

.plc-wa-balance-card {
    min-height: 126px;
    display: grid;
    align-content: center;
    padding: 16px;
    border: 1px solid var(--wa-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% 20%, rgba(45, 204, 141, .16), transparent 40%),
        rgba(7, 24, 35, .76);
}

.plc-wa-balance-card > span {
    color: var(--wa-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plc-wa-balance-card > strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: clamp(30px, 9vw, 43px);
    line-height: 1;
}

.plc-wa-balance-card > small {
    display: block;
    margin-top: 10px;
    color: var(--wa-muted);
    font-size: 11px;
}

.plc-wa-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 10px;
}

.plc-wa-action {
    min-height: 106px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-content: center;
    padding: 13px;
    border: 1px solid var(--wa-line);
    border-radius: 16px;
    color: var(--wa-text);
    background: rgba(7, 24, 35, .70);
    text-decoration: none;
}

.plc-wa-action > span {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 25px;
    font-weight: 700;
}

.plc-wa-action-topup > span {
    color: #082218;
    background: var(--wa-green);
}

.plc-wa-action-withdraw > span {
    color: #fff;
    background: var(--wa-blue);
}

.plc-wa-action strong {
    align-self: end;
    font-size: 17px;
}

.plc-wa-action small {
    align-self: start;
    margin-top: 3px;
    color: var(--wa-muted);
    font-size: 10px;
}

.plc-wa-action.is-disabled {
    opacity: .55;
}

.plc-wa-panel {
    padding: 13px;
    margin-top: 10px;
    border: 1px solid var(--wa-line);
    border-radius: 16px;
    background: rgba(15, 47, 65, .84);
}

.plc-wa-panel-title small,
.plc-wa-bonus small {
    display: block;
    color: var(--wa-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plc-wa-panel-title h2 {
    margin: 3px 0 0;
    color: var(--wa-text);
    font-size: 18px;
}

.plc-wa-request-list,
.plc-wa-history-list {
    display: grid;
    gap: 7px;
    margin-top: 11px;
}

.plc-wa-request-list article,
.plc-wa-history-list article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px;
    border: 1px solid var(--wa-line);
    border-radius: 12px;
    background: rgba(5, 22, 31, .66);
}

.plc-wa-kind {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 20px;
    font-weight: 800;
}

.plc-wa-kind.is-topup {
    color: #082218;
    background: var(--wa-green);
}

.plc-wa-kind.is-withdraw {
    color: #fff;
    background: var(--wa-blue);
}

.plc-wa-request-list strong,
.plc-wa-history-list strong {
    display: block;
    font-size: 12px;
}

.plc-wa-request-list small,
.plc-wa-history-list small {
    display: block;
    margin-top: 3px;
    color: var(--wa-muted);
    font-size: 9px;
    line-height: 1.35;
}

.status-pending,
.status-approved,
.status-payment_failed,
.status-paid,
.status-rejected,
.status-cancelled,
.status-returned {
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 9px;
    white-space: nowrap;
}

.status-pending {
    color: #251c05;
    background: var(--wa-yellow);
}

.status-approved {
    color: #fff;
    background: var(--wa-blue);
}

.status-payment_failed,
.status-rejected {
    color: #fff;
    background: var(--wa-red);
}

.status-paid {
    color: #052218;
    background: var(--wa-green);
}

.status-cancelled,
.status-returned {
    color: #fff;
    background: #728692;
}

.plc-wa-bonus {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 10px;
    align-items: center;
    padding: 13px;
    margin-top: 10px;
    border: 1px solid rgba(244, 199, 97, .34);
    border-radius: 16px;
    color: var(--wa-text);
    background: rgba(244, 199, 97, .09);
    text-decoration: none;
}

.plc-wa-bonus > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #271e04;
    background: var(--wa-yellow);
    font-size: 21px;
}

.plc-wa-bonus strong {
    display: block;
    margin-top: 3px;
    font-size: 15px;
}

.plc-wa-bonus p {
    margin: 3px 0 0;
    color: var(--wa-muted);
    font-size: 10px;
}

.plc-wa-bonus > b {
    font-size: 28px;
}

.plc-wa-empty {
    padding: 12px;
    margin-top: 10px;
    border-radius: 12px;
    color: var(--wa-muted);
    background: rgba(5, 22, 31, .55);
    font-size: 11px;
}

.plc-wa-login {
    padding: 16px;
    border: 1px solid var(--wa-line);
    border-radius: 16px;
    background: rgba(7, 24, 35, .74);
}

.plc-wa-login p {
    margin: 0 0 10px;
}

.plc-wa-login a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    color: #fff;
    background: var(--wa-blue);
    text-decoration: none;
    font-weight: 900;
}

.plc-wa-history {
    margin-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 420px) {
    .plc-wa-actions {
        border-radius: 0;
    }

    .plc-wa-topbar {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 7px;
    }

    .plc-wa-back,
    .plc-wa-profile {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .plc-wa-site-logo {
        height: 48px;
        padding-inline: 8px;
        border-radius: 13px;
    }

    .plc-wa-profile-avatar {
        width: 38px;
        height: 38px;
    }

    .plc-wa-action {
        min-height: 96px;
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 10px;
    }

    .plc-wa-action > span {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .plc-wa-action strong {
        font-size: 15px;
    }

    .plc-wa-request-list article,
    .plc-wa-history-list article {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 8px;
    }

    .plc-wa-kind {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

@media (max-width: 350px) {
    .plc-wa-action-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.1.1 — remove legacy wallet page title and injected wallet interface */
.plc-wallet-dashboard-page .entry-title,
.plc-wallet-dashboard-page .page-title,
.plc-wallet-dashboard-page .wp-block-post-title,
.plc-wallet-dashboard-page main > header.entry-header,
.plc-wallet-dashboard-page article > header.entry-header {
    display: none !important;
}

.plc-wallet-dashboard-page [data-plc-legacy-wallet-removed="1"] {
    display: none !important;
}


/* v1.1.2 — dedicated wallet page template */
.plc-wallet-forced-template {
    width: 100%;
    min-height: 70vh;
    margin: 0;
    padding: 0;
}

.plc-wallet-forced-template > .plc-wa-actions {
    margin-top: 0;
}

/* Hide any legacy wallet UI that another plugin appends outside the forced template. */
.plc-wallet-dashboard-page body > .playcoins-wallet,
.plc-wallet-dashboard-page body > .plc-wallet-wrap,
.plc-wallet-dashboard-page body > [class*="playcoins-wallet"],
.plc-wallet-dashboard-page body > [id*="playcoins-wallet"] {
    display: none !important;
}
