/* ============================================================
   ROYAL HELMET — Modal & Auth Styles
   ============================================================ */
:root {
  --royal-red:      #ED1C24;   /* đỏ chủ đạo Royal */
  --royal-red-dark: #B3121A;   /* đỏ đậm - gradient/hover */
  --royal-red-soft: #FFE9EA;   /* nền nhạt cho trạng thái lỗi/hover */
  --ink:            #16181B;   /* đen chữ */
  --ink-soft:       #6B7076;   /* xám chữ phụ */
  --line:           #E4E6E9;
  --field:          #F2F3F5;   /* nền ô input */
  --white:          #FFFFFF;
  --page:           #101114;   /* nền trang */
  --radius:         26px;
  --shadow:         0 30px 70px rgba(0,0,0,.45);
  --shadow-color: hsl(0deg 0% 85.83%);
  --ease:           cubic-bezier(.65,0,.35,1);
}

button.btn-login-with.rha-google-auth-btn .btn-text {
    line-height: 21px;
    font-size: 11px;
}

button.btn-login-with.rha-google-auth-btn {
    margin-top: 5px;
}

.btn-login-with {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  text-decoration: none;
}

.btn-login-with:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-login-with:active {
  transform: translateY(0);
}

.btn-login-with .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-login-with .social-icon svg {
  display: block;
}

.rhci-alert-box .rhci-btn-copy {
    margin: 0px;
}

/* Modal Overlay & Base */
.rha-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(16, 17, 20, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  font-family: 'Be Vietnam Pro', var(--rha-font-family), -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  padding: 20px;
}

.rha-modal.is-open {
  display: flex !important;
  animation: rha-fade-in 0.28s var(--ease) forwards;
}

#rha-claim-orders-modal {
  z-index: 1000005 !important;
}

#rha-voucher-wallet-modal {
  z-index: 1000002 !important;
}

@keyframes rha-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   AUTH SLIDING CONTAINER (ROYAL HELMET DESIGN)
   ============================================================ */
.auth {
  position: relative;
  width: 100%;
  max-width: 940px;
  min-height: 670px;
  background: var(--white);
  border-radius: var(--radius);
  filter: drop-shadow(1px 1px 6px var(--shadow-color));
  overflow: hidden;
  box-sizing: border-box;
  color: var(--ink);
  margin: auto;
}

.rhci-checkin-card .rhci-subdate {
    display: none;
}

.auth .rha-modal-close {
  position: absolute;
  top: 10px;
  right: -15px;
  z-index: 50;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.auth .rha-modal-close:hover {
  color: var(--royal-red);
  /* border-color: var(--royal-red); */
  background: transparent;
}

/* Form Box */
.auth .form-box {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.auth .form-box::-webkit-scrollbar {
  width: 5px;
}
.auth .form-box::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 4px;
}

.auth .form-box.sign-in {
  left: 0;
  z-index: 2;
}

.auth .form-box.sign-up {
  left: 0;
  opacity: 0;
  z-index: 1;
}

.auth.active .form-box.sign-in {
  transform: translateX(100%);
}

.auth.active .form-box.sign-up {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: rha-fadeIn .6s;
}

@keyframes rha-fadeIn {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

.auth form {
  width: 100%;
  padding: 20px 38px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.auth .form-box.sign-up form {
  padding: 16px 38px;
}

.auth .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.auth .brand-mark {
  width: 100px;
  height: auto;
  flex: 0 0 auto;
}

.field.invalid input {
    margin-bottom: 0;
}

.auth .brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--ink-soft);
}

.auth h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 10px;
  color: var(--ink);
}

/* Social Buttons */
.auth .socials {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.auth .social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .22s, color .22s, background .22s, transform .22s;
  padding: 0;
  margin-bottom: 0px;
}

.auth .social:hover {
  border-color: var(--royal-red);
  color: var(--royal-red);
  background: var(--royal-red-soft);
  transform: translateY(-2px);
}

.auth .social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.auth .hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* Fields */
.auth .field {
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
  position: relative;
  box-sizing: border-box;
}

.auth .field input {
  width: 100%;
  border: 1.5px solid transparent;
  background: var(--field);
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}

.auth .field input::placeholder {
  color: #9AA0A6;
}

.auth .field input:focus {
  border-color: var(--royal-red);
  background: var(--white);
}

.auth .field.has-toggle input {
  padding-right: 46px !important;
}

.auth .pw-toggle {
  position: absolute !important;
  right: 6px !important;
  top: 38% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink-soft, #6B7076) !important;
  cursor: pointer !important;
  border-radius: 10px !important;
  z-index: 10 !important;
  line-height: 1 !important;
}

.auth .pw-toggle:hover {
  color: var(--royal-red, #ED1C24) !important;
}

.auth .pw-toggle svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  flex-shrink: 0 !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.auth .pw-toggle svg path,
.auth .pw-toggle svg circle {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.auth .field .error {
  display: none;
  font-size: 11.5px;
  color: var(--royal-red);
  margin: 4px 2px 0;
  font-weight: 500;
}

.auth .field.invalid input {
  border-color: var(--royal-red);
  background: var(--royal-red-soft);
}

.auth .field.invalid .error {
  display: block;
}

.auth .row-link {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.auth .row-link a {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
}

.auth .row-link a:hover {
  color: var(--royal-red);
  text-decoration: underline;
}

.auth .terms {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: left;
  margin: 2px 0 10px;
}

.auth .terms input {
  accent-color: var(--royal-red);
  margin-top: 2px;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.auth .terms a {
  color: var(--royal-red);
  text-decoration: none;
}

.auth .terms a:hover {
  text-decoration: underline;
}

/* Auth Buttons */
.auth .btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  padding: 5px 35px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s;
  box-sizing: border-box;
}

.auth .btn-solid {
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-dark));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(237,28,36,.32);
}

.auth .btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(237,28,36,.42);
}

.auth .btn-solid:active {
  transform: translateY(0);
}

.auth .btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.6px solid rgba(255,255,255,.85);
}

.auth .btn-ghost:hover {
  background: var(--white);
  color: var(--royal-red);
}

.auth .btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Toggle Container (Sliding Red Panel) */
.auth .toggle-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform .6s var(--ease);
  z-index: 10;
}

.auth.active .toggle-container {
  transform: translateX(-100%);
}

.auth .toggle {
  position: relative;
  left: -100%;
  width: 200%;
  height: 100%;
  color: var(--white);
  background: linear-gradient(150deg, #0f1e31 0%, #08203e 45%, #0c1d33 100%);
  transform: translateX(0);
  transition: transform .6s var(--ease);
  opacity: 1;
}

.auth .toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 340px at 78% 12%, rgba(255,255,255,.16), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px);
  pointer-events: none;
}

.auth.active .toggle {
  transform: translateX(50%);
}

.auth .toggle-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  text-align: center;
  transition: transform .6s var(--ease);
  z-index: 2;
  box-sizing: border-box;
}

.auth .toggle-panel h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 10px 0;
}

.auth .toggle-panel p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 24px;
  color: rgba(255,255,255,.92);
  max-width: 32ch;
}

.auth .toggle-left {
  transform: translateX(-200%);
}

.rha-auth-modal .toggle {
    opacity: 1 !important;
}

/* .toggle .toggle-panel {
    opacity: 1;
} */

.toggle:hover .toggle-panel {
    opacity: .8;
}

.auth.active .toggle-left {
  transform: translateX(0);
}

.auth .toggle-right {
  right: 0;
  transform: translateX(0);
}

.auth.active .toggle-right {
  transform: translateX(200%);
}

/* Toast Notifications */
.rha-toast,
.toast {
  position: fixed !important;
  left: 50% !important;
  bottom: 28px !important;
  transform: translateX(-50%) translateY(20px) !important;
  background: rgba(22, 24, 27, 0.94) !important;
  color: #FFFFFF !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.42) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease !important;
  max-width: 94vw !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.rha-toast.show,
.toast.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Mobile Responsive for Auth Sliding Panel */
@media (max-width: 820px) {
  .auth {
    max-width: 440px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
  }

  .auth .form-box {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    transform: none !important;
    opacity: 1;
    order: 2;
  }

  .auth .form-box.sign-up {
    display: none;
  }

  .auth.active .form-box.sign-in {
    display: none;
  }

  .auth.active .form-box.sign-up {
    display: flex;
    animation: none;
  }

  .auth form {
    padding: 26px 22px 30px;
  }

  .auth h1 {
    font-size: 24px;
  }

  .auth .toggle-container {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    transform: none !important;
    border-radius: 0 !important;
    order: 1;
  }

  .auth .toggle {
    position: relative;
    left: 0;
    width: 100%;
    transform: none !important;
  }


  
  .auth .toggle-panel {
    position: relative;
    width: 100%;
    transform: none !important;
    padding: 26px 20px;
  }

  .auth .toggle-left {
    display: none;
  }

  .auth.active .toggle-left {
    display: flex;
  }

  .auth.active .toggle-right {
    display: none;
  }

  .auth .toggle-panel h2 {
    font-size: 24px;
  }

  .auth .toggle-panel p {
    margin: 8px 0 16px;
    font-size: 13px;
  }
}

/* ============================================================
   QUICK ATTENDANCE MODAL SPECIFICS
   ============================================================ */
.rha-modal-card {
  background-color: var(--rha-surface-charcoal);
  border: 1px solid var(--rha-border-metal);
  border-radius: var(--rha-radius-md);
  box-shadow: var(--rha-glow-gold), 0 10px 40px rgba(0, 0, 0, 0.6);
  color: var(--rha-white);
  padding: 30px;
  width: 92%;
  max-width: 440px;
  position: relative;
  box-sizing: border-box;
}

.rha-modal-card .rha-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  color: var(--rha-text-secondary);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color var(--rha-transition);
  background: none;
  border: none;
  padding: 0;
}

.rha-modal-card .rha-modal-close:hover {
  color: var(--rha-white);
}

.rha-attendance-header {
  text-align: center;
  margin-bottom: 24px;
}

.rha-attendance-header h3 {
  margin: 0 0 10px 0;
  color: var(--rha-white);
  font-size: 20px;
  font-weight: 700;
}

.rha-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--rha-gold);
  color: var(--rha-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* Streak Nodes Bar */
.rha-streak-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--rha-bg-black);
  border: 1px solid var(--rha-border-metal);
  border-radius: var(--rha-radius-md);
  padding: 16px 12px;
  margin-bottom: 24px;
}

.rha-day-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 1;
}

.rha-day-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--rha-surface-charcoal);
  border: 1px solid var(--rha-border-metal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--rha-text-secondary);
  transition: all var(--rha-transition);
}

.rha-day-label {
  font-size: 10px;
  color: var(--rha-text-secondary);
  text-transform: uppercase;
}

.rha-day-node.done .rha-day-circle {
  background-color: var(--rha-gold);
  border-color: var(--rha-gold);
  color: var(--rha-bg-black);
}

.rha-day-node.today .rha-day-circle {
  border: 2px solid var(--rha-red);
  color: var(--rha-white);
  animation: rha-pulse-today 1.6s infinite;
}

@keyframes rha-pulse-today {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.rha-day-node--bonus .rha-day-circle {
  border-color: var(--rha-gold);
  background: linear-gradient(135deg, #1E1E24, #2E3039);
  color: var(--rha-gold);
}

.rha-day-node--bonus.done .rha-day-circle {
  background: var(--rha-gold);
  color: var(--rha-bg-black);
}

.rha-attendance-footer {
  text-align: center;
  margin-top: 18px;
}

.rha-attendance-footer a {
  color: var(--rha-gold);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--rha-transition);
}

.rha-attendance-footer a:hover {
  text-decoration: underline;
}

/* Shine Button Animation */
.rha-btn {
  display: inline-block;
  width: 100%;
  background: var(--rha-gold);
  color: var(--rha-bg-black);
  border: none;
  padding: 14px 20px;
  border-radius: var(--rha-radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--rha-transition), box-shadow var(--rha-transition), background var(--rha-transition);
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.rha-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.rha-btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: rha-shine-effect 3s infinite ease-in-out;
}

@keyframes rha-shine-effect {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

.rha-btn:disabled,
.rha-btn.is-disabled {
  background: var(--rha-border-metal) !important;
  color: var(--rha-text-secondary) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.rha-btn:disabled::after,
.rha-btn.is-disabled::after {
  display: none !important;
}

/* Floating Widget Button */
.rha-floating-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--rha-gold), var(--rha-gold-alt));
  color: var(--rha-bg-black);
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--rha-transition), box-shadow var(--rha-transition);
}

.rha-floating-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

/* ============================================================
   POPUP ĐIỂM DANH — ROYAL HELMET (v4: phong cách app game)
   Palette: vàng #FFD966→#FFC233 | cam #FF9500 | kem #FFF7E6
            đỏ san hô #FF4D5E | trắng
   Mọi class dùng tiền tố .rhci- để không đụng CSS Flatsome.
   ============================================================ */

.rhci-overlay{
  position:fixed; inset:0; z-index:999999;
  display:flex; align-items:center; justify-content:center; padding:16px;
  background:rgba(16,17,20,0.72);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
  box-sizing:border-box;
}
.rhci-overlay.is-open{opacity:1; visibility:visible}

.rhci-modal.rhci-shopee-modal{
  position:relative; 
  width:100%; 
  max-width:440px;
  /* max-height:92vh;  */
  overflow-y:auto; 
  overflow-x:hidden;
  background:#F7F7F8;
  border-radius:26px; 
  padding:0 0 16px 0;
  color:#2B2B33; 
  font-family:'Be Vietnam Pro', var(--rha-font-family), -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow:0 25px 60px -15px rgba(220,60,0,0.35), 0 10px 25px rgba(0,0,0,0.18);
  transform:translateY(20px) scale(.95);
  transition:transform .35s cubic-bezier(.2,1.2,.3,1);
  box-sizing:border-box;
  scrollbar-width:thin;
}
.rhci-overlay.is-open .rhci-modal.rhci-shopee-modal{transform:none}
.rhci-modal.rhci-shopee-modal::-webkit-scrollbar{width:5px}
.rhci-modal.rhci-shopee-modal::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.15); border-radius:10px}

/* ---------- Top Bar ---------- */
.rhci-topbar{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px 6px;
  background:linear-gradient(180deg, #FF9500 0%, #FF7800 100%);
  color:#FFF;
  box-sizing:border-box;
}
.rhci-back{
  width:36px; height:36px; border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,0.22); color:#FFF;
  display:flex; align-items:center; justify-content:center;
  transition:background .18s, transform .12s;
  padding:0; margin:0;
}
.rhci-back:hover{background:rgba(255,255,255,0.35)}
.rhci-back:active{transform:scale(.92)}
.rhci-back svg{width:20px; height:20px}

.rhci-top-title{
  font-size:16px; font-weight:800; color:#FFFFFF;
  letter-spacing:.2px; text-align:center; flex:1; margin:0 8px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.rhci-top-action{
  width:36px; height:36px; border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,0.22); color:#FFF;
  display:flex; align-items:center; justify-content:center;
  transition:background .18s, transform .12s;
  padding:0; margin:0;
}
.rhci-top-action:hover{background:rgba(255,255,255,0.35)}
.rhci-top-action:active{transform:scale(.92)}
.rhci-top-action svg{width:20px; height:20px}

/* ---------- Shopee Header: Balance & History ---------- */
.rhci-shopee-header{
  position:relative; z-index:1;
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 18px 26px;
  background:linear-gradient(180deg, #FF7800 0%, #FF5A00 100%);
  color:#FFF;
  box-sizing:border-box;
}
.rhci-balance-left{
  display:flex; align-items:center; gap:10px;
}
.rhci-coin-large{
  width:44px; height:44px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,0.22));
}
.rhci-coin-large svg{width:100%; height:100%}

.rhci-balance-info{
  display:flex; flex-direction:column;
}
.rhci-balance-amount{
  font-size:26px; font-weight:900; line-height:1.1; color:#FFFFFF;
  display:flex; align-items:baseline; gap:4px;
  letter-spacing:-.5px;
}
.rhci-unit-text{
  font-size:14px; font-weight:700; opacity:0.95;
}
.rhci-balance-sub{
  font-size:11.5px; color:rgba(255,255,255,0.9);
  margin-top:2px; display:flex; align-items:center; gap:4px; flex-wrap:wrap;
}
.rhci-streak-pill b{
  color:#FFF; font-weight:800;
}

.rhci-balance-right{
  flex-shrink:0;
}
.rhci-history-link{
  display:inline-flex; align-items:center; gap:3px;
  background:rgba(255,255,255,0.24); border:1px solid rgba(255,255,255,0.4);
  color:#FFFFFF !important; font-size:12px; font-weight:700;
  padding:5px 12px; border-radius:999px; text-decoration:none !important;
  transition:all .18s ease;
}
.rhci-history-link:hover{
  background:rgba(255,255,255,0.38); transform:translateX(2px);
}
.rhci-history-link svg{
  width:14px; height:14px;
}

/* ---------- Shopee Main Check-in White Card ---------- */
.rhci-checkin-card{
  position:relative; z-index:3;
  background:#FFFFFF;
  border-radius:22px;
  margin:-14px 14px 16px;
  padding:16px 14px 18px;
  box-shadow:0 10px 28px rgba(220,60,0,0.12), 0 2px 6px rgba(0,0,0,0.04);
  box-sizing:border-box;
}

.rhci-card-pill-wrap{
  text-align:center; margin-bottom:8px;
}
.rhci-pill-badge{
  display:inline-block;
  background:#FFF1E6;
  border:1px solid #FFE0CC;
  color:#FF4400;
  padding:5px 22px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  font-style:italic;
  letter-spacing:.2px;
  box-shadow:0 2px 6px rgba(255,68,0,0.08);
}

.rhci-event-subtext{
  display:flex; align-items:center; justify-content:center; gap:6px;
  font-size:11.5px; color:#8C827A; margin-bottom:12px; flex-wrap:wrap;
}
.rhci-event-status-dot{
  width:7px; height:7px; border-radius:50%;
  background:#10B981; box-shadow:0 0 0 2px rgba(16,185,129,.25);
  display:inline-block;
}
.rhci-event-sep{opacity:0.5}
.rhci-event-count strong{color:#FF5A00; font-weight:800}

/* Alert inside Modal */
.rhci-alert-box{
  margin:0 0 12px; padding:10px 14px; border-radius:12px;
  font-size:13px; line-height:1.4; text-align:center;
  box-sizing:border-box;
}
.rhci-alert-box.is-success{
  background:#ECFDF5; border:1.5px solid #10B981; color:#065F46;
}
.rhci-alert-box.is-reward{
  background:linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border:1.5px solid #F97316; color:#9A3412;
  box-shadow:0 4px 14px rgba(249,115,22,0.16);
}
.rhci-alert-box .rhci-reward-code-box{
  display:inline-flex; align-items:center; gap:8px;
  background:#FFF; padding:4px 10px; border-radius:8px;
  margin-top:6px; border:1px dashed #F97316;
}
.rhci-alert-box .rhci-reward-code-box code{
  font-size:14px; font-weight:700; color:#EA580C;
}
.rhci-alert-box .rhci-btn-copy{
  background:#F97316; color:#FFF; border:none; border-radius:6px;
  padding:3px 8px; font-size:11.5px; font-weight:700; cursor:pointer;
}

/* ---------- Streak Rescue / Shield Card ---------- */
.rhci-rescue-card{
  background:linear-gradient(135deg, #FFF5F2 0%, #FFF0EA 100%);
  border:1.5px solid #FF5A00;
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:14px;
  box-shadow:0 6px 18px rgba(255,90,0,0.12);
  text-align:left;
  box-sizing:border-box;
  animation:rha-rescue-appear .3s ease;
}
@keyframes rha-rescue-appear{
  from{opacity:0; transform:translateY(-8px)}
  to{opacity:1; transform:none}
}
.rhci-rescue-badge{
  display:inline-flex; align-items:center; gap:5px;
  background:#E62817; color:#FFF;
  font-size:10.5px; font-weight:800;
  letter-spacing:.3px;
  border-radius:999px;
  padding:2px 9px;
  line-height:1;
  box-shadow:0 2px 6px rgba(230,40,23,0.3);
}
.rhci-rescue-badge svg{
  width:12px; height:12px; stroke-width:2.5;
}
.rhci-rescue-desc{
  font-size:12px; font-weight:600; color:#5A2200;
  line-height:1.45; margin:8px 0 10px;
}
.rhci-rescue-actions{
  display:flex; align-items:stretch; gap:6px;
}
.rhci-rescue-btn{
  border:none; cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; justify-content:center; gap:4px;
  border-radius:9px; padding:8px 8px;
  transition:all .18s ease;
  line-height:1.2;
  white-space:nowrap;
}
.rhci-rescue-btn--restore{
  flex:1.2;
  background:linear-gradient(135deg, #FF6600 0%, #E63900 100%);
  color:#FFFFFF; font-size:11.5px; font-weight:800;
  box-shadow:0 3px 10px rgba(230,57,0,0.3);
}
.rhci-rescue-btn--restore:hover{
  background:linear-gradient(135deg, #FF781A 0%, #F54000 100%);
  transform:translateY(-1px);
  box-shadow:0 5px 14px rgba(230,57,0,0.4);
}
.rhci-rescue-btn--restore:active{transform:scale(.97)}
.rhci-rescue-btn--restart{
  flex:1;
  background:rgba(0,0,0,0.06);
  color:#6B5E55; font-size:11px; font-weight:700;
  white-space:nowrap;
}
.rhci-rescue-btn--restart:hover{
  background:rgba(0,0,0,0.1);
  color:#2B2B33;
}
.rhci-rescue-btn--restart:active{transform:scale(.97)}

/* Streak Restored Pulse Animation */
@keyframes rha-streak-restore{
  0%{transform:scale(0.9); box-shadow:0 0 0 rgba(16,185,129,0.7)}
  50%{transform:scale(1.08); box-shadow:0 0 18px rgba(16,185,129,0.8); border-color:#10B981}
  100%{transform:scale(1)}
}
.rhci-cell.is-restored-anim .rhci-box{
  animation:rha-streak-restore .8s ease;
  border-color:#10B981 !important;
  background:#ECFDF5 !important;
}

/* ---------- 7 Days Grid ---------- */
.rhci-days-grid{
  display:flex;
  gap:5px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  margin-bottom:14px;
  padding:4px 2px;
  box-sizing:border-box;
  scrollbar-width:none;
}
.rhci-days-grid::-webkit-scrollbar{display:none}

.rhci-cell{
  flex:0 0 calc((100% - 30px) / 7);
  min-width:42px;
  max-width:50px;
  scroll-snap-align:start;
  position:relative;
  background:transparent;
  border:none;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  box-sizing:border-box;
  text-align:center;
  cursor:default;
}

.rhci-box{
  position:relative;
  width:100%;
  height:56px;
  background:#F8F9FA;
  border:1px solid #EFEFEF;
  border-radius:9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  box-sizing:border-box;
  padding:4px 2px;
  transition:transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.rhci-cell:hover .rhci-box{
  transform:translateY(-2px);
}

.rhci-point-tag{
  font-size:11px;
  font-weight:700;
  color:#795548;
  line-height:1;
}

.rhci-ribbon-tag{
  position:absolute;
  top:-7px;
  left:50%;
  transform:translateX(-50%);
  background:#FF3B30;
  color:#FFF;
  font-size:8px;
  font-weight:800;
  padding:2px 5px;
  border-radius:5px;
  box-shadow:0 2px 4px rgba(255,59,48,0.35);
  white-space:nowrap;
  z-index:2;
  line-height:1;
}
.rhci-ribbon-tag::after{
  content:"";
  position:absolute;
  bottom:-3px;
  left:50%;
  transform:translateX(-50%);
  border-left:3px solid transparent;
  border-right:3px solid transparent;
  border-top:3px solid #FF3B30;
}

.rhci-icon-wrap{
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rhci-coin-svg{
  width:22px;
  height:22px;
  filter:drop-shadow(0 2px 4px rgba(230,138,0,0.28));
}
.rhci-chest-svg{
  width:28px;
  height:22px;
  filter:drop-shadow(0 2px 4px rgba(217,119,6,0.3));
}

.rhci-icon-wrap.is-check{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#FFF5F5;
  border:1.5px solid #FFCDD2;
  color:#E62817;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 1px 4px rgba(230,40,23,0.12);
}
.rhci-check-svg{
  width:12px;
  height:12px;
}

.rhci-label-group{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-top:4px;
}
.rhci-day-lbl{
  font-size: 9px;
  font-weight:600;
  color:#8E8E99;
  line-height:1.2;
  white-space:nowrap;
  text-align:center;
}
.rhci-subdate{
  font-size:8.5px;
  color:#A8A096;
  margin-top:1px;
  text-align:center;
  line-height:1;
}

/* Card States applied to .rhci-box */
.rhci-cell.is-today .rhci-box{
  background:#FFFFFF;
  border:1.5px solid #FF4D4F !important;
  box-shadow:0 3px 10px rgba(255,77,79,0.22);
}
.rhci-cell.is-today .rhci-day-lbl.is-today-lbl{
  color:#FF3B30;
  font-weight:500;
}
.rhci-cell.is-today .rhci-point-tag{
  color:#E62817;
  font-weight:800;
}

.rhci-cell.is-done .rhci-box{
  background:#F8F9FA;
  border-color:#E9ECEF;
}
.rhci-cell.is-done .rhci-point-tag{
  color:#6B7280;
}
.rhci-cell.is-done .rhci-day-lbl{
  color:#6B7280;
}

.rhci-cell.is-gift .rhci-box{
  background:linear-gradient(180deg, #FFE77E 0%, #FFCF2C 100%);
  border:1px solid #FFC107;
}

.rhci-cell.is-future .rhci-box{
  background:#FAFAFA;
  opacity:0.88;
}

/* Big Main CTA Button */
.rhci-cta.rhci-main-cta{
  width:100%;
  height:50px;
  border-radius:25px;
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg, #FF5B26 0%, #E62817 100%);
  color:#FFFFFF;
  font-size:16px;
  font-weight:800;
  font-family:inherit;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 22px -4px rgba(230,40,23,0.48);
  transition:transform .15s, box-shadow .2s, filter .15s;
  box-sizing:border-box;
  margin-top:4px;
}
.rhci-cta.rhci-main-cta:hover:not(.is-done):not(:disabled){
  filter:brightness(1.06);
  box-shadow:0 10px 25px -4px rgba(230,40,23,0.58);
  transform:translateY(-1px);
}
.rhci-cta.rhci-main-cta:active:not(.is-done):not(:disabled){
  transform:scale(.98);
}
.rhci-cta.is-done, .rhci-cta:disabled{
  background:#E5E7EB !important;
  color:#9CA3AF !important;
  box-shadow:none !important;
  cursor:default !important;
  transform:none !important;
}

/* ---------- SĂN THÊM XU DƯỚI ĐÂY Section ---------- */
.rhci-more-section{
  padding:0 14px 8px;
  box-sizing:border-box;
}
.rhci-more-title{
  font-size:13.5px;
  font-weight:800;
  color:#E03E00;
  letter-spacing:.4px;
  text-transform:uppercase;
  margin-bottom:10px;
}
.rhci-more-content{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Promo Banner */
.rhci-promo-banner{
  background:linear-gradient(135deg, #FF6A00 0%, #E02612 100%);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#FFFFFF !important;
  cursor:pointer;
  text-decoration:none !important;
  box-shadow:0 6px 16px rgba(224,38,18,0.25);
  transition:transform .18s, box-shadow .18s;
  box-sizing:border-box;
}
.rhci-promo-banner:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(224,38,18,0.35);
}
.rhci-promo-badge{
  width:36px;
  height:36px;
  border-radius:10px;
  background:rgba(255,255,255,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.rhci-promo-badge svg{
  width:20px;
  height:20px;
}
.rhci-promo-text{
  flex:1;
  min-width:0;
}
.rhci-promo-headline{
  font-size:12.5px;
  font-weight:800;
  letter-spacing:.1px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rhci-promo-desc{
  font-size:11px;
  opacity:0.92;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rhci-promo-action{
  font-size:11px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:2px;
  background:#FFFFFF;
  color:#E02612;
  padding:5px 10px;
  border-radius:12px;
  flex-shrink:0;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}
.rhci-promo-action svg{
  width:12px;
  height:12px;
}

/* 4 Circular Shortcuts Grid */
.rhci-shortcuts-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
  text-align:center;
}
.rhci-shortcut-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-decoration:none !important;
  color:#2B2B33 !important;
  cursor:pointer;
  background:transparent;
  border:none;
  padding:0;
  outline:none;
  transition:transform .18s;
}
.rhci-shortcut-item:hover{
  transform:translateY(-2px);
}
.rhci-shortcut-icon{
  width:48px;
  height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s, box-shadow .18s;
  box-sizing:border-box;
}
.rhci-shortcut-icon svg{
  width:22px;
  height:22px;
}

.rhci-sc--voucher{
  background:linear-gradient(135deg, #FFFAF0 0%, #FFE9D6 100%);
  color:#FF5A00;
  border:1.5px solid #FFD3B4;
  box-shadow:0 4px 10px rgba(255,90,0,0.12);
}
.rhci-sc--member{
  background:linear-gradient(135deg, #FFFDF0 0%, #FFF3C4 100%);
  color:#D98200;
  border:1.5px solid #FFEAA0;
  box-shadow:0 4px 10px rgba(217,130,0,0.12);
}
.rhci-sc--warranty{
  background:linear-gradient(135deg, #F0F8FF 0%, #DCEEFF 100%);
  color:#0284C7;
  border:1.5px solid #BAE0FF;
  box-shadow:0 4px 10px rgba(2,132,199,0.12);
}
.rhci-sc--shop{
  background:linear-gradient(135deg, #FFF0F2 0%, #FFE2E6 100%);
  color:#E11D48;
  border:1.5px solid #FFCCD3;
  box-shadow:0 4px 10px rgba(225,29,72,0.12);
}

.rhci-shortcut-label{
  font-size:11px;
  font-weight:600;
  color:#4B5563;
  line-height:1.25;
  white-space:nowrap;
}

/* ============================================================
   DESKTOP RESPONSIVE LAYOUT (Spacious Grid)
   ============================================================ */
@media (min-width: 768px){
  .rhci-modal.rhci-shopee-modal{
    max-width:880px;
    width:92%;
    border-radius:28px;
    padding-bottom:22px;
  }

  .rhci-topbar{
    padding:16px 24px 8px;
  }
  .rhci-top-title{
    font-size:18px;
  }
  .rhci-back, .rhci-top-action{
    width:40px; height:40px;
  }

  .rhci-shopee-header{
    padding:8px 26px 30px;
  }
  .rhci-coin-large{
    width:52px; height:52px;
  }
  .rhci-balance-amount{
    font-size:32px;
  }
  .rhci-unit-text{
    font-size:16px;
  }
  .rhci-balance-sub{
    font-size:13px;
  }
  .rhci-history-link{
    font-size:13px;
    padding:6px 16px;
  }

  /* Desktop Check-in Card */
  .rhci-checkin-card{
    margin:-18px 22px 20px;
    padding:22px 24px 24px;
    border-radius:24px;
  }

  .rhci-pill-badge{
    font-size:15px;
    padding:7px 28px;
  }
  .rhci-event-subtext{
    font-size:13px;
    margin-bottom:16px;
  }

  /* Spacious Grid on Desktop: 7 columns */
  .rhci-days-grid{
    display:grid !important;
    grid-template-columns:repeat(7, 1fr) !important;
    gap:10px;
    max-height:380px;
    overflow-x:visible;
    overflow-y:auto;
    scrollbar-width:thin;
    margin-bottom:20px;
  }
  .rhci-days-grid::-webkit-scrollbar{
    display:block;
    width:5px;
  }
  .rhci-cell{
    flex:none !important;
    min-width:0 !important;
    max-width:none !important;
  }
  .rhci-box{
    height:72px;
    border-radius:12px;
    gap:4px;
  }
  .rhci-point-tag{
    font-size:12px;
  }
  .rhci-ribbon-tag{
    font-size:9px;
    padding:2.5px 6px;
    top:-8px;
  }
  .rhci-icon-wrap{
    width:28px;
    height:28px;
  }
  .rhci-coin-svg{
    width:26px;
    height:26px;
  }
  .rhci-chest-svg{
    width:32px;
    height:24px;
  }
  .rhci-icon-wrap.is-check{
    width:24px;
    height:24px;
  }
  .rhci-check-svg{
    width:15px;
    height:15px;
  }
  .rhci-label-group{
    margin-top:6px;
  }
  .rhci-day-lbl{
    font-size:12px;
  }
  .rhci-subdate{
    font-size:10px;
  }

  /* Desktop CTA button */
  .rhci-cta.rhci-main-cta{
    max-width:380px;
    margin:6px auto 0;
    height:52px;
    font-size:16.5px;
  }

  /* Desktop "SĂN THÊM XU DƯỚI ĐÂY" section */
  .rhci-more-section{
    padding:0 22px 10px;
  }
  .rhci-more-title{
    font-size:14.5px;
    margin-bottom:12px;
  }
  .rhci-more-content{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:16px;
    align-items:stretch;
  }
  .rhci-promo-banner{
    padding:16px 18px;
    height:100%;
    margin-bottom:0;
  }
  .rhci-promo-headline{
    font-size:13.5px;
  }
  .rhci-promo-desc{
    font-size:12px;
  }
  .rhci-promo-badge{
    width:42px; height:42px;
  }
  .rhci-promo-action{
    font-size:12px; padding:6px 12px;
  }

  .rhci-shortcuts-grid{
    gap:12px;
    align-items:center;
    justify-content:space-around;
  }
  .rhci-shortcut-icon{
    width:54px; height:54px;
  }
  .rhci-shortcut-icon svg{
    width:25px; height:25px;
  }
  .rhci-shortcut-label{
    font-size:12px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  .rhci-overlay, .rhci-modal, .rhci-cell, .rhci-cta, .rhci-shortcut-item, .rhci-promo-banner{
    transition:none !important;
  }
  .rhci-cell.is-today, .rhci-cell.just-claimed{
    animation:none !important;
  }
}
.rhci-cta:focus-visible, .rhci-back:focus-visible, .rhci-top-action:focus-visible, .rhci-history-link:focus-visible{
  outline:3px solid #FF9500; outline-offset:3px;
}

/* ============================================================
   VOUCHER WALLET MODAL — ROYAL HELMET (SYNCHRONIZED THEME)
   ============================================================ */
.rha-voucher-modal-card {
  position: relative;
  width: 94%;
  max-width: 520px;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 22px 20px 20px;
  color: #16181B;
  font-family: 'Be Vietnam Pro', var(--rha-font-family), -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  overflow: hidden;
  margin: auto;
}

.rha-voucher-close {
  position: absolute;
  top: 8px;
  right: 0px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  color: #6B7280;
  border: none;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s var(--ease, ease);
  z-index: 20;
  padding: 0;
}
.rha-voucher-close:hover {
  /* background: #FEE2E2; */
  color: #ED1C24;
  /* transform: rotate(90deg); */
}

/* Header */
.rha-voucher-modal-header {
  flex-shrink: 0;
  margin-bottom: 12px;
  padding-right: 36px;
}
.rha-voucher-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFECEC;
  border: 1px solid #FECDD3;
  color: #ED1C24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rha-voucher-badge-top svg {
  stroke: currentColor;
  flex-shrink: 0;
}
.rha-voucher-main-title {
  font-size: 22px;
  font-weight: 800;
  color: #16181B;
  margin: 0 0 4px;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.rha-voucher-main-desc {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}

/* Tabs Bar */
.rha-voucher-tabs-bar {
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: thin !important;
  -ms-overflow-style: none;
  background: #F9FAFB;
  padding: 4px;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.rha-voucher-tabs-bar::-webkit-scrollbar {
  display: none;
}
.rha-voucher-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #4B5563;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
  box-sizing: border-box;
  flex: 1;
  text-align: center;
}
.rha-voucher-tab:hover {
  color: #111827;
  background: rgba(0,0,0,0.04);
}
.rha-voucher-tab.is-active {
  background: #FFFFFF;
  border-color: #FECDD3;
  color: #ED1C24;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Scroll Area */
.rha-voucher-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-right: -2px;
}
.rha-voucher-list-scroll::-webkit-scrollbar {
  width: 4px;
}
.rha-voucher-list-scroll::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 4px;
}

.rha-voucher-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ticket Card */
.rha-voucher-ticket {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform .15s, box-shadow .15s, opacity .2s;
  position: relative;
}
.rha-voucher-ticket:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

/* Ticket Stub (Left) */
.rha-vticket-stub {
  width: 110px;
  min-width: 110px;
  background: linear-gradient(145deg, #FF4555 0%, #ED1C24 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 6px;
  position: relative;
  border-right: 1.5px dashed rgba(255, 255, 255, 0.45);
  box-sizing: border-box;
  border-top-left-radius: 13px;
  border-bottom-left-radius: 13px;
  z-index: 2;
}

/* Cutout Notches */
.rha-vticket-notch {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  /* border: 1px solid #E5E7EB; */
  border-radius: 50%;
  z-index: 5;
  box-sizing: border-box;
}
.rha-vticket-notch-top {
  top: -8px;
  right: -8px;
}
.rha-vticket-notch-bottom {
  bottom: -8px;
  right: -8px;
}

.rha-vticket-stub-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.rha-vticket-amount {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -.3px;
}
.rha-vticket-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 4px;
}

/* Ticket Body (Right) */
.rha-vticket-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
  min-width: 0;
  box-sizing: border-box;
  border-top-right-radius: 13px;
  border-bottom-right-radius: 13px;
  position: relative;
  z-index: 1;
}
.rha-vticket-info {
  width: 100%;
  min-width: 0;
}
.rha-vticket-title {
  font-size: 14px;
  font-weight: 700;
  color: #16181B;
  margin: 0 0 5px;
  line-height: 1.35;
  word-break: break-word;
}
.rha-vticket-code-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rha-vticket-code-badge {
  display: inline-flex;
  align-items: center;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #ED1C24;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: all .15s;
}
.rha-vticket-code-badge:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
}
.rha-vticket-code-badge.is-copied {
  background: #DCFCE7 !important;
  border-color: #86EFAC !important;
  color: #166534 !important;
}
.rha-vticket-btn-copy {
  background: none;
  border: none;
  padding: 2px 5px;
  font-size: 12px;
  color: #ED1C24;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
}
.rha-vticket-btn-copy:hover {
  color: #C9141B;
  transform: scale(1.12);
}
.rha-vticket-btn-copy.is-copied {
  color: #10B981 !important;
}

/* Footer Row inside Ticket (Date on left, Button on right) */
.rha-vticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.rha-vticket-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8B929B;
  font-weight: 500;
  flex-wrap: wrap;
}
.rha-vticket-expiry {
  color: #8B929B;
}
.rha-vticket-min-spend {
  color: #8B929B;
}

/* Action Button */
.rha-vticket-action {
  flex-shrink: 0;
  margin-left: auto;
}
.rha-vticket-btn-use {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #FF5061 0%, #ED1C24 100%);
  color: #FFFFFF !important;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(237, 28, 36, 0.3);
  transition: all .18s ease;
  white-space: nowrap;
}
.rha-vticket-btn-use:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(237, 28, 36, 0.42);
  filter: brightness(1.05);
}
.rha-vticket-btn-use:active {
  transform: translateY(0);
}
.rha-vticket-btn-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.rha-vticket-btn-status.is-used {
  background: #F3F4F6;
  color: #9CA3AF;
  border: 1px solid #E5E7EB;
}
.rha-vticket-btn-status.is-expired {
  background: #FEF2F2;
  color: #EF4444;
  border: 1px solid #FECDD3;
}

/* Used / Expired card state */
.rha-voucher-ticket.is-used,
.rha-voucher-ticket.is-expired {
  opacity: 0.68;
}
.rha-voucher-ticket.is-used .rha-vticket-stub,
.rha-voucher-ticket.is-expired .rha-vticket-stub {
  background: linear-gradient(145deg, #9CA3AF 0%, #6B7280 100%);
}
.rha-voucher-ticket.is-used .rha-vticket-code-badge,
.rha-voucher-ticket.is-expired .rha-vticket-code-badge {
  background: #F3F4F6;
  border-color: #E5E7EB;
  color: #6B7280;
}

/* Empty State */
.rha-voucher-empty {
  text-align: center;
  padding: 36px 16px;
}
.rha-voucher-empty-ic {
  font-size: 40px;
  margin-bottom: 12px;
}
.rha-voucher-empty h4 {
  font-size: 16px;
  font-weight: 700;
  color: #16181B;
  margin: 0 0 6px;
}
.rha-voucher-empty p {
  font-size: 13px;
  color: #6B7280;
  margin: 0 auto 16px;
  max-width: 320px;
  line-height: 1.5;
}
.rha-voucher-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ED1C24;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.35);
  transition: all .18s;
  font-family: inherit;
}
.rha-voucher-empty-btn:hover {
  background: #D0141B;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(237, 28, 36, 0.45);
}
button.rha-modal-close.rha-voucher-close {
    background: transparent;
}
button.rha-modal-close.rha-voucher-close:hover {
    background: transparent;
}




@media (max-width: 600px) { 
  .rha-auth-container {
    padding: 0px 20px;
}
}

@media (max-width: 480px) {
  /* Mobile Attendance Modal polish */
  .rhci-modal.rhci-shopee-modal {
    max-width: 100%;
    margin: 0;
  }
  .rhci-checkin-card {
    margin: -14px 10px 14px;
    padding: 14px 10px 16px;
  }
  .rhci-days-grid {
    gap: 4px;
    padding: 10px 0;
  }
  .rhci-cell {
    min-width: 38px;
    flex: 0 0 calc((100% - 24px) / 7);
  }
  .rhci-box {
    height: 52px;
    padding: 3px 1px;
  }
  .rhci-main-cta {
    font-size: 13px !important;
    padding: 12px 10px !important;
    white-space: nowrap !important;
  }
  .rha-toast, .toast {
    font-size: 11.5px !important;
    padding: 8px 14px !important;
    bottom: 18px !important;
    white-space: nowrap !important;
  }

  .rha-modal {
    padding: 12px 10px;
  }
  .rha-voucher-modal-card {
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    padding: 16px 12px 14px;
    border-radius: 18px;
  }
  .rha-voucher-close {
    /* top: 12px; */
    /* right: 12px; */
    width: 30px;
    height: 30px;
  }
  .rha-voucher-modal-header {
    margin-bottom: 10px;
    padding-right: 32px;
  }
  .rha-voucher-badge-top {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 6px;
  }
  .rha-voucher-main-title {
    font-size: 18px;
    margin: 0 0 3px;
  }
  .rha-voucher-main-desc {
    font-size: 12px;
  }
  .rha-voucher-tabs-bar {
    gap: 2px;
    padding: 3px;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rha-voucher-tab {
    padding: 5px 3px;
    font-size: 10.5px;
    border-radius: 7px;
    letter-spacing: -0.3px;
    flex: 1 1 0px;
    min-width: 0;
  }
  .rha-voucher-ticket {
    border-radius: 12px;
  }
  .rha-vticket-stub {
    width: 80px;
    min-width: 80px;
    padding: 10px 4px;
  }
  .rha-vticket-amount {
    font-size: 13.5px;
  }
  .rha-vticket-label {
    font-size: 8.5px;
  }
  .rha-vticket-body {
    padding: 9px 10px;
  }
  .rha-vticket-title {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .rha-vticket-code-row {
    margin-bottom: 4px;
  }
  .rha-vticket-code-badge {
    font-size: 11px;
    padding: 1px 6px;
  }
  .rha-vticket-footer {
    gap: 6px;
  }
  .rha-vticket-meta {
    font-size: 10.5px;
  }
  .rha-vticket-btn-use {
    padding: 5px 12px;
    font-size: 11px;
  }
  .rha-vticket-btn-status {
    padding: 4px 10px;
    font-size: 10.5px;
  }
}

