/* Home page Reward Keys: floating "My Keys" button, its popup, and the welcome popup (includes/reward_home.php) */
.rh-fab { position: fixed; left: 16px; bottom: 18px; z-index: 55; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 8px 16px 8px 8px; border-radius: 999px; color: #fff; font: inherit; font-weight: 900; font-size: 15px; background: linear-gradient(135deg, #F59E0B, #F97316 50%, #EC4899); box-shadow: 0 14px 30px -10px rgba(249, 115, 22, .8); animation: rhFloat 2.6s ease-in-out infinite; }
.rh-fab-i { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 21px; }
.rh-fab-n { position: absolute; top: -6px; left: 30px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: #10B981; border: 2px solid #fff; font: 900 12px/18px system-ui, sans-serif; font-style: normal; text-align: center; }
@keyframes rhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 760px) { .rh-fab { bottom: calc(86px + env(safe-area-inset-bottom)); left: 12px; padding: 6px; } .rh-fab-l { display: none; } }
.rh-veil { position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 14px; opacity: 0; transition: opacity .2s; }
.rh-veil[hidden] { display: none; } .rh-veil.show { opacity: 1; }
.rh-card { position: relative; width: min(460px, 100%); max-height: 92vh; overflow: auto; background: #fff; color: #1E1B4B; border-radius: 26px; padding: 18px 18px 16px; border: 3px solid #FDBA74; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.rh-veil.show .rh-card, .rh-veil.show .rh-wpop { transform: none; }
.rh-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #F1F5F9; font: 900 16px system-ui; cursor: pointer; }
.rh-tk { display: block; margin: -4px auto 0; width: 96px; height: auto; }
.rh-card h2 { margin: 4px 0 2px; font-size: 24px; color: #7C3AED; }
.rh-sub { margin: 0 0 10px; font-weight: 800; color: #64748B; font-size: 14px; }
.rh-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rh-box { border-radius: 16px; padding: 10px; text-align: center; color: #fff; }
.rh-box.sp { background: linear-gradient(135deg, #F59E0B, #F97316); } .rh-box.tb { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.rh-box span { font-size: 24px; display: block; } .rh-box b { display: block; font-size: 30px; line-height: 1; } .rh-box small { font-weight: 900; font-size: 12px; }
.rh-h { margin: 12px 0 4px; font-weight: 900; font-size: 15px; }
.rh-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rh-rules li { display: flex; gap: 8px; align-items: center; background: #F8FAFC; border: 1.5px solid #E2E8F0; border-radius: 12px; padding: 7px 9px; font-weight: 800; font-size: 13.5px; }
.rh-rules i { font-style: normal; font-size: 20px; }
.rh-kn { font-weight: 900; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; white-space: nowrap; }
.rh-kn.sp { background-image: linear-gradient(90deg, #EA580C, #F59E0B); } .rh-kn.tb { background-image: linear-gradient(90deg, #7C3AED, #DB2777); }
.rh-note { margin: 10px 0 0; font-weight: 800; font-size: 13px; color: #92400E; background: #FFFBEB; border: 1.5px solid #FDE68A; border-radius: 12px; padding: 7px 10px; }
.rh-pass { margin: 8px 0 0; font-weight: 800; font-size: 13px; color: #065F46; background: #ECFDF5; border: 1.5px solid #A7F3D0; border-radius: 12px; padding: 7px 10px; }
.rh-login { font-weight: 800; }
.rh-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.rh-btn { border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 900; font-size: 15px; text-decoration: none; cursor: pointer; }
.rh-btn.or { background: #F97316; color: #fff; } .rh-btn.lt { background: #EEF2FF; color: #4338CA; } .rh-btn.wh { background: #fff; color: #4338CA; }
/* welcome */
.rh-wpop { position: relative; width: min(540px, 100%); max-height: 94vh; overflow: auto; border-radius: 28px; color: #fff; padding: 22px 18px 18px; text-align: center; background: radial-gradient(circle at 20% 0%, #F59E0B 0, transparent 45%), radial-gradient(circle at 100% 100%, #EC4899 0, transparent 50%), linear-gradient(135deg, #4F46E5, #7C3AED); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); transform: translateY(20px) scale(.95); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.rh-kick { display: inline-block; font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: #FDE047; color: #1E1B4B; padding: 5px 12px; border-radius: 99px; }
.rh-wpop h2 { margin: 10px 0 6px; font-size: clamp(28px, 7vw, 38px); line-height: 1.05; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.rh-ws { margin: 0 auto; max-width: 430px; font-weight: 800; font-size: 15.5px; }
.rh-kl { margin: 12px auto 0; max-width: 460px; background: rgba(255, 255, 255, .96); color: #1E1B4B; border-radius: 16px; padding: 10px 12px; font-weight: 900; font-size: 15px; line-height: 1.75; }
.rh-kl .rh-kn.sp { background-image: linear-gradient(90deg, #EA580C, #D97706); }
.rh-vm { display: inline-block; background: #1E1B4B; color: #fff; font-size: 12.5px; padding: 3px 10px; border-radius: 99px; text-decoration: none; margin-left: 4px; line-height: 1.6; }
.rh-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.rh-steps div { flex: 1; max-width: 140px; background: rgba(255, 255, 255, .95); color: #1E1B4B; border-radius: 18px; padding: 9px 5px; font-weight: 900; font-size: 13px; line-height: 1.2; }
.rh-steps div.k { background: linear-gradient(135deg, #FEF3C7, #FDE68A); } .rh-steps div.g { background: linear-gradient(135deg, #DCFCE7, #BBF7D0); }
.rh-steps i { display: block; font-style: normal; font-size: 30px; margin-bottom: 3px; } .rh-steps span { font-weight: 900; font-size: 20px; color: #FDE047; }
.rh-wtk { display: block; margin: 2px auto -2px; width: 92px; height: auto; }
.rh-badge { display: inline-block; margin: 6px 0 4px; font-weight: 900; font-size: 13.5px; background: rgba(15, 23, 42, .35); padding: 6px 12px; border-radius: 12px; }
.rh-cd { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; background: conic-gradient(#FDE047 var(--p, 0%), rgba(255, 255, 255, .25) 0); }
.rh-cd span { width: 32px; height: 32px; border-radius: 50%; background: #5B21B6; display: grid; place-items: center; }
.rh-cd.x { background: #fff; color: #1E1B4B; border: 0; font-size: 18px; cursor: pointer; }
@media (max-width: 480px) { .rh-steps div { font-size: 11.5px; } .rh-steps i { font-size: 24px; } .rh-steps span { font-size: 15px; } .rh-kl { font-size: 13.5px; } .rh-ws { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .rh-fab { animation: none; } .rh-card, .rh-wpop { transition: none; } }
