/* Merchize: Lucky Money 3 element */

.lucky-money-3 {
    position: relative;
    /* Không tự đặt padding - canh khoảng cách bằng control của Elementor. */
    text-align: center;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-weight: 400;
    /* theme đặt line-height:26px trên body{} - reset để các rule bên dưới tự quyết */
    line-height: normal;
    color: #f2eee4;
}

.lucky-money-3,
.lucky-money-3 *,
.lucky-money-3 *:before,
.lucky-money-3 *:after {
    box-sizing: border-box;
}

.lucky-money-3__inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.lucky-money-3__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hạt sáng bắn ra khi mở quà */
.lucky-money-3__sparks {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 340px;
    pointer-events: none;
}

.lucky-money-3.is-unlocked .lucky-money-3__sparks {
    display: block;
}

.lucky-money-3__spark {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: rotate(var(--lm3-spark-rotate, 0deg));
}

.lucky-money-3__spark span {
    position: absolute;
    width: var(--lm3-spark-size, 5px);
    height: var(--lm3-spark-size, 5px);
    border-radius: 50%;
    background: var(--lm3-spark-color, #ffe6a8);
    box-shadow: var(--lm3-spark-glow, 0 0 10px 3px rgba(255, 200, 90, .8));
    animation: lucky-money-3-spark-out var(--lm3-spark-duration, 1.4s) cubic-bezier(.2, .7, .2, 1) var(--lm3-spark-delay, 0s) forwards;
}

/* Đèn ông sao + CTA */
.lucky-money-3__lamp-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Prototype dùng :focus (không phải :focus-visible) nên viền hiện cả khi bấm chuột. */
.lucky-money-3__lamp-button:focus {
    outline: 2px solid #9df3c8;
    outline-offset: 14px;
    border-radius: 12px;
}

.lucky-money-3.is-opened .lucky-money-3__lamp-button {
    cursor: default;
}

.lucky-money-3__lamp-hang {
    display: block;
    position: relative;
    transform-origin: 50% 0;
    animation: lucky-money-3-hang 6s ease-in-out infinite;
}

.lucky-money-3__lamp-string {
    display: block;
    width: 4px;
    height: clamp(28px, 5vh, 54px);
    margin: 0 auto;
    border-radius: 2px;
    background: linear-gradient(rgba(247, 181, 66, 0), rgba(247, 181, 66, .9));
}

.lucky-money-3__lamp {
    display: block;
    position: relative;
    width: clamp(150px, 26vw, 224px);
    margin: 2px auto 0;
}

.lucky-money-3__lamp-halo {
    position: absolute;
    left: 50%;
    top: 37%;
    width: 88%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 150, 80, .22), rgba(255, 120, 60, .08) 58%, transparent 72%);
    box-shadow: 0 0 74px 22px rgba(255, 110, 66, .42), 0 0 28px 6px rgba(255, 150, 90, .3);
    transition: box-shadow .4s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}

.lucky-money-3__lamp-button:hover .lucky-money-3__lamp-halo,
.lucky-money-3__lamp-button:focus .lucky-money-3__lamp-halo,
.lucky-money-3.is-opened .lucky-money-3__lamp-halo {
    box-shadow: 0 0 120px 38px rgba(255, 120, 70, .62), 0 0 46px 10px rgba(255, 170, 110, .5);
}

.lucky-money-3__ring {
    position: absolute;
    left: 50%;
    top: 37%;
    width: 92%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 170, 150, .55);
    animation: lucky-money-3-tap-ring 2.8s cubic-bezier(.2, .7, .2, 1) infinite;
    pointer-events: none;
}

.lucky-money-3__ring--2 {
    border-color: rgba(255, 170, 150, .4);
    animation-delay: .7s;
}

.lucky-money-3.is-opened .lucky-money-3__ring {
    display: none;
}

.lucky-money-3__lamp-art {
    display: block;
    position: relative;
    filter: brightness(1);
    transition: filter .4s cubic-bezier(.2, .7, .2, 1);
}

.lucky-money-3__lamp-button:hover .lucky-money-3__lamp-art,
.lucky-money-3__lamp-button:focus .lucky-money-3__lamp-art,
.lucky-money-3.is-opened .lucky-money-3__lamp-art {
    filter: brightness(1.12) saturate(1.05);
}

.lucky-money-3__lamp-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.lucky-money-3__cta {
    line-height: normal;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 16px 32px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #4fe8a1, #2ec97e);
    color: #03250f;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 8px 24px -8px rgba(56, 224, 140, .7);
    transition: filter .25s cubic-bezier(.2, .7, .2, 1), transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s cubic-bezier(.2, .7, .2, 1);
}

.lucky-money-3__lamp-button:hover .lucky-money-3__cta,
.lucky-money-3__lamp-button:focus .lucky-money-3__cta {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(56, 224, 140, .85);
}

.lucky-money-3__cta-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin: -8px 0;
    animation: lucky-money-3-tap-poke 2.4s ease-in-out infinite;
}

.lucky-money-3.is-opened .lucky-money-3__cta {
    display: none;
}

/* Form nhập mã */
.lucky-money-3__form {
    display: none;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 452px;
    margin-top: clamp(24px, 4vh, 40px);
}

.lucky-money-3.is-locked .lucky-money-3__form {
    display: block;
    animation: lucky-money-3-bloom-in .55s cubic-bezier(.2, .7, .2, 1) both;
}

.lucky-money-3__form-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lucky-money-3__form-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .01em;
    color: #ffffff;
    white-space: nowrap;
}

.lucky-money-3__form-rule {
    display: block;
    flex: none;
    width: min(56px, 10vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 196, 81, .4));
}

.lucky-money-3__form-rule--right {
    background: linear-gradient(90deg, rgba(245, 196, 81, .4), transparent);
}

.lucky-money-3__field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    border: 1px solid rgba(245, 196, 81, .28);
    background: linear-gradient(180deg, rgba(24, 18, 52, .82), rgba(9, 8, 28, .86));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .9), inset 0 0 18px rgba(255, 170, 60, .05);
    transition: border-color .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s cubic-bezier(.2, .7, .2, 1);
}

.lucky-money-3__form.is-filled .lucky-money-3__field {
    border-color: rgba(255, 212, 137, .75);
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .9), 0 0 34px -6px rgba(255, 170, 60, .35), inset 0 0 22px rgba(255, 170, 60, .09);
}

.lucky-money-3__form.is-error .lucky-money-3__field {
    border-color: rgba(242, 85, 90, .75);
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .9), 0 0 0 4px rgba(242, 85, 90, .1);
}

.lucky-money-3__field-icon {
    display: block;
    flex: none;
    width: 13px;
}

.lucky-money-3 .lucky-money-3__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 4px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f2eee4;
}

.lucky-money-3 .lucky-money-3__input:focus {
    outline: none;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.lucky-money-3 .lucky-money-3__input::placeholder {
    color: #6f76a8;
    opacity: 1;
}

.lucky-money-3__form.is-filled .lucky-money-3__input {
    color: #ffe6b0;
}

.lucky-money-3__form.is-error .lucky-money-3__input {
    color: #ffb9bc;
}

.lucky-money-3__submit {
    line-height: normal;
    flex: 0 0 auto;
    padding: 12px clamp(20px, 4.5vw, 30px);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #4fe8a1, #2ec97e);
    color: #03250f;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(56, 224, 140, .65);
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s cubic-bezier(.2, .7, .2, 1), filter .2s cubic-bezier(.2, .7, .2, 1);
}

.lucky-money-3__submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px -8px rgba(56, 224, 140, .8);
}

.lucky-money-3__submit:active {
    transform: translateY(0);
    filter: brightness(.96);
}

.lucky-money-3__submit:focus {
    outline: 2px solid #9df3c8;
    outline-offset: 3px;
}

.lucky-money-3__error {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #ff8a8e;
}

.lucky-money-3__form.is-error .lucky-money-3__error {
    display: flex;
}

.lucky-money-3__error-dot {
    display: block;
    flex: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f2555a;
    box-shadow: 0 0 8px 2px rgba(242, 85, 90, .6);
}

/* Card quà */
.lucky-money-3__gift {
    display: none;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    margin-top: clamp(30px, 5vh, 52px);
    padding: clamp(34px, 5vw, 54px) clamp(26px, 4.5vw, 48px);
    border: 1.5px solid rgba(255, 214, 140, .6);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(255, 196, 90, .2), rgba(28, 20, 62, .86));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 48px 110px -44px rgba(0, 0, 0, .95), 0 0 120px -20px rgba(255, 168, 60, .6), inset 0 1px 0 rgba(255, 236, 190, .35);
}

.lucky-money-3.is-unlocked .lucky-money-3__gift {
    display: block;
    animation: lucky-money-3-bloom-in .7s cubic-bezier(.2, .7, .2, 1) both, lucky-money-3-gift-glow 3.6s ease-in-out 1s infinite;
}

.lucky-money-3__gift-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(320px, 72%);
    height: 2px;
    transform: translate(-50%, -1px);
    background: linear-gradient(90deg, transparent, rgba(255, 214, 140, .95), transparent);
}

.lucky-money-3__gift-glow {
    position: absolute;
    left: 50%;
    top: -1px;
    width: min(420px, 90%);
    height: 120px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(60% 100% at 50% 0, rgba(255, 188, 80, .35), transparent 72%);
}

.lucky-money-3__gift-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lucky-money-3__gift-eyebrow span:last-child {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    color: #38e08c;
    text-transform: uppercase;
}

.lucky-money-3__gift-icon {
    display: block;
    flex: none;
    width: 13px;
}

.lucky-money-3__gift-title {
    margin: 18px 0 0;
    padding: 0;
    font-family: 'Newsreader', 'Noto Serif Display', Georgia, serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.14;
    letter-spacing: -.015em;
    color: #fff3d0;
    text-shadow: 0 0 34px rgba(255, 178, 70, .45);
    overflow-wrap: anywhere;
}

.lucky-money-3__gift-text {
    margin: 18px auto 0;
    max-width: 46ch;
    font-size: clamp(15.5px, 1.15vw, 17.5px);
    line-height: 1.85;
    font-weight: 300;
    color: #ffffff;
    text-wrap: pretty;
}

.lucky-money-3__gift-text > *:first-child {
    margin-top: 0;
}

.lucky-money-3__gift-text > *:last-child {
    margin-bottom: 0;
}

.lucky-money-3__gift-text a {
    color: #38e08c;
    text-decoration: none;
}

.lucky-money-3__gift-text a:hover {
    color: #7af0b4;
}

@keyframes lucky-money-3-hang {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes lucky-money-3-tap-ring {
    0% { transform: translate(-50%, -50%) scale(.92); opacity: 0; }
    18% { opacity: .75; }
    100% { transform: translate(-50%, -50%) scale(1.28); opacity: 0; }
}

@keyframes lucky-money-3-tap-poke {
    0%, 60%, 100% { transform: translate(0, 0); }
    72% { transform: translate(-5px, -5px); }
    82% { transform: translate(1px, 1px); }
}

@keyframes lucky-money-3-bloom-in {
    0% { opacity: 0; transform: translateY(18px) scale(.97); }
    100% { opacity: 1; transform: none; }
}

@keyframes lucky-money-3-spark-out {
    0% { transform: translate(-50%, -50%) translateY(0) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) translateY(-160px) scale(.25); opacity: 0; }
}

@keyframes lucky-money-3-gift-glow {
    0%, 100% { box-shadow: 0 48px 110px -44px rgba(0, 0, 0, .95), 0 0 120px -20px rgba(255, 168, 60, .6), inset 0 1px 0 rgba(255, 236, 190, .35); }
    50% { box-shadow: 0 48px 110px -44px rgba(0, 0, 0, .95), 0 0 150px -14px rgba(255, 180, 70, .8), inset 0 1px 0 rgba(255, 236, 190, .5); }
}

@media (prefers-reduced-motion: reduce) {
    .lucky-money-3 *,
    .lucky-money-3 *:before,
    .lucky-money-3 *:after,
    .lucky-money-3__modal,
    .lucky-money-3__modal *,
    .lucky-money-3__modal *:before,
    .lucky-money-3__modal *:after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* ---------------------------------------------------------------------------
 * Loader trong ô nhập mã (port từ lucky-money-2: mã phải qua API mới ra quà).
 * ------------------------------------------------------------------------- */

.lucky-money-3__loader {
    display: none;
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 212, 137, .3);
    border-top-color: #ffd489;
    animation: lucky-money-3-spin .7s linear infinite;
}

.lucky-money-3__form.is-loading .lucky-money-3__loader {
    display: block;
}

.lucky-money-3__form.is-loading .lucky-money-3__submit {
    opacity: .6;
    pointer-events: none;
}

@keyframes lucky-money-3-spin {
    to { transform: rotate(360deg); }
}

/* Nút "Xem lại voucher" trên card xác nhận - chỉ có khi API trả về giá trị. */
.lucky-money-3__gift-review {
    display: none;
    line-height: normal;
    margin-top: 24px;
    padding: 13px 32px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #4fe8a1, #2ec97e);
    color: #03250f;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(56, 224, 140, .65);
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), filter .2s cubic-bezier(.2, .7, .2, 1);
}

.lucky-money-3__gift.has-voucher .lucky-money-3__gift-review {
    display: inline-block;
}

.lucky-money-3__gift-review:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.lucky-money-3__gift-review:active {
    transform: translateY(0);
}

.lucky-money-3__gift-review:focus {
    outline: 2px solid #9df3c8;
    outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
 * Popup voucher.
 *
 * JS dời __modal sang <body> khi init (xem docblock trong tpl/default.php) nên
 * KHÔNG được viết selector dạng `.lucky-money-3 .lucky-money-3__modal` - lúc
 * chạy thật popup không còn nằm trong .lucky-money-3. Vì thế khối này tự khai
 * lại box-sizing, font và color thay vì thừa hưởng từ widget.
 * ------------------------------------------------------------------------- */

.lucky-money-3__modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: clamp(16px, 4vw, 32px);
    background: rgba(4, 4, 18, .8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-weight: 400;
    line-height: normal;
    color: #f2eee4;
    text-align: left;
}

.lucky-money-3__modal,
.lucky-money-3__modal *,
.lucky-money-3__modal *:before,
.lucky-money-3__modal *:after {
    box-sizing: border-box;
}

.lucky-money-3__modal.is-open {
    display: flex;
    animation: lucky-money-3-fade-in .3s ease both;
}

/* margin:auto canh giữa nhưng vẫn cho scroll khi màn thấp - align-items:center
 * sẽ cắt mất đầu dialog. */
.lucky-money-3__dialog {
    position: relative;
    flex: 0 0 auto;
    margin: auto;
    width: min(460px, 100%);
    padding: clamp(26px, 5vw, 36px) clamp(22px, 4.5vw, 34px) clamp(22px, 4vw, 30px);
    border: 1.5px solid rgba(255, 214, 140, .55);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(255, 196, 90, .16), rgba(24, 18, 54, .96));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 60px 140px -44px rgba(0, 0, 0, .96), 0 0 120px -24px rgba(255, 168, 60, .45), inset 0 1px 0 rgba(255, 236, 190, .32);
    animation: lucky-money-3-bloom-in .55s cubic-bezier(.2, .7, .2, 1) both;
}

.lucky-money-3__dialog-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(300px, 74%);
    height: 2px;
    transform: translate(-50%, -1px);
    background: linear-gradient(90deg, transparent, rgba(255, 214, 140, .95), transparent);
}

.lucky-money-3__dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(245, 196, 81, .24);
    border-radius: 50%;
    background: rgba(9, 8, 28, .55);
    color: #f5e2b8;
    cursor: pointer;
    transition: background-color .22s cubic-bezier(.2, .7, .2, 1), border-color .22s cubic-bezier(.2, .7, .2, 1);
}

.lucky-money-3__dialog-close:hover {
    border-color: rgba(255, 214, 140, .6);
    background: rgba(255, 196, 90, .18);
}

.lucky-money-3__dialog-close:focus {
    outline: 2px solid rgba(255, 214, 140, .7);
    outline-offset: 2px;
}

.lucky-money-3__dialog-close svg {
    display: block;
    width: 14px;
    height: 14px;
}

.lucky-money-3__dialog-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.lucky-money-3__dialog-eyebrow span:last-child {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .3em;
    color: #38e08c;
    text-transform: uppercase;
}

.lucky-money-3__dialog-icon {
    display: block;
    flex: none;
    width: 12px;
}

.lucky-money-3__dialog-icon svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.lucky-money-3__dialog-title {
    /* padding-right chừa chỗ cho nút ✕ ở góc. */
    margin: 14px 0 0;
    padding: 0 30px 0 0;
    font-family: 'Newsreader', 'Noto Serif Display', Georgia, serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(26px, 5.4vw, 34px);
    line-height: 1.14;
    letter-spacing: -.015em;
    color: #fff3d0;
    text-shadow: 0 0 34px rgba(255, 178, 70, .4);
}

.lucky-money-3__dialog-text {
    margin: 14px 0 0;
    padding: 0;
    font-size: 14.5px;
    line-height: 1.85;
    font-weight: 300;
    color: #ffffff;
    text-wrap: pretty;
}

.lucky-money-3__dialog-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 196, 81, .2);
}

.lucky-money-3__dialog-note p {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 400;
    color: #f5c451;
}

.lucky-money-3__dialog-note-dot {
    display: block;
    flex: none;
    width: 4px;
    height: 4px;
    margin-top: 7px;
    border-radius: 50%;
    background: #f7b542;
    box-shadow: 0 0 8px 2px rgba(247, 181, 66, .5);
}

/* Thẻ voucher vuông: nền dùng đúng gradient bầu trời của trang. */
.lucky-money-3__voucher {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    margin-top: 14px;
    padding: clamp(20px, 4vw, 26px);
    border: 1px solid rgba(255, 214, 140, .45);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(178deg, #05061c 0%, #0a0c2c 20%, #141243 44%, #1b1548 62%, #120e33 82%, #07081e 100%);
}

.lucky-money-3__voucher-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.2px 1.2px at 14% 18%, rgba(255, 255, 255, .8), transparent),
        radial-gradient(1.2px 1.2px at 78% 12%, rgba(255, 255, 255, .65), transparent),
        radial-gradient(1.6px 1.6px at 30% 34%, rgba(255, 240, 210, .75), transparent),
        radial-gradient(1.2px 1.2px at 88% 40%, rgba(255, 255, 255, .55), transparent),
        radial-gradient(1.2px 1.2px at 8% 52%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.6px 1.6px at 62% 58%, rgba(255, 236, 190, .6), transparent),
        radial-gradient(1.2px 1.2px at 22% 70%, rgba(255, 255, 255, .45), transparent);
}

.lucky-money-3__voucher-moon {
    position: absolute;
    right: -30px;
    top: -36px;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle at 42% 40%, #fffbe9, #ffedad 52%, #f2c96a 80%, #e0ab4a);
    box-shadow: 0 0 70px 26px rgba(255, 196, 100, .32);
}

.lucky-money-3__voucher-aura {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: radial-gradient(70% 100% at 50% 128%, rgba(255, 160, 60, .24), rgba(255, 150, 55, .07) 52%, transparent 78%);
}

.lucky-money-3__voucher-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 23%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 178, 80, .4) 30%, rgba(255, 200, 110, .55) 50%, rgba(255, 178, 80, .4) 70%, transparent);
}

.lucky-money-3__voucher-lantern {
    position: absolute;
    left: 40%;
    top: 0;
    width: 26px;
    transform-origin: 50% 0;
    animation: lucky-money-3-hang 7s ease-in-out infinite;
}

.lucky-money-3__voucher-lantern-string {
    display: block;
    width: 2px;
    height: 22px;
    margin: 0 auto 2px;
    background: linear-gradient(rgba(247, 181, 66, 0), rgba(247, 181, 66, .8));
}

.lucky-money-3__voucher-head,
.lucky-money-3__voucher-mid,
.lucky-money-3__voucher-foot {
    position: relative;
}

.lucky-money-3__voucher-mid,
.lucky-money-3__voucher-foot {
    text-align: center;
}

.lucky-money-3__voucher-logo {
    display: block;
    width: clamp(100px, 22vw, 118px);
    height: auto;
}

.lucky-money-3__voucher-label {
    /* text-indent bù lại khoảng letter-spacing thừa ở ký tự cuối, để chữ
     * canh giữa thật sự. */
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .42em;
    text-indent: .42em;
    text-transform: uppercase;
    color: #38e08c;
}

.lucky-money-3__voucher-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 8px;
    font-family: 'Newsreader', 'Noto Serif Display', Georgia, serif;
    font-weight: 600;
    font-style: normal;
    color: #fff3d0;
}

.lucky-money-3__voucher-value {
    font-size: clamp(84px, 21vw, 116px);
    line-height: 1;
    letter-spacing: -.03em;
    text-shadow: 0 0 46px rgba(255, 178, 70, .5);
}

.lucky-money-3__voucher-currency {
    font-size: clamp(34px, 8.5vw, 46px);
    line-height: 1;
    margin-top: 12px;
    text-shadow: 0 0 30px rgba(255, 178, 70, .5);
}

.lucky-money-3__voucher-rule {
    display: block;
    width: 60px;
    height: 1px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, rgba(245, 196, 81, .6), transparent);
}

.lucky-money-3__voucher-thanks {
    margin: 0;
    padding: 0;
    font-family: 'Newsreader', 'Noto Serif Display', Georgia, serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: #ffe6b0;
}

.lucky-money-3__save {
    display: block;
    line-height: normal;
    width: 100%;
    margin-top: 14px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #4fe8a1, #2ec97e);
    color: #03250f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(56, 224, 140, .65);
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), filter .2s cubic-bezier(.2, .7, .2, 1);
}

.lucky-money-3__save:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.lucky-money-3__save:active {
    transform: translateY(0);
}

.lucky-money-3__save:focus {
    outline: 2px solid #9df3c8;
    outline-offset: 3px;
}

.lucky-money-3__save.is-busy {
    opacity: .7;
    pointer-events: none;
}

@keyframes lucky-money-3-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
