/* Hạt Mầm Diệu Kỳ – nút nổi, cửa sổ mở quà, hiệu ứng nảy mầm / ánh vàng (BTC 03/11/2026) */
.gift-fab { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px; color: #fff; border: 1px solid rgba(255, 210, 120, 0.6); border-radius: 999px;
  background: linear-gradient(135deg, rgba(69, 182, 73, 0.95), rgba(243, 112, 33, 0.95)); box-shadow: 0 8px 30px rgba(255, 190, 80, 0.45); animation: gf-bob 2.4s ease-in-out infinite; }
.gift-fab[hidden] { display: none; }
.gf-seed { width: 32px; height: 36px; background: url('seed.webp?v=20261105b') center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255, 220, 120, 0.9)); }
.gf-n { background: #fff; color: #e65100; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.gf-n:empty { display: none; }
@keyframes gf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.gift-dlg { width: min(460px, calc(100vw - 24px)); padding: 0; border: 1px solid rgba(255, 210, 120, 0.35); border-radius: 24px; color: var(--text, #e8eefc);
  background: radial-gradient(500px 300px at 50% 0%, rgba(255, 196, 90, 0.18), transparent 70%), #0a1630; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); overflow: visible; }
.gift-dlg::backdrop { background: rgba(3, 8, 20, 0.72); backdrop-filter: blur(3px); }
.gift-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.gift-body { padding: 30px 24px 24px; text-align: center; }
.gift-body h2 { margin: 4px 0 6px; font-size: 22px; line-height: 1.3; }
.gift-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8fd14f; }
.gift-eyebrow.gold { color: #ffd36b; }
.gift-lead { margin: 0 0 6px; color: var(--muted, #93a4c8); }
.gift-tap { margin: 4px 0 0; color: #ffe2a3; animation: gt-blink 1.4s ease-in-out infinite; }
@keyframes gt-blink { 50% { opacity: 0.45; } }
.gift-msg { color: #ff8a65; font-size: 14px; }
.gift-note { font-size: 12.5px; color: var(--muted, #93a4c8); }
.gift-status { margin: 0; padding: 0 24px 16px; text-align: center; font-size: 13px; color: var(--muted, #93a4c8); }
.gift-status.ok { color: #9be29e; } .gift-status.bad { color: #ff8a65; }
html.light .gift-status.ok { color: #2e7d32; } html.light .gift-status.bad { color: #c2410c; }

/* Hạt mầm phát sáng "bling bling" */
.gift-seed { position: relative; display: block; width: 250px; height: 248px; margin: 10px auto 4px; border: 0; background: transparent; cursor: pointer; }
.gs-glow { position: absolute; inset: 24px 24px 50px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 140, 0.85), rgba(255, 170, 60, 0.25) 45%, transparent 70%); animation: gs-pulse 1.8s ease-in-out infinite; }
.gs-core { position: absolute; inset: 0; background: url('seed-full.webp?v=20261105c') center / contain no-repeat; animation: gs-bob 2.8s ease-in-out infinite; }
/* lớp đốm sáng lấy từ ảnh gốc: nhấp nháy; máy tắt hoạt cảnh vẫn hiện đủ */
.gs-core::after { content: ''; position: absolute; inset: 0; background: url('seed-sparkle.webp?v=20261105c') center / contain no-repeat; animation: gs-twinkle 1.7s ease-in-out infinite; }
.gift-seed .sp { display: none; } /* hình đã có đốm sáng riêng */
@keyframes gs-bob { 50% { transform: translateY(-4px); } }
@keyframes gs-twinkle { 0%, 100% { opacity: 1; filter: brightness(1.15); } 50% { opacity: 0.3; filter: brightness(1); } }
.gift-seed:hover .gs-core { filter: brightness(1.12); }
.gift-seed.shake .gs-core { animation: gs-shake 0.12s linear infinite; }
.sp { position: absolute; width: 14px; height: 14px; pointer-events: none; background: radial-gradient(circle, #fff 0 18%, transparent 20%), linear-gradient(transparent 45%, #fff6c8 45% 55%, transparent 55%), linear-gradient(90deg, transparent 45%, #fff6c8 45% 55%, transparent 55%); animation: sp-twinkle 1.6s ease-in-out infinite; }
.sp.s1 { left: 18%; top: 16%; } .sp.s2 { right: 16%; top: 22%; animation-delay: 0.4s; } .sp.s3 { left: 10%; bottom: 26%; animation-delay: 0.8s; }
.sp.s4 { right: 12%; bottom: 20%; animation-delay: 1.1s; } .sp.s5 { left: 46%; top: 2%; animation-delay: 0.6s; } .sp.s6 { left: 50%; bottom: 0; animation-delay: 1.3s; }
@keyframes gs-pulse { 50% { transform: scale(1.12); opacity: 0.75; } }
@keyframes gs-float { 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes gs-shake { 0% { transform: translate(-3px, 0) rotate(-6deg); } 50% { transform: translate(3px, -2px) rotate(6deg); } 100% { transform: translate(-3px, 0) rotate(-6deg); } }
@keyframes sp-twinkle { 0%, 100% { transform: scale(0.3) rotate(0); opacity: 0; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }

/* Quà Tri Thức: hạt mầm nảy thành cây nhỏ */
.gift-sprout { position: relative; width: 160px; height: 150px; margin: 0 auto 8px; }
.gp-soil { position: absolute; left: 30px; right: 30px; bottom: 6px; height: 22px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #6b4a2b, #3a2614); box-shadow: 0 0 20px rgba(143, 209, 79, 0.35); }
.gp-stem { position: absolute; left: 50%; bottom: 20px; width: 8px; margin-left: -4px; height: 64px; border-radius: 4px; background: linear-gradient(#8fd14f, #45b649); animation: gp-grow 0.9s 0.1s ease-out both; }
.gp-leaf { position: absolute; bottom: 62px; width: 34px; height: 18px; border-radius: 0 80% 0 80%; background: linear-gradient(135deg, #b6ec7a, #45b649); animation: gp-pop 0.5s ease-out both; }
.gp-leaf.l { right: 50%; transform-origin: right bottom; animation-delay: 0.8s; } .gp-leaf.r { left: 50%; transform-origin: left bottom; border-radius: 80% 0 80% 0; animation-delay: 0.95s; }
.gp-crown { position: absolute; left: 50%; bottom: 76px; width: 92px; height: 70px; margin-left: -46px; border-radius: 50%;
  background: radial-gradient(circle at 30% 35%, #c8f28d, #45b649 45%, #2e7d32 80%); box-shadow: 0 0 30px rgba(143, 209, 79, 0.6), inset -8px -10px 18px rgba(0, 60, 0, 0.35); animation: gp-pop 0.6s 1.2s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes gp-grow { from { height: 0; } }
@keyframes gp-pop { from { transform: scale(0); } }
.gift-quote { margin: 8px 0 6px; padding: 16px 18px; text-align: left; border-radius: 16px; border: 1px solid rgba(143, 209, 79, 0.35); background: rgba(69, 182, 73, 0.08); animation: gq-in 0.6s 1.6s ease-out both; }
.gift-quote blockquote { margin: 0 0 8px; font-size: 17px; line-height: 1.55; font-weight: 600; }
.gift-quote blockquote::before { content: '“'; color: #8fd14f; font-size: 26px; line-height: 0; vertical-align: -8px; margin-right: 2px; }
.gift-quote .note { margin: 0 0 8px; font-style: italic; color: var(--muted, #93a4c8); font-size: 14px; }
.gift-quote figcaption { font-size: 13.5px; color: var(--muted, #93a4c8); }
@keyframes gq-in { from { opacity: 0; transform: translateY(10px); } }

/* Quà May Mắn: ánh sáng vàng */
.gift-gold { position: relative; width: 190px; height: 170px; margin: 0 auto 6px; }
.gg-burst { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 150, 1), rgba(255, 190, 60, 0.5) 40%, transparent 70%); animation: gg-burst 1s ease-out both, gs-pulse 2s 1s ease-in-out infinite; }
.gg-ray { position: absolute; inset: -20px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 220, 120, 0.35) 0 8deg, transparent 8deg 24deg); animation: gg-spin 8s 0.3s linear infinite; mask-image: radial-gradient(circle, black 30%, transparent 70%); }
.gg-coin { position: absolute; left: 50%; top: 50%; font-size: 76px; line-height: 1; transform: translate(-50%, -50%); animation: gg-coin 1.1s 0.2s cubic-bezier(0.2, 1.5, 0.4, 1) both; filter: drop-shadow(0 0 18px rgba(255, 210, 90, 0.95)); }
.cf { position: absolute; left: 50%; top: 50%; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: cf-fly 1.3s 0.35s ease-out forwards; }
.gh-who .link-btn { justify-self: start; }
.cf.c0 { background: #ffd36b; } .cf.c1 { background: #f37021; } .cf.c2 { background: #4fc3ff; } .cf.c3 { background: #8fd14f; } .cf.c4 { background: #fff; } .cf.c5 { background: #ffb347; } .cf.c6 { background: #e91e63; }
.gold-t { background: linear-gradient(90deg, #fff1b8, #ffd36b, #ff9a4d); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes gg-burst { from { transform: scale(0.2); } }
@keyframes gg-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes gg-coin { 0% { transform: translate(-50%, -50%) scale(0) rotateY(0); } 70% { transform: translate(-50%, -50%) scale(1.15) rotateY(540deg); } 100% { transform: translate(-50%, -50%) scale(1) rotateY(720deg); } }
@keyframes cf-fly { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-110px) rotate(200deg); } }

.gift-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.gift-actions a.btn-tree { text-decoration: none; color: #fff; }

html.light .gift-dlg { background: radial-gradient(500px 300px at 50% 0%, rgba(255, 196, 90, 0.25), transparent 70%), #fff; color: #0f1b33; border-color: rgba(243, 112, 33, 0.3); }
html.light .gift-tap { color: #b4480f; }
html.light .gift-quote { background: rgba(69, 182, 73, 0.08); }
html.light .gift-eyebrow { color: #2e7d32; } html.light .gift-eyebrow.gold { color: #b4480f; }
html.light .gold-t { background: linear-gradient(90deg, #b4480f, #f37021, #e0a100); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 520px) {
  .gift-fab .gf-txt { display: none; }
  .gift-fab { padding: 8px; }
  .gift-body h2 { font-size: 19px; }
}
/* Máy bật "giảm chuyển động": style.css tắt mọi hoạt cảnh – mọi phần tử ở trên đã hiện đủ ở trạng thái mặc định */

/* Trang Quà Của Tôi */
.gift-pen { max-width: 560px; }
.gift-pen h2 { margin: 0; }
.gift-pen-row { display: flex; gap: 10px; margin-top: 8px; }
.gift-pen-row input { flex: 1; min-width: 0; }
.gift-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 196, 90, 0.16), rgba(69, 182, 73, 0.1)), var(--panel); }
.gh-who { display: grid; gap: 2px; }
.gh-who b { font-size: 20px; }
.gh-gold { display: flex; align-items: center; gap: 12px; }
.gh-gold b { display: block; font-size: 34px; line-height: 1.1; background: linear-gradient(90deg, #fff1b8, #ffd36b, #ff9a4d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gg-ic { font-size: 42px; filter: drop-shadow(0 0 10px rgba(255, 210, 90, 0.7)); }
.gift-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ready-list { display: grid; }
.ready-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--row-line); }
.ready-item:first-child { border-top: 0; }
.ready-item > div { flex: 1; min-width: 0; }
.ready-item .gf-seed { flex: none; animation: gs-float 2.6s ease-in-out infinite; }
.hist { display: grid; }
.hist-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--row-line); }
.hist-item:first-child { border-top: 0; }
.hi-day { font-weight: 700; color: var(--muted); font-size: 13px; padding-top: 2px; }
.hi-main { display: grid; gap: 4px; justify-items: start; }
.hi-main blockquote { margin: 0; font-size: 15px; line-height: 1.55; }
.hi-gold { font-size: 18px; color: #ffd36b; }
html.light .hi-gold { color: #b4480f; }
html.light .gh-gold b { background: linear-gradient(90deg, #b4480f, #f37021, #e0a100); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 640px) {
  .hist-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ready-item { flex-wrap: wrap; }
}
