:root {
    --bg: #0f1117;
    --card: #14151b;
    --soft: #0f1218;
    --muted: #9aa0a6;
    --text: #fff;
    --accent: #4effff;
    --ring: rgba(78, 255, 255, .25);
    --ok: #27ae60;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4)
}

.tensura-membership * {
    box-sizing: border-box
}

.tensura-membership img {
    max-width: 100%;
    display: block
}

.tensura-membership a {
    color: inherit;
    text-decoration: none
}

.tensura-membership button {
    font: inherit;
    font-weight: 800
}

.tensura-membership {
    color: var(--text);
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
}

.tensura-membership::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(15, 17, 23, .90), rgba(15, 17, 23, .90)),
        url("https://r1.ilikewallpaper.net/iphone-wallpapers/download-114309/170-Rimuru-Tempest-ideas-in-2021_640.jpg") center/cover no-repeat
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .12s ease, border-color .2s ease;
    font-family: 'Poppins', sans-serif
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .25)
}

.btn.primary {
    background: var(--accent);
    color: #000;
    border-color: transparent
}

.btn.block {
    width: 100%;
    justify-content: center
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .8rem;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04)
}

header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(6px);
    background: linear-gradient(180deg, rgba(15, 17, 23, .9), rgba(15, 17, 23, .6));
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    opacity: 0
}

.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0
}

.site-brand {
    font-weight: 700
}

.site-nav {
    display: flex;
    gap: 8px
}

.hero {
    padding: 15px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.hero-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr
}

@media(min-width:900px) {
    .hero-grid {
        grid-template-columns: 1.2fr .8fr;
        align-items: center
    }

    .hero {
        padding: 45px 0 10px
    }
}

.hero h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    margin: 0 0 8px;
    letter-spacing: .2px;
    text-align: center
}

.hero p {
    color: var(--muted);
    margin: 0 0 16px
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.hero-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow)
}

.statline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.statline .pill {
    background: #12131a;
    border-color: #232634
}

.section {
    padding: 24px 0
}

.section h2 {
    font-size: 1.2rem;
    margin: 0 0 12px;
    letter-spacing: .2px
}

.sub {
    color: var(--muted);
    margin: 0 0 16px
}

.benefits {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, minmax(0, 1fr))
}

@media(min-width:620px) {
    .benefits {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:900px) {
    .benefits {
        grid-template-columns: repeat(3, 1fr)
    }
}

.benefit {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow)
}

.benefit h3 {
    margin: 6px 0 6px;
    font-size: 1rem
}

.benefit p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem
}

.badge {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--soft);
    border: 1px solid rgba(255, 255, 255, .06)
}

.pricing {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, minmax(0, 1fr))
}

@media(min-width:900px) {
    .pricing {
        grid-template-columns: repeat(2, 1fr)
    }
}

.plan {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative
}

.plan .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.plan .title {
    font-weight: 700;
    font-size: 20px
}

.plan .title.basic {
    background: linear-gradient(270deg, #a855f7, #c084fc, #e9d5ff, #a855f7);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lilacShift 12s linear infinite;
    text-shadow: 0 0 6px rgba(192, 132, 252, .6), 0 0 12px rgba(233, 213, 255, .5)
}

.plan .title.premium {
    background: linear-gradient(270deg, #84cc16, #a3e635, #d9f99d, #84cc16);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: oliveShift 12s linear infinite;
    text-shadow: 0 0 6px rgba(163, 230, 53, .6), 0 0 12px rgba(217, 249, 157, .5)
}

.plan .price {
    font-size: 1.6rem;
    font-weight: 700
}

.price small {
    font-size: .9rem;
    color: var(--muted);
    font-weight: 600
}

.plan ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px
}

.plan li {
    position: relative;
    padding-left: 1.25rem;
    color: #d8dee9;
    line-height: 1.45;
    display: block
}

.plan li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55)
}

.plan.pop {
    outline: 2px solid var(--accent)
}

.plan.pop .ribbon {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: .75rem;
    padding: 4px 8px;
    border-radius: 999px
}

.compare {
    width: 100%;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: var(--card)
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: left
}

thead th {
    background: var(--soft);
    position: sticky;
    top: 0
}

.yes {
    color: var(--ok);
    font-weight: 700
}

.muted {
    color: var(--muted)
}

.faq {
    display: grid;
    gap: 10px
}

.qa {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden
}

.q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer
}

.q:hover {
    background: #10131a
}

.a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    padding: 0 14px
}

.a.open {
    padding: 12px 14px;
    max-height: 300px
}

footer.site {
    padding: 24px 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--ring)
}

#tensura-overlay {
    padding: 16px
}

#tensura-overlay .tm-modal {
    width: min(92vw, 420px);
    max-height: 90vh;
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: auto
}

#tensura-overlay .tm-meta {
    color: var(--muted);
    font-size: .9rem;
    text-align: center
}

#tensura-overlay .tm-qr {
    width: 220px;
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4)
}

#tensura-overlay .tm-input {
    min-width: 240px;
    max-width: 320px;
    padding: 10px 16px;
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none
}

#tensura-overlay .tm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none
}

@media (max-width: 380px) {
    #tensura-overlay .tm-actions {
        grid-template-columns: 1fr
    }
}

#tensura-overlay .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes utrShake {
    0% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-4px)
    }

    50% {
        transform: translateX(4px)
    }

    75% {
        transform: translateX(-3px)
    }

    100% {
        transform: translateX(0)
    }
}

.loader {
    max-width: fit-content;
    color: rgb(242, 255, 240);
    font-size: 1.6rem;
    font-family: Poppins, sans-serif;
    position: relative;
    font-style: regular;
    font-weight: 600
}

.loader span {
    animation: cut 2s infinite;
    transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275)
}

.loader:hover {
    color: #fcffdf
}

.loader::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background-color: #7cb4ea91;
    top: 0px;
    filter: blur(10px);
    animation: scan 2s infinite;
    left: 0;
    z-index: 0;
    transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275)
}

.loader::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 5px;
    border-radius: 4px;
    background-color: #7cb4ea;
    top: 0px;
    animation: scan 2s infinite;
    left: 0;
    z-index: 1;
    filter: opacity(0.9);
    transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275)
}

@keyframes scan {
    0% {
        top: 0px
    }

    25% {
        top: 35px
    }

    50% {
        top: 0px
    }

    75% {
        top: 35px
    }
}

@keyframes cut {
    0% {
        clip-path: inset(0 0 0 0)
    }

    25% {
        clip-path: inset(100% 0 0 0)
    }

    50% {
        clip-path: inset(0 0 100% 0)
    }

    75% {
        clip-path: inset(0 0 0 0)
    }
}

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(1, minmax(0, 1fr))
}

@media(min-width:560px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:920px) {
    .grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.pack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.pack .ribbon {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 999px
}

.pack .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.pack .coins {
    font-weight: 700;
    font-size: 1.05rem
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: 10px
}

.pack .price {
    font-size: 1.6rem;
    font-weight: 700
}

.pack .price s {
    opacity: .7;
    font-size: 1rem
}

.pack .save-pill {
    display: none;
    background: rgba(78, 255, 255, .15);
    color: #b7ffff;
    border: 1px solid rgba(78, 255, 255, .35);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700
}

body.testing .pack .save-pill {
    display: inline-block
}

.pack .perks {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0
}

.pack .perks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #d8dee9
}

.pack .perks .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    margin-top: .55rem
}

.qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    border-radius: 12px;
    padding: 8px 10px
}

.qty .label {
    color: var(--muted);
    font-size: .9rem
}

.stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    overflow: hidden
}

.stepper button {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 6px 10px;
    cursor: pointer
}

.stepper input {
    width: 48px;
    text-align: center;
    border: 0;
    background: transparent;
    color: #fff;
    outline: none
}

#role.premium {
    background: linear-gradient(270deg, #84cc16, #a3e635, #d9f99d, #84cc16);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: oliveShift 12s linear infinite;
    text-shadow: 0 0 6px rgba(163, 230, 53, .6), 0 0 12px rgba(217, 249, 157, .5)
}

@keyframes oliveShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

#role.basic {
    background: linear-gradient(270deg, #a855f7, #c084fc, #e9d5ff, #a855f7);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lilacShift 12s linear infinite;
    text-shadow: 0 0 6px rgba(192, 132, 252, .6), 0 0 12px rgba(233, 213, 255, .5)
}

@keyframes lilacShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(78, 255, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(78, 255, 255, 0.4);
    text-shadow: 0 0 6px rgba(78, 255, 255, 0.5);
    transition: all 0.2s ease
}

.preview-link:hover {
    background: var(--accent);
    color: #000;
    text-shadow: none;
    transform: translateY(-2px)
}

/* New scoped plan design */
.tensura-membership .tm-plans-grid {
    display: grid;
    gap: 20px
}

@media (min-width: 850px) {
    .tensura-membership .tm-plans-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.tensura-membership .tm-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--card, #14151b);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    will-change: transform, box-shadow
}

.tensura-membership .tm-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55)
}

.tensura-membership .tm-plan.tm-basic {
    background: radial-gradient(circle at 12% 0%, rgb(168 85 247/ 8%), transparent 60%), var(--card, #14151b)
}

.tensura-membership .tm-plan.tm-pro {
    border: 1px solid rgba(163, 230, 53, .35);
    background: radial-gradient(circle at 12% 0%, rgba(163, 230, 53, .08), transparent 60%), var(--card, #14151b);
    box-shadow: 0 0 0 1px rgba(163, 230, 53, .15), 0 10px 30px rgba(0, 0, 0, .6)
}

.tensura-membership .tm-ribbon {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent-pro, #a3e635);
    color: #000;
    font-weight: 800;
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35)
}

.tensura-membership .tm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.tensura-membership .tm-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .2px;
    line-height: 1.1
}

.tensura-membership .tm-title.tm-basic {
    background: linear-gradient(90deg, #a855f7, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(192, 132, 252, .35), 0 0 12px rgba(233, 213, 255, .25)
}

.tensura-membership .tm-title.tm-pro {
    background: linear-gradient(90deg, #84cc16, #a3e635, #bef264);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(163, 230, 53, .35), 0 0 12px rgba(190, 242, 100, .25)
}

.tensura-membership .tm-price {
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap
}

.tensura-membership .tm-price span {
    display: block;
    color: var(--muted, #9aa0a6);
    font-size: .9rem;
    font-weight: 600
}

.tensura-membership .tm-features {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 10px
}

.tensura-membership .tm-features li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #d8dee9;
    line-height: 1.45
}

.tensura-membership .tm-features li::before {
    content: "•";
    color: var(--accent, #4effff);
    opacity: .7;
    margin-right: 2px
}

.tensura-membership .tm-features .tm-muted {
    color: var(--muted, #9aa0a6);
    font-size: .9rem
}

.tensura-membership .tm-cta {
    margin-top: auto;
    display: grid;
    gap: 10px
}

.tensura-membership .btn.tm-pro {
    background: var(--accent-pro, #a3e635);
    border-color: transparent;
    color: #000
}

.tensura-membership .tm-fine {
    font-size: .9rem;
    color: var(--muted, #9aa0a6);
    text-align: center
}

.tensura-membership .tm-plan :where(button, a):focus-visible {
    outline: 2px solid var(--accent, #4effff);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(78, 255, 255, .25);
    border-radius: 10px
}

@media (max-width: 600px) {
    .tensura-membership .tm-plan {
        padding: 20px
    }

    .tensura-membership .tm-price {
        font-size: 1.5rem
    }
}

@media (prefers-reduced-motion: reduce) {
    .tensura-membership .tm-plan {
        transition: none
    }

    .tensura-membership .tm-plan:hover {
        transform: none;
        box-shadow: 0 6px 24px rgba(0, 0, 0, .4)
    }
}

.tensura-membership .btn.btn-orbs {
    border-color: rgba(78, 255, 255, .7);
    box-shadow: 0 0 18px rgba(78, 255, 255, .35);
}

.tensura-membership .btn.btn-orbs:hover {
    background: var(--accent);
    color: #000;
}

.tensura-membership .orb-nav-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.tensura-membership .orb-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tensura-membership .orb-heading-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(78, 255, 255, .4), rgba(78, 255, 255, .1));
    box-shadow: 0 0 14px rgba(78, 255, 255, .6);
}

.tensura-membership .orb-heading-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.tensura-membership .orb-sub {
    margin-top: 6px;
}

.tensura-membership .pack.orb-pack {
    position: relative;
    overflow: visible;
    border-color: rgba(78, 255, 255, .4);
    background:radial-gradient(circle at 12% 0%, rgba(78, 255, 255, .08), transparent 60%), var(--card, #14151b);
    box-shadow:
        0 0 0 1px rgba(78, 255, 255, .2),
        0 16px 34px rgba(0, 0, 0, .85);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tensura-membership .pack.orb-pack:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(78, 255, 255, .3),
        0 22px 40px rgba(0, 0, 0, .95);
}

.tensura-membership .orb-pack-orb {
    position: absolute;
    top: -10px;
    right: -6px;
    width: 84px;
    height: 84px;
    pointer-events: none;
}

.tensura-membership .orb-pack-orb-glow {
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(78, 255, 255, .9), rgba(78, 255, 255, .1));
    filter: blur(6px);
    opacity: .8;
    animation: orbPulse 3s ease-in-out infinite;
}

.tensura-membership .orb-pack-orb-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(78, 255, 255, .9));
}

@keyframes orbPulse {
    0% {
        transform: scale(0.9);
        opacity: .6;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: .6;
    }
}