:root {
    --purple-dark:  #2d0a6e;
    --purple-main:  #3d1a8a;
    --purple-mid:   #4e28a0;
    --purple-light: #6b46c1;
    --green-main:   #1a9e3f;
    --green-bright: #22c55e;
    --white:        #ffffff;
    --gray-bg:      #f0f0f5;
    --gray-light:   #f7f7fb;
    --gray-border:  #e0e0ee;
    --text-dark:    #1a1a2e;
    --text-mid:     #4a4a6a;
    --text-light:   #8888aa;
    --shadow:       0 2px 16px rgba(61,26,138,0.10);
    --shadow-hover: 0 8px 28px rgba(61,26,138,0.14);
    --font:         'Poppins', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --radius:       12px;
    --radius-sm:    8px;
    --radius-xs:    6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--gray-bg);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== TOPBAR ACCENT ===== */
.topbar-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--purple-dark), var(--purple-light), var(--green-main));
}

/* ===== NAVBAR ===== */
.navbar-oneplay {
    background: var(--purple-dark);
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
    gap: 16px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1.5px;
    font-family: var(--font-display);
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px; height: 38px;
    border: 2.5px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    transition: border-color .2s;
}
.nav-logo:hover .logo-icon { border-color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.nav-links .charity-link { border: 1px solid rgba(255,255,255,0.2); }
.nav-links .ussd-link { font-weight: 600; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.wallet-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
    text-decoration: none;
}
.wallet-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.wallet-amount { font-size: 14px; font-weight: 700; display: block; }
.wallet-deposit { font-size: 10px; color: rgba(255,255,255,0.5); display: block; font-weight: 400; }
.account-btn {
    width: 38px; height: 38px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.account-btn:hover { border-color: #fff; color: #fff; }
.btn-login {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    transition: all .2s;
    cursor: pointer;
}
.btn-login:hover { background: rgba(255,255,255,0.1); }
.btn-register {
    background: var(--green-main);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    transition: background .2s;
    cursor: pointer;
}
.btn-register:hover { background: #158a3a; }
.mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

/* ===== MOBILE OFFCANVAS ===== */
.offcanvas-purple { background: var(--purple-dark); }
.offcanvas-purple .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 8px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color .2s;
}
.mobile-nav-links a i { width: 20px; text-align: center; }
.mobile-nav-links a:hover { color: #fff; }

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gray-bg);
    padding: 36px 32px 32px;
}
/* .hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
} */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 28px;
}

/* PLAY CARD */
.play-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    animation: fadeUp .45s ease both;
}
.play-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.play-card h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    font-family: var(--font-display);
    margin: 0;
    line-height: 1.2;
}
.how-to-btn {
    background: var(--purple-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-xs);
    padding: 9px 18px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}
.how-to-btn i { color: #ffcc00; }
.how-to-btn:hover { background: var(--purple-mid); }

.play-desc {
    color: var(--text-mid);
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-border);
}
.form-step { margin-bottom: 22px; }
.step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.step-label i { color: var(--purple-main); font-size: 15px; }
.help-icon {
    width: 17px; height: 17px;
    background: var(--gray-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-light);
    cursor: pointer;
    font-style: normal;
    margin-left: 2px;
    font-weight: 700;
}

/* Custom select */
.custom-select-wrap { position: relative; }
.custom-select-wrap select,
.form-select-oneplay {
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 12px 40px 12px 14px;
    font-size: 13.5px;
    font-family: var(--font);
    color: var(--text-dark);
    appearance: none;
    cursor: pointer;
    outline: none;
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s;
}
.custom-select-wrap select:focus,
.form-select-oneplay:focus {
    border-color: var(--purple-main);
    box-shadow: 0 0 0 3px rgba(61,26,138,0.1);
}
.custom-select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: 11px;
}

/* Phone input - match select & ticket */
.form-input-oneplay {
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    font-family: var(--font);
    color: var(--text-dark);
    outline: none;
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s;
}

.form-input-oneplay:focus {
    border-color: var(--purple-main);
    box-shadow: 0 0 0 3px rgba(61,26,138,0.1);
}

/* Ticket counter */
.ticket-counter { display: flex; align-items: center; gap: 10px; }
.counter-btn {
    width: 44px; height: 44px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-mid);
    transition: all .18s;
    flex-shrink: 0;
}
.counter-btn:hover:not(:disabled) {
    border-color: var(--purple-main);
    color: var(--purple-main);
    background: rgba(61,26,138,0.04);
}
.counter-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.counter-input {
    flex: 1;
    text-align: center;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font);
    color: var(--text-dark);
    outline: none;
    background: var(--white);
    transition: border-color .2s;
    cursor: default;
}

/* Wallet pay row */
.wallet-pay-row {
    border: 1.5px solid var(--gray-border);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.wallet-pay-row:hover { border-color: var(--purple-main); background: rgba(61,26,138,0.02); }
.wallet-pay-row.selected { border-color: var(--purple-main); background: rgba(61,26,138,0.04); }
.wallet-pay-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.wallet-pay-header i { color: var(--purple-mid); }
.wallet-pay-info { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-mid); }
.wallet-icon {
    width: 32px; height: 32px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--purple-main);
}
.wallet-balance { font-weight: 700; color: var(--text-dark); }
.deposit-link { color: var(--purple-main); font-weight: 600; margin-left: 4px; }
.deposit-link:hover { text-decoration: underline; }

/* CTA Button */
.btn-complete {
    width: 100%;
    background: var(--green-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .2s, transform .1s, box-shadow .2s;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(26,158,63,0.3);
}
.btn-complete:hover { background: #158a3a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,158,63,0.38); }
.btn-complete:active { transform: translateY(0); }
.price-tag {
    background: rgba(255,255,255,0.2);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

/* DISABLED STATE */
.btn-complete:disabled,
.btn-complete.btn-disabled {
    background: #cfcfcf !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    transform: none !important;
}

/* Remove hover effect when disabled */
.btn-complete:disabled:hover,
.btn-complete.btn-disabled:hover {
    background: #cfcfcf !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Optional: dim price tag when disabled */
.btn-complete:disabled .price-tag {
    background: rgba(0,0,0,0.1);
}

/* ===== PROMO BANNER ===== */
.promo-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px; /* keep your height */
    overflow: hidden;
    border-radius: 16px;
}

.promo-slide {
    position: absolute;
    inset: 0;              /* keep full container size */
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%); /* start off-screen right */
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    z-index: 0;
}

.promo-slide.active {
    transform: translateX(0); /* slide into view */
    opacity: 1;
    z-index: 1;
}

.promo-slide.prev {
    transform: translateX(-100%); /* slide out left */
    opacity: 0;
    z-index: 0;
}

/* ===== DRAWS SECTION ===== */
.draws-section-wrap { background: var(--gray-bg); padding-bottom: 8px; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 36px 32px; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title {
    font-size: 21px;
    font-weight: 900;
    color: var(--text-dark);
    font-family: var(--font-display);
    margin: 0;
}
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
    width: 36px; height: 36px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    font-size: 12px;
    transition: all .2s;
    box-shadow: var(--shadow);
}
.carousel-btn:hover { border-color: var(--purple-main); color: var(--purple-main); }

.draws-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.draw-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--gray-border);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.draw-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--purple-light);
}
.draw-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-border);
}
.draw-station-logo {
    width: 38px; height: 38px;
    border-radius: var(--radius-xs);
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid var(--gray-border);
}
.draw-card-title { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.draw-card-date { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.draw-info-row { margin-bottom: 10px; }
.draw-info-label { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-light); font-weight: 700; margin-bottom: 4px; }
.draw-prize { display: flex; align-items: center; justify-content: space-between; }
.draw-prize-amount { font-size: 16px; font-weight: 900; color: var(--text-dark); font-family: var(--font-display); }
.draw-prize-icon { font-size: 18px; }
.draw-winner { display: flex; align-items: center; justify-content: space-between; }
.draw-winner-number { font-size: 12.5px; font-weight: 600; color: var(--text-mid); }
.draw-winner-medal { font-size: 18px; }

/* ===== CHARITY SECTION ===== */
.charity-section-wrap { background: var(--white); }
.charity-section-wrap .section-inner { padding-top: 36px; padding-bottom: 36px; border-top: 1px solid var(--gray-border); }
.charity-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.charity-text { flex: 1; min-width: 200px; }
.charity-text p { font-size: 15px; font-weight: 500; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px; }
.charity-text p strong { color: var(--text-dark); }
.btn-charity {
    background: var(--purple-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: background .2s;
    text-decoration: none;
}
.btn-charity:hover { background: var(--purple-mid); color: #fff; }
.charity-arrow-wrap { flex-shrink: 0; }
.charity-total {
    background: var(--green-main);
    color: #fff;
    border-radius: var(--radius);
    padding: 24px 36px;
    text-align: center;
    min-width: 270px;
    box-shadow: 0 4px 20px rgba(26,158,63,0.25);
}
.charity-amount { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.charity-counting { font-size: 13px; font-weight: 500; opacity: 0.85; margin-top: 5px; }

/* ===== PARTNERS ===== */
.partners-section-wrap { background: var(--white); border-top: 1px solid var(--gray-border); }
.partners-section-wrap .section-inner { padding: 28px 32px 40px; text-align: center; }
.partners-title { font-size: 12px; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.partner-logo {
    height: 52px; width: 110px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-mid);
    padding: 6px 8px;
    gap: 3px;
    transition: border-color .2s;
    cursor: pointer;
}
.partner-logo:hover { border-color: var(--purple-light); }

/* ===== MODAL ===== */
.modal-oneplay { border-radius: var(--radius); overflow: hidden; }
.modal-oneplay .modal-header { background: var(--purple-dark); color: #fff; border-bottom: none; }
.modal-oneplay .modal-title { font-weight: 800; font-size: 16px; }
.modal-oneplay .btn-close { filter: invert(1) opacity(.7); }
.modal-oneplay .modal-body { padding: 26px; }
.step-card { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--purple-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}
.step-body h6 { font-weight: 700; color: var(--text-dark); margin-bottom: 4px; font-size: 14px; }
.step-body p { font-size: 13px; color: var(--text-mid); line-height: 1.55; margin: 0; }
.how-to-tip {
    background: var(--gray-bg);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 12.5px;
    color: var(--text-mid);
    border-left: 3px solid var(--purple-main);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer { background: var(--purple-dark); color: rgba(255,255,255,0.8); padding: 44px 32px 24px; margin-top: 0; }
.footer-grid {
    max-width: 1100px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}
.footer-logo { margin-bottom: 14px; font-size: 18px; }
.footer-desc { font-size: 12.5px; line-height: 1.75; opacity: .7; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 10px; }
.social-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    transition: all .2s;
    cursor: pointer;
    text-decoration: none;
}
.social-icon:hover { background: rgba(255,255,255,0.22); color: #fff; }
.footer-col h6 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.68); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== TOAST ===== */
.toast-oneplay {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--green-main);
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateY(80px);
    opacity: 0;
    transition: all .35s cubic-bezier(.175,.885,.32,1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-oneplay.show { transform: translateY(0); opacity: 1; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .promo-banner { min-height: 200px; }
    .promo-amount { font-size: 32px; }
    .draws-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .navbar-oneplay { padding: 0 16px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .hero-section { padding: 20px 16px; }
    .section-inner { padding: 24px 16px; }
    .charity-inner { flex-direction: column; }
    .charity-total { width: 100%; min-width: unset; }
    .charity-arrow-wrap { transform: rotate(90deg); }
}
@media (max-width: 540px) {
    .draws-grid { grid-template-columns: 1fr 1fr; overflow-x: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-right .wallet-btn { display: none; }
    .play-card { padding: 20px 16px; }
}
.global-toast {
    position: fixed;
    right: 25px;
    background: #28a745;
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all .35s ease;
    z-index: 9999;
}

/* Top toast */
.top-toast {
    top: 25px;
    transform: translateY(-15px); /* slides down */
}

/* Bottom toast */
.bottom-toast {
    bottom: 25px;
    transform: translateY(15px); /* slides up */
}

/* Show state for both */
.global-toast.show {
    opacity: 1;
    transform: translateY(0);
}
/*RANDOMISER */
/* DRAW CARD */
.draw-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    overflow: hidden;
}

/* — purple header — */
.draw-header {
    background: linear-gradient(135deg,#12003a 0%,#3b0764 55%,#7c3aed 100%);
    padding: 20px 24px 18px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.draw-label {
    font-size: 10px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px;
}
.draw-title {
    font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.01em;
}
.draw-prize {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px; padding: 7px 16px;
    font-size: 13px; font-weight: 800; color: #fde68a; white-space: nowrap;
}

/* — countdown row — */
.countdown-row {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 22px 24px 20px; background: #fff;
    border-bottom: 1px solid #ebebf3; flex-wrap: wrap;
}
.countdown-segment {
    display: flex; flex-direction: column; align-items: center;
    background: #f4f1ff; border: 1.5px solid #ddd6fe;
    border-radius: 12px; min-width: 76px; padding: 14px 10px 10px;
    transition: background .25s, border-color .25s;
}
.countdown-segment.urgent { background: #fff1f2 !important; border-color: #fca5a5 !important; }
.countdown-number {
    font-size: 38px; font-weight: 900; line-height: 1;
    color: #6d28d9; font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums; display: block;
    transition: transform .1s ease;
}
.countdown-segment.urgent .countdown-number { color: #dc2626; }
.countdown-number.pop { transform: scale(1.25); }
.countdown-separator {
    font-size: 30px; font-weight: 900; color: #c4b5fd;
    line-height: 1; margin-bottom: 20px; user-select: none;
}
.countdown-label {
    font-size: 9px; font-weight: 700; letter-spacing: .15em;
    text-transform: uppercase; color: #a1a1aa; margin-top: 6px;
}

/* — card body — */
.draw-body {
    padding: 22px 24px 24px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}

/* status pill */
.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f5f3ff; border: 1px solid #ddd6fe;
    border-radius: 999px; padding: 7px 16px;
    font-size: 12px; font-weight: 700; color: #7c3aed;
    transition: all .3s;
}
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #a855f7;
    animation: statusDotAnim 1.3s ease-in-out infinite; flex-shrink: 0;
}
.status-pill.drawing { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.status-pill.drawing .status-dot { background: #f97316; animation-duration: .45s; }
.status-pill.won     { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.status-pill.won     .status-dot { background: #22c55e; animation: none; }
@keyframes statusDotAnim {
    0%,100% { transform:scale(1);   opacity:1; }
    50%      { transform:scale(1.8); opacity:.35; }
}

/* randomizer screen */
.randomizer-screen {
    width: 100%; max-width: 480px;
    background: #0c0820; border: 2px solid #2e1065;
    border-radius: 14px; padding: 18px 28px; min-height: 80px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.randomizer-screen::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 46%;
    background: linear-gradient(180deg,rgba(255,255,255,.05) 0%,transparent 100%);
    pointer-events: none;
}
.randomizer-screen.spin {
    border-color: #a855f7;
    animation: randomizerAnim .38s ease-in-out infinite alternate;
}
.randomizer-screen.glow {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 0 40px rgba(34,197,94,.4);
}
@keyframes randomizerAnim {
    from { box-shadow: 0 0 0 3px rgba(168,85,247,.12), 0 0 14px rgba(168,85,247,.25); }
    to   { box-shadow: 0 0 0 3px rgba(168,85,247,.28), 0 0 44px rgba(168,85,247,.6); }
}
.placeholder {
    font-size: 22px; letter-spacing: .45em;
    color: rgba(255,255,255,.12);
    font-family: 'Courier New', monospace; user-select: none;
}
.random-number {
    display: none;
    font-size: 30px; font-weight: 900; letter-spacing: .18em;
    font-family: 'Courier New', monospace; color: rgba(255,255,255,.85);
    transition: color .1s;
}
.random-number.sc { color: #e9d5ff; }
.random-number.wc { color: #86efac; }

/* winner box */
.winner-box {
    display: none;
    width: 100%; max-width: 480px;
    background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);
    border: 1.5px solid #86efac; border-radius: 14px;
    padding: 18px 22px; align-items: center; gap: 16px;
}
.winner-box.show {
    display: flex;
    animation: winnerBoxIn .55s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes winnerBoxIn {
    from { opacity:0; transform:scale(.88) translateY(14px); }
    to   { opacity:1; transform:scale(1)   translateY(0); }
}
.trophy  { font-size: 40px; flex-shrink: 0; }
.winner-label  { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #15803d; margin-bottom: 5px; }
.winner-number  { font-size: 24px; font-weight: 900; font-family: 'Courier New',monospace; color: #14532d; letter-spacing: .12em; margin-bottom: 3px; }
.winner-sub  { font-size: 11px; color: #16a34a; font-weight: 500; }

/* buy nudge */
.buy-nudge {
    width: 100%; max-width: 480px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; padding: 11px 18px;
    background: #fefce8; border: 1px solid #fde68a; border-radius: 10px;
    font-size: 13px; color: #92400e; font-weight: 600;
}
.buy-nudge a { color: #6d28d9; font-weight: 800; text-decoration: none; }
.buy-nudge a:hover { text-decoration: underline; }

/* live badge */
.live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: #6d28d9;
    background: #f5f3ff; border: 1px solid #ddd6fe;
    border-radius: 999px; padding: 4px 13px;
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
    animation: statusDotAnim 1s infinite;
}

/* confetti */
#confetti { position:fixed; inset:0; pointer-events:none; z-index:9999; overflow:hidden; }
.confetti-piece { position:absolute; top:-14px; opacity:0; animation:confettiAnim linear forwards; }
@keyframes confettiAnim {
    0%   { opacity:1; transform:translateY(0)      rotate(0deg);   }
    100% { opacity:0; transform:translateY(108vh)  rotate(640deg); }
}

@media(max-width:520px){
    .countdown-segment { min-width: 60px; }
    .countdown-number { font-size: 28px; }
    .random-number    { font-size: 22px; letter-spacing:.12em; }
    .countdown-separator { font-size: 24px; }
}

/* ===== RANDOMISER SECTION — isolated wrapper ===== */
.randomiser-section-wrap {
    background: var(--gray-bg);
    padding-bottom: 4px;
}
.randomiser-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 32px;
}

.randomiser-section-wrap .draw-card {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.randomiser-section-wrap .draw-header {
    padding: 10px 24px 9px;
}
.randomiser-section-wrap .draw-label {
    font-size: 10px;           /* was 8px, orig 10px → comfortable middle */
    margin-bottom: 2px;
}
.randomiser-section-wrap .draw-title {
    font-size: 16px;           /* was 11px, orig 22px */
}
.randomiser-section-wrap .draw-prize {
    padding: 5px 16px;
    font-size: 11px;           /* was 9px, orig 13px */
    gap: 7px;
}
.randomiser-section-wrap .countdown-row {
    gap: 10px;
    padding: 11px 24px 10px;
}
.randomiser-section-wrap .countdown-segment {
    min-width: 76px;
    padding: 7px 10px 5px;
    border-radius: 12px;
}
.randomiser-section-wrap .countdown-number {
    font-size: 28px;           /* was 19px, orig 38px */
}
.randomiser-section-wrap .countdown-separator {
    font-size: 22px;           /* was 15px, orig 30px */
    margin-bottom: 15px;
}
.randomiser-section-wrap .countdown-label {
    font-size: 9px;            /* was 7px, orig 9px — restore fully */
    margin-top: 3px;
}
.randomiser-section-wrap .draw-body {
    padding: 11px 24px 12px;
    gap: 8px;
}
.randomiser-section-wrap .status-pill {
    padding: 6px 16px;
    font-size: 12px;           /* was 10px, orig 12px — restore fully */
    gap: 8px;
}
.randomiser-section-wrap .status-dot {
    width: 7px; height: 7px;   /* was 5px, orig 8px */
}
.randomiser-section-wrap .randomizer-screen {
    max-width: 480px;
    padding: 12px 28px;
    min-height: 55px;          /* was 40px, orig 80px */
    border-radius: 14px;
}
.randomiser-section-wrap .placeholder {
    font-size: 16px;           /* was 11px, orig 22px */
    letter-spacing: .45em;
}
.randomiser-section-wrap .random-number {
    font-size: 22px;           /* was 15px, orig 30px */
    letter-spacing: .18em;
}
.randomiser-section-wrap .winner-box {
    max-width: 480px;
    padding: 12px 22px;
    border-radius: 14px;
    gap: 16px;
}
.randomiser-section-wrap .trophy { font-size: 30px; }      /* was 20px, orig 40px */
.randomiser-section-wrap .winner-label { font-size: 10px; margin-bottom: 2px; }
.randomiser-section-wrap .winner-number { font-size: 18px; margin-bottom: 1px; }
.randomiser-section-wrap .winner-sub { font-size: 11px; }
.randomiser-section-wrap .buy-nudge {
    max-width: 480px;
    padding: 8px 18px;
    font-size: 12px;           /* was 10px, orig 13px */
    border-radius: 10px;
}
.randomiser-section-wrap .section-header { margin-bottom: 10px; }
.randomiser-section-wrap .section-title { font-size: 17px; } /* was 14px, orig 21px */
.randomiser-section-wrap .live-badge {
    font-size: 12px;           /* was 10px, orig 12px — restore fully */
    padding: 4px 13px;
    gap: 6px;
}
.randomiser-section-wrap .live-dot {
    width: 7px; height: 7px;   /* was 5px, orig 8px */
}

/* Randomizer full-screen effect */
.randomiser-section-wrap.randomizing .countdown-row {
    display: none; /* hide countdown */
}

.randomiser-section-wrap.randomizing .randomizer-screen {
    max-width: 50%;     
    min-height: 150px;   /* taller during draw */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;     /* bigger numbers */
    letter-spacing: 0.3em;
    padding: 20px;
}

/* Enlarge placeholder text while randomizing 
.randomiser-section-wrap.randomizing .placeholder {
    font-size: 50px;     /* much bigger *
    letter-spacing: 0.25em; 
}*/
.randomiser-section-wrap.randomizing .placeholder,
.randomiser-section-wrap.randomizing .random-number {
    font-size: clamp(28px, 6vw, 52px);
    letter-spacing: clamp(0.08em, 0.4vw, 0.18em);
    font-family: monospace;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .randomiser-section-wrap.randomizing .placeholder,
    .randomiser-section-wrap.randomizing .random-number {
        font-size: clamp(22px, 8vw, 36px);
        letter-spacing: 0.06em;
    }
}
