:root {
  /* Theme tokens; defaults match the legacy dark theme and are overridden at
     runtime by theme/AppearanceContext (and pre-paint by public/index.html). */
  --protico-bg: #282c34;
  --protico-bg-translucent: rgba(27, 26, 26, 0.69);
  --protico-surface: #1e1e1e;
  --protico-surface-translucent: rgba(27, 34, 43, 0.92);
  --protico-surface-highlight: rgba(39, 46, 59, 0.69);
  --protico-border: #333333;
  --protico-border-strong: #666666;
  --protico-text: #ffffff;
  --protico-text-soft: #dddddd;
  --protico-text-secondary: #aaaaaa;
  --protico-text-faint: #808080;
  --protico-brand: #1f8feb;
  --protico-brand-rgb: 31, 143, 235;
  --protico-brand-contrast: #ffffff;
  --protico-brand-soft: #96c6ed;
  --protico-brand-faint: rgba(31, 143, 235, 0.14);
  --protico-brand-fainter: rgba(31, 143, 235, 0.08);
  --protico-hover: rgba(255, 255, 255, 0.08);
  --protico-scrim: rgba(0, 0, 0, 0.6);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--protico-bg, #282c34);
  font-size: 14px;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

.InvitePopper-paper {
  padding: 1px 15px 15px 15px;
  text-align: center;
  max-height: 80vh;
  overflow: auto;
  border: 0.5px solid #333;
  margin-left: auto;
  max-width: 80vw;
}

.InvitePopper-voucher-outer {
  margin: 1em 0;
  display: flex;
  justify-content: space-evenly;
  max-width: 200px;
  flex-wrap: wrap;
}

.InvitePopper-voucher {
  text-transform: none !important;
  font-family: monospace !important;
  font-size: 10px !important;
}

.InvitePopper-voucher-bottom {
  color: #666;
}

.InvitePopper-voucher-loader {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 8px 0;
  color: #666;
}

.IconMenuList-root {
  display: inline-flex;
}

#IconMenuList-menu {
  border-radius: 16px;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.12)
  );
  background-color: var(--protico-surface, rgb(18, 18, 18));
  border: 1px solid var(--protico-border, transparent);
  box-shadow: 0 6px 20px var(--protico-scrim, rgba(0, 0, 0, 0.35));
  z-index: 999;
}

.IconMenuList ul.MuiMenu-list {
  padding: 0;
}

.IconMenuList li.MuiMenuItem-gutters {
  padding: 0;
  min-height: unset;
  cursor: unset;
}

.IconMenuList li.MuiMenuItem-gutters:hover {
  background-color: inherit;
}

.superchat-history-container {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.superchat-history-main-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  overflow-y: hidden;
}

.superchat-message-container {
  width: 100%;
  height: 100%;
  background: var(--protico-surface, black);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.superchat-message-header {
  color: var(--protico-text, white);
  padding: 12px;
}

.superchat-message-header h2 {
  font-size: 14px;
  padding: 2px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.superchat-message-header p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.superchat-message-list {
  flex: 1;
  padding: 8px;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.superchat-message-list::-webkit-scrollbar {
  display: none;
}

.superchat-message-list::-webkit-scrollbar {
  width: 6px;
}

.superchat-message-list::-webkit-scrollbar-track {
  background: var(--protico-surface-highlight, #f1f1f1);
}

.superchat-message-list::-webkit-scrollbar-thumb {
  background: var(--protico-border-strong, #c1c1c1);
  border-radius: 3px;
}

.superchat-message-list::-webkit-scrollbar-thumb:hover {
  background: var(--protico-text-faint, #a8a8a8);
}

.superchat-message-card {
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  transition: box-shadow 0.2s ease;
  /* The card is a brand-colored "receipt", so every label on it (including the
     inherited ones) must contrast the brand, not the surface text color. */
  color: var(--protico-brand-contrast, #fff);
}
.superchat-message-cash {
  background: var(--protico-brand, #637a95);
}
.superchat-message-points {
  background: var(--protico-brand, #a43a5b);
}


.superchat-message-content {
  color: var(--protico-brand-contrast, #fff);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.superchat-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.superchat-content-text {
  background: var(--protico-surface, #e5e7eb);
  color: var(--protico-text, #374151);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  align-items: center;
}

.superchat-room-tag {
  padding-left: 5px;
  color: var(--protico-brand-contrast, #fff);
  display: flex;
  max-width: 190px;
}

.superchat-room-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.superchat-room-icon {
  margin-right: 4px;
}

.superchat-type {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid;
  font-weight: 500;
}

.type-point {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #c4b5fd;
}


.type-cash {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}

.superchat-message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--protico-brand-contrast, #fff);
}

.superchat-list-points {
  display: flex;
  align-items: center;
}

.superchat-star-icon {
  color: #fbbf24;
  margin-right: 4px;
}

.superchat-no-messages {
  text-align: center;
  color: var(--protico-text-faint, #777);
  padding: 5px;
}

.superchat-record-login-reminder {
  margin: auto;
  text-align: center;
  padding: 10px 10px 20px 10px;
}


.header-bar-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  height: 40px;
  gap: 2px;
  font-size: 16px;
  padding-right: 4px;
}

.members-text {
  display: flex;
  align-items: center;
}

.incall-info {
  display: flex;
  flex: 1;
  flex-direction: row;
  font-size: 12px;
}
/* Surface card wrapping the member-card content; sizes to content and scrolls
   internally so tall content never spills onto the (dimmed) backdrop. */
.membercard-modal-card {
  background: var(--protico-surface);
  border: 1px solid var(--protico-border);
  color: var(--protico-text);
  border-radius: 16px;
  width: 290px;
  max-width: 92vw;
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px 20px 0;
  box-shadow: 0 12px 32px var(--protico-scrim);
}

.membercard-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.membercard-profile-detail h3 {
  margin: 0;
  font-weight: bold;
  font-size: 20px;
  color: var(--protico-text-soft, #ddd);
  word-break: break-all;
}

.membercard-profile-detail p {
  margin: 0;
  font-size: 12px;
  color: var(--protico-text-secondary, #aaa);
}

.membercard-tab-container {
  width: 100%;
  display: flex;
  flex-direction: row;
}
.membercard-tab-element {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 0px;
  cursor: pointer;
  position: relative;
  color: var(--protico-text-secondary, #aaa);
}
.membercard-tab-element.active {
  color: var(--protico-text, #eee);
}
.membercard-tab-element.active::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--protico-text, #eee);
  position: absolute;
  bottom: 0;
}
.membercard-tab-element h4 {
  margin: 0 0 0 3px;
  font-size: 14px;
}

.membercard-main-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  overflow-x: scroll;
  padding: 20px 0px 0px 0px;
}
.membercard-card-container {
  height: 100%;
  width: 150px;
  background-color: var(--protico-surface-highlight, #1e1e1e);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  cursor: pointer;
}
.membercard-card-image-container {
  flex: 1;
  overflow: hidden;
  width: 100%;

  border-radius: 10px 10px 0 0;
}
.membercard-card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.membercard-card-description-container {
  flex-basis: 80px;
  width: 100%;
}
.membercard-card-description-container h3 {
  margin: 0;
  font-size: 16px;
  color: var(--protico-text-soft, #ddd);
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%; /*Adjust this value as needed*/
}
.membercard-card-description-container p {
  margin: 0;
  font-size: 12px;
  color: var(--protico-text-secondary, #aaa);
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%; /* Adjust this value as needed */
}

/* Shining Effect Animations for MemberCardActionButton */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.shining-button-wrapper {
  position: relative;
  display: inline-block;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #fff, #ffa726);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 2s ease-in-out infinite;
  z-index: 2;
}

.sparkle:nth-child(1) {
  top: 0;
  left: 50%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 50%;
  right: 0;
  animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
  bottom: 0;
  left: 50%;
  animation-delay: 1s;
}

.sparkle:nth-child(4) {
  top: 50%;
  left: 0;
  animation-delay: 1.5s;
}

.sparkle:nth-child(5) {
  top: 15%;
  left: 15%;
  animation-delay: 0.3s;
}


.membercard-detail-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 0px;
  position: relative;

  overflow-y: scroll;
  overflow-x: hidden;
}
.membercard-detail-topbar {
  position: sticky;
  top: 0;
}

.membercard-detail-backbutton {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--protico-text);
  padding: 0;
}
.membercard-detail-backbutton:hover {
  color: var(--protico-text-soft);
}

.membercard-detail-header {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}
.membercard-detail-header h2 {
  margin: 0;
  font-weight: bold;
  font-size: 20px;
  color: var(--protico-text-soft);
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.membercard-detail-tokentype {
  margin-top: 8px;
  padding: 4px 6px;
  width: fit-content;
  background-color: #6a6a6a;
  border-radius: 10px;
}
.membercard-detail-tokentype p {
  margin: 0;
  font-size: 12px;
  color: #fff;
}

.membercard-detail-image-wrapper {
  width: 100%;
  padding: 12px 20px;
}
.membercard-detail-image-container {
  overflow: hidden;
  width: 100%;

  border-radius: 10px;
  position: relative;
}
.membercard-detail-tokenid-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 8px 12px;
  background-color: #6a6a6a8b;
  border-radius: 10px;
}
.membercard-detail-tokenid-badge h4 {
  margin: 0;
  font-size: 12px;
  color: #fff;
}
.membercard-detail-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membercard-detail-wallet-button-group {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.membercard-detail-wallet-button {
  overflow: hidden;
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  margin: auto;
  max-width: 40%;
  cursor: pointer;
}
.membercard-detail-wallet-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membercard-detail-divider {
  margin: 20px 0px 8px 0px;
  width: 100%;
  height: 1px;
  min-height: 1px;
  background-color: var(--protico-border);
}

.membercard-detail-main-description-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.membercard-detail-main-description-label {
  margin-top: 12px;
}
.membercard-detail-main-description-label h3 {
  margin: 0;
}
.membercard-detail-main-description-value {
  margin-left: 20px;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}
.membercard-detail-main-description-value p,
.membercard-detail-main-description-value a {
  margin: 0;
  color: var(--protico-text-soft);
}
.membercard-detail-main-description-value a {
  color: var(--protico-brand-soft);
  cursor: pointer;
  text-decoration: none;
}

.membercard-detail-main-description-value-bubble-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 12px;
  margin-left: 20px;
  margin-top: 4px;
}
.membercard-detail-main-description-value-bubble {
  padding: 6px 8px;
  background-color: #6a6a6a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 50px;
}
.membercard-detail-main-description-value-bubble h4 {
  margin: 0;
  font-size: 8px;
  color: #ddd;
}
.membercard-detail-main-description-value-bubble p {
  margin: 0;
  font-size: 12px;
  color: #fff;
}

/* ===================================
   REWARD TAB - Premium Prize Showcase
   Brand Color: #1f8feb
   =================================== */

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* Container */
.reward-tab-container {
  padding: 0;
  text-align: center;
  margin: auto;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: fadeInUp 0.4s ease-out;
}

.reward-tab-container::-webkit-scrollbar {
  display: none;
}

/* ===================================
   HERO SECTION - Dark Glassmorphism
   =================================== */
.reward-hero {
  background: var(--protico-surface-translucent, rgba(30, 30, 35, 0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--protico-border, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.reward-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%,
      rgba(var(--protico-brand-rgb), 0.12) 0%,
      transparent 50%);
  pointer-events: none;
}

.reward-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%,
      rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
}

.reward-hero-content {
  position: relative;
  z-index: 1;
}

.reward-hero-points {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.reward-hero-points-value {
  font-size: clamp(26px, 10vw, 38px);
  font-weight: 700;
  background: #ffa726;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.1;
  word-break: break-all;
}

.reward-hero-points-label {
  font-size: 18px;
  color: #ffa726;
  font-weight: 600;
  margin-left: 2px;
}

.reward-hero-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--protico-text-secondary, rgba(255, 255, 255, 0.7));
  margin-top: 16px;
}

.reward-hero-level-badge {
  background: rgba(var(--protico-brand-rgb), 0.12);
  border: 1px solid rgba(var(--protico-brand-rgb), 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--protico-brand);
  font-size: 13px;
}

/* Progress Bar - Neon Style */
.reward-progress-container {
  margin: 20px 0 8px;
}

.reward-progress-bar {
  height: 4px;
  background: var(--protico-hover, rgba(255, 255, 255, 0.08));
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.reward-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--protico-brand), var(--protico-brand-soft));
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 12px rgba(var(--protico-brand-rgb), 0.5);
}

.reward-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--protico-text, #fff);
  margin-top: 8px;
}

/* ===================================
   REDEEM BUTTON
   =================================== */
.redeem-list-viewer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--protico-brand, #1f8feb);
  padding: 10px 20px;
  border-radius: 24px;
  color: var(--protico-brand-contrast, #fff);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.redeem-list-viewer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--protico-brand-rgb), 0.4);
}

.redeem-list-viewer:active {
  transform: translateY(0);
}

/* ===================================
   SECTION HEADERS
   =================================== */
.reward-section {
  margin: 20px 0 12px;
  animation: fadeInUp 0.4s ease-out;
}

.reward-tab-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--protico-text, #fff);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--protico-border, rgba(255, 255, 255, 0.08));
}

.reward-subtitle-emoji {
  font-size: 16px;
}

/* ===================================
   MULTIPLIER BANNER
   =================================== */
.reward-tab-multiplier-reminder {
  background: linear-gradient(135deg, rgba(255, 167, 38, 0.15), rgba(255, 167, 38, 0.05));
  border: 1px solid rgba(255, 167, 38, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 20px;
}

.reward-tab-multiplier-reminder p {
  margin: 0;
  font-size: 12px;
  color: #ffa726;
  line-height: 1.5;
}

/* ===================================
   QUEST LIST
   =================================== */
.reward-list-container {
  margin: 0;
  padding: 0 2px;
}

.reward-tab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px !important;
  margin: 4px 0;
  background: var(--protico-surface-highlight, rgba(255, 255, 255, 0.03));
  border-radius: 10px;
  transition: all 0.15s ease;
}

.reward-tab-item:hover {
  background: var(--protico-hover, rgba(255, 255, 255, 0.06));
}

.reward-tab-unit-description {
  font-size: 13px;
  color: var(--protico-text-soft, #ccc);
  flex: 1;
  text-align: left;
}

/* Completed quest styling */
.reward-tab-item .MuiSvgIcon-root {
  transition: all 0.2s ease;
}

.reward-tab-item .MuiSvgIcon-root[data-completed="true"] {
  color: #7fe08a !important;
}

/* ===================================
   DIVIDER
   =================================== */
.reward-divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  margin: 20px 0;
  border: none;
}

/* ===================================
   MODAL STYLES
   =================================== */
.redeem-list-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
  background: var(--protico-surface, #1f1f1f);
  color: var(--protico-text, #fff);
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--protico-border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.redeem-modal-header {
  background: var(--protico-brand);
  padding: 20px 24px;
  text-align: left;
}

.redeem-list-modal h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--protico-brand-contrast);
}

.redeem-modal-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--protico-brand-contrast);
  opacity: 0.85;
}

.redeem-list-modal ul {
  list-style: none;
  padding: 16px;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
}

/* ===================================
   CAMPAIGN CARDS
   =================================== */
.campaign-card {
  background: var(--protico-surface, #252525);
  border: 1px solid var(--protico-border, rgba(255, 255, 255, 0.06));
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.campaign-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--protico-brand-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.campaign-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a3a4a 0%, #1a2a3a 50%, #0a1a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.campaign-card-cover::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(var(--protico-brand-rgb), 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.campaign-card-cover-icon {
  font-size: 32px;
  z-index: 1;
}

.campaign-card-content {
  padding: 14px 16px;
}

.campaign-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--protico-text, #fff);
  margin: 0 0 6px;
  text-align: left;
}

.campaign-card-desc {
  font-size: 12px;
  color: var(--protico-text-secondary, #999);
  margin: 0 0 10px;
  text-align: left;
  line-height: 1.4;
}

.campaign-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.campaign-card-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #ffa726;
}

/* ===================================
   BUTTONS
   =================================== */
.redeem-button {
  background: var(--protico-brand);
  padding: 8px 10px;
  border-radius: 20px;
  color: var(--protico-brand-contrast);
  font-size: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.redeem-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--protico-brand-rgb), 0.4);
}

.redeem-button:active:not(:disabled) {
  transform: translateY(0);
}

.redeem-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.redeem-button-claimed {
  background: transparent;
  border: 1px solid #74e279;
  color: #74e279;
  cursor: default;
  font-family: "Monaco", "Consolas", monospace;
  letter-spacing: 0.5px;
  flex: 1;
  text-align: center;
}

.campaign-card-claimed-actions {
  display: flex;
  gap: 7px;
  flex: 1;
}

.campaign-card-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.campaign-card-code-copy:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.campaign-card-code-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-card-code-emoji {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.cta-button {
  background: var(--protico-brand, #1f8feb) !important;
  color: var(--protico-brand-contrast, #fff) !important;
  cursor: pointer !important;
  min-width: 80px;
  box-shadow: 0 0 10px rgba(var(--protico-brand-rgb), 0.4) !important;
}

.cta-button:hover {
  background: var(--protico-brand) !important;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

/* ===================================
   LEGACY LIST ITEMS (Modal)
   =================================== */
.redeem-list-modal li {
  list-style: none;
  margin-bottom: 8px;
}

.redeem-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--protico-surface-highlight, rgba(255, 255, 255, 0.03));
  border-radius: 12px;
  transition: all 0.15s ease;
}

.redeem-list-item:hover {
  background: var(--protico-hover, rgba(255, 255, 255, 0.06));
}

.redeem-list-item>div:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--protico-text, #fff);
}

/* ===================================
   STATUS MESSAGES
   =================================== */
.redeem-exchange-status {
  font-size: 12px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--protico-border, rgba(255, 255, 255, 0.05));
}

.redeem-exchange-success {
  color: #7fe08a;
  background: rgba(127, 224, 138, 0.1);
  border-color: rgba(127, 224, 138, 0.2);
}

.redeem-exchange-loading {
  color: #9cc7ff;
  background: rgba(var(--protico-brand-rgb), 0.1);
  border-color: rgba(var(--protico-brand-rgb), 0.2);
}

.redeem-exchange-error {
  color: #ff8888;
  background: rgba(255, 136, 136, 0.1);
  border-color: rgba(255, 136, 136, 0.2);
}

/* ===================================
   FOOTER
   =================================== */
.redeem-list-more {
  font-size: 12px;
  color: var(--protico-text-faint, #666);
  font-style: italic;
  padding: 12px 16px;
  margin: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.redeem-list-loading,
.redeem-list-error,
.redeem-list-empty {
  font-size: 13px;
  color: var(--protico-text-secondary, #888);
  padding: 20px;
  text-align: center;
}

/* ===================================
   SPAM USER
   =================================== */
.spam-user-alert {
  background: rgba(255, 136, 136, 0.1);
  border: 1px solid rgba(255, 136, 136, 0.2);
  border-radius: 12px;
  padding: 16px;
  color: #ff8888;
  font-size: 13px;
  text-align: center;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.App {
  text-align: center;
  color: var(--protico-text, #ffffff);
  min-height: 100vh;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-color: var(--protico-bg, #282c34);
}

.custom-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  /* 僅設定背景的透明度 */
  z-index: 0;
  /* 放在所有內容的下層 */
}

.App-container {
  position: relative;
  height: calc(100vh - 40px);
  z-index: 1;
}

.forbid-App {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.forbid-App p {
  margin: 10px;
}

.logo-imageContainer {
  height: 60px;
  max-width: 190px;
  margin: auto;
}

.logo-image {
  height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

.App-loader-container {
  position: absolute;
  height: 100%;
  z-index: 99;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--protico-bg, #282c34);
}

.App-loader-container-text-div {
  padding: 0 25px;
}

.App-loader-container-text {
  font-size: 12px;
  color: var(--protico-text-secondary, #aaa);
  line-height: 1.5em;
  padding: 3px;
}

.App-loader-container-text-list {
  font-size: 12px;
  color: var(--protico-text-secondary, #aaa);
  line-height: 1.5em;
  padding: 3px;
}

/* @media screen and (max-height: 399px) {
  .App-container {
    height: calc(100vh - 30px);
  }
} */
.install-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* 參考瀏覽器暗色系提示條 */
  background: #3e2723;
  color: #fff;

  /* 高度、內邊距 */
  height: 80px;
  padding: 0 12px 0 32px;

  /* 底部圓角 */
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;

  /* 初始隱藏在上方 & 動畫 */
  transform: translateY(-100%);
  transition: transform 0.4s ease-out;
  z-index: 1000;
}

.install-sheet.visible {
  transform: translateY(0);
}

.install-sheet__left {
  display: flex;
  align-items: center;
}

.install-sheet__icon {
  width: 32px;
  height: 32px;
  border-radius: 4px; /* 小圓角 */
}

.install-sheet__text {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
}

.install-sheet__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.install-sheet__subtitle {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1;
  margin-top: 6px;
}

.install-sheet__btn {
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: #ffb74d; /* 橘色文字 */
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.install-sheet__cancel-btn {
  position: absolute;
  top: 0px;
  left: 0px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 99px;
  transition: background 0.2s;
  color: #fff;
}
.install-sheet__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.install-sheet__cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

