/* ==========================================================================
   Jackpot Noir — design tokens + customer-facing components
   Loaded after main.css / custom.css / color.php so it wins on cascade.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --bg-void: #0a0a12;
    --bg-panel: #14141f;
    --bg-raised: #1c1c2a;
    --gold-hot: #f5b82e;
    --gold-foil: #b8862f;
    --white-hot: #fff8e7;
    --win-green: #5cf2a0;
    --muted-slate: #7a7a8c;
    --hairline: rgba(245, 184, 46, 0.18);
    --powerball-red: #e23d4f;
}

body {
    background-color: var(--bg-void) !important;
    font-family: "Hanken Grotesk", sans-serif;
}

.jn-h1, .jn-h2, .jn-h3, .jn-odometer__digits, .jn-countdown__num,
.jn-ticket-card__price, .jn-winner-card__amount {
    font-family: "Big Shoulders Display", sans-serif;
}

/* tear-line divider: ticket-stub motif used between sections */
.jn-tear {
    position: relative;
    height: 1px;
    background: repeating-linear-gradient(100deg, var(--hairline) 0 10px, transparent 10px 16px);
    margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.jn-hero {
    background: radial-gradient(ellipse 120% 60% at 50% -10%, rgba(245, 184, 46, 0.16), transparent 60%), var(--bg-void);
    padding-bottom: 2.5rem;
    overflow: hidden;
}

.jn-marquee {
    background: var(--gold-hot);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.jn-marquee__track {
    display: inline-block;
    animation: jn-marquee-scroll 22s linear infinite;
}

.jn-marquee__track span {
    color: #1a1205;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-right: 2.5rem;
}

@keyframes jn-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.jn-hero__inner {
    padding-top: 2.25rem;
    text-align: center;
}

.jn-hero__eyebrow {
    color: var(--gold-hot);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    opacity: 0;
    animation: jn-rise 0.5s ease forwards;
    animation-delay: 0.05s;
}

.jn-hero__eyebrow .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--win-green);
    margin-right: 0.4rem;
    box-shadow: 0 0 0 0 rgba(92, 242, 160, 0.6);
    animation: jn-pulse-dot 1.8s ease-out infinite;
}

@keyframes jn-pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(92, 242, 160, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(92, 242, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 242, 160, 0); }
}

/* Odometer — the signature jackpot number */
.jn-odometer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0 0.35rem;
}

.jn-odometer__currency {
    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--gold-foil);
    align-self: center;
}

.jn-odometer__digits {
    display: flex;
    gap: 0.2rem;
}

.jn-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 3.1rem;
    background: linear-gradient(180deg, #1f1f2e, #15151f);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gold-hot);
    text-shadow: 0 0 14px rgba(245, 184, 46, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(10px) rotateX(60deg);
    animation: jn-flip-in 0.5s cubic-bezier(.2, .8, .2, 1) forwards;
}

.jn-digit.is-comma {
    width: 0.9rem;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--gold-foil);
    align-self: flex-end;
}

@keyframes jn-flip-in {
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.jn-hero__label {
    color: var(--muted-slate);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Countdown chips */
.jn-countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.jn-countdown__chip {
    background: linear-gradient(180deg, #1f1f2e, #15151f);
    border: 1px solid rgba(245, 184, 46, 0.4);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    min-width: 3.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.jn-countdown__num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white-hot);
    line-height: 1;
}

.jn-countdown__lbl {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-slate);
    margin-top: 0.15rem;
}

.jn-hero__title {
    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1.08;
    color: var(--white-hot);
    margin-bottom: 0.6rem;
    opacity: 0;
    animation: jn-rise 0.55s ease forwards;
    animation-delay: 0.15s;
}

.jn-hero__desc {
    color: var(--muted-slate);
    font-size: 0.95rem;
    max-width: 26rem;
    margin: 0 auto 1.4rem;
    opacity: 0;
    animation: jn-rise 0.55s ease forwards;
    animation-delay: 0.25s;
}

@keyframes jn-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.jn-cta {
    display: inline-block;
    background: var(--gold-hot);
    color: #1a1205;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(245, 184, 46, 0.5);
    animation: jn-cta-pulse 2.4s ease-in-out infinite;
}

.jn-cta:hover { color: #1a1205; }

@keyframes jn-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 184, 46, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(245, 184, 46, 0); }
}

.jn-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.jn-cta--pb {
    background: var(--powerball-red);
    color: var(--white-hot);
    box-shadow: 0 0 0 0 rgba(226, 61, 79, 0.5);
    animation: jn-cta-pulse-pb 2.4s ease-in-out infinite;
}

.jn-cta--pb:hover { color: var(--white-hot); }

@keyframes jn-cta-pulse-pb {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226, 61, 79, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(226, 61, 79, 0); }
}

@media (max-width: 575px) {
    .jn-hero__cta-row { gap: 0.6rem; }
    .jn-hero__cta-row .jn-cta { padding: 0.75rem 1.4rem; font-size: 0.9rem; }
}

/* ==========================================================================
   Lottery ticket cards (replaces the desktop table)
   ========================================================================== */

.jn-ticket-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

@media (min-width: 768px) {
    .jn-ticket-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .jn-ticket-grid { grid-template-columns: repeat(3, 1fr); }
}

.jn-ticket-card {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 1.1rem 1.1rem 1.2rem;
    overflow: hidden;
}

.jn-ticket-card__top {
    min-width: 0;
}

/* perforated stub edge */
.jn-ticket-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 4.6rem;
    width: 0;
    border-right: 2px dashed var(--hairline);
}

.jn-ticket-card__top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}

.jn-ticket-card__thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-raised);
}

.jn-ticket-card__info {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}

.jn-ticket-card__name {
    font-weight: 700;
    color: var(--white-hot);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.jn-ticket-card__draw {
    font-size: 0.72rem;
    color: var(--muted-slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jn-ticket-card__price {
    margin-left: auto;
    text-align: right;
    color: var(--gold-hot);
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.jn-ticket-card__price small {
    display: block;
    color: var(--muted-slate);
    font-size: 0.62rem;
    font-weight: 500;
    font-family: "Hanken Grotesk", sans-serif;
    text-transform: uppercase;
}

.jn-ticket-card__progress {
    height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.jn-ticket-card__progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-foil), var(--gold-hot));
}

.jn-ticket-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--muted-slate);
    margin-bottom: 0.9rem;
}

.jn-ticket-card__meta b { color: var(--white-hot); font-weight: 600; }

.jn-ticket-card__cta {
    display: block;
    text-align: center;
    background: transparent;
    border: 1.5px solid var(--gold-hot);
    color: var(--gold-hot);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background .15s, color .15s;
}

.jn-ticket-card__cta:hover {
    background: var(--gold-hot);
    color: #1a1205;
}

/* ==========================================================================
   Empty state — replaces plain "Data not found"
   ========================================================================== */

.jn-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-panel);
    border: 1px dashed var(--hairline);
    border-radius: 14px;
}

.jn-empty__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: var(--bg-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-hot);
    font-size: 1.3rem;
}

.jn-empty__title {
    color: var(--white-hot);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.jn-empty__desc {
    color: var(--muted-slate);
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

/* ==========================================================================
   Recent winners
   ========================================================================== */

.recent-winner-card {
    background-color: var(--bg-panel) !important;
    border: 1px solid var(--hairline) !important;
    box-shadow: none !important;
    border-radius: 12px !important;
}

.recent-winner-card::before { display: none !important; }

.recent-winner-card .amount {
    color: var(--gold-hot) !important;
    font-weight: 700 !important;
}

.recent-winner-card .level-badge {
    display: inline-block;
    background: var(--bg-raised);
    color: var(--gold-hot);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

/* ---- winner card: medal tiers (gold/silver/bronze by prize level) ---- */
.jn-winner-card {
    --tier-color: var(--gold-hot);
    --tier-color-soft: var(--gold-foil);
    position: relative;
    padding: 1.75rem 1.25rem 1.5rem !important;
    text-align: center;
    overflow: hidden;
}

.jn-winner-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tier-color), transparent);
}

.jn-winner-card--tier-2 { --tier-color: #c7cdd6; --tier-color-soft: #8a93a1; }
.jn-winner-card--tier-3 { --tier-color: #d98a4f; --tier-color-soft: #8b5a2b; }

.jn-winner-card__pb {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
}
.jn-winner-card--tier-plain { --tier-color: var(--muted-slate); --tier-color-soft: var(--muted-slate); }

.jn-winner-card--tier-1 {
    border-color: rgba(245, 184, 46, 0.4) !important;
    box-shadow: 0 0 28px rgba(245, 184, 46, 0.12) !important;
}

.jn-winner-card__trophy {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    color: var(--tier-color);
    opacity: 0.5;
    font-size: 1.1rem;
}

.jn-winner-card .level-badge {
    background: var(--bg-raised);
    color: var(--tier-color);
    border: 1px solid var(--tier-color);
}

.jn-winner-card__avatar {
    width: 52px;
    height: 52px;
    margin: 0.65rem auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--tier-color), var(--tier-color-soft));
    color: var(--bg-void);
    font-family: "Big Shoulders Display", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.jn-winner-card__username {
    color: var(--white-hot);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.jn-winner-card .amount {
    font-size: 1.05rem;
}

/* ==========================================================================
   Payments trust strip
   ========================================================================== */

.jn-trust {
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
}

.jn-trust__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.jn-trust__tile {
    background: var(--bg-raised);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
}

.jn-trust__tile img {
    max-height: 22px;
    max-width: 56px;
    object-fit: contain;
    transition: transform .2s;
}

.jn-trust__tile:hover img {
    transform: scale(1.08);
}

.jn-trust__lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--muted-slate);
    font-size: 0.75rem;
    margin-top: 1rem;
}

.jn-trust__lock i { color: var(--win-green); }

/* ==========================================================================
   Scroll-to-top (was an unexplained rocket icon)
   ========================================================================== */

.scroll-to-top {
    background: var(--bg-panel) !important;
    border: 1px solid var(--gold-hot) !important;
}

.scroll-to-top .scroll-icon { color: var(--gold-hot) !important; }

/* ==========================================================================
   Footer trim
   ========================================================================== */

.footer { background-color: var(--bg-panel) !important; }

/* ==========================================================================
   Auth pages: login / register / verification / password reset
   .jn-auth-section replaces pt-100/pb-100 on these pages so desktop spacing
   is untouched here but can be tightened independently on mobile below.
   ========================================================================== */

.jn-auth-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ==========================================================================
   Ticket purchase page (lottery details) -- same pt-100/pb-100 swap as the
   auth pages, default here matches the original 100px so desktop is untouched.
   ========================================================================== */

.jn-ticket-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ==========================================================================
   Contact page -- was still on the leftover pre-redesign theme (light
   contact-info-card/contact-wrapper styling against the now-dark body),
   the only customer-facing page left out of the Jackpot Noir pass.
   ========================================================================== */

.jn-contact-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.jn-contact-intro h2 {
    font-family: "Big Shoulders Display", sans-serif;
    color: var(--white-hot);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.jn-contact-intro p {
    color: var(--muted-slate);
}

.jn-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    transition: border-color .15s, transform .15s;
}

.jn-contact-card:hover {
    border-color: var(--gold-hot);
    transform: translateY(-2px);
}

.jn-contact-card__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-hot);
    font-size: 1.15rem;
}

.jn-contact-card__body { min-width: 0; }

.jn-contact-card__body h6 {
    color: var(--white-hot);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}

.jn-contact-card__body p {
    color: var(--muted-slate);
    font-size: 0.88rem;
    margin: 0;
    overflow-wrap: break-word;
}

.jn-contact-card__body a {
    color: var(--muted-slate);
    text-decoration: none;
}

.jn-contact-card__body a:hover { color: var(--gold-hot); }

.jn-contact-form-card {
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 1.75rem;
}

.jn-contact-form-card__title {
    font-family: "Big Shoulders Display", sans-serif;
    color: var(--white-hot);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.jn-contact-form-card label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted-slate);
    margin-bottom: 0.35rem;
}

.jn-contact-form-card .form--control {
    background: var(--bg-raised) !important;
    border: 1px solid var(--hairline) !important;
    border-radius: 10px;
    color: var(--white-hot) !important;
    height: 3rem;
    padding: 0.6rem 1rem;
}

.jn-contact-form-card textarea.form--control {
    height: auto;
    min-height: 7rem;
    padding-top: 0.7rem;
}

.jn-contact-form-card .form--control:focus {
    background: var(--bg-panel) !important;
    border-color: var(--gold-hot) !important;
    box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.15) !important;
}

.jn-contact-form-card .form--control::-webkit-input-placeholder,
.jn-contact-form-card .form--control::placeholder { color: var(--muted-slate); }

.jn-contact-form-card .custom--field .form--control { padding-left: 2.6rem; }

.jn-contact-form-card .custom--field i {
    left: 0.9rem;
    font-size: 1rem;
    color: var(--gold-foil);
}

.jn-contact-form-card .jn-contact-textarea-field i {
    top: 0.95rem;
    transform: none;
}

.jn-contact-form-card .btn--base {
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold-hot), var(--gold-foil)) !important;
    color: var(--bg-void) !important;
    border: none;
}

@media (max-width: 767px) {
    .jn-contact-section {
        padding-top: 1.25rem;
        padding-bottom: 5rem;
    }

    .jn-contact-form-card {
        padding: 1.25rem 1.1rem;
    }
}

/* ==========================================================================
   Searchable combo (city/town field on the profile-completion form) --
   not breakpoint-gated since it's a brand-new component with no legacy
   desktop version to preserve.
   ========================================================================== */

.jn-combo { position: relative; }

.jn-combo__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 13rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.jn-combo__list.is-open { display: block; }

.jn-combo__item {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--white-hot);
    cursor: pointer;
}

.jn-combo__item:hover { background: var(--bg-raised); color: var(--gold-hot); }

.jn-combo__empty {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    color: var(--muted-slate);
}

/* ==========================================================================
   Mobile nav: top-bar action pills, slide-in drawer, bottom dock
   Scoped to <=767px only -- tablet/desktop keep the original top nav + footer.
   ========================================================================== */

/* Mobile nav is the only nav — applies at ALL screen sizes.
   Bootstrap hides .navbar-toggler on xl+ via .navbar-expand-xl; force it back. */
.navbar-toggler { display: flex !important; align-items: center; }

    /* ---- scroll-to-top: redundant with the dock's Home item, and collides with it visually ---- */
    .scroll-to-top { display: none !important; }

    /* ---- tawk.to floating launcher: replaced by the dock's own Chat tab on mobile.
       Targeting the iframe directly by src/title (not a wrapper class) since that's
       the one thing guaranteed regardless of Tawk's internal markup/version. ---- */
    iframe[src*="tawk.to"],
    iframe[title*="chat" i],
    iframe[title*="tawk" i] {
        display: none !important;
    }

    /* ---- top bar: shorter strip, the logo image was driving most of the height ---- */
    .header__bottom { padding: 0.4rem 0 !important; }
    .header .site-logo img { max-height: 2.2rem; }

    /* logged-in users already have a dedicated Home tab in the bottom dock
       (routes to the dashboard) -- tapping the logo on mobile would instead
       bounce them out to the public marketing homepage, so disable it here */
    .jn-logo-mobile-static {
        pointer-events: none;
        cursor: default;
    }

    /* hamburger icon was much bigger than a single dock icon (~1.1rem) -- match it */
    .menu-toggle {
        width: 1.3rem;
        height: 0.75rem;
        margin: 0;
    }

    /* ---- top bar: action pills + hamburger, grouped so logo stays opposite ---- */
    .navbar.navbar-expand-xl { flex-wrap: nowrap; }

    .jn-mobile-bar {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .jn-mobile-actions { display: flex; align-items: center; gap: 0.5rem; }

    .jn-pill {
        display: inline-block;
        font-size: 0.78rem;
        font-weight: 700;
        padding: 0.45rem 0.85rem;
        border-radius: 999px;
        white-space: nowrap;
        line-height: 1.2;
    }

    .jn-pill--solid {
        background: linear-gradient(180deg, var(--gold-hot), var(--gold-foil));
        color: var(--bg-void);
    }

    .jn-pill--ghost {
        background: transparent;
        border: 1.5px solid var(--gold-hot);
        color: var(--gold-hot);
    }

    /* top-bar icon buttons — Home / Winners, moved up here from the bottom
       dock for logged-in users so that dock has more room for the games */
    .jn-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1.5px solid rgba(245, 184, 46, 0.3);
        color: var(--gold-hot);
        font-size: 1.05rem;
        flex-shrink: 0;
    }
    .jn-icon-btn.active {
        background: rgba(245, 184, 46, 0.15);
        border-color: var(--gold-hot);
    }

    .navbar-toggler { padding: 0; border: none; box-shadow: none; }

    /* ---- drawer: repurpose the existing Bootstrap collapse as a full-height slide-in panel ---- */
    .jn-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 10, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1055;
    }

    body:has(#navbarSupportedContent.show) .jn-drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    #navbarSupportedContent {
        display: block !important;
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        width: 84%;
        max-width: 340px;
        height: 100vh !important;
        margin: 0 !important;
        overflow-y: auto;
        background: var(--bg-panel);
        border-left: 1px solid var(--hairline);
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.55);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1060;
        padding: 1.4rem 1.2rem 2rem;
    }

    #navbarSupportedContent.show { transform: translateX(0); }

    #navbarSupportedContent .main-menu { flex-direction: column; align-items: flex-start; }
    #navbarSupportedContent .nav-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 1rem 0;
        width: 100%;
    }
    #navbarSupportedContent .language-select { width: 100%; }
    .jn-hide-mobile { display: none !important; }

    .jn-drawer-greet {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--hairline);
    }

    .jn-drawer-greet__avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 50%;
        background: linear-gradient(180deg, var(--gold-hot), var(--gold-foil));
        color: var(--bg-void);
        font-weight: 800;
        text-transform: uppercase;
    }

    .jn-drawer-greet__text { display: flex; flex-direction: column; gap: 0.2rem; }
    .jn-drawer-greet__text strong { color: var(--white-hot); font-size: 0.95rem; text-transform: capitalize; }
    .jn-drawer-greet__text a { color: var(--gold-hot); font-size: 0.78rem; }

    .jn-drawer-footer {
        display: block;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--hairline);
    }

    .jn-drawer-footer__links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 0.9rem;
        list-style: none;
        padding: 0;
        margin: 0 0 0.9rem;
    }

    .jn-drawer-footer__links a { color: var(--muted-slate); font-size: 0.82rem; }

    .jn-drawer-footer__social {
        display: flex;
        gap: 0.6rem;
        list-style: none;
        padding: 0;
        margin: 0 0 0.9rem;
    }

    .jn-drawer-footer__social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--bg-raised);
        color: var(--white-hot);
    }

    .jn-drawer-footer__copy { color: var(--muted-slate); font-size: 0.75rem; margin: 0; }
    .jn-drawer-footer__copy a { color: var(--gold-hot); }

    /* ---- bottom dock ---- */
    .footer { display: none; }

    body { padding-bottom: 76px; }

    .jn-dock {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 64px;
        background: var(--bg-panel);
        border-top: 1px solid var(--hairline);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
        z-index: 1040;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .jn-dock__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        color: var(--muted-slate);
        font-size: 0.52rem;
        font-weight: 600;
        flex: 1;
        min-width: 0;
        padding: 0 0.05rem;
    }

    /* 6 items at 375px is tight -- nudge the icon down a touch to fit */
    .jn-dock__item i { font-size: 1.02rem; }

    .jn-dock__item.active { color: var(--gold-hot); }

    .jn-dock__item--cta {
        position: relative;
        color: var(--white-hot);
    }

    .jn-dock__cta-circle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, #ff8a9a, var(--powerball-red) 55%, #7a0f1e 100%);
        box-shadow: 0 6px 18px rgba(226, 61, 79, 0.5), 0 0 0 6px var(--bg-void);
        margin-bottom: 0.2rem;
        overflow: hidden;
    }

    .jn-dock__cta-circle::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 12px;
        width: 12px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.65);
        transform: rotate(-30deg);
        filter: blur(0.5px);
    }

    .jn-dock__cta-circle svg {
        animation: lottery-ticket-bounce 1.6s ease-in-out infinite;
    }

    @keyframes lottery-ticket-bounce {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        25%      { transform: translateY(-3px) rotate(-8deg); }
        50%      { transform: translateY(0) rotate(0deg); }
        75%      { transform: translateY(-1px) rotate(6deg); }
    }

    /* a small custom ticket-stub glyph (rounded body, dashed tear line,
       two punched notches) instead of a generic ticket icon font glyph --
       reads more clearly as "a ticket" at 46px than the line-icon did */
    .jn-dock__ticket {
        position: relative;
        z-index: 1;
        width: 21px;
        height: 15px;
        background: var(--bg-void);
        border-radius: 3px;
    }

    .jn-dock__ticket::before {
        content: "";
        position: absolute;
        top: 3px;
        bottom: 3px;
        left: 50%;
        border-left: 1.5px dashed rgba(255, 255, 255, 0.55);
    }

    .jn-dock__ticket__notch {
        position: absolute;
        left: 50%;
        width: 6px;
        height: 6px;
        background: var(--gold-hot);
        border-radius: 50%;
        transform: translateX(-50%);
    }

    .jn-dock__ticket__notch--t { top: -3px; }
    .jn-dock__ticket__notch--b { bottom: -3px; }

    .jn-dock__item--cta span:last-child { color: var(--gold-hot); }

    /* ---- Powerball's own raised dock CTA: a glossy multi-colour ball
       instead of the flat ticket icon, so it reads as a distinct game
       rather than a variant of "Draws" ---- */
    .jn-dock__item--pb {
        position: relative;
        color: var(--white-hot);
    }

    .jn-dock__cta-circle--pb {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 0.2rem;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, #ff8a9a, var(--powerball-red) 55%, #7a0f1e 100%);
        box-shadow: 0 6px 18px rgba(226, 61, 79, 0.5), 0 0 0 6px var(--bg-void);
        overflow: hidden;
    }

    .jn-dock__cta-circle--pb::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 12px;
        width: 12px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.55);
        transform: rotate(-30deg);
        filter: blur(0.5px);
    }

    .jn-dock__ball-number {
        position: relative;
        z-index: 1;
        font-family: Georgia, 'Times New Roman', serif;
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--bg-void);
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .jn-dock__item--pb span:last-child { color: var(--powerball-red); }

    .jn-dock__cta-circle--pb svg {
        animation: pb-spin-pause 5s ease-in-out infinite;
    }

    @keyframes pb-spin-pause {
        0%   { transform: rotate(0deg); }
        22%  { transform: rotate(360deg); }
        100% { transform: rotate(360deg); }
    }

    /* ---- Chikorokoza raised dock CTA ---- */
    .jn-dock__item--ckz {
        position: relative;
        color: var(--white-hot);
    }

    .jn-dock__cta-circle--ckz {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 0.2rem;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, #e8eaed, #9aa0aa 55%, #2d3139 100%);
        box-shadow: 0 6px 18px rgba(148, 160, 176, 0.45), 0 0 0 6px var(--bg-void);
    }

    .jn-dock__cta-circle--ckz::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 12px;
        width: 12px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        transform: rotate(-30deg);
        filter: blur(0.5px);
    }

    .jn-dock__item--ckz span:last-child { color: #9aa0aa; }

    .jn-dock__cta-circle--ckz svg {
        animation: ckz-pick-swing 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
        transform-origin: 70% 75%;
    }

    @keyframes ckz-pick-swing {
        0%   { transform: rotate(-18deg); }
        45%  { transform: rotate(14deg);  }
        55%  { transform: rotate(14deg);  }
        100% { transform: rotate(-18deg); }
    }

    /* ---- Head or Tails bottom nav item ---- */
    .jn-dock__item--ht {
        position: relative;
        color: var(--white-hot);
        perspective: 400px;
    }

    .jn-dock__cta-circle--ht {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 0.2rem;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, #ffffff, #e4e4e4 55%, #b8b8b8 100%);
        box-shadow: 0 6px 18px rgba(160, 160, 160, 0.45), 0 0 0 6px var(--bg-void);
    }

    .jn-dock__cta-circle--ht svg {
        border-radius: 50%;
        animation: coin-nav-flip 5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    }

    @keyframes coin-nav-flip {
        0%, 55%, 100% { transform: rotateY(0deg); }
        28%            { transform: rotateY(360deg); }
    }

    .jn-dock__cta-circle--ht::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 12px;
        width: 12px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.55);
        transform: rotate(-30deg);
        filter: blur(0.5px);
        pointer-events: none;
        z-index: 2;
    }

    .jn-dock__item--ht span:last-child { color: var(--gold-hot); }

    /* ── Chicken Road nav icon ── */
    .jn-dock__cta-circle--cr {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 0.2rem;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, #8af0b0, var(--win-green) 55%, #0e6b3a 100%);
        box-shadow: 0 6px 18px rgba(92, 242, 160, 0.45), 0 0 0 6px var(--bg-void);
        color: #1a1a1a;
    }

    .jn-dock__cta-circle--cr img {
        width: 30px;
        height: auto;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
        animation: cr-nav-hop 1.1s ease-in-out infinite;
    }

    @keyframes cr-nav-hop {
        0%, 100% { transform: translateY(0) scale(1, 1); }
        30%      { transform: translateY(-4px) scale(1.05, 0.95); }
        55%      { transform: translateY(0) scale(0.95, 1.05); }
    }

    .jn-dock__item--cr span:last-child { color: var(--win-green); }

    /* ── Number Slots nav icon ── */
    .jn-dock__cta-circle--slots {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 0.2rem;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, #c080ff, #6030cc 55%, #200a50 100%);
        box-shadow: 0 6px 18px rgba(100, 40, 210, 0.5), 0 0 0 6px var(--bg-void);
        overflow: hidden;
    }

    .jn-dock__cta-circle--slots::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 12px;
        width: 12px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: rotate(-30deg);
        filter: blur(0.5px);
        pointer-events: none;
    }

    .jn-dock__item--slots span:last-child { color: #b080ff; }

    /* ---- page header strip: was a full stock-image hero on every inner page ---- */
    .inner-hero {
        background-image: none !important;
        min-height: auto;
        padding: 1.1rem 0 1.3rem;
        text-align: left;
    }

    .inner-hero.overlay--one::before { display: none; }

    .inner-hero .row { justify-content: flex-start !important; }

    .inner-hero .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left !important;
    }

    .inner-hero .page-title {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--white-hot) !important;
        margin: 0;
    }

    .inner-hero::after {
        content: "";
        display: block;
        height: 1px;
        margin-top: 1rem;
        background: repeating-linear-gradient(100deg, var(--hairline) 0 10px, transparent 10px 16px);
    }

    /* the section right after the hero strip still carries top padding sized for the old tall image hero */
    .inner-hero + section[class*="pt-"] { padding-top: 0.75rem !important; }
    .inner-hero + section[class*="pt-"] > .container > .row.mt-5 { margin-top: 0 !important; }

    /* the dashboard page has no breadcrumb/hero above it (removed intentionally),
       so it can't rely on the ".inner-hero +" rule above -- same compact spacing,
       anchored directly to the page instead of a sibling that no longer exists */
    .jn-dashboard-section { padding-top: 0.75rem !important; }
    .jn-dashboard-section > .container > .row.mt-5 { margin-top: 0 !important; }

    /* ---- user dashboard: stat cards 2-up, compact heading, mini ticket list ---- */
    .jn-show-mobile { display: block; }

    .jn-stat-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin: 0 0 0.8rem;
    }

    .jn-stat-grid > [class*="col-"] {
        flex: none;
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .jn-stat-card {
        display: flex;
        flex-direction: column;
        padding: 0.75rem !important;
        border-radius: 12px !important;
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline);
        min-height: auto;
    }

    .jn-stat-card > span:not(.jn-stat-card__icon) {
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--muted-slate) !important;
        order: 2;
    }

    .jn-stat-card .number {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 1.3rem !important;
        margin: 0.1rem 0 0.35rem !important;
        order: 3;
        color: var(--gold-hot) !important;
    }

    .jn-stat-card .view--btn {
        order: 4;
        float: none;
        align-self: flex-start;
        margin-top: auto;
        padding: 2px 8px !important;
        border: 1px solid var(--hairline) !important;
        border-radius: 999px !important;
        background-color: var(--bg-raised) !important;
        color: var(--gold-hot) !important;
        font-size: 0.64rem !important;
    }

    .jn-stat-card__icon {
        order: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 8px;
        background: var(--bg-raised);
        color: var(--gold-hot);
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .jn-stat-card--feature { text-align: left !important; }
    .jn-stat-card--feature span.text--dark { color: var(--muted-slate) !important; }
    .jn-stat-card--feature .number.text--dark { color: var(--gold-hot) !important; }

    .dashboard-card .icon { display: none; }

    .jn-dash-heading { margin-bottom: 1rem; text-align: left !important; }
    .jn-dash-heading .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
    .jn-dash-heading .section-title {
        font-size: 1.2rem;
        text-align: left;
    }

    .jn-mini-ticket {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        padding: 0.9rem 1rem;
        margin-bottom: 0.7rem;
        background: var(--bg-panel);
        border: 1px solid var(--hairline);
        border-radius: 12px;
        text-decoration: none;
    }

    .jn-mini-ticket__main { min-width: 0; flex: 1 1 0%; }

    .jn-mini-ticket__main h6 {
        font-size: 0.9rem;
        color: var(--white-hot);
        margin: 0 0 0.2rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .jn-mini-ticket__main span {
        font-size: 0.72rem;
        color: var(--muted-slate);
    }

    .jn-mini-ticket__status {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
        font-size: 0.72rem;
        text-align: right;
    }

    .jn-mini-ticket__win { color: var(--win-green); font-weight: 700; }
    .jn-mini-ticket__loss { color: var(--gold-hot); font-weight: 700; }
    .jn-mini-ticket__level { color: var(--muted-slate); }

    .jn-mini-ticket__action {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: var(--bg-raised);
        border: 1px solid var(--hairline);
        color: var(--gold-hot);
        font-size: 0.85rem;
    }

    .jn-referral .form--control {
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline) !important;
        color: var(--white-hot) !important;
        font-size: 0.8rem;
    }

    .jn-referral .copytext {
        background: var(--bg-raised) !important;
        border: 1px solid var(--hairline) !important;
        color: var(--gold-hot) !important;
    }

    /* ---- dialogs & confirmations: bottom sheet instead of a floating box ---- */
    .modal-dialog {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0 !important;
        width: 100%;
        max-width: 100%;
        transform: translateY(100%) !important;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1) !important;
    }

    .modal.show .modal-dialog { transform: translateY(0) !important; }

    .modal-content {
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline);
        border-bottom: none;
        border-radius: 20px 20px 0 0 !important;
        padding-bottom: env(safe-area-inset-bottom);
        position: relative;
    }

    .modal-content::before {
        content: "";
        position: absolute;
        top: 0.6rem;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 999px;
        background: var(--hairline);
    }

    .modal-header {
        border-bottom: 1px solid var(--hairline);
        padding: 1.5rem 1.25rem 1rem;
    }

    .modal-header .modal-title {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 1.15rem;
        color: var(--white-hot);
    }

    .modal-header .close,
    .modal-header .btn-close {
        color: var(--muted-slate);
        opacity: 1;
        filter: none;
    }

    .modal-body {
        color: var(--muted-slate);
        padding: 1.25rem;
    }

    .modal-body .question,
    .modal-body h6 {
        color: var(--white-hot);
        font-size: 0.95rem;
    }

    .modal-footer {
        border-top: 1px solid var(--hairline);
        padding: 1rem 1.25rem 1.25rem;
        gap: 0.6rem;
    }

    .modal-footer .btn {
        flex: 1;
        margin: 0 !important;
        border-radius: 999px;
        padding: 0.65rem 1rem;
        font-weight: 700;
    }

    .modal-footer .btn--danger {
        background: transparent !important;
        border: 1.5px solid var(--hairline) !important;
        color: var(--muted-slate) !important;
    }

    .modal-footer .btn--base {
        background: linear-gradient(180deg, var(--gold-hot), var(--gold-foil)) !important;
        border: none !important;
        color: var(--bg-void) !important;
    }

    .modal-backdrop.show { opacity: 0.7; }

    .modal .list-group-item {
        background: var(--bg-raised) !important;
        border-color: var(--hairline) !important;
        color: var(--white-hot) !important;
    }

    /* ---- toast notifications: snackbar above the dock instead of a desktop corner toast ---- */
    .iziToast-wrapper-topRight,
    .iziToast-wrapper-topLeft,
    .iziToast-wrapper-topCenter,
    .iziToast-wrapper-bottomRight,
    .iziToast-wrapper-bottomLeft,
    .iziToast-wrapper-bottomCenter {
        top: auto !important;
        bottom: 84px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        padding: 0 0.9rem;
    }

    .iziToast-capsule { width: 100%; }

    .iziToast {
        width: 100% !important;
        max-width: 100%;
        min-height: auto !important;
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline) !important;
        border-left: 4px solid var(--gold-hot) !important;
        border-radius: 12px !important;
        padding: 0.9rem 2.6rem 0.9rem 2.6rem !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    }

    .iziToast-color-green { border-left-color: var(--win-green) !important; }
    .iziToast-color-red { border-left-color: #ff6b6b !important; }
    .iziToast-color-yellow { border-left-color: var(--gold-hot) !important; }
    .iziToast-color-blue { border-left-color: #6bb8ff !important; }

    .iziToast-title {
        color: var(--white-hot) !important;
        font-size: 0.85rem;
        opacity: 1 !important;
    }

    .iziToast-message {
        color: var(--muted-slate) !important;
        font-size: 0.8rem;
    }

    .iziToast-icon {
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }

    .iziToast > .iziToast-close {
        filter: invert(1);
        opacity: 0.6;
    }

    .iziToast > .iziToast-progressbar { background: rgba(255, 255, 255, 0.08) !important; }
    .iziToast > .iziToast-progressbar > div { background: var(--gold-hot) !important; }

    /* ---- this week's draws: small auto-scrolling strip, dropped in wherever without a heading ---- */
    .jn-week-strip {
        display: block;
        overflow: hidden;
        margin: 0.6rem 0;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    }

    /* the carousel sits flush against the end of its section -- collapse the
       section's own padding there instead of stacking it with the next
       section's top padding too. Plain classes (not :has()) so this doesn't
       silently no-op on older mobile browsers/webviews. */
    .jn-section-tight-end { padding-bottom: 0.5rem !important; }
    .jn-section-tight-start { padding-top: 0.75rem !important; }

    .jn-week-strip__track {
        display: flex;
        gap: 0.6rem;
        width: max-content;
        animation-name: jn-week-scroll;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-duration: calc(var(--jn-week-count, 6) * 3s);
    }

    .jn-week-strip:active .jn-week-strip__track { animation-play-state: paused; }

    .jn-week-card {
        flex: 0 0 auto;
        width: 24vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        text-align: center;
    }

    .jn-week-card__thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid var(--hairline);
        background: var(--bg-raised);
    }

    .jn-week-card__date {
        font-size: 0.6rem;
        font-weight: 600;
        color: var(--muted-slate);
        white-space: nowrap;
    }

    /* ---- latest winners: small auto-scrolling timeline, replaces the card grid on mobile ---- */
    .jn-winner-feed {
        position: relative;
        height: 19rem;
        overflow: hidden;
        margin: 0.6rem 0;
        -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
    }

    .jn-winner-feed__track {
        position: relative;
        display: flex;
        flex-direction: column;
        animation-name: jn-winner-scroll;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-duration: calc(var(--jn-winner-count, 6) * 2.2s);
    }

    .jn-winner-feed:active .jn-winner-feed__track { animation-play-state: paused; }

    .jn-winner-feed__track::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 6px;
        width: 1px;
        background: var(--hairline);
    }

    .jn-winner-feed__item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.3rem 0;
    }

    .jn-winner-feed__node {
        flex: 0 0 auto;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--gold-hot);
        box-shadow: 0 0 0 3px var(--bg-void), 0 0 6px rgba(245, 184, 46, 0.6);
        position: relative;
        z-index: 1;
    }

    .jn-winner-feed__card {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        background: var(--bg-panel);
        border: 1px solid var(--hairline);
        border-radius: 10px;
        padding: 0.45rem 0.65rem;
    }

    .jn-winner-feed__who {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .jn-winner-feed__who strong {
        font-size: 0.74rem;
        color: var(--white-hot);
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jn-winner-feed__who span {
        font-size: 0.62rem;
        color: var(--muted-slate);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jn-winner-feed__amt {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--gold-hot);
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* ---- compact lottery rows: same idea as the winners feed -- the full
       card (image + progress bar + meta + big button) took a whole screen
       per draw. Collapse it to one tappable row, just over thumb height. ---- */
    .jn-ticket-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .jn-ticket-row {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        background: var(--bg-panel);
        border: 1px solid var(--hairline);
        border-radius: 12px;
        padding: 0.45rem 0.7rem;
        text-decoration: none;
    }

    .jn-ticket-row__thumb {
        width: 50px;
        height: 50px;
        border-radius: 9px;
        object-fit: cover;
        flex-shrink: 0;
        background: var(--bg-raised);
    }

    .jn-ticket-row__info {
        flex: 1 1 0%;
        min-width: 0;
    }

    .jn-ticket-row__name {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--white-hot);
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jn-ticket-row__draw {
        display: block;
        font-size: 0.66rem;
        color: var(--muted-slate);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jn-ticket-row__price {
        text-align: right;
        color: var(--gold-hot);
        font-weight: 800;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .jn-ticket-row__price small {
        display: block;
        color: var(--muted-slate);
        font-size: 0.55rem;
        font-weight: 500;
        text-transform: uppercase;
    }

    /* ── Urgency badges ── */
    .jn-urgency {
        display: inline-block;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        padding: 0.15rem 0.45rem;
        border-radius: 999px;
        line-height: 1.5;
        margin-top: 0.22rem;
    }

    .jn-urgency--critical {
        background: rgba(255, 35, 55, 0.14);
        color: #ff2337;
        border: 1px solid rgba(255, 35, 55, 0.45);
        animation: jn-urgency-pulse 1.1s ease-in-out infinite;
    }

    .jn-urgency--today {
        background: rgba(255, 130, 0, 0.14);
        color: #ff8200;
        border: 1px solid rgba(255, 130, 0, 0.4);
    }

    .jn-urgency--tomorrow {
        background: rgba(245, 184, 46, 0.13);
        color: var(--gold-hot);
        border: 1px solid rgba(245, 184, 46, 0.4);
    }

    .jn-urgency--week {
        background: rgba(40, 210, 130, 0.11);
        color: #28d282;
        border: 1px solid rgba(40, 210, 130, 0.35);
    }

    .jn-urgency--month {
        background: rgba(80, 150, 255, 0.11);
        color: #5096ff;
        border: 1px solid rgba(80, 150, 255, 0.3);
    }

    .jn-urgency--later {
        background: rgba(122, 122, 140, 0.1);
        color: var(--muted-slate);
        border: 1px solid rgba(122, 122, 140, 0.25);
    }

    @keyframes jn-urgency-pulse {
        0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 35, 55, 0.4); }
        50%       { opacity: 0.75; box-shadow: 0 0 0 4px rgba(255, 35, 55, 0); }
    }

    /* section headings had a desktop-scale 45px gap to whatever follows --
       far too loose once everything below them (carousel, ticket rows,
       winner feed) is already tight */
    .section-header { margin-bottom: 0.9rem; }

    /* ---- auth pages: login / register / password reset --
       was pt-100/pb-100 (80px top+bottom on mobile already) stacked on top of
       the leftover cyan account-wrapper theme from the original template,
       plus 50px-tall inputs -- pushed the submit button below the fold.
       Re-themed to match the gold/dark redesign and tightened to fit one
       screen. ---- */
    .jn-auth-section {
        padding-top: 0.75rem;
        /* the fixed bottom dock (.jn-dock) is 64px tall -- clear it so
           content near the natural page end isn't hidden under it */
        padding-bottom: 5rem;
    }

    .jn-auth-card {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        padding: 1.25rem 1.1rem !important;
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline) !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
        animation: none !important;
    }

    .jn-auth-card .account-thumb-area {
        margin-bottom: 0.85rem;
    }

    .jn-auth-card .account-thumb-area .title {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--white-hot);
        line-height: 1.25;
    }

    .jn-auth-card .form-group {
        margin-bottom: 0.55rem;
    }

    .jn-auth-card label,
    .jn-auth-card .form-check-label {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--muted-slate);
        margin-bottom: 0.3rem;
    }

    .jn-auth-card .form--control {
        height: 2.6rem;
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        background: var(--bg-raised) !important;
        border: 1px solid var(--hairline) !important;
        border-radius: 10px;
        color: var(--white-hot) !important;
    }

    .jn-auth-card .form--control:focus {
        background: var(--bg-panel) !important;
        border-color: var(--gold-hot) !important;
        box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.15) !important;
    }

    .jn-auth-card .form--control::-webkit-input-placeholder,
    .jn-auth-card .form--control::placeholder { color: var(--muted-slate); }

    .jn-auth-card .custom--field .form--control { padding-left: 2.3rem; }

    .jn-auth-card .custom--field i {
        left: 0.8rem;
        font-size: 1rem;
        color: var(--gold-foil);
    }

    .jn-auth-card .input-group-text {
        height: 2.6rem;
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        background: var(--bg-raised) !important;
        border: 1px solid var(--hairline) !important;
        color: var(--muted-slate) !important;
    }

    .jn-auth-card .mt-4,
    .jn-auth-card .py-3 {
        margin-top: 0.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0.5rem !important;
    }

    .jn-auth-card .form-check-input {
        accent-color: var(--gold-hot);
        margin-top: 0.15rem;
    }

    .jn-auth-card .d-flex.justify-content-between {
        font-size: 0.72rem;
    }

    .jn-auth-card .d-flex.justify-content-between .form-group {
        margin-bottom: 0.5rem;
    }

    .jn-auth-card a.text-white,
    .jn-auth-card a.text--base {
        color: var(--gold-hot) !important;
    }

    .jn-auth-card .btn--base {
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem;
        font-weight: 700;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--gold-hot), var(--gold-foil)) !important;
        color: var(--bg-void) !important;
        border: none;
    }

    .jn-auth-card p {
        font-size: 0.78rem;
        color: var(--muted-slate);
    }

    .jn-auth-card p.mt-3 { margin-top: 0.6rem !important; }

    .jn-auth-card p.mt-3 .text-white { color: var(--muted-slate) !important; }

    .jn-auth-card small.usernameExist,
    .jn-auth-card small.mobileExist {
        font-size: 0.66rem;
    }

    .jn-auth-card label[for="agree"] {
        font-size: 0.74rem;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 400;
        color: var(--muted-slate);
    }

    /* profile-settings page reuses jn-auth-card on a Bootstrap .card --
       .card-body already carries its own padding, so the card's own
       padding would otherwise stack on top of it */
    .jn-auth-card .card-body { padding: 0 !important; }

    .jn-auth-card .pt-5 { padding-top: 0.9rem !important; }

    /* ---- wallet / support / security pages reusing jn-auth-card --
       a few patterns here that login/register never used: textareas,
       small icon buttons, breakdown list-groups, and card-header strips. ---- */
    .jn-auth-card textarea.form--control {
        height: auto;
        min-height: 6rem;
        padding: 0.6rem 0.9rem;
    }

    .jn-auth-card input[type="file"].form--control {
        height: auto;
        padding: 0.55rem 0.7rem;
        font-size: 0.78rem;
    }

    .jn-auth-card pre {
        white-space: pre-wrap;
        font-size: 0.7rem;
        background: var(--bg-raised);
        border: 1px solid var(--hairline);
        border-radius: 8px;
        padding: 0.5rem 0.7rem;
        margin-top: 0.4rem;
    }

    .jn-auth-card .btn--base.btn-sm {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.72rem;
        border-radius: 999px;
    }

    .jn-auth-card .list-group-item {
        background: var(--bg-raised) !important;
        border-color: var(--hairline) !important;
        color: var(--white-hot);
        font-size: 0.78rem;
        padding: 0.55rem 0.8rem;
    }

    .jn-auth-card .card-header {
        background: transparent;
        border-bottom: 1px solid var(--hairline);
        padding: 0 0 0.7rem;
        margin-bottom: 0.9rem;
    }

    .jn-auth-card .card-header .card-title {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 1.05rem;
        color: var(--white-hot);
        margin: 0;
    }

    .jn-auth-card .card-header h5 { font-size: 0.95rem; margin: 0; }

    .jn-auth-card label { display: block; }

    .jn-auth-card p,
    .jn-auth-card h6 { font-size: 0.78rem; color: var(--muted-slate); }

    .jn-auth-card h4 { font-size: 1rem; color: var(--white-hot); }

    /* QR code (2FA setup) needs a light frame to read against the dark card */
    .jn-auth-card .form-group > img {
        background: #fff;
        padding: 0.6rem;
        border-radius: 12px;
        max-width: 160px;
    }

    .jn-auth-card .text-muted { color: var(--muted-slate) !important; }

    /* ---- history pages (deposit / withdraw / support list) --
       same section-padding tightening as the auth pages, plus the search
       bar used raw Bootstrap .form-control/.bg-primary instead of the
       site's themed input, which left it looking like an unstyled default
       browser input against the dark page. ---- */
    .jn-list-section {
        padding-top: 0.75rem;
        /* clear the fixed 64px-tall bottom dock (.jn-dock) */
        padding-bottom: 5rem;
    }

    .jn-list-section input.form-control {
        background: var(--bg-panel);
        border: 1px solid var(--hairline);
        color: var(--white-hot);
        height: 2.6rem;
        font-size: 0.85rem;
    }

    .jn-list-section input.form-control::placeholder { color: var(--muted-slate); }

    .jn-list-section .input-group-text.bg-primary {
        background: var(--gold-hot) !important;
        color: var(--bg-void) !important;
    }

    /* ---- ticket conversation thread (support/view) --
       the reply form above this reuses jn-auth-card; this re-themes the
       message list below it from Bootstrap blue/yellow borders to the
       gold/dark palette and stacks sender + message tighter on mobile. ---- */
    .jn-thread {
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline);
        border-radius: 16px;
        margin-top: 1rem !important;
    }

    .jn-thread .card-body { padding: 0.9rem !important; }

    .jn-thread .row {
        background: var(--bg-raised) !important;
        border-color: var(--hairline) !important;
        border-radius: 12px;
        margin: 0 0 0.7rem !important;
        padding: 0.7rem !important;
    }

    .jn-thread .col-md-3 {
        border-right: none !important;
        border-bottom: 1px solid var(--hairline);
        text-align: left !important;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .jn-thread .col-md-3 h6 { color: var(--gold-hot); font-size: 0.85rem; }
    .jn-thread .col-md-3 p { margin: 0; font-size: 0.68rem; }
    .jn-thread .col-md-9 small { font-size: 0.68rem; }
    .jn-thread .col-md-9 p { color: var(--white-hot); font-size: 0.85rem; }

    /* ---- verification / OTP screens (email, sms, 2FA, password code) --
       lighter-touch re-theme: only colors + outer padding change. Width and
       letter-spacing of the OTP boxes stay untouched -- they're hand-tuned
       per breakpoint in verification-code.css and easy to misalign. ---- */
    .jn-otp-card.verification-code-wrapper {
        padding: 1.25rem 1rem !important;
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline) !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
        animation: none !important;
    }

    .jn-otp-card .verification-text {
        font-size: 0.8rem !important;
        color: var(--muted-slate);
        text-align: center;
    }

    .jn-otp-card .boxes span {
        background: var(--bg-raised) !important;
        border: 1px solid var(--hairline) !important;
    }

    .jn-otp-card .verification-code input { color: var(--gold-hot) !important; }

    .jn-otp-card .btn--base {
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem;
        font-weight: 700;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--gold-hot), var(--gold-foil)) !important;
        color: var(--bg-void) !important;
        border: none;
    }

    .jn-otp-card p,
    .jn-otp-card .form-group { font-size: 0.78rem; color: var(--muted-slate); }

    .jn-otp-card a.text--base,
    .jn-otp-card a:not(.btn) { color: var(--gold-hot); }

    /* ---- ticket purchase page (lottery details) --
       was a 2.5rem-padded cyan-glow header + a countdown widget, then each
       ticket lived in its own ~240px-tall card (header strip + 48px digits +
       full-width button), and Buy Now sat at the very bottom of the page --
       below however many of those cards you'd added. Compacted to one-line
       stat strips, single-row ticket chips, and a buy bar pinned above the
       dock so it's always reachable without scrolling. ---- */
    .jn-ticket-section {
        padding-top: 0.75rem;
        padding-bottom: 6.5rem;
    }

    .lottery-details-header {
        padding: 1rem;
        background: var(--bg-panel);
        border: 1px solid var(--hairline);
        border-radius: 16px;
        box-shadow: none;
        animation: none;
    }

    .lottery-details-header .thumb { margin-bottom: 0.6rem; }

    .lottery-details-header .thumb img {
        max-height: 3.2rem;
        width: auto;
        margin: 0 auto;
    }

    .lottery-details-header .content .game-name {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
        color: var(--white-hot);
    }

    .lottery-details-header .content .clock {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .lottery-details-header .content .clock>div {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        padding: 0.45rem 0.3rem;
        background: var(--bg-raised);
        box-shadow: none;
        border: 1px solid var(--hairline);
        border-radius: 10px;
        margin-top: 0 !important;
    }

    .lottery-details-header .content .clock>div span {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 1.05rem !important;
        color: var(--gold-hot);
    }

    .lottery-details-header .content .clock>div p {
        font-size: 0.55rem;
        color: var(--muted-slate);
        margin-top: 0.15rem;
        white-space: nowrap;
    }

    .lottery-details-body {
        background: var(--bg-panel);
        border: 1px solid var(--hairline);
        border-radius: 16px;
        margin-top: 1rem;
    }

    .lottery-details-body .top-part {
        padding: 0.7rem 0.8rem;
        gap: 0.4rem 0.7rem;
        align-items: flex-start;
    }

    .lottery-details-body .top-part .left,
    .lottery-details-body .top-part .middle,
    .lottery-details-body .top-part .right {
        width: auto;
        text-align: left;
        margin-top: 0;
    }

    .lottery-details-body .top-part .left {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem 0.9rem;
    }

    .lottery-details-body .top-part .left h4 {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--muted-slate);
        margin: 0 !important;
        white-space: nowrap;
    }

    .lottery-details-body .top-part .right { display: flex; align-items: center; }

    .lottery-details-body .top-part .middle { order: 3; width: 100%; text-align: left; }

    .lottery-details-body .top-part .middle .balance {
        font-size: 0.8rem !important;
        color: var(--gold-hot);
    }

    .lottery-details-body .top-part .right .addMore {
        padding: 0.4rem 0.9rem !important;
        font-size: 0.72rem;
        border-radius: 999px;
    }

    .lottery-details-body .body-part { padding: 0.7rem; }

    /* each ticket collapses to one compact row instead of a full card */
    .ticket-card {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: var(--bg-panel);
        border: 1px solid var(--hairline);
        border-radius: 12px;
        padding: 0.5rem 0.6rem;
    }

    .ticket-card .ticket-card-del {
        position: static;
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        background: var(--bg-raised);
        color: var(--gold-hot);
        border: 1px solid var(--hairline);
    }

    .ticket-card__header { display: none; }

    .ticket-card__body {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .ticket-card__body .numbers {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0 !important;
        justify-content: flex-start;
        overflow: hidden;
    }

    .ticket-card__body .numbers span {
        font-size: 0.82rem !important;
        width: auto;
        flex: 1 1 0;
        text-align: center;
    }

    .ticket-card__body .generate {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        flex: 0 0 auto;
        width: auto !important;
        padding: 0.4rem 0.65rem !important;
        font-size: 0.68rem;
        font-weight: 700;
        white-space: nowrap;
        border-radius: 999px;
    }

    .ticket-card__body .generate i { font-size: 0.78rem; }

    /* buy bar pinned above the dock -- the thing that used to be the
       furthest scroll from the top of the page is now always reachable */
    .lottery-details-body .footer-part {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 64px;
        z-index: 1030;
        margin: 0;
        padding: 0.6rem 0.9rem;
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
        background: var(--bg-panel);
        border-top: 1px solid var(--hairline);
        border-radius: 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
        align-items: center;
    }

    .lottery-details-body .footer-part .left p:first-child { display: none; }

    .lottery-details-body .footer-part .left p.mt-2 {
        margin: 0 !important;
        font-size: 0.72rem;
        color: var(--muted-slate);
    }

    .lottery-details-body .footer-part .left .tam {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: 0.95rem;
        color: var(--gold-hot);
    }

    .lottery-details-body .footer-part .buyBtn {
        padding: 0.6rem 1.1rem !important;
        font-size: 0.82rem;
        font-weight: 700;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--gold-hot), var(--gold-foil)) !important;
        border: none !important;
        color: var(--bg-void) !important;
    }

    .lottery-details-instruction {
        background: var(--bg-panel) !important;
        border: 1px solid var(--hairline);
        border-radius: 16px;
        padding: 0.9rem;
        margin-top: 1rem;
    }

    .lottery-details-instruction .cumtom--nav-tabs {
        background: var(--bg-raised) !important;
    }

    .cumtom--nav-tabs .nav-item .nav-link {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.78rem;
        border-color: var(--hairline) !important;
        color: var(--muted-slate);
    }

    .cumtom--nav-tabs .nav-item .nav-link.active {
        background-color: var(--gold-hot) !important;
        border-color: var(--gold-hot) !important;
        color: var(--bg-void) !important;
    }

    .lottery-details-instruction h3 { font-size: 1.1rem; color: var(--white-hot); }

@keyframes jn-week-scroll {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes jn-winner-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

/* ==========================================================================
   Powerball — a second, separate game from the raffle (shares this theme
   and the wallet only, see PowerballDrawService / PowerballController).
   ========================================================================== */

.jn-pb-badge {
    display: inline-block;
    background: var(--powerball-red);
    color: var(--white-hot);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    vertical-align: middle;
}

.jn-pb-badge--sm { font-size: 0.55rem; padding: 0.1rem 0.4rem; margin-right: 0.3rem; }

.jn-ticket-card .jn-pb-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
}

/* Powerball number-picker line -- deliberately its own namespace (.jn-pb-line,
   not .ticket-card) so the raffle's mobile ticket-row flex rules (which
   collapse .ticket-card__body into a single horizontal row) can never reach
   in and reflow this component sideways. Everything here is a plain block
   stack: nothing here should ever need flex-wrap to avoid overflow. */
.jn-pb-line {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 1.1rem;
}

.jn-pb-line__remove {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    color: var(--muted-slate);
    z-index: 2;
}

.jn-pb-line__remove:hover { color: var(--white-hot); border-color: var(--gold-hot); }

.jn-pb-line__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed var(--hairline);
}

.jn-pb-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    width: 100%;
}

.jn-pb-ball {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    color: var(--white-hot);
    font-weight: 700;
    font-size: 0.9rem;
}

.jn-pb-ball--special {
    border-color: var(--powerball-red);
    color: var(--powerball-red);
}

.jn-pb-line__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 18rem;
}

.jn-pb-quickpick {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: var(--gold-hot);
    border: 1px solid var(--gold-hot);
    color: var(--bg-void);
    font-weight: 700;
    font-size: 0.82rem;
}

.jn-pb-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--hairline);
    color: var(--muted-slate);
    font-weight: 600;
    font-size: 0.78rem;
    transition: border-color .15s, color .15s;
}

.jn-pb-clear:hover { border-color: var(--gold-hot); color: var(--white-hot); }

.jn-pb-section { margin-bottom: 1rem; }
.jn-pb-section:last-child { margin-bottom: 0; }

.jn-pb-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-slate);
}

.jn-pb-section__head--special { color: var(--powerball-red); }

.jn-pb-section__count {
    font-family: inherit;
    color: var(--white-hot);
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.7rem;
}

.jn-pb-grid {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
}

.jn-pb-grid--special {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.jn-pb-num {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    color: var(--muted-slate);
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.jn-pb-num:hover { border-color: var(--gold-hot); color: var(--white-hot); }

.jn-pb-num.is-selected {
    background: var(--gold-hot);
    border-color: var(--gold-hot);
    color: var(--bg-void);
}

.jn-pb-num--special.is-selected {
    background: var(--powerball-red);
    border-color: var(--powerball-red);
    color: var(--white-hot);
}

@media (max-width: 767px) {
    .jn-pb-line { padding: 0.85rem; }
    .jn-pb-grid { gap: 0.3rem; }
    .jn-pb-num { font-size: 0.7rem; }
    .jn-pb-ball { width: 1.9rem; height: 1.9rem; font-size: 0.78rem; }
    .jn-pb-line__actions { max-width: none; }
}

/* ==========================================================================
   Desktop → phone-column layout
   Constrains the site to a 430 px column centred on the page.
   Fixed elements (dock, drawer) are re-anchored to the column.
   ========================================================================== */
@media (min-width: 431px) {
    html {
        background: #030309;
    }

    body {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Bootstrap column breakpoints (sm/md/lg/xl/xxl) are viewport-based, not
       body-width-based. Force every responsive column to full-width so the
       layout stacks exactly as it does on a real phone screen. */
    [class*="col-sm"],
    [class*="col-md"],
    [class*="col-lg"],
    [class*="col-xl"],
    [class*="col-xxl"] {
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
    }

    /* .jn-week-card uses width:24vw which is correct on a real phone but
       resolves to ~346px on a 1440px desktop viewport, blowing past the 430px
       body. Pin it to the same proportion of the 430px column instead. */
    .jn-week-card { width: 100px; }

    /* Dock is position:fixed (viewport-relative) — re-centre it to body width */
    .jn-dock {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 430px;
    }

    /* Drawer: sit over the body column; push WAY off-screen right when closed.
       translateX(100%) only moves by own width and still lands inside a wide
       viewport, so use 100vw to guarantee it's off-screen. */
    #navbarSupportedContent {
        right: auto !important;
        left: calc(50% - 215px) !important;
        width: 430px !important;
        max-width: 430px !important;
        transform: translateX(100vw) !important;
    }
    #navbarSupportedContent.show {
        transform: translateX(0) !important;
    }
}

/* ── Section dividers (Drawing Soon / Coming Up) ──────────────────── */
.jn-section-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0 0.4rem;
}
.jn-section-divider--gap { padding-top: 1.25rem; }
.jn-section-divider__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.jn-section-divider__dot--soon  { background: #ff2337; box-shadow: 0 0 6px rgba(255,35,55,0.7); }
.jn-section-divider__dot--later { background: var(--gold-hot); box-shadow: 0 0 6px rgba(245,184,46,0.5); }
.jn-section-divider__label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-slate);
    white-space: nowrap;
}
.jn-section-divider__line {
    flex: 1;
    height: 1px;
    background: var(--hairline);
}

/* ── Draw tabs (Drawing Soon / Coming Up) ─────────────────────────── */
.jn-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 0.75rem;
}
.jn-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.55rem 0.9rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted-slate);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.jn-tab:hover { color: var(--white-hot); }
.jn-tab.active {
    color: var(--white-hot);
    border-bottom-color: var(--gold-hot);
}
.jn-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--bg-raised);
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--muted-slate);
    transition: background 0.15s, color 0.15s;
}
.jn-tab__count.active {
    background: rgba(245,184,46,0.15);
    color: var(--gold-hot);
}
.jn-tab__pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff2337;
    box-shadow: 0 0 0 0 rgba(255,35,55,0.5);
    animation: jn-tab-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes jn-tab-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255,35,55,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(255,35,55,0); }
    100% { box-shadow: 0 0 0 0   rgba(255,35,55,0); }
}

/* ---- user dashboard: compact stat bar (replaces the old 4-card grid) ---- */
.jn-stat-bar {
    display: flex;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
}

.jn-stat-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    min-width: 0;
    padding: 0 0.5rem;
}

.jn-stat-bar__item:not(:last-child) {
    border-right: 1px solid var(--hairline);
}

.jn-stat-bar__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted-slate);
    white-space: nowrap;
}

.jn-stat-bar__value {
    font-family: "Big Shoulders Display", sans-serif;
    font-size: 1rem;
    color: var(--gold-hot);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.jn-stat-bar--single {
    padding: 0.45rem 0.25rem;
}

.jn-stat-bar--single .jn-stat-bar__item {
    flex-direction: row;
    justify-content: center;
    gap: 0.4rem;
    padding: 0;
}
