/* ============================================================
   Plans — BEACON layout (unique: side orb + slash + arrow CTA)
   Not the old badge/stats-box/pill-button design.
   ============================================================ */

html:has(body.rx-page-shop) {
    background: #000 !important;
}

body.rx-page-shop {
    background: #000 !important;
    color: #f2f4f8 !important;
}

body.rx-page-shop .gx-panel-waves { display: none !important; }

.shop-page {
    position: relative;
    z-index: 2;
    max-width: 430px;
    margin: 0 auto;
    padding: calc(var(--rx-header-h, 4.35rem) + var(--rx-header-gap, 12px)) 0.75rem calc(5.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

.gx-plan-grid {
    display: grid;
    gap: 16px;
    justify-items: stretch;
}

.pl-card,
.px-plan__rail { display: none !important; }

/* ——— Card: vertical hex VIP seal + body ——— */
.px-plan {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
    color: #f2f4f8;
    text-align: left;
    overflow: visible;
}

.px-plan__beacon {
    position: relative;
    z-index: 3;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 48px;
    height: auto;
    min-height: 78px;
    margin: 22px 0 22px 2px;
    padding: 12px 6px;
    /* hexagonal column — not a round pill */
    clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
    border-radius: 0;
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.35), transparent 42%),
        linear-gradient(165deg, #fbbf24 0%, #f59e0b 35%, #c084fc 100%);
    box-shadow:
        0 0 0 2px rgba(245, 158, 11, 0.35),
        0 10px 22px rgba(245, 158, 11, 0.3),
        0 6px 16px rgba(139, 92, 246, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #0a0a0c;
}

.px-plan__beacon-k {
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.88;
}

.px-plan__beacon-n {
    font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.px-plan__body {
    position: relative;
    z-index: 1;
    margin-left: -10px;
    padding: 14px 14px 14px 22px;
    border-radius: 6px 20px 20px 6px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 40%),
        linear-gradient(165deg, #1a1f2e 0%, #10131a 55%, #0c0e14 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow: hidden;
}

.px-plan__body::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #f59e0b, #8b5cf6, #34d399);
}

.px-plan__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 0;
    padding-left: 0;
}

.px-plan__site {
    min-width: 0;
    flex: 1;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #93c5fd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.px-plan__days {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(242, 244, 248, 0.7);
    margin-left: auto;
    text-align: right;
}

.px-plan__days i {
    color: #f59e0b;
    font-size: 0.62rem;
}

.px-plan__hero {
    position: relative;
    padding: 0;
}

/* Investment — compact arrow chip */
.px-plan__invest {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px 8px 12px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    background:
        linear-gradient(105deg, rgba(251, 191, 36, 0.18) 0%, rgba(139, 92, 246, 0.22) 55%, rgba(30, 36, 56, 0.95) 100%);
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.px-plan__invest::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #fbbf24, #c084fc);
}

.px-plan__invest-k {
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 244, 248, 0.5);
}

.px-plan__invest-v {
    font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
}

.px-plan__invest-v em {
    margin-right: 3px;
    font-style: normal;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fde68a;
    vertical-align: 0.45em;
}

/* Twin mini tiles — small chevron boxes */
.px-plan__pods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.px-plan__pod {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 0;
    padding: 8px 10px 8px 11px;
    overflow: hidden;
}

.px-plan__pod--daily {
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(18, 22, 32, 0.95));
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
    border: 0;
    border-radius: 0;
}

.px-plan__pod--total {
    clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
    background: linear-gradient(225deg, rgba(245, 158, 11, 0.2), rgba(18, 22, 32, 0.95));
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4);
    border: 0;
    border-radius: 0;
}

.px-plan__pod-ring {
    display: none;
}

.px-plan__pod-k {
    position: relative;
    z-index: 1;
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 244, 248, 0.48);
}

.px-plan__pod-v {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.px-plan__pod-v em {
    margin-right: 2px;
    font-style: normal;
    font-size: 0.45rem;
    font-weight: 800;
    color: rgba(242, 244, 248, 0.5);
}

.px-plan__pod--total .px-plan__pod-v {
    color: #fde68a;
}

/* Referral commission preview on each plan */
.px-plan__ref {
    margin-top: 2px;
    padding: 9px 10px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    background:
        linear-gradient(145deg, rgba(139, 92, 246, 0.16), rgba(18, 22, 32, 0.96));
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}

.px-plan__ref-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.px-plan__ref-head i {
    font-size: 0.7rem;
    color: #a78bfa;
}

.px-plan__ref-note {
    margin: 4px 0 7px;
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(242, 244, 248, 0.55);
    line-height: 1.35;
}

.px-plan__ref-note strong {
    color: #fde68a;
    font-weight: 800;
}

.px-plan__ref-levels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.px-plan__ref-levels li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-size: 0.62rem;
    font-weight: 700;
}

.px-plan__ref-lvl {
    color: rgba(242, 244, 248, 0.7);
}

.px-plan__ref-pct {
    color: #86efac;
}

.px-plan__ref-amt {
    color: #fde68a;
    font-weight: 800;
}

/* ——— Arrow-blade button (new shape, not pill/round) ——— */
body.rx-body.rx-page-shop button.px-plan__btn[type="submit"],
body.rx-page-shop .px-plan__btn,
.px-plan__btn {
    --px-btn-skew: 14px;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin: 4px 0 0;
    padding: 0 18px 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: polygon(
        0 0,
        calc(100% - var(--px-btn-skew)) 0,
        100% 50%,
        calc(100% - var(--px-btn-skew)) 100%,
        0 100%,
        8px 50%
    ) !important;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0a0a0c !important;
    background:
        linear-gradient(105deg, #fbbf24 0%, #f59e0b 35%, #c084fc 100%) !important;
    background-image:
        linear-gradient(105deg, #fbbf24 0%, #f59e0b 35%, #c084fc 100%) !important;
    box-shadow:
        0 8px 22px rgba(245, 158, 11, 0.28),
        0 4px 14px rgba(139, 92, 246, 0.22) !important;
    transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.px-plan__btn span {
    position: relative;
    z-index: 1;
}

.px-plan__btn i {
    position: relative;
    z-index: 1;
    font-size: 0.78rem !important;
    color: #0a0a0c !important;
    transition: transform 0.14s ease;
}

.px-plan__btn:hover i,
.px-plan__btn:focus-visible i {
    transform: translateX(3px);
}

.px-plan__btn:active {
    transform: scale(0.98);
    filter: brightness(1.05);
}

.gx-empty {
    padding: 22px;
    text-align: center;
    color: rgba(242, 244, 248, 0.75);
    font-weight: 700;
    background: linear-gradient(160deg, #1a1f2e 0%, #10131a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

@media (max-width: 360px) {
    .px-plan {
        grid-template-columns: 46px 1fr;
    }
    .px-plan__beacon {
        width: 42px;
        min-height: 70px;
    }
    .px-plan__invest-v {
        font-size: 1.35rem;
    }
}
