﻿/* ===============================
   GLOBAL / WRAPPERS
   =============================== */
.content-wrap {
    position: relative;
}

/* Full-bleed utility for any section with an image background */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    overflow: hidden;
}

    .full-bleed .jarallax-img,
    .full-bleed > .image > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

html, body {
    overflow-x: hidden;
}
/* prevent sideways scroll from full-bleed */

/* Make hero genuinely full-screen */
.youplay-banner.full.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Keep content readable below the fixed navbar */
.hero .container {
    padding-top: 96px;
    padding-bottom: 96px;
}

/* ===============================
   HERO (top banner)
   =============================== */
.hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 20% 40%, rgba(0,0,0,.55), rgba(0,0,0,.78));
    pointer-events: none;
}

.hero .info {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(36px,5vw,58px);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero-subtitle {
    font-size: clamp(16px,2.1vw,20px);
    color: rgba(255,255,255,.9);
    line-height: 1.65;
    margin: 0 0 26px;
    max-width: 720px;
}

/* ===============================
   CTAs (refined)
   =============================== */
.hero-ctas .btn {
    margin-right: 12px;
    margin-bottom: 12px;
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 12px;
    transition: all .25s ease;
}

/* Primary: subtle by default (outline), fills on hover */
.btn-primary {
    background: transparent;
    color: #fff;
    border: 2px solid #ff7a00;
    box-shadow: inset 0 0 0 0 #ff7a00;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: #ff7a00;
        color: #1b1b1b;
        border-color: #ff7a00;
        box-shadow: 0 0 18px rgba(255,122,0,.45);
    }

/* Secondary outline (white) */
.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

    .btn-outline:hover {
        background: #fff;
        color: #1b1b1b;
    }

/* Tertiary link */
.btn-link {
    color: #ddd;
}

    .btn-link:hover {
        color: #fff;
        text-decoration: underline;
    }

/* Translucent button used in footer */
.btn-translucent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

    .btn-translucent:hover {
        background: rgba(255,255,255,.18);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.25);
    }

/* Value badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

    .hero-badges li {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #eaeaea;
        font-size: 14px;
        opacity: .9;
        background: rgba(255,255,255,.08);
        padding: 6px 10px;
        border-radius: 10px;
        backdrop-filter: blur(4px);
    }

    .hero-badges i {
        font-size: 14px;
        color: #ffc066;
    }

/* ===============================
   KEY FEATURES cards
   =============================== */
.youplay-features .feature {
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 30px 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .5s ease forwards;
}

    .youplay-features .feature:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,.12);
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
    }

    .youplay-features .feature i {
        font-size: 48px;
        margin-bottom: 12px;
        color: #ff7a00;
        transition: transform .25s ease, color .25s ease, text-shadow .25s ease;
    }

    .youplay-features .feature:hover i {
        transform: scale(1.15) rotate(4deg);
        color: #ffc066;
        text-shadow: 0 0 14px rgba(255,122,0,.6);
    }

    .youplay-features .feature h3 {
        color: #fff;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .youplay-features .feature p {
        color: #ccc;
        line-height: 1.6;
    }

.youplay-features .col-sm-3:nth-child(2) .feature {
    animation-delay: .08s;
}

.youplay-features .col-sm-3:nth-child(3) .feature {
    animation-delay: .16s;
}

.youplay-features .col-sm-3:nth-child(4) .feature {
    animation-delay: .24s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ===============================
   FOOTER BANNER
   =============================== */
.footer-banner .info .container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer-banner h3 {
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 18px;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width:991px) {
    .hero .container {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media (max-width:575px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-badges {
        gap: 10px;
    }
}


/* ===============================
   DOWNLOAD PAGE
   =============================== */

/* Hero for download page reuses your overlay/look */
.dl-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, rgba(0,0,0,.6));
}

/* Heading + meta chips */
.dl-heading {
    color: #fff;
    text-align: center;
    margin: 40px 0 22px;
    font-weight: 800;
    letter-spacing: .4px;
}

.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

    .dl-meta li {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #eaeaea;
        font-size: 14px;
        opacity: .95;
        background: rgba(255,255,255,.1);
        padding: 6px 10px;
        border-radius: 10px;
        backdrop-filter: blur(3px);
    }

    .dl-meta i {
        color: #ffc066;
    }

/* Section wrapper */
.dl-section {
    padding: 40px 0 70px;
    background: linear-gradient(180deg, rgba(10,10,30,.95), rgba(10,10,30,.96));
}

/* Cards grid */
.dl-grid {
    margin-top: 10px;
    margin-bottom: 30px;
}

.dl-card {
    text-align: center;
    background: rgba(255,255,255,.06);
    border-radius: 18px;
    padding: 24px 18px;
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
    backdrop-filter: blur(6px);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

    .dl-card:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,.10);
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
    }

    .dl-card h3 {
        color: #fff;
        margin: 8px 0 6px;
        font-weight: 700;
        letter-spacing: .3px;
    }

.dl-card-sub {
    color: #cfcfcf;
    font-size: 14px;
    margin-bottom: 14px;
}

.dl-card-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .dl-card-icon i {
        font-size: 28px;
        color: #ffc066;
    }

/* Pill badges inside cards */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #eee;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 10px;
    margin: 4px 6px 10px;
    opacity: .9;
}

    .badge-pill i {
        font-size: 12px;
        color: #ffc066;
    }

/* Buttons block width */
.btn-block {
    display: block;
    width: 100%;
}

/* Checksums / Panels */
.dl-panel {
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
    color: #ddd;
}

.dl-checksums {
    display: grid;
    grid-template-columns: 100px 1fr;
    row-gap: 10px;
    column-gap: 16px;
    align-items: center;
}

    .dl-checksums span {
        color: #fff;
        font-weight: 700;
    }

    .dl-checksums code {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: rgba(0,0,0,.35);
        padding: 6px 10px;
        border-radius: 8px;
        color: #eaeaea;
    }

/* Steps */
.dl-steps {
    margin-top: 26px;
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 18px 22px;
    color: #e5e5e5;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
}

    .dl-steps h3 {
        color: #fff;
        font-weight: 700;
        margin: 0 0 10px;
    }

    .dl-steps ol {
        margin: 0 0 0 18px;
    }

    .dl-steps li {
        margin: 6px 0;
    }

/* Specs */
.dl-specs {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

    .dl-specs > div > span {
        display: block;
        color: #fff;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .dl-specs ul {
        padding-left: 18px;
        margin: 0;
    }

    .dl-specs li {
        margin: 4px 0;
        color: #ddd;
    }

/* Responsive */
@media (max-width: 991px) {
    .dl-specs {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   RULES & AGREEMENT PAGE
   =============================== */
.rules-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, rgba(0,0,0,.6));
}

.rules-wrap {
    background: linear-gradient(180deg, rgba(10,10,30,.96), rgba(10,10,30,.98));
    padding: 50px 0 80px;
}

.rules-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 10px 0 30px;
}

    .rules-toc a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 10px;
        color: #eaeaea;
        font-weight: 600;
        background: rgba(255,255,255,.08);
        text-decoration: none;
        transition: background .2s ease, transform .2s ease;
    }

        .rules-toc a:hover {
            background: rgba(255,255,255,.14);
            transform: translateY(-1px);
        }

    .rules-toc .rules-effective {
        margin-left: auto;
        color: #cfcfcf;
        font-size: 14px;
        opacity: .9;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

.rules-heading {
    color: #fff;
    font-weight: 800;
    letter-spacing: .4px;
    border-left: 4px solid #ff7a00;
    padding-left: 10px;
    margin-bottom: 16px;
}

.rules-panel {
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
    color: #e5e5e5;
    margin-bottom: 18px;
}

    .rules-panel h3 {
        color: #fff;
        font-weight: 700;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .rules-panel ul {
        margin: 0;
        padding-left: 18px;
    }

    .rules-panel li {
        margin: 6px 0;
        line-height: 1.6;
    }

.rules-footnote {
    color: #cfcfcf;
    margin-top: 12px;
    font-size: 14px;
}

.rules-lead {
    color: #ddd;
    margin-bottom: 10px;
}

#game-rules, #agreement {
    scroll-margin-top: 90px;
}

@media (max-width: 768px) {
    .rules-toc {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ===============================
   LORE PAGE — FINAL (two-layer TOC)
   =============================== */

/* === HERO === */
.lore-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.35) 40%, rgba(0,0,0,.7));
}

/* === WRAPPER === */
.lore-wrap {
    background: linear-gradient(180deg, rgba(10,10,30,.96), rgba(10,10,30,.98));
    padding: 60px 0 80px;
}
    /* lore section is full-bleed in your markup; don’t clip sticky children */
    .lore-wrap.full-bleed {
        overflow: visible;
    }

/* ===============================
   TOC as two layers
   - .lore-toc-wrap : non-sticky card window
   - .lore-toc-bar  : sticky row of chips
   =============================== */

/* Card window (non-sticky) */
.lore-toc-wrap {
    position: relative;
    margin-bottom: 22px; /* real gap above Codex */
    padding: 12px; /* inner padding for the card */
    border-radius: 12px;
    background: rgba(18,22,35,.92);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 6px 24px rgba(0,0,0,.28);
    overflow: visible; /* never clip the sticky bar */
}

/* Sticky bar */
.lore-toc-bar {
    position: sticky;
    top: 90px; /* below fixed navbar */
    z-index: 10; /* always above following content while stuck */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 2px; /* keeps focus rings visible */
    background: transparent;
}

    /* TOC chips */
    .lore-toc-bar a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 10px;
        color: #eaeaea;
        font-weight: 600;
        text-decoration: none;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.08);
        transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    }

        .lore-toc-bar a:hover {
            background: rgba(255,255,255,.12);
            border-color: rgba(255,255,255,.14);
            color: #fff;
            box-shadow: 0 0 0 2px rgba(255,122,0,.20) inset;
        }

    /* “Last updated” chip */
    .lore-toc-bar .lore-edition {
        margin-left: auto;
        opacity: .85;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        color: #cfcfcf;
    }

/* ===============================
   CODEX PANEL (independent card)
   =============================== */
.lore-codex {
    position: relative;
    z-index: 0; /* paints under the sticky bar as intended */
    margin-top: 0;
    margin-bottom: 22px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 16px 18px;
    color: #ddd;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    clear: both;
}

.codex-title {
    color: #fff;
    margin: 0 0 10px;
    font-weight: 700;
}

.lore-codex ul {
    margin: 0;
    padding-left: 18px;
}

.lore-codex li {
    margin: 4px 0;
}

/* ===============================
   CONTENT BLOCKS
   =============================== */
.lore-block {
    margin-top: 28px;
    scroll-margin-top: 110px; /* anchors won't hide under sticky bar */
}

.lore-header {
    margin-bottom: 8px;
}

.lore-heading {
    color: #fff;
    font-weight: 800;
    letter-spacing: .4px;
    border-left: 4px solid #ff7a00;
    padding-left: 10px;
}

.lore-when {
    color: #ffcf9a;
    font-size: .9em;
    font-weight: 700;
    margin-left: 6px;
}

.lore-panel {
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 18px 22px;
    color: #e8e8e8;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

    .lore-panel p {
        line-height: 1.8;
    }

/* Grid sections */
.lore-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3,1fr);
}

@media (max-width:992px) {
    .lore-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:576px) {
    .lore-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.lore-card {
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 16px 18px;
    color: #e9e9e9;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .lore-card h3 {
        color: #fff;
        margin-top: 0;
        margin-bottom: 6px;
    }

    .lore-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,.35);
    }

/* CTA buttons */
.lore-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

/* ===============================
   NAVBAR — solid base + bold scrolled
   =============================== */

:root {
    --nav-h: 76px; /* default height */
    --nav-h-scrolled: 60px; /* compact height */
}

/* Base (solid, opaque) */
.layout-4past .navbar-youplay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
    min-height: var(--nav-h);
    padding-top: max(env(safe-area-inset-top,0px),0px);
    background: #1c1633; /* solid color */
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease, min-height .25s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

    /* Accent line (hidden until scrolled) */
    .layout-4past .navbar-youplay::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #7a4cff, #b084ff, transparent);
        opacity: 0;
        transition: opacity .25s ease;
        z-index: 2;
        pointer-events: none;
    }

    /* Keep nav contents above background layer but under accent */
    .layout-4past .navbar-youplay > .container {
        position: relative;
        z-index: 1;
    }

    /* Scrolled (compact + purple) */
    .layout-4past .navbar-youplay.scrolled {
        min-height: var(--nav-h-scrolled);
        background: linear-gradient(180deg, #483080, #1c1438); /* solid, not transparent */
        box-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
        border-bottom-color: rgba(255,255,255,.10);
    }

        .layout-4past .navbar-youplay.scrolled::after {
            opacity: 1;
        }

    /* Brand logo scaling */
    .layout-4past .navbar-youplay .navbar-brand img {
        height: 44px;
        transform-origin: left center;
        transition: transform .25s ease;
    }

    .layout-4past .navbar-youplay.scrolled .navbar-brand img {
        transform: scale(.9);
    }

    /* Links */
    .layout-4past .navbar-youplay .nav > li > a {
        position: relative;
        text-transform: uppercase;
        letter-spacing: .4px;
        line-height: 1.2;
        padding-top: 20px;
        padding-bottom: 20px;
        color: #e9e9f3;
    }

        .layout-4past .navbar-youplay .nav > li > a .label {
            display: block;
            font-size: 11px;
            opacity: .75;
            text-transform: none;
            letter-spacing: 0;
        }

        .layout-4past .navbar-youplay .nav > li.active > a,
        .layout-4past .navbar-youplay .nav > li > a:focus,
        .layout-4past .navbar-youplay .nav > li > a:hover {
            color: #fff;
        }

        /* Animated underline */
        .layout-4past .navbar-youplay .nav > li > a::after {
            content: "";
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: 6px;
            height: 2px;
            background: linear-gradient(90deg,#ff7a00,#ffc066);
            border-radius: 2px;
            opacity: .9;
            transform: scaleX(0);
            transform-origin: left center;
            transition: transform .25s ease, opacity .25s ease;
        }

        .layout-4past .navbar-youplay .nav > li.active > a::after,
        .layout-4past .navbar-youplay .nav > li > a:hover::after {
            transform: scaleX(1);
            opacity: 1;
        }

/* Login dropdown bits */
.navbar-login-form .youplay-input input {
    height: 36px;
    padding: 6px 10px;
}

.navbar-login-form .btn {
    display: inline-block;
    background: #ff7a00;
    border-color: #ff7a00;
    color: #fff;
    border-radius: 10px;
    padding: 8px 14px;
}

    .navbar-login-form .btn:hover {
        background: #ff8f2b;
        border-color: #ff8f2b;
    }

/* Push everything below the fixed navbar (single offset) */
body.layout-4past {
    padding-top: var(--nav-h);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .lore-toc-bar {
        top: 72px;
    }

    .lore-block {
        scroll-margin-top: 92px;
    }

    /* Optional: frosted mobile collapse panel for contrast */
    .layout-4past .navbar-youplay #navbar {
        background: linear-gradient(180deg, rgba(28,20,56,.98), rgba(10,10,20,.97));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-left: 1px solid rgba(255,255,255,.08);
    }

    body.layout-4past {
        padding-top: var(--nav-h-scrolled);
    }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}




/* ===============================
   RANKING PAGE POLISH
   =============================== */
.ranking-page .glass {
    padding: 12px;
}

.ranking-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ranking-page thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(18,22,35,.92);
    backdrop-filter: blur(4px);
}

.ranking-page th, .ranking-page td {
    padding: 12px 14px;
}

.ranking-page tbody tr {
    border-top: 1px solid rgba(255,255,255,.08);
    transition: background .2s ease;
}

    .ranking-page tbody tr:hover {
        background: rgba(255,255,255,.04);
    }

.ranking-page td:last-child {
    font-weight: 700;
}
/* total honour bold */

/* Medal styling for top 3 (optional if you render 🥇🥈🥉) */
.ranking-page .rank--1 {
    font-weight: 800;
}

.ranking-page .rank--2 {
    font-weight: 800;
}

.ranking-page .rank--3 {
    font-weight: 800;
}

/* Chips & controls row spacing */
.ranking-page .controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 10px;
}

.ranking-page .search-input {
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 240px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

/* Mobile tweaks */
@media (max-width: 575px) {
    .ranking-page th:nth-child(2), .ranking-page td:nth-child(2) {
        max-width: 50vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===== 5-up features grid ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.features-grid .col-feature { flex: 1 1 210px; max-width: 100%; }
@media (min-width:1200px) {
  .features-grid .col-feature { flex: 0 0 calc((100% - 4 * 18px) / 5); }
}
@media (max-width:1199px) and (min-width:768px) {
  .features-grid .col-feature { flex: 0 0 calc((100% - 2 * 18px) / 3); }
}
@media (max-width:767px) { .features-grid .col-feature { flex: 0 0 calc((100% - 1 * 18px) / 2); } }
@media (max-width:480px) { .features-grid .col-feature { flex: 0 0 100%; } }

/* Staggered animation (matches your fadeUp) */
.features-grid .col-feature:nth-child(2) .feature { animation-delay: .08s; }
.features-grid .col-feature:nth-child(3) .feature { animation-delay: .16s; }
.features-grid .col-feature:nth-child(4) .feature { animation-delay: .24s; }
.features-grid .col-feature:nth-child(5) .feature { animation-delay: .32s; }





/* Pills */
.chips { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.chip {
  display:inline-block; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12); text-decoration:none;
  font-weight:600; font-size:14px; line-height:1; opacity:.9;
}
.chip:hover { background:rgba(255,255,255,.06); opacity:1; }
.chip.glass-strong { background:rgba(255,255,255,.08); border-color:transparent; }

/* Table */
.ranking-table { width:100%; border-collapse:separate; border-spacing:0; }
.ranking-table thead th {
  padding:12px 14px; background:rgba(255,255,255,.06);
  position:sticky; top:0; z-index:1; font-weight:700;
}
.ranking-table td { padding:10px 14px; border-top:1px solid rgba(255,255,255,.08); }
.ranking-table tr:hover { background:rgba(255,255,255,.04); }
/* Right-aligned number columns */
.ta-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Small screens: make it scrollable nicely */
.ranking-wrap { overflow:auto; border-radius:12px; }




/* ============================
   Donate grid anti-jitter patch
   Keep visuals; stop column jump
   ============================ */

/* 1) Isolate each tile's column from layout/paint changes */
.youplay-search .col-md-6 {
    /* create an independent formatting + paint context */
    display: flow-root; /* cancels float reflow jitter */
    contain: layout paint; /* changes inside won't affect neighbors */
    will-change: contents;
    transform: translateZ(0); /* own layer to avoid subpixel reflow */
}

/* 2) Clip & isolate the skewed after-element so it can’t bleed outside */
.youplay-search .angled-bg {
    position: relative !important;
    overflow: hidden !important; /* critical: clip the skew panel */
    isolation: isolate; /* paint in its own layer */
    contain: paint; /* keep repaints local */
}

    /* Keep the angled look but make ::after harmless for hover hit-testing */
    .youplay-search .angled-bg::after {
        pointer-events: none;
        backface-visibility: hidden;
        will-change: background, transform;
        /* keep the skew, but force GPU compositing */
        transform: translateZ(0) skew(-4deg);
    }

    /* 3) Ensure nothing vertically resizes when the button hovers */
    .youplay-search .angled-bg .rating {
        display: flex;
        align-items: center;
        min-height: 48px; /* ≥ button height incl. border */
    }

.youplay-search .btn.btn-primary.custom-btn,
.youplay-search .btn.btn-primary.custom-btn:hover,
.youplay-search .btn.btn-primary.custom-btn:focus {
    box-sizing: border-box;
    height: 44px; /* fixed height = no reflow */
    padding: 0 110px; /* keep your exact look */
    border-width: 2px; /* same in all states */
    line-height: 1;
    white-space: nowrap;
    transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}

/* 4) Defensive: decorative image shouldn’t steal hover and cause rapid toggle */
.youplay-search .angled-bg .img img[draggable="false"] {
    pointer-events: none;
}


/* =========================================================
   Donate — premium fantasy shop polish
   ========================================================= */

/* Container spacing */
.donate-wrap {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.donate-header {
    margin-bottom: 8px;
}

.donate-title {
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

/* Payment & trust */
.donate-payment {
    margin: 6px 0 18px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

    .trust-strip .trust-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #eaeaea;
        font-size: 13px;
        opacity: .95;
        background: rgba(255,255,255,.10);
        padding: 6px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(4px);
    }

        .trust-strip .trust-item .ti-lock::before,
        .trust-strip .trust-item .ti-shield::before,
        .trust-strip .trust-item .ti-bolt::before {
            content: "🔒";
        }

        .trust-strip .trust-item .ti-shield::before {
            content: "🛡️";
        }

        .trust-strip .trust-item .ti-bolt::before {
            content: "⚡";
        }

/* Grid spacing */
.donate-grid .col-md-6 {
    margin-bottom: 12px;
}

.donate-card {
    position: relative; /* NEW (fixes the absolute ::before) */
    border-radius: 14px;
    padding: 12px 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    background: transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}


    .donate-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0,0,0,.35);
    }

/* Inner alignment */
.donate-card-inner {
    display: flex;
    align-items: center;
}

.donate-card .img {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
}

    .donate-card .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.donate-meta {
    display: flex;
    align-items: center;
}

.donate-name {
    color: #fff;
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Price emphasis */
.donate-card .price {
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* CTA button: uses your palette; stable size already enforced by your patch */
.donate-cta.btn.btn-primary.custom-btn {
    border-radius: 12px;
    border-color: #ffa34a;
    color: #fff;
    background: transparent;
    box-shadow: inset 0 0 0 0 #ff7a00;
}

    .donate-cta.btn.btn-primary.custom-btn:hover,
    .donate-cta.btn.btn-primary.custom-btn:focus {
        background: #ff7a00;
        color: #1b1b1b;
        border-color: #ff7a00;
        box-shadow: 0 0 18px rgba(255,122,0,.45);
    }

/* "Most Popular" badge (only shows when data-popular=true) */
.donate-card .popular-badge {
    display: none;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #1b1205;
    background: linear-gradient(90deg,#ffcf6b,#ffa34a);
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 999px;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
    box-shadow: 0 2px 14px rgba(255,163,74,.35);
}

.donate-card[data-popular="true"] .popular-badge {
    display: inline-block;
}

/* Subtle divider/glow to rows */
.donate-grid .col-md-6 .donate-card::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -6px;
    height: 1px;
    background: linear-gradient(90deg,transparent, rgba(255,255,255,.18), transparent);
    opacity: .4;
}

/* Responsive tweaks */
@media (max-width: 575px) {
    .donate-card .img {
        width: 72px;
        height: 72px;
    }

    .donate-cta.btn.btn-primary.custom-btn {
        padding: 0 18px;
    }
}

/* Gentle alert style (uses your theme colors) */
.donate-alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 122, 0, .1);
    border: 1px solid rgba(255, 122, 0, .35);
    color: #ffd6a8;
}

.donate-card-inner,
.donate-meta {
    display: block; /* restore Bootstrap row behavior */
}

.donate-grid::after {
    content: "";
    display: table;
    clear: both;
}

/* Keep image box styling */
.donate-card .img {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
}

    .donate-card .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Make the price align right on all breakpoints */
.donate-card .price {
    text-align: right;
}

/* Small top spacing so the CTA doesn't crowd the title */
.donate-card .rating {
    margin-top: 6px;
}

/* ===== Donate page hot-fixes (stacking, offset, grid) ===== */

/* 1) Make sure banner BG is behind, content above (so inputs are clickable) */
.youplay-banner.banner-info {
    position: relative;
}

    .youplay-banner.banner-info .image {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .youplay-banner.banner-info .info {
        position: relative;
        z-index: 2;
    }

.donate-wrap {
    position: relative;
    z-index: 3;
}
/* keep the whole donate UI on top */

/* 2) Don’t let the fixed navbar cover the header */
:root {
    --nav-h: 76px;
}
/* you already have this, keep for safety */
body.layout-4past .youplay-banner.banner-info .container {
    padding-top: calc(var(--nav-h) + 12px); /* push content below navbar */
}

@media (max-width: 991px) {
    body.layout-4past .youplay-banner.banner-info .container {
        padding-top: calc(60px + 12px); /* compact navbar height on mobile */
    }
}

/* 3) Stabilize the two-column grid (no flex on .row) */
.donate-card-inner,
.donate-meta {
    display: block; /* restore Bootstrap row behavior */
}

.donate-grid::after {
    content: "";
    display: table;
    clear: both;
}
/* clearfix */

/* 4) Keep the decorative line anchored to its card */
.donate-card {
    position: relative;
}
/* required for ::before line anchor */

/* 5) Make sure nothing transparent is stealing clicks at the top */
.youplay-search .angled-bg::after {
    pointer-events: none;
}
/* you already set this; repeat here with higher specificity */
/* ===== Final donate alignment polish ===== */

/* Make sure the last single tile centers itself */
.donate-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centers last odd element */
    gap: 12px 0; /* keeps same vertical spacing */
}

    .donate-grid .col-md-6 {
        float: none !important; /* disable Bootstrap float */
        flex: 0 0 50%; /* two columns on desktop */
        max-width: 50%;
    }

@media (max-width: 767px) {
    .donate-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ===== Donate header polish ===== */
.donate-title {
    font-size: clamp(26px,3vw,40px);
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.donate-header::after {
    content: "";
    display: block;
    width: 88px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg,#ffcf6b,#ff7a00);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255,122,0,.45);
}

/* ===== Payment summary (no radio) ===== */
.pay-title {
    margin: 0 0 10px;
    color: #eaeaea;
    letter-spacing: .3px;
}

.pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

    .pay-pill img {
        height: 18px;
        width: auto;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
    }

/* Trust strip minor tweak */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

    .trust-strip .trust-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 10px;
        color: #eaeaea;
        font-size: 13px;
        opacity: .95;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(4px);
    }

/* Donate card hover and price alignment (kept from your theme but tightened) */
.donate-card {
    position: relative;
    border-radius: 14px;
    padding: 12px 10px;
    background: transparent;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    transition: transform .18s ease,box-shadow .18s ease,background .18s ease;
}

    .donate-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0,0,0,.35);
    }

    .donate-card .price {
        color: #fff;
        font-weight: 800;
        text-align: right;
        text-shadow: 0 1px 8px rgba(0,0,0,.35);
    }

    /* Most popular badge */
    .donate-card .popular-badge {
        display: none;
        margin-left: 8px;
        font-size: 11px;
        font-weight: 800;
        color: #1b1205;
        text-transform: uppercase;
        letter-spacing: .3px;
        background: linear-gradient(90deg,#ffcf6b,#ffa34a);
        border: 1px solid rgba(0,0,0,.18);
        border-radius: 999px;
        padding: 3px 8px;
        box-shadow: 0 2px 14px rgba(255,163,74,.35);
    }

    .donate-card[data-popular="true"] .popular-badge {
        display: inline-block;
    }

/* CTA button */
.donate-cta.btn.btn-primary.custom-btn {
    border-radius: 12px;
    border-color: #ffa34a;
    color: #fff;
    background: transparent;
    box-shadow: inset 0 0 0 0 #ff7a00;
    padding-left: 42px;
    position: relative;
}

    .donate-cta.btn.btn-primary.custom-btn::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background: url('/images/payments/paypal.svg') no-repeat center / contain;
        opacity: .95;
    }

    .donate-cta.btn.btn-primary.custom-btn:hover,
    .donate-cta.btn.btn-primary.custom-btn:focus {
        background: #ff7a00;
        color: #1b1b1b;
        border-color: #ff7a00;
        box-shadow: 0 0 18px rgba(255,122,0,.45);
    }

/* Grid tightening + mobile */
.donate-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 0;
}

    .donate-grid .col-md-6 {
        float: none !important;
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 12px;
    }

@media (max-width:767px) {
    .donate-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* Header */
.donate-title {
    font-size: clamp(26px,3vw,40px);
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.donate-header::after {
    content: "";
    display: block;
    width: 88px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg,#ffcf6b,#ff7a00);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255,122,0,.45);
}

/* Payment segmented control */
.pay-title {
    margin: 0 0 10px;
    color: #eaeaea;
    letter-spacing: .3px;
}

.pay-segment {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pay-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

    .pay-option img {
        height: 18px;
        width: auto;
    }

    .pay-option:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,.3);
    }

    .pay-option.is-active {
        background: linear-gradient(180deg, rgba(255,163,74,.28), rgba(255,122,0,.22));
        border-color: rgba(255,122,0,.65);
        box-shadow: 0 0 18px rgba(255,122,0,.35);
    }

/* Trust strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

    .trust-strip .trust-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 10px;
        color: #eaeaea;
        font-size: 13px;
        opacity: .95;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(4px);
    }

/* Cards (no icon/checkbox in CTA) */
.donate-card {
    position: relative;
    border-radius: 14px;
    padding: 12px 10px;
    background: transparent;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .donate-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0,0,0,.35);
    }

.donate-name {
    color: #fff;
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: .2px;
}

.donate-card .price {
    color: #fff;
    font-weight: 800;
    text-align: right;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.donate-cta.btn.btn-primary.custom-btn {
    border-radius: 12px;
    border-color: #ffa34a;
    color: #fff;
    background: transparent;
    box-shadow: inset 0 0 0 0 #ff7a00;
}

    .donate-cta.btn.btn-primary.custom-btn:hover,
    .donate-cta.btn.btn-primary.custom-btn:focus {
        background: #ff7a00;
        color: #1b1b1b;
        border-color: #ff7a00;
        box-shadow: 0 0 18px rgba(255,122,0,.45);
    }

/* Most Popular badge */
.donate-card .popular-badge {
    display: none;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #1b1205;
    text-transform: uppercase;
    letter-spacing: .3px;
    background: linear-gradient(90deg,#ffcf6b,#ffa34a);
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 999px;
    padding: 3px 8px;
    box-shadow: 0 2px 14px rgba(255,163,74,.35);
}

.donate-card[data-popular="true"] .popular-badge {
    display: inline-block;
}

/* Grid */
.donate-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 0;
}

    .donate-grid .col-md-6 {
        float: none !important;
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 12px;
    }

@media (max-width:767px) {
    .donate-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ===== CRITICAL FIX: remove any theme pseudo-elements on the CTA ===== */
.btn.donate-cta::before,
.btn.donate-cta::after,
.donate-cta::before,
.donate-cta::after {
    content: none !important;
    display: none !important;
}

/* Container spacing */
.donate-wrap {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.donate-header {
    margin-bottom: 8px;
}

/* Title polish */
.donate-title {
    font-size: clamp(26px,3vw,40px);
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.donate-header::after {
    content: "";
    display: block;
    width: 88px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg,#ffcf6b,#ff7a00);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255,122,0,.45);
}

/* Payment segmented control */
.donate-payment {
    margin: 6px 0 18px;
}

.pay-title {
    margin: 0 0 10px;
    color: #eaeaea;
    letter-spacing: .3px;
}

.pay-segment {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pay-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

    .pay-option img {
        height: 18px;
        width: auto;
    }

    .pay-option:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,.3);
    }

    .pay-option.is-active {
        background: linear-gradient(180deg, rgba(255,163,74,.28), rgba(255,122,0,.22));
        border-color: rgba(255,122,0,.65);
        box-shadow: 0 0 18px rgba(255,122,0,.35);
    }

/* Trust strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

    .trust-strip .trust-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #eaeaea;
        font-size: 13px;
        opacity: .95;
        background: rgba(255,255,255,.10);
        padding: 6px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(4px);
    }

/* Product cards */
.donate-grid .col-md-6 {
    margin-bottom: 12px;
}

.donate-card {
    position: relative;
    border-radius: 14px;
    padding: 12px 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    background: transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .donate-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0,0,0,.35);
    }

.donate-card-inner {
    display: flex;
    align-items: center;
}

.donate-meta {
    display: flex;
    align-items: center;
}

.donate-name {
    color: #fff;
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: .2px;
}

.donate-card .img {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
}

    .donate-card .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.donate-card .price {
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.donate-card .rating {
    margin-top: 6px;
}

/* CTA (clean — no icons, no pseudo-elements) */
.donate-cta.btn.btn-primary.custom-btn {
    border-radius: 12px;
    border-color: #ffa34a;
    color: #fff;
    background: transparent;
    background-image: none !important;
    box-shadow: inset 0 0 0 0 #ff7a00;
    padding: 8px 18px;
}

    .donate-cta.btn.btn-primary.custom-btn:hover,
    .donate-cta.btn.btn-primary.custom-btn:focus {
        background: #ff7a00;
        color: #1b1b1b;
        border-color: #ff7a00;
        box-shadow: 0 0 18px rgba(255,122,0,.45);
    }

/* "Most Popular" badge */
.donate-card .popular-badge {
    display: none;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #1b1205;
    text-transform: uppercase;
    letter-spacing: .3px;
    background: linear-gradient(90deg,#ffcf6b,#ffa34a);
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 999px;
    padding: 3px 8px;
    box-shadow: 0 2px 14px rgba(255,163,74,.35);
}

.donate-card[data-popular="true"] .popular-badge {
    display: inline-block;
}

/* Layout safety + stacking */
.youplay-banner.banner-info {
    position: relative;
}

    .youplay-banner.banner-info .image {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .youplay-banner.banner-info .info {
        position: relative;
        z-index: 2;
    }

.donate-wrap {
    position: relative;
    z-index: 3;
}

:root {
    --nav-h: 76px;
}

body.layout-4past .youplay-banner.banner-info .container {
    padding-top: calc(var(--nav-h) + 12px);
}

@media (max-width:991px) {
    body.layout-4past .youplay-banner.banner-info .container {
        padding-top: calc(60px + 12px);
    }
}

/* Flex grid centering */
.donate-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 0;
}

    .donate-grid .col-md-6 {
        float: none !important;
        flex: 0 0 50%;
        max-width: 50%;
    }

@media (max-width:767px) {
    .donate-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Alert */
.donate-alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,122,0,.1);
    border: 1px solid rgba(255,122,0,.35);
    color: #ffd6a8;
}

/* === Fix: keep "Proceed to Checkout" from stretching/covering the price === */
.donate-card .rating { /* the CTA wrapper */
    width: auto !important;
    display: inline-block; /* don't take full row */
}

.donate-cta { /* the button itself */
    display: inline-flex !important; /* force intrinsic width */
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
    transform: none !important; /* kill any scale/expand effect */
}

/* Some themes make .btn in forms go full-width on hover/focus – override that */
.youplay-form .btn.donate-cta,
.youplay-form .btn.donate-cta:hover,
.youplay-form .btn.donate-cta:focus,
.youplay-form .btn.donate-cta:active {
    width: auto !important;
}

/* If the theme uses a "btn-block" style via media queries, nullify it for our CTA */
.btn.donate-cta.btn-block {
    display: inline-flex !important;
    width: auto !important;
}

/* Keep the price column aligned and visible */
.donate-card .col-xs-4.col-md-3 {
    position: relative; /* ensure it keeps its space */
    z-index: 1; /* just in case a stretched CTA tried to overlap */
}



/* Keep any theme decorations off the CTA */
.btn.donate-cta::before,
.btn.donate-cta::after,
.donate-cta::before,
.donate-cta::after {
    content: none !important;
    display: none !important;
}

/* Lock layout + center text */
.donate-cta.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-sizing: border-box;
    white-space: nowrap;
    /* stable dimensions */
    min-height: 42px;
    padding: 10px 18px !important;
    line-height: 1 !important;
    width: auto !important;
    /* visuals */
    font-weight: 700;
    border: 2px solid #ffa34a;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #fff;
    /* smooth hover without “grow” */
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    /* Freeze padding/width on all states so nothing shifts */
    .donate-cta.btn:hover,
    .donate-cta.btn:focus,
    .donate-cta.btn:active {
        padding: 10px 18px !important;
        width: auto !important;
        line-height: 1 !important;
    }

    /* Hover/focus visual (no layout change) */
    .donate-cta.btn:hover,
    .donate-cta.btn:focus {
        background: #ff7a00;
        border-color: #ff7a00;
        color: #1b1b1b;
        box-shadow: 0 0 18px rgba(255,122,0,.45);
        transform: translateY(-1px);
    }

    .donate-cta.btn:active {
        transform: none;
        box-shadow: none;
    }

/* Keep the price column above, in case any overlap tries to happen */
.donate-card .col-xs-4.col-md-3 {
    position: relative;
    z-index: 1;
}



/* ===== Account pages polish ===== */
:root {
    --nav-h: 76px;
}

/* Banner spacing with fixed navbar */
.account-banner .container {
    padding-top: calc(var(--nav-h) + 8px);
}

/* Tabs */
.account-nav ul {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-nav li {
    position: relative;
}

.account-nav a {
    display: inline-block;
    padding: .55rem 1rem;
    border-radius: 10px;
    color: #eae8ff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .account-nav a:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,.3);
    }

.account-nav li.active a {
    background: linear-gradient(180deg, rgba(255,163,74,.28), rgba(255,122,0,.22));
    border-color: rgba(255,122,0,.65);
    color: #fff;
    box-shadow: 0 0 18px rgba(255,122,0,.35);
}

/* Main table look */
.youplay-content table.table {
    border-color: rgba(255,255,255,.08);
    color: #ddd;
}

.youplay-content .table.table-bordered > tbody > tr > td {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.08);
    vertical-align: middle;
}

.youplay-content .table.table-bordered > tbody > tr:nth-child(odd) > td {
    background: rgba(255,255,255,.05);
}

.youplay-content .table p {
    margin: 0;
}

/* Utilities */
.text-success {
    color: #61e294 !important;
}

.text-danger {
    color: #ff6b6b !important;
}

/* Right column */
.side-block {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: #e4e4e4;
}

    .side-block .block-title {
        margin: 0 0 10px;
        background: linear-gradient(90deg, rgba(255,163,74,.28), rgba(255,122,0,.22));
        border-radius: 10px;
        padding: 6px 10px;
        display: inline-block;
    }

/* Tiny button for “Copy” etc. */
.btn.btn-xs {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    border-radius: 8px;
}


/* ===== Account Beauty Pass (drop-in) ===== */

/* 0) Palette helpers (tweak freely) */
:root {
    --acc-accent: #ff7a00;
    --acc-accent-2: #ffa34a;
    --acc-surface: rgba(255,255,255,.06);
    --acc-surface-2: rgba(255,255,255,.04);
    --acc-border: rgba(255,255,255,.10);
    --acc-border-2: rgba(255,255,255,.14);
    --acc-text: #f2f2f7;
    --acc-text-dim: #cfd0dc;
}

/* 1) Banner readability */
.account-banner .image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,20,.25), rgba(5,5,20,.55));
    pointer-events: none;
}

.account-banner .youplay-user .user-data h2 {
    letter-spacing: .3px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

/* 2) Tabs */
.account-nav ul {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-nav a {
    position: relative;
    display: inline-block;
    padding: .55rem 1rem;
    border-radius: 12px;
    color: var(--acc-text);
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    text-decoration: none;
    backdrop-filter: blur(6px);
}

    .account-nav a:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,.35);
    }

.account-nav li.active a {
    background: linear-gradient(180deg, rgba(255,163,74,.28), rgba(255,122,0,.22));
    border-color: color-mix(in srgb, var(--acc-accent) 60%, #000 40%);
    box-shadow: 0 0 18px rgba(255,122,0,.35);
}

    .account-nav li.active a::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: -6px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg,var(--acc-accent-2),var(--acc-accent));
    }

/* 3) Main content “card” */
.youplay-content .youplay-form {
    background: var(--acc-surface-2);
    border: 1px solid var(--acc-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

@media (min-width:992px) {
    .youplay-content .youplay-form {
        padding: 28px;
    }
}

/* 4) Tables: rounded, zebra, hover */
.youplay-content table.table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    color: var(--acc-text);
}

.youplay-content .table thead th {
    background: color-mix(in srgb, var(--acc-surface) 70%, #000 30%);
    border-bottom: 1px solid var(--acc-border-2);
    font-weight: 800;
    letter-spacing: .2px;
}

.youplay-content .table tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,.035);
}

.youplay-content .table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,.05);
}

.youplay-content .table tbody tr:hover td {
    background: rgba(255,255,255,.08);
}

.youplay-content .table td, .youplay-content .table th {
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--acc-border);
    vertical-align: middle;
}

.youplay-content .table p {
    margin: 0;
    color: var(--acc-text-dim);
}

.youplay-content .table a {
    color: #ffd6a8;
    text-decoration: underline;
}

    .youplay-content .table a:hover {
        color: #fff;
    }

/* 5) About card */
.side-block {
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: 16px;
    padding: 16px 18px;
    color: var(--acc-text);
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

    .side-block .block-title {
        margin: 0 0 10px;
        display: inline-block;
        padding: 6px 10px;
        border-radius: 10px;
        background: linear-gradient(90deg, var(--acc-accent-2), var(--acc-accent));
        color: #1b1205;
        font-weight: 900;
        letter-spacing: .3px;
    }

/* 6) Small utilities */
.text-success {
    color: #61e294 !important;
    font-weight: 700;
}

.text-danger {
    color: #ff6b6b !important;
    font-weight: 700;
}

.btn.btn-xs {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    border-radius: 8px;
}

.referral-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}



