/* LottoPulse shell — aligned to template palette
   primary #448C74 · secondary #ED5050 · dark gold #EDCB50 (sparingly) */
:root {
  --lp-accent: var(--primary-color, #448C74);
  --lp-accent-soft: rgba(68, 140, 116, 0.15);
  --lp-accent-strong: #386959;
  --lp-danger: var(--secondary-color, #ED5050);
  --lp-danger-soft: rgba(237, 80, 80, 0.14);
  --lp-ink: #111111;
  --lp-gold: #EDCB50; /* dark-theme highlight only */
}

body.has-bottom-nav {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

.cursor-pointer { cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
}

/* —— Bottom nav —— */
.lp-bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1050;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

html:not(.dark-theme) .lp-bottom-nav,
body:not(.dark-theme) .lp-bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    border-top-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
    .lp-bottom-nav { display: grid; }
}

.lp-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem 0.15rem;
    border-radius: 0.65rem;
    font-size: 0.65rem;
    color: #94a3b8;
    text-decoration: none;
    position: relative;
}

.lp-bottom-nav a.active,
.lp-bottom-nav a:hover {
    color: var(--lp-accent);
    background: var(--lp-accent-soft);
}

.lp-bottom-nav .badge-cart {
    position: absolute;
    top: 2px;
    inset-inline-end: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--lp-danger);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

/* —— Header cart + Account/Sign in contrast —— */
.lp-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    background: rgba(148, 163, 184, 0.12);
}

.lp-cart-link:hover { color: var(--lp-accent); }

.header-section .right-area > a:not(.cmn-btn),
.header-section .lp-auth-link {
    font-weight: 600;
    text-decoration: none;
    color: #3f3f3f !important;
}

html.dark-theme .header-section .right-area > a:not(.cmn-btn),
html.dark-ui .header-section .right-area > a:not(.cmn-btn),
body.dark-theme .header-section .right-area > a:not(.cmn-btn),
body.dark-ui .header-section .right-area > a:not(.cmn-btn),
html.dark-theme .header-section .lp-auth-link,
html.dark-ui .header-section .lp-auth-link {
    color: #f1f5f9 !important;
}

.header-section .right-area > a:not(.cmn-btn):hover,
.header-section .lp-auth-link:hover {
    color: var(--lp-accent) !important;
}

.lp-cart-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--lp-danger);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

/* —— Toast —— */
.lp-toast {
    position: fixed;
    left: 50%;
    bottom: 5.5rem;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 1100;
    max-width: calc(100vw - 2rem);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

html:not(.dark-theme) .lp-toast {
    background: #111827;
}

/* —— Chips —— */
#lottoFilters .lp-chip,
#blogFilters .lp-chip,
.lp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    font-size: 0.8rem;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

html:not(.dark-theme):not(.dark-ui) #lottoFilters .lp-chip,
html:not(.dark-theme):not(.dark-ui) #blogFilters .lp-chip,
html:not(.dark-theme):not(.dark-ui) .lp-chip,
body:not(.dark-theme):not(.dark-ui) .lp-chip {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
    color: #0f172a !important;
}

#lottoFilters .lp-chip.active,
#blogFilters .lp-chip.active,
.lp-chip.active {
    background: var(--lp-accent) !important;
    border-color: var(--lp-accent) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* —— Lottery cards —— */
.single-slide.lp-lotto-card,
.single-slide.lp-lotto-card h5,
.single-slide.lp-lotto-card p {
    text-align: center;
}

.lp-lotto-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 1.1rem !important;
    padding: 1.35rem 1.2rem !important;
    background: rgba(15, 23, 42, 0.35) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 100%;
}

html:not(.dark-theme) .lp-lotto-card,
html:not(.dark-ui) .lp-lotto-card {
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.lp-lotto-card:hover {
    transform: translateY(-3px);
    border-color: rgba(68, 140, 116, 0.55) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.lp-lotto-card .icon-area {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
}

.lp-lotto-card .icon-area img {
    display: block !important;
    margin-inline: auto !important;
    margin-block: 0 !important;
    max-width: 96px;
    height: auto;
    float: none !important;
}

.lp-lotto-card .cmn-btn { margin-top: auto; }

.lp-lotto-card .lp-jackpot-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

/* —— Surfaces / empty —— */
.lp-surface {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.1rem;
    padding: 1.35rem;
    background: rgba(15, 23, 42, 0.28);
}

html:not(.dark-theme) .lp-surface {
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.lp-empty {
    text-align: center;
    padding: 3rem 1.25rem;
}

.lp-empty h3 { margin-bottom: 0.5rem; }
.lp-empty p { opacity: 0.8; margin-bottom: 1.25rem; }

/* —— Inner banners (compact page hero) —— */
.banner-section.inner-banner .banner-content {
    position: relative;
    min-height: 0 !important;
    padding: 7.25rem 0 2.25rem !important;
}

.inner-banner .banner-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.inner-banner .banner-content p {
    max-width: 36rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .banner-section.inner-banner .banner-content {
        padding: 6.5rem 0 1.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .banner-section.inner-banner .banner-content {
        padding: 5.75rem 0 1.5rem !important;
    }
}

.inner-banner .banner-content::after {
    content: "";
    position: absolute;
    inset-inline-end: 8%;
    top: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #33BD91, #448C74 55%, transparent 70%);
    opacity: 0.35;
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .inner-banner .banner-content::after { display: none; }
}

/* —— Number picker —— */
.lp-pick-panel {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.32);
}

html:not(.dark-theme) .lp-pick-panel {
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.lp-pick-side {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(160deg, var(--lp-accent-soft), rgba(15, 23, 42, 0.2));
    text-align: center;
}

html:not(.dark-theme) .lp-pick-side {
    background: linear-gradient(160deg, #fff7ed, #ffffff);
}

.lp-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
    margin-block: 0.75rem 1rem;
}

.lp-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #448C74, #33BD91);
    transition: width 0.25s ease;
}

.lp-ball {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(148, 163, 184, 0.45);
    background: transparent !important;
    color: #0f172a !important;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    user-select: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

html.dark-theme .lp-ball,
html.dark-ui .lp-ball,
body.dark-theme .lp-ball,
body.dark-ui .lp-ball {
    color: #f1f5f9 !important;
    border-color: rgba(226, 232, 240, 0.35);
    background: rgba(255, 255, 255, 0.04) !important;
}

.lp-ball:hover { transform: scale(1.06); border-color: var(--lp-accent); }

.lp-ball.selected,
html.dark-theme .lp-ball.selected,
html.dark-ui .lp-ball.selected,
body.dark-theme .lp-ball.selected,
body.dark-ui .lp-ball.selected {
    background: var(--lp-accent) !important;
    border-color: var(--lp-accent) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(68, 140, 116, 0.35);
}

.lp-ball-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .lp-ball-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

.lp-selected-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 2rem;
    margin-bottom: 1rem;
}

.lp-selected-pills span {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: transparent;
    color: var(--para-color, #3f3f3f) !important;
    cursor: pointer;
    text-decoration: none;
}

.lp-btn-ghost:hover {
    border-color: var(--lp-accent);
    color: var(--lp-accent) !important;
}

.lp-muted-label {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-weight: 400 !important;
    font-size: 0.9rem;
    color: var(--para-color, #64748b) !important;
    opacity: 0.9;
}

/* —— Results checker —— */
/* FAQ accordion — readable in dark theme */
.accordion-item {
    background: var(--box-5th-color, rgba(15, 23, 42, 0.35));
    color: var(--para-color, #dfdfdf);
}

.accordion-button {
    color: var(--heading-color, #0f172a) !important;
    background: transparent !important;
}

html.dark-theme .accordion-button,
html.dark-ui .accordion-button,
body.dark-theme .accordion-button,
body.dark-ui .accordion-button {
    color: #f8fafc !important;
}

.accordion-body {
    color: var(--para-color, #3f3f3f) !important;
    line-height: 1.6;
}

html.dark-theme .accordion-body,
html.dark-ui .accordion-body,
body.dark-theme .accordion-body,
body.dark-ui .accordion-body {
    color: #e2e8f0 !important;
}

.accordion-button:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
}

.lp-check-result {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(68, 140, 116, 0.08);
    color: var(--para-color, #e2e8f0) !important;
}

html.dark-theme .lp-check-result,
html.dark-ui .lp-check-result,
body.dark-theme .lp-check-result,
body.dark-ui .lp-check-result {
    color: #f1f5f9 !important;
}

.lp-check-result.hit {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.1);
}

.lp-result-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.1rem;
    padding: 1.25rem;
    height: 100%;
    background: rgba(15, 23, 42, 0.28);
    transition: border-color 0.2s ease;
}

html:not(.dark-theme) .lp-result-card {
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.lp-result-card:hover { border-color: rgba(68, 140, 116, 0.45); }

.lp-result-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lp-result-nums span {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--lp-accent-soft);
    color: inherit;
}

.lp-result-nums span.bonus {
    background: rgba(56, 189, 248, 0.25);
}

/* —— Footer —— */
.lp-site-footer {
    margin-top: 2rem;
    padding-block: 3rem 1.5rem;
}

.lp-footer-inner { width: 100%; }

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem 2rem;
    align-items: start;
}

@media (min-width: 576px) {
    .lp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lp-footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
    .lp-footer-grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    }
    .lp-footer-brand { grid-column: auto; }
}

.lp-footer-brand,
.lp-footer-col {
    min-width: 0;
}

.lp-footer-title {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    color: var(--heading-color, inherit);
}

.lp-footer-links {
    margin: 0;
    padding: 0;
}

.lp-footer-links li { margin-bottom: 0.4rem; }

.lp-footer-links a {
    text-decoration: none;
    opacity: 0.85;
    color: var(--para-color, inherit);
}

.lp-footer-links a:hover {
    opacity: 1;
    color: var(--lp-accent);
}

.lp-footer-blurb {
    opacity: 0.85;
    max-width: 22rem;
    margin-bottom: 0.65rem;
}

.lp-footer-responsible {
    opacity: 0.7;
    max-width: 22rem;
}

.lp-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
}

.site-footer-credit {
    opacity: 0.85;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.site-footer-credit:hover { opacity: 1; color: var(--lp-accent); }

/* —— Account dashboard —— */
.lp-account-section { position: relative; }

.lp-account-guest {
    max-width: 28rem;
    margin-inline: auto;
    padding: 2.5rem 1.75rem !important;
}

.lp-account-hero {
    background:
        radial-gradient(ellipse at top right, rgba(68, 140, 116, 0.22), transparent 55%),
        rgba(15, 23, 42, 0.32) !important;
}

html:not(.dark-theme) .lp-account-hero {
    background:
        radial-gradient(ellipse at top right, rgba(68, 140, 116, 0.22), transparent 55%),
        #fff !important;
}

.lp-account-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 600;
}

.lp-account-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(145deg, #448C74, #33BD91);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(68, 140, 116, 0.35);
}

.lp-account-stat {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.1rem;
    padding: 1.25rem 1.2rem;
    height: 100%;
    background: rgba(15, 23, 42, 0.28);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

html:not(.dark-theme) .lp-account-stat {
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.lp-account-stat:hover {
    border-color: rgba(68, 140, 116, 0.5);
    transform: translateY(-2px);
}

.lp-account-stat-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
    margin-bottom: 0.75rem;
}

.lp-account-stat a {
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--lp-accent);
    font-weight: 600;
}

.lp-account-orders { display: flex; flex-direction: column; gap: 0.65rem; }

.lp-account-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.06);
}

.lp-account-order-total { color: var(--lp-accent); white-space: nowrap; }

.lp-account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lp-account-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lp-account-action i {
    width: 1.25rem;
    text-align: center;
    color: var(--lp-accent);
}

.lp-account-action:hover {
    border-color: rgba(68, 140, 116, 0.55);
    background: rgba(68, 140, 116, 0.08);
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .lp-account-stat:hover { transform: none; }
}

/* —— Wallet —— */
.lp-wallet-card {
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
    background:
        radial-gradient(ellipse at top right, rgba(51, 189, 145, 0.28), transparent 55%),
        linear-gradient(160deg, #386959 0%, #448C74 45%, #1e2429 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(68, 140, 116, 0.28);
}

html:not(.dark-theme):not(.dark-ui) .lp-wallet-card {
    background:
        radial-gradient(ellipse at top right, rgba(51, 189, 145, 0.35), transparent 50%),
        linear-gradient(160deg, #448C74 0%, #33BD91 55%, #386959 100%);
}

.lp-wallet-card .lp-account-kicker,
.lp-wallet-card .lp-muted-label,
.lp-wallet-card .lp-wallet-label {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1 !important;
}

.lp-wallet-label {
    font-size: 0.9rem;
    margin: 0;
}

.lp-wallet-amount {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff !important;
}

.lp-wallet-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lp-wallet-mini > div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
}

.lp-wallet-mini span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.lp-wallet-mini strong {
    font-size: 1.25rem;
    color: #fff;
}

.lp-wallet-packs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .lp-wallet-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.lp-wallet-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
    padding: 1.1rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.2);
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

html:not(.dark-theme) .lp-wallet-pack {
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.lp-wallet-pack:hover {
    border-color: var(--lp-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(68, 140, 116, 0.18);
}

.lp-wallet-pack.is-popular {
    border-color: var(--lp-accent);
    background: rgba(68, 140, 116, 0.12);
}

.lp-wallet-badge {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
}

.lp-wallet-pack-amt {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lp-accent);
}

.lp-wallet-pack-name {
    font-weight: 700;
}

.lp-wallet-pack-blurb {
    font-size: 0.8rem;
    opacity: 0.75;
    line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
    .lp-wallet-pack:hover { transform: none; }
}

/* Theme: single sun/moon icon (no toggle track) */
.switch-wrapper {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    cursor: pointer;
    gap: 0 !important;
    background: rgba(148, 163, 184, 0.12);
    user-select: none;
}
.switch-wrapper:hover { background: var(--lp-accent-soft); }
.switch-wrapper .switch { display: none !important; }
.switch-wrapper i {
    font-size: 1.15rem;
    line-height: 1;
    color: inherit;
    margin: 0 !important;
}
/* Light mode → show moon (switch to dark). Dark mode → show sun (switch to light). */
html:not(.dark-theme) .switch-wrapper .sun { display: none !important; }
html:not(.dark-theme) .switch-wrapper .moon { display: inline-block !important; }
html.dark-theme .switch-wrapper .moon { display: none !important; }
html.dark-theme .switch-wrapper .sun { display: inline-block !important; }

/* —— Forms polish —— */
.form-control:focus,
.form-select:focus {
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px var(--lp-accent-soft);
}

/*
 * Dark theme contrast safety net — prevent dark text on dark surfaces
 * (native <button> color, muted labels, ghosts, tables, pickers, etc.)
 */
html.dark-theme,
html.dark-ui,
body.dark-theme,
body.dark-ui {
    color: #e2e8f0;
}

html.dark-theme button:not(.cmn-btn):not(.lp-chip):not(.lp-ball):not(.accordion-button),
html.dark-ui button:not(.cmn-btn):not(.lp-chip):not(.lp-ball):not(.accordion-button),
body.dark-theme button:not(.cmn-btn):not(.lp-chip):not(.lp-ball):not(.accordion-button),
body.dark-ui button:not(.cmn-btn):not(.lp-chip):not(.lp-ball):not(.accordion-button) {
    color: #f1f5f9;
}

html.dark-theme .lp-btn-ghost,
html.dark-ui .lp-btn-ghost,
body.dark-theme .lp-btn-ghost,
body.dark-ui .lp-btn-ghost {
    color: #f1f5f9 !important;
    border-color: rgba(226, 232, 240, 0.35);
}

html.dark-theme .lp-btn-ghost:hover,
html.dark-ui .lp-btn-ghost:hover,
body.dark-theme .lp-btn-ghost:hover,
body.dark-ui .lp-btn-ghost:hover {
    color: #33BD91 !important;
    border-color: var(--lp-accent);
}

html.dark-theme .lp-muted-label,
html.dark-ui .lp-muted-label,
body.dark-theme .lp-muted-label,
body.dark-ui .lp-muted-label,
html.dark-theme .opacity-75,
html.dark-ui .opacity-75,
body.dark-theme .opacity-75,
body.dark-ui .opacity-75,
html.dark-theme .small,
html.dark-ui .small,
body.dark-theme .small,
body.dark-ui .small {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

html.dark-theme .lp-pick-panel,
html.dark-ui .lp-pick-panel,
html.dark-theme .lp-pick-side,
html.dark-ui .lp-pick-side,
html.dark-theme .lp-surface,
html.dark-ui .lp-surface,
html.dark-theme .lp-account-stat,
html.dark-ui .lp-account-stat,
html.dark-theme .lp-result-card,
html.dark-ui .lp-result-card {
    color: #e2e8f0;
}

html.dark-theme .lp-pick-panel h3,
html.dark-theme .lp-pick-panel h4,
html.dark-theme .lp-pick-panel h5,
html.dark-theme .lp-pick-side h3,
html.dark-theme .lp-surface h3,
html.dark-theme .lp-surface h4,
html.dark-theme .lp-surface h5,
html.dark-ui .lp-pick-panel h3,
html.dark-ui .lp-pick-side h3,
html.dark-ui .lp-surface h3,
html.dark-ui .lp-surface h4 {
    color: #f8fafc;
}

html.dark-theme label,
html.dark-ui label,
body.dark-theme label,
body.dark-ui label,
html.dark-theme .form-label,
html.dark-ui .form-label {
    color: #e2e8f0 !important;
}

html.dark-theme .table,
html.dark-ui .table,
html.dark-theme .table th,
html.dark-theme .table td,
html.dark-ui .table th,
html.dark-ui .table td {
    color: #e2e8f0 !important;
}

html.dark-theme .btn-outline-secondary,
html.dark-ui .btn-outline-secondary,
body.dark-theme .btn-outline-secondary,
body.dark-ui .btn-outline-secondary {
    color: #f1f5f9 !important;
    border-color: rgba(226, 232, 240, 0.4);
}

html.dark-theme #pickProgressLabel,
html.dark-ui #pickProgressLabel,
html.dark-theme #pickMeta,
html.dark-ui #pickMeta,
html.dark-theme #pickClose,
html.dark-ui #pickClose {
    color: #cbd5e1 !important;
}

html.dark-theme .lp-selected-pills .lp-muted-label,
html.dark-ui .lp-selected-pills .lp-muted-label {
    color: #94a3b8 !important;
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .lp-lotto-card:hover,
    .lp-ball:hover { transform: none; }
    .wow { visibility: visible !important; }
}
