/* Hide the default 4-button dock so our expanded 8-action Vietnamese dock takes its place cleanly */
#game-modes,
.game-modes {
  display: none !important;
}

/* Position the game hint nicely above our dock */
#game-hint,
.game-hint {
  bottom: 104px !important;
  z-index: 25 !important;
}

/* Top-Left Vietnamese Status & Devotion Counter HUD */
.sansa-vn-hud {
  position: fixed;
  top: 66px;
  left: 16px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.2s ease;
}

.sansa-vn-hud-row {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.sansa-vn-hud-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 24, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 215, 140, 0.4);
  color: #f7e6c4;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.16s ease;
  user-select: none;
  white-space: nowrap;
}

.sansa-vn-hud-toggle:hover {
  background: rgba(48, 40, 28, 0.95);
  border-color: #ffd875;
  color: #ffffff;
  transform: translateY(-1px);
}

.sansa-vn-hud-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: sansaFadeIn 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes sansaFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.moktak-instrument img {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)) !important;
  transition: transform 0.08s ease;
}

.sansa-vn-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 17, 15, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 240, 210, 0.16);
  color: rgba(250, 244, 232, 0.94);
  font-size: 12.5px;
  line-height: 1.25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  width: fit-content;
}

.sansa-vn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8bc34a;
  box-shadow: 0 0 8px rgba(139, 195, 74, 0.8);
  flex-shrink: 0;
}

.sansa-vn-dot[data-active="true"] {
  background: #ffb74d;
  box-shadow: 0 0 10px rgba(255, 183, 77, 0.95);
}

.sansa-vn-space {
  font-weight: 600;
  color: #f6e7c8;
}

.sansa-vn-sep {
  opacity: 0.45;
}

.sansa-vn-posture {
  color: rgba(242, 235, 222, 0.85);
}

.sansa-vn-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sansa-vn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(235, 195, 125, 0.22);
  color: rgba(248, 240, 225, 0.9);
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

.sansa-vn-badge strong {
  color: #ffd27d;
  font-weight: 600;
}

.sansa-vn-wish-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(24, 21, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 215, 145, 0.2);
  color: rgba(248, 239, 222, 0.92);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.26);
}

.sansa-vn-wish-text {
  margin: 0;
  color: #f5dfb8;
}

/* Center Toast Notification */
.sansa-vn-toast {
  position: fixed;
  bottom: 142px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 48;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(22, 19, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 210, 130, 0.38);
  color: #fff5e1;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  white-space: nowrap;
  animation: sansaToastIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes sansaToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Clean 8-Action Vietnamese Dock (No numbers, clean layout) */
.sansa-vn-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: stretch;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 22px;
  background: rgba(20, 18, 16, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 238, 205, 0.18);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  max-width: calc(100vw - 20px);
  overflow-x: auto;
  scrollbar-width: none;
}

.sansa-vn-dock::-webkit-scrollbar {
  display: none;
}

.sansa-vn-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 10px 12px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 252, 245, 0.04);
  color: #f7f1e6;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sansa-vn-btn:hover:not(:disabled) {
  background: rgba(255, 244, 222, 0.13);
  border-color: rgba(255, 225, 170, 0.32);
  transform: translateY(-2px);
}

.sansa-vn-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.sansa-vn-btn.is-active {
  background: linear-gradient(180deg, rgba(218, 165, 92, 0.28) 0%, rgba(168, 114, 48, 0.24) 100%);
  border-color: rgba(255, 210, 128, 0.58);
  box-shadow:
    0 0 18px rgba(255, 189, 89, 0.24),
    inset 0 1px 0 rgba(255, 240, 200, 0.25);
}

.sansa-vn-btn.is-busy {
  cursor: wait !important;
  opacity: 0.88;
  animation: sansaBusyPulse 1.8s infinite ease-in-out;
}

@keyframes sansaBusyPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255, 200, 100, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 220, 140, 0.65);
  }
}

.sansa-vn-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.sansa-vn-btn.is-incense {
  border-color: rgba(255, 170, 90, 0.38);
}

.sansa-vn-icon {
  font-size: 21px;
  line-height: 1;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.sansa-vn-label {
  font-size: 13px;
  font-weight: 600;
  color: #fcf7ee;
  line-height: 1.15;
  white-space: nowrap;
}

.sansa-vn-sub {
  font-size: 10px;
  color: rgba(235, 224, 204, 0.65);
  margin-top: 2px;
  white-space: nowrap;
}

.sansa-vn-btn.is-active .sansa-vn-sub {
  color: #ffd993;
}

/* Incense Offering Modal */
.sansa-incense-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 7, 6, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sansa-incense-modal {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  overflow-x: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(32, 28, 23, 0.96) 0%, rgba(21, 18, 15, 0.98) 100%);
  border: 1px solid rgba(255, 216, 150, 0.26);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.65);
  color: #f7efe2;
  padding: 22px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sansa-incense-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sansa-incense-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #d8b272;
  font-weight: 600;
}

.sansa-incense-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff6e6;
}

.sansa-incense-close,
.sansa-modal-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e8decb;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.sansa-incense-close:hover,
.sansa-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sansa-incense-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 176px;
  margin: 12px 0 16px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 200, 96, 0.35), rgba(42, 24, 10, 0.75));
  border: 1.5px solid rgba(255, 214, 120, 0.38);
  padding-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(255, 180, 60, 0.18);
}

.sansa-incense-buddha-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.94;
  pointer-events: none;
}

.sansa-sticks-preview,
.sansa-preview-censer {
  position: relative;
  z-index: 2;
}

.sansa-sticks-preview {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: -3px;
}

.sansa-preview-stick {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom center;
}

.sansa-preview-smoke {
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(235, 226, 210, 0.55));
  filter: blur(2px);
  animation: sansaSmokeRise 2.2s infinite ease-in-out;
}

@keyframes sansaSmokeRise {
  0%, 100% {
    transform: translateY(0) scaleX(1);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-6px) scaleX(1.35);
    opacity: 0.85;
  }
}

.sansa-preview-ember {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5722;
  box-shadow: 0 0 10px 3px rgba(255, 120, 30, 0.9);
}

.sansa-preview-body {
  width: 3px;
  height: 44px;
  background: linear-gradient(180deg, #a84432 0%, #6d2c20 100%);
  border-radius: 2px;
}

.sansa-preview-censer-pot {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 15px;
  border-radius: 2px 2px 10px 10px;
  background: linear-gradient(180deg, #d4af37 0%, #8c6d23 100%);
  border: 1px solid rgba(255, 230, 175, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.sansa-preview-censer {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 92%;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(18, 14, 10, 0.85);
  border: 1px solid rgba(255, 215, 120, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(9px, 2.4vw, 11px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd875;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.sansa-stick-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.sansa-stick-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 235, 200, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #efe5d4;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sansa-stick-option strong {
  font-size: 13px;
}

.sansa-stick-option span {
  font-size: 11px;
  color: rgba(235, 222, 200, 0.68);
}

.sansa-stick-option.is-selected {
  background: rgba(224, 169, 88, 0.22);
  border-color: rgba(255, 208, 128, 0.65);
  color: #fff6e5;
}

.sansa-wish-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #ebdDC5;
}

.sansa-wish-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 235, 200, 0.18);
  background: rgba(12, 10, 8, 0.6);
  color: #fff8eb;
  padding: 10px 12px;
  font-size: 13px;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.sansa-wish-textarea:focus {
  border-color: rgba(255, 205, 120, 0.6);
}

.sansa-quick-wishes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}

.sansa-preset-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 175, 0.18);
  background: rgba(255, 245, 225, 0.06);
  color: #e6d5b8;
  font-size: 11px;
  cursor: pointer;
}

.sansa-preset-chip:hover {
  background: rgba(255, 225, 175, 0.16);
}

.sansa-incense-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sansa-btn-cancel {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #dfd4c2;
  font-size: 13px;
  cursor: pointer;
}

.sansa-btn-submit {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 220, 150, 0.5);
  background: linear-gradient(180deg, #e0a858 0%, #b87c2e 100%);
  color: #1c140a;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(216, 152, 64, 0.35);
}

@media (max-width: 768px) {
  .sansa-vn-hud {
    top: 56px;
    left: 8px;
    max-width: calc(100vw - 16px);
  }
  .sansa-vn-status-pill {
    padding: 6px 11px;
    font-size: 11.5px;
  }
  .sansa-vn-hud-toggle {
    padding: 5px 9px;
    font-size: 11px;
  }
  .sansa-vn-dock {
    bottom: 12px;
    padding: 6px;
    gap: 4px;
  }
  .sansa-vn-btn {
    min-width: 68px;
    padding: 8px 8px 6px;
  }
  .sansa-vn-label {
    font-size: 11.5px;
  }
  .sansa-vn-icon {
    font-size: 18px;
  }
}

/* Name modal & input styles */
.sansa-modal-lead {
  font-size: 13px;
  color: rgba(240, 230, 215, 0.78);
  margin: 6px 0 16px;
  line-height: 1.45;
}

.sansa-name-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 235, 200, 0.22);
  background: rgba(12, 10, 8, 0.65);
  color: #fff9ed;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.sansa-name-input:focus {
  border-color: rgba(255, 210, 130, 0.75);
  box-shadow: 0 0 16px rgba(255, 210, 130, 0.25);
}

.sansa-name-input.has-error {
  border-color: #ff5252 !important;
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.3) !important;
}

.sansa-input-error {
  color: #ff8a80;
  font-size: 12px;
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sansa-suggest-label {
  font-size: 11px;
  color: rgba(240, 225, 200, 0.6);
  width: 100%;
  margin-bottom: 2px;
}

.sansa-vn-badge.is-clickable {
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.15s ease;
}

.sansa-vn-badge.is-clickable:hover {
  background: rgba(36, 30, 22, 0.88);
  border-color: rgba(255, 220, 140, 0.45);
  transform: translateY(-1px);
}

.sansa-edit-glyph {
  font-size: 10px;
  opacity: 0.6;
  margin-left: 2px;
}


/* Entry Modal: Áo Tràng Lam Việt Nam & Google Login */
.sansa-entry-modal,
.sansa-robe-modal {
  width: min(94vw, 560px);
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.sansa-aotrang-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(122, 125, 134, 0.24) 0%, rgba(74, 78, 88, 0.18) 100%);
  border: 1px solid rgba(186, 192, 208, 0.28);
}

.sansa-aotrang-img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #f2f3f5;
  flex-shrink: 0;
}

.sansa-aotrang-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sansa-aotrang-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b8c2d8;
}

.sansa-aotrang-info strong {
  font-size: 14px;
  color: #f4f6fa;
}

.sansa-aotrang-info p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(235, 238, 245, 0.78);
}

/* Google Login Box */
.sansa-google-box {
  margin: 10px 0 14px;
}

.sansa-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #ffffff;
  color: #1f1f1f;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.sansa-google-btn:hover {
  background: #f5f7fa;
  transform: translateY(-1px);
}

.sansa-google-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(67, 160, 71, 0.16);
  border: 1px solid rgba(129, 199, 132, 0.4);
}

.sansa-google-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sansa-google-user-info div {
  display: flex;
  flex-direction: column;
}

.sansa-google-user-info strong {
  font-size: 13px;
  color: #e8f5e9;
}

.sansa-google-user-info span {
  font-size: 11px;
  color: rgba(232, 245, 233, 0.78);
}

.sansa-google-change {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #e0e0e0;
  font-size: 11px;
  cursor: pointer;
}

.sansa-google-quick-form {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 230, 180, 0.2);
}

.sansa-google-quick-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #f3e5cc;
}

.sansa-google-quick-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.sansa-google-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Support / Donation Modal & Thư Ngỏ */
.sansa-vn-badge.is-support-badge {
  border-color: rgba(255, 196, 107, 0.55);
  background: linear-gradient(90deg, rgba(64, 38, 16, 0.85), rgba(38, 25, 14, 0.85));
}

.sansa-support-modal {
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
}

.sansa-support-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin: 14px 0;
  align-items: stretch;
}

@media (max-width: 640px) {
  .sansa-support-grid {
    grid-template-columns: 1fr;
  }
}

.sansa-support-bank-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 245, 225, 0.06);
  border: 1px solid rgba(255, 215, 145, 0.26);
}

.sansa-support-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sansa-support-field.is-stk {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(224, 168, 88, 0.14);
  border: 1px solid rgba(255, 212, 130, 0.38);
}

.sansa-support-field-label {
  font-size: 11px;
  color: rgba(240, 225, 200, 0.68);
}

.sansa-support-field-value {
  font-size: 13.5px;
  color: #fff6e6;
  line-height: 1.35;
}

.sansa-support-stk-number {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffd57e;
}

.sansa-copy-stk-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 220, 150, 0.5);
  background: linear-gradient(180deg, #e0a858 0%, #b87c2e 100%);
  color: #1c140a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sansa-support-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: #1b1b1b;
  text-align: center;
}

.sansa-support-qr-img {
  width: 152px;
  height: auto;
  border-radius: 8px;
}

.sansa-support-qr-box span {
  font-size: 11px;
  font-weight: 600;
  color: #2b2b2b;
}

.sansa-thungo-container {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 220, 160, 0.22);
  background: rgba(10, 9, 8, 0.55);
  overflow: hidden;
}

.sansa-thungo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 245, 225, 0.06);
  border-bottom: 1px solid rgba(255, 220, 160, 0.14);
  font-size: 12.5px;
}

.sansa-thungo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sansa-thungo-actions a {
  text-decoration: none;
}

.sansa-thungo-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  text-align: center;
}

.sansa-thungo-scroll.is-zoomed {
  max-height: 540px;
}

.sansa-thungo-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.sansa-thungo-scroll.is-zoomed .sansa-thungo-img {
  max-width: 100%;
  cursor: zoom-out;
}

/* Google Sheet Config & Table */
.sansa-sheet-config {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 225, 175, 0.18);
}

.sansa-sheet-url-row {
  display: flex;
  gap: 8px;
}

.sansa-sheet-table-wrap {
  max-height: 280px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 225, 175, 0.16);
  background: rgba(10, 9, 8, 0.5);
}

.sansa-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.sansa-sheet-table th,
.sansa-sheet-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sansa-sheet-table th {
  background: rgba(255, 235, 200, 0.08);
  color: #f3d8a3;
  font-weight: 600;
  position: sticky;
  top: 0;
}

/* -------------------------------------------------------------------------
   Buddhist Robe (Áo Tràng) Color Selector (4 Tông Màu Truyền Thống)
   ------------------------------------------------------------------------- */
.sansa-robe-section {
  margin: 12px 0 14px;
  width: 100%;
  box-sizing: border-box;
}

.sansa-robe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.sansa-robe-title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e8dfcf;
}

.sansa-robe-badge-active {
  font-size: 11.5px;
  color: #ffd875;
  font-weight: 600;
}

.sansa-robe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 540px) {
  .sansa-robe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sansa-robe-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(24, 26, 32, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #f0f2f5;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.sansa-robe-btn:hover {
  background: rgba(40, 44, 54, 0.9);
  border-color: rgba(255, 215, 120, 0.45);
  transform: translateY(-1px);
}

.sansa-robe-btn.is-active {
  background: rgba(212, 168, 83, 0.16);
  border-color: #d4a853;
  box-shadow: 0 0 0 1px #d4a853, 0 4px 12px rgba(212, 168, 83, 0.25);
}

.sansa-robe-swatch {
  width: 32px;
  height: 32px;
  margin-top: 1px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sansa-robe-check {
  font-size: 14px;
  font-weight: bold;
}

.sansa-robe-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sansa-robe-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.sansa-robe-desc {
  font-size: 11px;
  color: rgba(230, 235, 245, 0.78);
  line-height: 1.35;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .sansa-vn-dock {
    gap: 5px;
    padding: 7px 8px;
  }
  .sansa-vn-btn {
    min-width: 72px;
    padding: 8px 9px 7px;
  }
  .sansa-vn-label {
    font-size: 12px;
  }
}

.moonlight-radio {
  width: 236px !important;
  gap: 2px !important;
  padding: 2px 4px 2px 8px !important;
}

.moonlight-radio > .moonlight-title-window {
  cursor: pointer;
}

.moonlight-radio > .tool {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
}

.moonlight-radio > .tool > svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 600px) {
  .moonlight-radio {
    width: 198px !important;
    max-width: calc(100% - 116px) !important;
  }
  .moonlight-radio > .tool {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* -------------------------------------------------------------------------
 * WESET Voucher 4.500.000 VNĐ Styles
 * ------------------------------------------------------------------------- */
.sansa-badge-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3d00;
  border: 1.5px solid #fff;
  box-shadow: 0 0 8px #ff3d00;
  animation: sansaDotPulse 1.4s infinite ease-in-out;
}

@keyframes sansaDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.85;
  }
}

.sansa-vn-btn-glow {
  border-color: rgba(255, 215, 60, 0.65) !important;
  animation: sansaGlowPulse 1.8s infinite ease-in-out;
}

@keyframes sansaGlowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 210, 60, 0.25), inset 0 1px 0 rgba(255, 240, 180, 0.3);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 220, 80, 0.7), inset 0 1px 0 rgba(255, 255, 220, 0.6);
  }
}

.sansa-voucher-modal {
  max-width: 720px !important;
  width: 92vw !important;
  padding: 24px 28px !important;
}

@media (max-width: 640px) {
  .sansa-voucher-modal {
    padding: 18px 16px !important;
  }
}

.sansa-voucher-card-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 220, 120, 0.35);
  background: #fff;
  margin-bottom: 18px;
}

.sansa-voucher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sansa-voucher-date-pill {
  position: absolute;
  left: 76.8%;
  width: 17.5%;
  height: 6.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #16284a;
  font-size: clamp(9px, 2.2vw, 15px);
  letter-spacing: 0.02em;
  user-select: none;
  pointer-events: none;
}

.sansa-voucher-date-pill.is-issue {
  top: 26.2%;
}

.sansa-voucher-date-pill.is-sig {
  top: 41.0%;
}

.sansa-voucher-hint {
  text-align: center;
  font-size: 13.5px;
  color: #ffd777;
  margin: 4px 0 16px 0;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0.9;
}

.sansa-voucher-date-pill.is-placeholder {
  color: rgba(22, 40, 74, 0.38);
  font-style: italic;
  font-weight: 600;
}

.sansa-voucher-mission-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(25, 23, 19, 0.88);
  border: 1px solid rgba(255, 215, 120, 0.28);
  margin-bottom: 18px;
}

.sansa-voucher-mission-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffd777;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sansa-voucher-mission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sansa-voucher-mission-row.is-done {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.38);
}

.sansa-voucher-mission-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sansa-voucher-mission-name {
  font-size: 13px;
  font-weight: 600;
  color: #f7eedd;
}

.sansa-voucher-mission-progress {
  font-size: 12px;
  color: #ffd27d;
}

.sansa-voucher-mission-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 215, 120, 0.15);
  border: 1px solid rgba(255, 215, 120, 0.4);
  color: #ffd777;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sansa-voucher-mission-btn:hover {
  background: rgba(255, 215, 120, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.sansa-voucher-claim-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
  user-select: none;
}

.sansa-voucher-claim-btn.is-ready {
  background: linear-gradient(135deg, #f7b733 0%, #fc4a1a 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(252, 74, 26, 0.45);
  animation: sansaGlowPulse 1.6s infinite ease-in-out;
}

.sansa-voucher-claim-btn.is-ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(252, 74, 26, 0.65);
}

.sansa-voucher-claim-btn.is-locked {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(240, 240, 240, 0.6);
  cursor: not-allowed;
}

.sansa-voucher-success-box {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(129, 199, 132, 0.4);
  color: #e8f5e9;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.sansa-voucher-success-box strong {
  color: #a5d6a7;
}

.sansa-voucher-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.sansa-voucher-actions .sansa-voucher-claim-btn {
  flex: 1.3;
  width: auto;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
}

@media (max-width: 540px) {
  .sansa-voucher-actions {
    flex-direction: column;
  }
}

.sansa-voucher-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  user-select: none;
}

.sansa-voucher-action-btn.is-download {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #1a1a1a;
  border: none;
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.35);
}

.sansa-voucher-action-btn.is-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 140, 0, 0.5);
}

.sansa-voucher-action-btn.is-weset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 120, 0.35);
  color: #ffd777;
}

.sansa-voucher-action-btn.is-weset:hover {
  background: rgba(255, 215, 120, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}



