.lucky-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Two-column layout */
.lucky-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 1.5rem; /* same clear gap as the Rewards page between the main column and the sidebar */
    align-items: start;
}

.lucky-main { min-width: 0; }
.lucky-sidebar { display: flex; flex-direction: column; gap: 1rem; }
/* Two columns: extra space between the ad (first in the sidebar) and the clickable postcode cards beside it.
   One column (900px and below, see below): no side padding, but some space above it instead. */
#luckyAdBlock { padding-left: 24px; }

@media (max-width: 900px) {
    .lucky-layout {
        grid-template-columns: 1fr;
    }
    #luckyAdBlock { padding-left: 0; margin-top: 1.5rem; }
}

/* Postcode grid */
.lucky-postcodes {
    margin-bottom: 1.25rem;
}

.lucky-postcode-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lucky-postcode-row > * {
    flex: 1;
}

.lucky-postcode {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.lucky-postcode-label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; margin-bottom: 1px; }

.lucky-postcode-text {
    font-weight: 700;
    color: #111;
    font-size: 0.85rem;
}

.lucky-postcode-pill {
    background: #9D0100;
    color: #fff;
    border-radius: 999px;
    padding: 3px 9px;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

.lucky-postcode--no-win:hover {
    border-color: #9D0100;
    box-shadow: 0 0 0 2px rgba(157, 1, 0, 0.15);
}

.lucky-postcode--no-win .lucky-postcode-pill--amount {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lucky-postcode--no-win:hover .lucky-postcode-pill--amount {
    transform: scale(1.04);
    box-shadow: 0 2px 8px rgba(157, 1, 0, 0.25);
}

/* You've won banner */
.lucky-banner {
    background-color: #f7fdf4;
    border: 2px solid #a4c482;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.won-banner {
    background: #1a3d2b;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-align: center;
}

.won-banner-desktop,
.won-banner-mobile {
    justify-content: center;
    gap: 12px;
}

.won-banner-headline {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 1.5rem;
}

.won-banner-icon,
.won-banner-icon-top {
    color: #ffffff;
}

.won-banner-link {
    color: #a4c482;
    font-weight: 700;
    text-decoration: underline;
}

.won-banner-link:hover {
    color: #d4edda;
}

@media (max-width: 575.98px) {
    .lucky-banner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 0.3rem 0.75rem;
    }
    .won-banner-headline {
        font-size: 0.75rem;
    }
}

/* Reward card grid */
.lucky-rewards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

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

.lucky-reward-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    height: 100%;
    min-height: 0;
}

.lucky-reward-card .reward-card-content {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.lucky-reward-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.lucky-reward-img {
    width: 100%;
}

.lucky-reward-img img {
    width: 100%;
    height: auto;
    display: block;
}

.lucky-reward-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.lucky-reward-sub,
.lucky-reward-card .reward-card-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.lucky-reward-btn {
    display: block;
    background: #4cff72;
    color: #0d2416;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    transition: background 0.2s ease;
}

.lucky-reward-btn:hover {
    background: #3ee863;
    color: #0d2416;
    text-decoration: none;
}

.lucky-reward-card .getPrice {
    background-color: #042001;
    display: block;
}

/* Check badge overlay on selected card */
.ls-check-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #042001;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.lucky-reward-card.ls-selected .ls-check-badge {
    display: flex;
}

/* ── Shared CTA wrapper + counter box ── */
.reward-cta-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.rewards-chosen-box {
    flex: 0 0 auto;
    background: #ffffff;
    border: 2px solid #042001;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #042001;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .reward-cta-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .rewards-chosen-box {
        flex-direction: row;
        gap: 6px;
        justify-content: center;
    }
}

/* Choose 2 CTA bar */
#ls-cta-label {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

.lucky-cta {
    flex: 1;
    background: #042001;
    color: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.lucky-cta-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lucky-cta-count {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.lucky-cta-sublabel {
    font-size: 0.7rem;
    opacity: 0.8;
    margin: 0.2rem 0 0 0;
}

.lucky-cta-middle {
    flex: 1;
    text-align: center;
}

.lucky-cta-icon {
    margin-right: 0.4rem;
}

.lucky-cta-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.25rem 0;
}

.lucky-cta-sub {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 0;
}

.lucky-cta-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #042001;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    text-decoration: none;
    flex-shrink: 0;
}

.lucky-cta-btn:hover {
    background: #e5e7eb;
    text-decoration: none;
    color: #042001;
}

/* Sidebar — Today's draw panel */
.lucky-side-draw {
    background: #042001;
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
}
.lucky-side-draw-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; margin: 0; opacity: 0.9; }
.lucky-side-draw-stat { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.5rem 0; }
.lucky-side-draw-trophy { font-size: 1.5rem; }
.lucky-side-draw-num { font-size: 2.5rem; font-weight: 900; line-height: 1; color: #F4B800; }
.lucky-side-draw-text { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; margin: 0; line-height: 1.2; }
.lucky-side-draw-sub { font-size: 1rem; font-weight: 900; margin: 0.5rem 0 0 0; color: #F4B800; letter-spacing: 0.5px; }

/* Sidebar — Countdown */
.lucky-side-countdown {
    background: #f0f7f0;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}
.lucky-side-countdown-row { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.lucky-side-countdown-block {
    background: rgb(157, 1, 0);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    min-width: 48px;
    text-align: center;
}
.lucky-side-countdown-value { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.lucky-side-countdown-sep { font-size: 1.5rem; font-weight: 900; color: #6b7280; }
.lucky-side-countdown-yh { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; color: #042001; text-transform: uppercase; margin: 0 0 0.4rem 0; }
.lucky-side-countdown-label { font-size: 0.85rem; font-weight: 700; color: #9D0100; margin: 0.5rem 0 0 0; letter-spacing: 0.5px; }

/* Sidebar — Fact of the Day */
.lucky-side-fact {
    background: white;
    border: 2px solid #9D0100;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}
.lucky-side-fact-label {
    background: #9D0100;
    color: white;
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: -1.75rem auto 0.75rem;
    position: relative;
    z-index: 1;
}
.lucky-side-fact-year { font-size: 1.75rem; font-weight: 900; color: #042001; margin: 0; line-height: 1; }
.lucky-side-fact-text { font-size: 0.75rem; font-weight: 700; color: #111; line-height: 1.4; margin: 0.5rem 0; letter-spacing: 0.3px; }
.lucky-side-fact-sub { font-size: 0.65rem; color: #6b7280; font-style: italic; margin: 0.5rem 0 0 0; }

/* Counter line — keeps "0 / 2" on one line */
.ls-counter-line {
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 700;
    color: #042001;
    line-height: 1;
}

/* ── Typewriter cursor ── */
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.typewriter-cursor {
    display: inline-block;
    color: inherit;
    font-weight: 700;
    margin-left: 1px;
    animation: cursor-blink 0.7s step-end infinite;
}

.typewriter-cursor.done {
    animation: none;
    opacity: 0;
}

/* ============================================================
   LS v2 Modals
   ============================================================ */
.ls-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1050;
    overflow-y: auto;
}

.ls-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 480px;
    width: 90%;
    margin: 10vh auto 2rem;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

.ls-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
}
.ls-modal-close:hover { color: #000; }

.ls-modal-icon { font-size: 3rem; margin-bottom: 0.75rem; }

.ls-modal-heading {
    font-size: 1.4rem;
    font-weight: 900;
    color: #042001;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.25rem;
}

.ls-modal-subheading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #F4B800;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.ls-modal-body {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.ls-modal-error {
    color: #dc3545;
    font-size: 0.85rem;
    min-height: 1.2em;
    margin-bottom: 0.5rem;
}

.ls-modal-field { margin-bottom: 0.75rem; }

.ls-modal-input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.ls-modal-input:focus { outline: none; border-color: #042001; }

.ls-modal-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #4a7c2f 0%, #042001 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}
.ls-modal-submit:hover { opacity: 0.9; }

.ls-modal-lose-heading {
    font-size: 1.2rem;
    font-weight: 900;
    color: #042001;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.ls-modal-rows { text-align: left; margin-bottom: 1.5rem; }

.ls-modal-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ls-modal-row-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }

.ls-modal-row-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #042001;
    text-transform: uppercase;
}

.ls-modal-row-sub { font-size: 0.78rem; color: #777; }

.ls-modal-cta {
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #f97316 0%, #dc2626 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.ls-modal-cta:hover { opacity: 0.9; }

/* ── Not-won popup (rich layout) ── */
.ls-not-won-card {
    padding: 0;
    max-width: 520px;
    overflow: hidden;
    text-align: left;
    border-radius: 16px;
}

.not-won-hero {
    gap: 0.75rem;
    padding: 1.5rem 1.25rem 1rem;
}

.not-won-hero-img {
    width: 108px;
    height: auto;
    flex-shrink: 0;
}

.not-won-hero-copy { min-width: 0; }

.not-won-heading-sorry {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a3d08;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.not-won-heading-main {
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a3d08;
    line-height: 1.2;
}

.not-won-heading-rule {
    height: 2px;
    background: #1a3d08;
    margin: 0.5rem 0 0.4rem;
    max-width: 100%;
}

.not-won-sub {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.35;
}

.not-won-sub-accent { color: #3a6b1a; font-weight: 700; }

.not-won-features {
    background: #f8f9f5;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 0 12px 12px;
    padding: 14px 8px;
}

.not-won-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.not-won-feature-col {
    padding: 0 6px;
    border-right: 1px solid #d1d5db;
}

.not-won-feature-col:last-child { border-right: none; }

.not-won-feat-icon { font-size: 1.6rem; color: #3a6b1a; margin-bottom: 6px; }

.not-won-feat-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 3px;
    color: #042001;
}

.not-won-feat-sub { font-size: 0.62rem; color: #666; line-height: 1.3; }

.not-won-comeback {
    background: #f0f6e8;
    gap: 0.75rem;
    padding: 1.25rem;
}

.not-won-prize-img {
    width: 108px;
    height: auto;
    flex-shrink: 0;
}

.not-won-comeback-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #042001;
}

.not-won-comeback-headline {
    font-size: 1.35rem;
    font-weight: 900;
    color: #3a6b1a;
    text-transform: uppercase;
    line-height: 1.15;
}

.not-won-comeback-sub {
    font-size: 0.82rem;
    color: #555;
    margin-top: 2px;
    line-height: 1.35;
}

.not-won-action { padding: 0 12px 12px; }

.not-won-check-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #ff8c1a 0%, #ff5a1f 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.not-won-check-btn:hover {
    opacity: 0.92;
    color: #fff;
    text-decoration: none;
}

.not-won-footer-bar {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
}

.not-won-footer-bar .fa-shield-alt { color: #3a6b1a; }

@media (max-width: 480px) {
    .not-won-hero-img,
    .not-won-prize-img { width: 84px; }

    .not-won-heading-sorry { font-size: 1.45rem; }

    .not-won-heading-main { font-size: 0.92rem; }

    .not-won-feat-label { font-size: 0.58rem; }

    .not-won-feat-sub { font-size: 0.56rem; }
}

/* ── Mobile personalised heading ── */
.lucky-mobile-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #042001;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

/* ── Mobile postcode insert (bottom of page on mobile) ── */
.ls-postcode-mobile-insert {
    margin: 1rem 0;
}

@media (max-width: 767px) {
    /* Hide desktop postcode grid — replaced by bottom insert */
    .lucky-postcodes { display: none; }
}

