/* 2.3.51 "Lời chúc gửi ATM" on the home page: a gold pill button under the hero that opens/closes a starry wall of wishes.
   Temporary (hidden after the time set in Settings). Everything is scoped to #atm-home-wishes so the home-page theme is untouched. */
#atm-home-wishes{position:relative;z-index:2;margin:0;padding:0;background:transparent;color:#fff;font-family:inherit;text-align:center;box-sizing:border-box}
#atm-home-wishes *,#atm-home-wishes *::before,#atm-home-wishes *::after{box-sizing:border-box}
#atm-home-wishes .atm-hw-bar{display:flex;justify-content:center;padding:22px 16px 20px}
#atm-home-wishes .atm-hw-toggle{position:relative;display:inline-flex;align-items:center;gap:12px;min-height:50px;margin:0;padding:0 22px 0 18px;border:1px solid #e5cf9f;border-radius:999px;background:linear-gradient(135deg,#0f4268 0%,#0a2c49 55%,#071f35 100%);color:#fff;font-weight:600;font-size:15px;line-height:1.2;font-family:inherit;letter-spacing:.01em;cursor:pointer;overflow:hidden;box-shadow:0 10px 26px rgba(7,31,53,.32),0 0 0 4px rgba(229,207,159,.16),inset 0 1px 0 rgba(255,255,255,.14);transition:transform .35s cubic-bezier(.2,.9,.25,1.2),box-shadow .35s ease,border-color .35s ease;-webkit-tap-highlight-color:transparent}
#atm-home-wishes .atm-hw-toggle::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.26) 50%,transparent 65%);transform:translateX(-130%);animation:atm-hw-shine 5.5s ease-in-out infinite;pointer-events:none}
#atm-home-wishes .atm-hw-toggle:hover{transform:translateY(-2px);border-color:#ffe08a;box-shadow:0 16px 34px rgba(7,31,53,.38),0 0 0 5px rgba(255,224,138,.22),inset 0 1px 0 rgba(255,255,255,.18)}
#atm-home-wishes .atm-hw-toggle:active{transform:translateY(0) scale(.98)}
#atm-home-wishes .atm-hw-toggle:focus-visible,#atm-home-wishes .atm-hw-hide:focus-visible,#atm-home-wishes .atm-hw-send:focus-visible{outline:3px solid #ffe08a;outline-offset:3px}
#atm-home-wishes .atm-hw-heart{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff9cc2,#ff4f8f);color:#fff;font-size:15px;line-height:1;box-shadow:0 0 14px rgba(255,111,165,.7);animation:atm-hw-beat 2.2s ease-in-out infinite}
#atm-home-wishes .atm-hw-label{color:#fff}
#atm-home-wishes .atm-hw-state{color:#e5cf9f;font-weight:500;font-size:13.5px;padding-left:12px;border-left:1px solid rgba(229,207,159,.5)}
#atm-home-wishes .atm-hw-chev{display:inline-block;color:#e5cf9f;font-size:13px;transition:transform .5s cubic-bezier(.22,.8,.2,1)}
#atm-home-wishes.is-open .atm-hw-chev{transform:rotate(180deg)}
@keyframes atm-hw-beat{0%,100%{transform:scale(1)}14%{transform:scale(1.16)}28%{transform:scale(1)}42%{transform:scale(1.1)}70%{transform:scale(1)}}
@keyframes atm-hw-shine{0%,60%{transform:translateX(-130%)}90%,100%{transform:translateX(130%)}}

/* collapsible panel: grid-rows 0fr -> 1fr gives a smooth height animation without knowing the height */
#atm-home-wishes .atm-hw-panel{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transform:translateY(-14px);transition:grid-template-rows .8s cubic-bezier(.22,.8,.2,1),opacity .55s ease,transform .8s cubic-bezier(.22,.8,.2,1),visibility 0s linear .8s}
#atm-home-wishes.is-open .atm-hw-panel{grid-template-rows:1fr;opacity:1;visibility:visible;transform:none;transition:grid-template-rows .8s cubic-bezier(.22,.8,.2,1),opacity .6s ease .12s,transform .8s cubic-bezier(.22,.8,.2,1),visibility 0s}
#atm-home-wishes .atm-hw-clip{min-height:0;overflow:hidden}
#atm-home-wishes .atm-hw-stage{position:relative;isolation:isolate;overflow:hidden;padding:70px 0 74px;background:radial-gradient(120% 90% at 50% 0%,#13527d 0%,#0a3250 46%,#061f33 100%);border-top:1px solid rgba(229,207,159,.55);border-bottom:1px solid rgba(229,207,159,.55);box-shadow:inset 0 24px 60px rgba(0,0,0,.18)}
#atm-home-wishes .atm-hw-sky{position:absolute;inset:0;z-index:0;pointer-events:none}
#atm-home-wishes .atm-hw-sky i{position:absolute;font-style:normal;line-height:1;opacity:0}
#atm-home-wishes .atm-hw-sky i::before{content:"✦";color:#f3dca0;font-size:18px}
#atm-home-wishes .atm-hw-sky i:nth-child(1){left:6%;top:14%;animation:atm-hw-twinkle 4.2s ease-in-out infinite}
#atm-home-wishes .atm-hw-sky i:nth-child(2){left:22%;top:72%;animation:atm-hw-twinkle 5.6s ease-in-out -1.3s infinite}
#atm-home-wishes .atm-hw-sky i:nth-child(3){left:78%;top:18%;animation:atm-hw-twinkle 4.8s ease-in-out -2.1s infinite}
#atm-home-wishes .atm-hw-sky i:nth-child(4){left:92%;top:66%;animation:atm-hw-twinkle 6.2s ease-in-out -.6s infinite}
#atm-home-wishes .atm-hw-sky i:nth-child(n+5)::before{content:"♥";color:#ff6fa5;font-size:22px;filter:drop-shadow(0 0 10px rgba(255,111,165,.7))}
#atm-home-wishes .atm-hw-sky i:nth-child(5){left:12%;bottom:-30px;animation:atm-hw-float 11s linear infinite}
#atm-home-wishes .atm-hw-sky i:nth-child(6){left:36%;bottom:-30px;animation:atm-hw-float 14s linear -4s infinite}
#atm-home-wishes .atm-hw-sky i:nth-child(7){left:64%;bottom:-30px;animation:atm-hw-float 12s linear -7s infinite}
#atm-home-wishes .atm-hw-sky i:nth-child(8){left:86%;bottom:-30px;animation:atm-hw-float 15s linear -2s infinite}
@keyframes atm-hw-twinkle{0%,100%{opacity:.1;transform:scale(.7) rotate(0)}50%{opacity:1;transform:scale(1.25) rotate(25deg)}}
@keyframes atm-hw-float{0%{transform:translateY(0) translateX(0) scale(.7);opacity:0}12%{opacity:.85}100%{transform:translateY(-90vh) translateX(26px) scale(1.15);opacity:0}}
#atm-home-wishes .atm-hw-inner{position:relative;z-index:1;width:min(1180px,100% - 32px);margin:0 auto}
#atm-home-wishes .atm-hw-eyebrow{margin:0 0 10px;color:#e5cf9f;font-size:12px;font-weight:600;letter-spacing:.26em;text-transform:uppercase}
#atm-home-wishes .atm-hw-title{margin:0 0 14px;padding:0;color:#fff;font-size:clamp(27px,3.6vw,42px);font-weight:600;line-height:1.25;letter-spacing:0;text-transform:none;text-shadow:0 2px 24px rgba(0,0,0,.35)}
#atm-home-wishes .atm-hw-title::before,#atm-home-wishes .atm-hw-title::after{display:none}
#atm-home-wishes .atm-hw-desc{max-width:680px;margin:0 auto;color:#d3e3ec;font-size:16px;line-height:1.8}
#atm-home-wishes .atm-hw-wall{position:relative;margin:34px auto 6px}
#atm-home-wishes .atm-hw-spot{display:grid;place-items:center;min-height:190px;padding:6px 12px 10px;perspective:900px}
#atm-home-wishes .atm-hw-spot[hidden]{display:none}
#atm-home-wishes .atm-hw-spot-card{position:relative;width:100%;max-width:740px;padding:30px 38px 26px;border-radius:26px;background:linear-gradient(150deg,rgba(255,255,255,.17),rgba(255,255,255,.05));border:1px solid rgba(229,207,159,.65);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),0 26px 60px rgba(0,0,0,.36),0 0 70px rgba(229,207,159,.2);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#atm-home-wishes .atm-hw-spot-card::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.22) 50%,transparent 65%);transform:translateX(-120%);animation:atm-hw-shine 6s ease-in-out infinite;pointer-events:none}
#atm-home-wishes .atm-hw-spot-label{display:inline-block;margin-bottom:10px;color:#e5cf9f;font-size:11px;letter-spacing:.24em;text-transform:uppercase}
#atm-home-wishes .atm-hw-spot-text{margin:0;color:#fff;font-size:clamp(19px,2.4vw,26px);font-weight:500;line-height:1.6;text-wrap:balance}
#atm-home-wishes .atm-hw-spot-name{display:block;margin-top:14px;color:#e5cf9f;font-weight:650;letter-spacing:.06em}
#atm-home-wishes .atm-hw-spot-name::before{content:"♥ ";color:#ff6fa5}
#atm-home-wishes .atm-hw-spot-card.is-swap{animation:atm-hw-spot-in .95s cubic-bezier(.2,.9,.25,1.15)}
@keyframes atm-hw-spot-in{0%{opacity:0;transform:translateY(46px) rotateX(-20deg) scale(.9)}60%{opacity:1;transform:translateY(-8px) rotateX(3deg) scale(1.02)}100%{transform:none}}
#atm-home-wishes .atm-hw-rows{overflow:hidden;margin-top:10px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
#atm-home-wishes .atm-hw-row{display:flex;gap:16px;width:max-content;margin:14px 0;padding:8px 0;list-style:none;animation:atm-hw-run var(--dur,60s) linear infinite}
#atm-home-wishes .atm-hw-row.is-rev{animation-direction:reverse}
@keyframes atm-hw-run{to{transform:translateX(-50%)}}
#atm-home-wishes .atm-hw-card{position:relative;flex:0 0 auto;width:min(340px,78vw);margin:0;padding:18px 20px 14px;text-align:left;list-style:none;border-radius:18px;background:rgba(255,255,255,.09);border:1px solid rgba(229,207,159,.42);box-shadow:0 10px 28px rgba(0,0,0,.25);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
#atm-home-wishes .atm-hw-card p{display:-webkit-box;margin:0 0 9px;overflow:hidden;color:#f2f7fa;font-size:15px;line-height:1.6;-webkit-line-clamp:3;-webkit-box-orient:vertical}
#atm-home-wishes .atm-hw-card small{color:#e5cf9f;font-size:13px;font-weight:600}
#atm-home-wishes .atm-hw-card-heart{position:absolute;top:-11px;right:14px;color:#ff6fa5;font-size:21px;filter:drop-shadow(0 0 8px rgba(255,111,165,.75))}
#atm-home-wishes .atm-hw-wall:hover .atm-hw-row{animation-play-state:paused}
#atm-home-wishes .atm-hw-empty{margin:18px 0 0;color:#ffd0e2;font-size:18px;font-weight:600;animation:atm-hw-pulse 2.4s ease-in-out infinite}
#atm-home-wishes .atm-hw-empty[hidden]{display:none}
@keyframes atm-hw-pulse{50%{transform:scale(1.04);color:#fff}}
#atm-home-wishes .atm-hw-actions{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;align-items:center;margin-top:34px}
#atm-home-wishes .atm-hw-send{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 28px;border-radius:999px;border:0;background:linear-gradient(135deg,#ffe9a8,#e5bf6a);color:#4a3306;font-weight:700;font-size:15px;line-height:1;font-family:inherit;text-decoration:none;box-shadow:0 12px 28px rgba(229,191,106,.38);transition:transform .3s cubic-bezier(.2,.9,.25,1.2),box-shadow .3s}
#atm-home-wishes .atm-hw-send:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(229,191,106,.5);color:#4a3306}
#atm-home-wishes .atm-hw-hide{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;border:1px solid rgba(229,207,159,.6);background:rgba(255,255,255,.06);color:#f3e6c4;font-weight:600;font-size:14.5px;line-height:1;font-family:inherit;cursor:pointer;transition:background .3s,transform .3s}
#atm-home-wishes .atm-hw-hide:hover{background:rgba(255,255,255,.14);transform:translateY(-2px)}
#atm-home-wishes .atm-hw-note{margin:0;color:#b9cfdb;font-size:13px}
@media(max-width:700px){
 #atm-home-wishes .atm-hw-bar{padding:16px 12px 14px}
 #atm-home-wishes .atm-hw-toggle{min-height:48px;gap:10px;padding:0 16px 0 14px;font-size:14.5px}
 #atm-home-wishes .atm-hw-state{display:none}
 #atm-home-wishes .atm-hw-stage{padding:48px 0 52px}
 #atm-home-wishes .atm-hw-spot-card{padding:24px 22px 20px}
 #atm-home-wishes .atm-hw-card{width:min(300px,82vw)}
 #atm-home-wishes .atm-hw-desc{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
 #atm-home-wishes .atm-hw-panel,#atm-home-wishes.is-open .atm-hw-panel{transition:none;transform:none}
 #atm-home-wishes .atm-hw-toggle::after,#atm-home-wishes .atm-hw-heart,#atm-home-wishes .atm-hw-spot-card::after,#atm-home-wishes .atm-hw-sky i,#atm-home-wishes .atm-hw-empty,#atm-home-wishes .atm-hw-spot-card.is-swap{animation:none}
 #atm-home-wishes .atm-hw-sky i:nth-child(-n+4){opacity:.7}
 #atm-home-wishes .atm-hw-row{animation:none;width:auto;flex-wrap:wrap;justify-content:center}
 #atm-home-wishes .atm-hw-row [aria-hidden=true]{display:none}
 #atm-home-wishes .atm-hw-rows{-webkit-mask-image:none;mask-image:none}
}
