 /* --- BASIC RESET & BASE STYLES --- */  
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: "Manrope", sans-serif;
  background: #f0f1f2;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  color: #333;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  font-size: 1rem;
}
img,
iframe {
  max-width: 100%;
}
svg,
canvas {
  max-width: 100%;
  display: block;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./NIPPP Logo.png")
    no-repeat center center;
  background-size: clamp(200px, 50vmin, 300px);
  opacity: 0.05;
  z-index: 0;
}
.social-proof-toast {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 1005;
  width: min(340px, calc(100vw - 32px));
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.46);
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(236, 248, 241, 0.82));
  box-shadow: 0 18px 34px rgba(12, 54, 32, 0.14), inset 0 1px 0 rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.social-proof-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.social-proof-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f7769;
  margin-bottom: 0.35rem;
}
.social-proof-message {
  font-size: 0.86rem;
  line-height: 1.42;
  color: #163725;
}
/* --- LAYOUT & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 1rem;
  animation: fadeIn 1.2s ease;
  margin-top: 50px;
  overflow-x: clip;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* --- HEADER --- */
.header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.header img {
  max-width: 130px;
  display: block;
  margin: 0.5rem auto;
}
.main-heading {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: #333;
}
.sub-heading {
  font-size: 0.9rem;
  color: #555;
  max-width: 600px;
  margin: 0.5rem auto 1rem;
  line-height: 1.5;
  text-align: center;
}
/* --- Referral Info Box --- */
.referral-info {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1.5rem auto 1.5rem;
  max-width: 95%;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  overflow: hidden;
}
.referral-info strong {
  color: #0369a1;
}
.referral-info button#getReferralCodeBtn {
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #0ea5e9, #0284c7);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
}
.referral-info button#getReferralCodeBtn:hover {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}
.divider {
  width: 100px;
  height: 3px;
  background: #555;
  margin: 1rem auto;
  border-radius: 5px;
}
/* --- SECTION SUBTITLES --- */
.section-subtitle {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  font-style: italic;
}
/* --- MOBILE NAVIGATION --- */
#mobileMenuBtn {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1002;
  background: rgba(0, 128, 0, 0.8);
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#mobileMenuBtn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  display: block;
}
#mobileNavPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #333;
  color: white;
  padding: 60px 1rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  box-shadow: 3px 0 15px rgba(0,0,0,0.3);
  overflow-y: auto;
}
#mobileNavPanel.active {
  transform: translateX(0);
}
#mobileNavPanel nav ul {
  list-style: none;
}
#mobileNavPanel nav li {
  margin-bottom: 1rem;
}
#mobileNavPanel nav a {
  color: #eee;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s;
}
#mobileNavPanel nav a:hover {
  color: #00c851;
}
.menu-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}
@media (max-width: 991px) {
  #mobileMenuBtn {
    display: block;
  }
  .container {
    margin-top: 0;
  }
}
/* --- FLOATING ELEMENTS --- */
#countdownTimer {
  position: fixed;
  top: 10px;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-8px);
  width: fit-content;
  max-width: calc(100vw - 24px);
  background: linear-gradient(145deg, #d81616, #a90d0d);
  color: #fff;
  font-weight: bold;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 10px 24px rgba(133, 11, 11, 0.24);
  border: 1px solid rgba(255,255,255,0.22);
  z-index: 1004;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
#countdownTimer.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.wiki-lightbox-overlay, .lightbox-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(92, 255, 165, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(115, 188, 255, 0.16), transparent 30%),
    rgba(8, 15, 13, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}
.wiki-lightbox-content, .lightbox-content {
  position: relative;
  width: 95%;
  max-width: 500px;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(237, 250, 242, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 26px;
  box-shadow: 0 32px 70px rgba(4, 20, 12, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  padding: 1.65rem;
  animation: lightboxFloatIn 0.35s ease-out;
}
.lightbox-content > h2,
.lightbox-content > p {
  position: relative;
  z-index: 1;
  padding-right: 2.25rem;
  word-break: break-word;
}
.wiki-lightbox-content {
  height: 80vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.lightbox-content::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 25px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1) 42%, rgba(194, 255, 221, 0.22));
  pointer-events: none;
}
.wiki-lightbox-close, .lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: #1f3d2e;
  font-weight: 700;
  z-index: 10;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 10px 24px rgba(18, 61, 41, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.wiki-lightbox-close:hover, .lightbox-close:hover {
  transform: translateY(-1px) scale(1.04);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 14px 30px rgba(18, 61, 41, 0.16);
}
#wikiIframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  flex-grow: 1;
}
/* --- SELECTION SECTION --- */
.selection-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease;
}
@media (min-width: 768px) {
  .selection-section {
    flex-direction: row;
  }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes glassDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -8px, 0) scale(1.03); }
}
@keyframes borderPulse {
  0%, 100% { opacity: 0.65; filter: hue-rotate(0deg); }
  50% { opacity: 1; filter: hue-rotate(24deg); }
}
@keyframes lightboxFloatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.selection-box {
  flex: 1 1 auto;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.selection-box h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.1rem;
  font-weight: 700;
}
.candidate-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-auto-rows: auto;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.candidate-item {
  width: 100%;
  min-width: 100px;
  background: #fff;
  border-radius: 8px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  border-left: none;
  border-right: none;
  margin: 0;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.candidate-item::before,
.candidate-item::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #00c851, #00c840);
  z-index: 0;
}
.candidate-item::before {
  left: 0;
  border-radius: 8px 0 0 8px;
}
.candidate-item::after {
  right: 0;
  border-radius: 0 8px 8px 0;
}
.candidate-item > * {
  position: relative;
  z-index: 1;
}
.candidate-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}
.candidate-item.selected {
  background: linear-gradient(145deg, #00c851, #008000);
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: scale(1.03);
  border-color: transparent;
}
.candidate-item.selected::before,
.candidate-item.selected::after {
  display: none;
}
.candidate-item.selected .candidate-name,
.candidate-item.selected .candidate-details,
.candidate-item.selected .like-container,
.candidate-item.selected .like-count {
  color: #fff !important;
}
.candidate-item.selected .candidate-photo {
  border: 2px solid #fff;
}
.candidate-item.selected .like-btn {
  color: #ffdddd !important;
}
.candidate-item.selected .like-container {
  background: rgba(255,255,255,0.1);
}
.candidate-photo {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  border-radius: 50%;
  margin-bottom: 0.4rem;
  object-fit: cover;
  border: 2px solid #ccc;
  transition: border 0.2s;
}
.candidate-name {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: #333;
  word-break: break-word;
}
.candidate-details {
  font-size: 0.7rem;
  color: #777;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.candidate-role-count {
  font-size: 0.68rem;
  color: #4f6b57;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.candidate-vote-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 0.3rem 0.6rem;
  margin-top: auto;
  color: #555;
  font-weight: 600;
}
.like-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 0.3rem 0.6rem;
  margin-top: auto;
  transition: background 0.2s;
}
.like-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-weight: bold;
  color: #cc0000;
  font-size: 1.1rem;
  transition: transform 0.2s;
  padding: 2px;
  position: relative;
  z-index: 1;
}
.like-btn:hover {
  transform: scale(1.2);
}
.like-count {
  color: #555;
  font-weight: 600;
}
/* --- Heart Blast Animation --- */
.heart-particle {
  position: fixed;
  left: 0;
  top: 0;
  color: #ff4757;
  font-size: 1.5rem;
  pointer-events: none;
  user-select: none;
  z-index: 99999;
  opacity: 0;
  animation: heartBlastAnimation 1.2s ease-out forwards;
}
@keyframes heartBlastAnimation {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0), var(--ty, -80px)) scale(1.2);
  }
}
/* --- VOTE SECTION --- */
.vote-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.42);
  background: linear-gradient(145deg, rgba(255,255,255,0.66), rgba(237, 252, 242, 0.4));
  box-shadow: 0 24px 50px rgba(28, 62, 44, 0.12), inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.4rem 1.15rem 1.5rem;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.vote-subtitle {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}
.vote-section::before,
.vote-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.vote-section::before {
  width: 280px;
  height: 280px;
  top: -130px;
  right: -80px;
  background: radial-gradient(circle, rgba(72, 233, 141, 0.2), transparent 68%);
  animation: glassDrift 9s ease-in-out infinite;
}
.vote-section::after {
  width: 240px;
  height: 240px;
  bottom: -150px;
  left: -80px;
  background: radial-gradient(circle, rgba(93, 162, 255, 0.12), transparent 70%);
  animation: glassDrift 11s ease-in-out infinite reverse;
}
@media (min-width: 992px) {
  .vote-section {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.vote-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.95rem;
  background: rgba(255, 255, 255, 0.26);
  padding: 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 14px 38px rgba(20, 57, 40, 0.08);
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.vote-form label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: -0.2rem;
  color: #466454;
  font-weight: 700;
}
.vote-form select,
.vote-form input {
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  flex: 1 1 150px;
  min-width: 120px;
  background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(240, 249, 244, 0.5));
  color: #1c3326;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), 0 10px 24px rgba(18, 58, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.vote-form select::placeholder,
.vote-form input::placeholder {
  color: #678172;
}
.vote-form select:hover,
.vote-form input:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), 0 14px 28px rgba(18, 58, 39, 0.11);
}
.vote-form select:focus,
.vote-form input:focus {
  outline: none;
  border-color: rgba(62, 206, 132, 0.9);
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(233, 255, 242, 0.74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 0 0 3px rgba(78, 223, 145, 0.16), 0 16px 32px rgba(13, 77, 43, 0.12);
}
#voterAge {
  flex-basis: 68px; 
  min-width: 56px;
}
#voterReferral {
  flex: 1 1 100%;
  min-width: 0;
}
.vote-form > div {
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.referral-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 190px;
  min-width: 180px;
}
.referral-inline label {
  margin-right: 0;
  white-space: nowrap;
}
.consent-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.2rem 0.2rem 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #42584b;
}
.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.08rem;
  accent-color: #0d5c2f;
  flex: 0 0 auto;
}
.consent-check span {
  display: inline;
}
.inline-link-btn {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #0a6d96;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.inline-link-btn:hover {
  color: #084f6d;
}
.field-invalid {
  border-color: #c73939 !important;
  box-shadow: 0 0 0 3px rgba(199, 57, 57, 0.12) !important;
}
@media (min-width: 1280px) {
  .vote-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
  }
  .vote-subtitle {
    grid-column: 1 / -1;
    margin-bottom: 0.35rem;
  }
  .vote-form {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.9fr 0.88fr 0.88fr 0.86fr 0.58fr 1.45fr;
    gap: 0.9rem;
    max-width: none;
    align-items: center;
  }
  .vote-form select,
  .vote-form input,
  .referral-inline {
    min-width: 0;
    width: 100%;
  }
  .vote-form > div {
    padding: 0.68rem 0.8rem;
  }
  .referral-inline {
    gap: 0.45rem;
  }
  .referral-inline label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
  #voterAge {
    min-width: 0;
    max-width: 92px;
  }
  .vote-button {
    grid-column: 2;
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    margin-top: 0;
    align-self: center;
  }
  .vote-action {
    grid-column: 2;
    align-self: center;
  }
}
/* VOTE BUTTON */
.vote-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 6;
}
.vote-button {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  font-size: 1rem;
  font-weight: 700;
  color: #10351f;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  margin-top: 0.5rem;
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 18px 40px rgba(12, 54, 32, 0.16), inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1;
}
.vote-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(90,255,172,0.55), rgba(89,179,255,0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.95;
  animation: borderPulse 4s linear infinite;
  pointer-events: none;
}
@media (min-width: 992px) {
  .vote-button {
    margin-top: 0;
  }
}
.vote-button:disabled {
  cursor: not-allowed;
  color: rgba(16, 53, 31, 0.55);
  box-shadow: 0 12px 26px rgba(12, 54, 32, 0.08), inset 0 1px 0 rgba(255,255,255,0.55);
  pointer-events: none;
}
.vote-button .fill-overlay {
  position: absolute;
  left: 0; 
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, rgba(108,255,170,0.82), rgba(0,138,63,0.92));
  transition: width 0.45s ease;
  z-index: 1;
}
.vote-button .vote-text {
  position: relative;
  z-index: 2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vote-tooltip {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 50%;
  transform: translateX(50%) translateY(-4px);
  min-width: 220px;
  max-width: 280px;
  padding: 0.72rem 0.88rem;
  border-radius: 16px;
  background: rgba(17, 34, 25, 0.9);
  color: #f4fff7;
  font-size: 0.76rem;
  line-height: 1.35;
  box-shadow: 0 18px 34px rgba(7, 22, 14, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  text-align: center;
}
.vote-tooltip.visible {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}
.notice-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 14, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10040;
}
.notice-modal-overlay.active {
  display: flex;
}
.notice-modal {
  width: min(920px, 100%);
  max-height: min(88vh, 960px);
  padding: 1.35rem 1.3rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.44);
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240, 249, 244, 0.8));
  box-shadow: 0 30px 70px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  display: flex;
  flex-direction: column;
}
.notice-modal-close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  background: rgba(255,255,255,0.76);
  color: #183826;
  font-size: 1.2rem;
  cursor: pointer;
}
.notice-modal-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7d72;
  margin-bottom: 0.45rem;
}
.notice-modal-title {
  font-size: 1.12rem;
  color: #173725;
  margin-bottom: 0.45rem;
}
.notice-modal-message {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #355342;
  margin-bottom: 1rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.notice-doc-pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.notice-modal-btn {
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(221, 255, 230, 0.78));
  color: #173825;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(17, 64, 38, 0.08);
}
.notice-modal-btn.secondary {
  background: #f5f7f6;
  color: #4d6155;
  border-color: rgba(25, 53, 37, 0.1);
  box-shadow: none;
}
.referral-prompt-modal {
  width: min(480px, 100%);
}
.referral-prompt-input {
  width: 100%;
  border: 1px solid #dbe5de;
  border-radius: 16px;
  padding: 0.88rem 0.95rem;
  font-size: 0.92rem;
  background: #fbfcfc;
  color: #1c3326;
  margin-bottom: 0.9rem;
}
.referral-prompt-input:focus {
  outline: none;
  border-color: rgba(62, 206, 132, 0.8);
  box-shadow: 0 0 0 3px rgba(78, 223, 145, 0.12);
}
.referral-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.vote-button:not(:disabled):hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 46px rgba(12, 54, 32, 0.2), inset 0 1px 0 rgba(255,255,255,0.78);
}
.vote-button.bounce {
  animation: bounce 0.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.legend {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
  width: 100%;
}
/* --- RESULTS SECTION --- */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.5rem;
}
@media (min-width: 992px) {
  .results-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.chart,
.voted-combos,
.extra-chart-container {
  flex: 1 1 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  position: relative;
  min-width: 0;
}
@media (min-width: 992px) {
  .chart {
    flex-basis: 48%;
  }
  .voted-combos {
    flex-basis: 48%;
  }
  .extra-chart-container {
    flex-basis: 100%;
  }
}
.chart h2,
.voted-combos h2,
.extra-chart-container h3 {
  text-align: center;
  color: #333;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.loyalist-meta {
  margin: -0.45rem 0 1rem;
  text-align: right;
  font-size: 0.74rem;
  color: #6b7d72;
}
#chartBars {
  max-height: 400px;
  overflow-y: auto;
}
.chart-bar {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bar-label {
  flex-basis: 150px;
  flex-grow: 1;
  font-size: 0.75rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-container {
  flex-basis: 150px;
  flex-grow: 2;
  background: #f0f0f0;
  height: 14px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  transition: width 0.5s;
  background: linear-gradient(to right, #00c851, #008000);
}
.vote-count-label {
  font-size: 0.7rem;
  color: #666;
  margin-left: 5px;
  font-weight: normal;
}
/* COMBO GRID */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.combo-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.combo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.share-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: #008000;
  font-size: 0.88rem;
  transition: transform 0.2s, color 0.2s;
  padding: 0;
  line-height: 1;
  margin-left: -0.2rem;
  margin-right: -0.3rem;
  flex: 0 0 auto;
}
.share-btn:hover {
  transform: scale(1.15);
  color: #0b6b39;
}
.combo-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.combo-img {
  width: clamp(45px, 12vw, 55px);
  height: clamp(45px, 12vw, 55px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
}
.combo-title {
  font-weight: bold;
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 0.5rem;
  word-break: break-word;
  flex-grow: 1;
}
.combo-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.92rem;
  margin-top: auto;
  font-size: 0.77rem;
  color: #555;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.vote-heart, .comment-icon, .share-count {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}
.vote-heart {
  color: #cc0000;
}
.comment-icon {
  color: #008000;
}
.share-count {
  color: #2a6fb1;
  margin-left: -0.28rem;
}
/* MAP SECTION */
.map-heading {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}
#nigeriaMap {
  width: 100%;
  height: 350px;
  max-height: 60vh;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  background: #e9e9e9;
}
@media (min-width: 768px) {
  #nigeriaMap {
    height: 500px;
  }
}
/* LOYALIST SECTION */
.loyalist-heading {}
#loyalistCombosContainer {
  max-height: 760px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.45rem;
  scrollbar-gutter: stable;
}
.loyalist-combo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  overflow: hidden;
}
.loyalist-combo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}
.loyalist-combo-wrap h4 {
  font-size: 0.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.8rem;
}
.loyalist-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 0.4rem;
}
/* For the row containing images on the left */
.loyalist-images {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}
.loyalist-square-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ccc;
}
.loyalist-medal {
  font-size: 1.15rem;
  line-height: 1;
}
.loyalist-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}
.loyalist-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.loyalist-details li {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 0.2rem;
}
.loyalist-details li strong {
  color: #008000;
  font-weight: bold;
}
/* Right column influencer text */
.loyalist-info {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.loyalist-info strong {
  color: #111;
}
.loyalist-info em {
  color: #666;
  font-style: italic;
}
/* Outer card styling (you can keep your existing .loyalist-combo-wrap style if you like) */
.loyalist-combo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Title for the combo: e.g., "Bola Tinubu & Kashim Shettima" */
.loyalist-combo-title {
  font-size: 1rem; /* Adjust to your preference */
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #333;
}

/* Flex container to hold images on left and influencer data on right */
.loyalist-flex {
  display: flex;
  gap: 1rem;
  align-items: flex-start; /* Top-align the columns */
}

/* Left column: vertical stack of the two images plus optional note */
.loyalist-images-col {
  display: flex;
  flex-direction: column; /* stack images top to bottom */
  align-items: center;    /* center horizontally if desired */
  gap: 0.5rem;
  min-width: 100px;       /* ensure it doesn't get too squashed */
}

/* The two candidate images for the combo */
.loyalist-square-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ccc;
}

/* Optional text about these images */
.images-note {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  line-height: 1.3;
}

/* Right column: list of influencer rows */
.loyalist-influencers-col {
  flex: 1; /* take remaining space */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.loyalist-row {
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(245, 250, 247, 0.9));
  border: 1px solid rgba(25, 53, 37, 0.06);
  padding: 0.65rem 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 53, 35, 0.05);
}
.loyalist-total-link {
  align-self: flex-end;
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7d72;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.loyalist-more-note {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6f7f75;
  text-align: right;
}
.loyalist-total-link:hover {
  color: #234c34;
}
.loyalist-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 14, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10030;
}
.loyalist-modal-overlay.active {
  display: flex;
}
.loyalist-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.44);
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(240, 249, 244, 0.78));
  box-shadow: 0 30px 70px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.78);
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.95fr);
}
.loyalist-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  color: #183826;
  font-size: 1.35rem;
  cursor: pointer;
}
.loyalist-modal-preview {
  position: relative;
  padding: 1.4rem;
  background:
    radial-gradient(circle at top, rgba(110, 255, 170, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(9, 42, 24, 0.94), rgba(20, 68, 43, 0.92));
  color: #effff4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.loyalist-modal-images {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loyalist-modal-image {
  position: absolute;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 28px 48px rgba(0,0,0,0.28);
}
.loyalist-modal-image.primary {
  width: min(74%, 360px);
  aspect-ratio: 1 / 1.08;
  border-radius: 28px;
  left: 8%;
  z-index: 2;
}
.loyalist-modal-image.secondary {
  width: min(44%, 210px);
  aspect-ratio: 1 / 1.04;
  border-radius: 24px;
  right: 8%;
  bottom: 2%;
  z-index: 3;
}
.loyalist-modal-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.loyalist-modal-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 255, 245, 0.72);
}
.loyalist-modal-preview-copy h3 {
  font-size: 1.24rem;
  line-height: 1.25;
  color: #effff4;
}
.loyalist-modal-preview-copy p {
  font-size: 0.84rem;
  color: rgba(237, 255, 245, 0.8);
}
.loyalist-modal-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.56), rgba(247, 252, 249, 0.88));
}
.loyalist-modal-header {
  padding: 1.3rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(24, 77, 47, 0.1);
}
.loyalist-modal-header h4 {
  font-size: 1rem;
  color: #173725;
  margin-bottom: 0;
}
.loyalist-modal-list {
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding: 1rem 1.2rem 1.2rem;
}
.loyalist-modal-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 0.95rem;
  margin-bottom: 0.7rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 12px 24px rgba(15, 53, 35, 0.06);
}
.loyalist-modal-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}
.loyalist-modal-body {
  min-width: 0;
}
.loyalist-modal-rank {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #19412b;
  background: linear-gradient(145deg, rgba(225, 255, 233, 0.92), rgba(205, 247, 217, 0.72));
}
.loyalist-modal-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1b3325;
}
.loyalist-modal-meta {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.12rem;
}
.loyalist-modal-city {
  font-size: 0.78rem;
  color: #6f8276;
}
.loyalist-modal-time {
  font-size: 0.76rem;
  color: #9aa79f;
}
.loyalist-modal-note {
  margin-top: 0.28rem;
  font-size: 0.84rem;
  line-height: 1.38;
  color: #22372b;
}
.loyalist-modal-note strong {
  color: #1f5134;
}
.loyalist-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.loyalist-modal-supporters {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f5134;
  white-space: nowrap;
}
.loyalist-modal-share {
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(221, 255, 230, 0.78));
  color: #173825;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(17, 64, 38, 0.08);
}
.loyalist-modal-share:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(210, 255, 223, 0.9));
}
@media (max-width: 767px) {
  .loyalist-modal {
    grid-template-columns: 1fr;
  }
  .loyalist-modal-preview {
    padding: 1rem;
  }
  .loyalist-modal-images {
    min-height: 250px;
  }
  .loyalist-modal-image.primary {
    width: min(72%, 300px);
  }
  .loyalist-modal-image.secondary {
    width: min(42%, 160px);
  }
  .loyalist-total-link {
    align-self: flex-start;
  }
  .loyalist-modal-main {
    flex-direction: column;
    gap: 0.6rem;
  }
  .loyalist-modal-actions {
    align-items: flex-start;
  }
}

/* Each influencer row (medal icon + text) */
.loyalist-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Medal icons for 1st, 2nd, 3rd place, etc. */
.loyalist-medal {
  font-size: 1.15rem;
  line-height: 1; 
}

/* The influencer's descriptive text: "X from Y influenced Z..." */
.loyalist-info {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}
.loyalist-info strong {
  color: #111;
}
.loyalist-info em {
  color: #666;
  font-style: italic;
}


/* PIE CHART SECTION */
.extra-chart-container h3 {
  margin-bottom: 1rem;
}
#popularityPie {
  width: 100%;
  height: 460px;
  max-height: 50vh;
}
#popularityPieChartJs {}
/* COMMENT SECTION */
.combo-comment-section {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(98, 255, 174, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(99, 165, 255, 0.14), transparent 30%),
    rgba(10, 16, 15, 0.74);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 10020;
}
.combo-comment-section.active {
  display: flex;
}
.combo-comment-modal {
  width: min(1120px, 100%);
  height: min(760px, calc(100vh - 2.5rem));
  min-height: min(760px, calc(100vh - 2.5rem));
  max-height: calc(100vh - 2.5rem);
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(320px, 0.85fr);
  background: linear-gradient(145deg, rgba(255,255,255,0.86), rgba(239, 248, 242, 0.72));
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.76);
  min-width: 0;
}
.combo-comment-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  color: #163725;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 14px 28px rgba(15, 49, 33, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}
.combo-comment-close:hover {
  transform: scale(1.04);
  background: rgba(255,255,255,0.82);
}
.combo-comment-media {
  position: relative;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(110, 255, 170, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(9, 42, 24, 0.94), rgba(20, 68, 43, 0.92));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}
.combo-comment-images {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.combo-modal-image {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 28px 48px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.24);
}
.combo-modal-image.primary {
  width: min(74%, 420px);
  aspect-ratio: 1 / 1.12;
  border-radius: 28px;
  left: 8%;
  z-index: 2;
}
.combo-modal-image.secondary {
  width: min(44%, 250px);
  aspect-ratio: 1 / 1.08;
  border-radius: 24px;
  right: 8%;
  bottom: 3%;
  z-index: 3;
}
.combo-modal-meta {
  color: #effff4;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.combo-modal-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 255, 245, 0.72);
}
.combo-modal-name,
.combo-comment-title {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}
.combo-modal-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.combo-modal-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.88rem;
}
.combo-comment-panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
}
.combo-comment-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(27, 51, 37, 0.08);
}
.combo-comment-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.combo-comment-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.15rem;
  background: radial-gradient(circle at 30% 30%, #ff64a3, #2d0c32 58%, #050505 100%);
}
.combo-comment-brand-name {
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  color: #15191d;
}
.combo-comment-brand-sub {
  font-size: 0.78rem;
  color: #7b848d;
  margin-top: 0.15rem;
}
.combo-comment-follow {
  border: none;
  background: transparent;
  color: #3155ff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}
.combo-comment-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.25rem 0.9rem;
  border-bottom: 1px solid rgba(27, 51, 37, 0.08);
}
.combo-comment-form input[type="text"],
.combo-comment-form textarea {
  border: 1px solid #e6eaee;
  border-radius: 14px;
  padding: 0.82rem 0.95rem;
  font-size: 0.92rem;
  background: #fbfcfd;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}
.combo-comment-form input[type="text"]:focus,
.combo-comment-form textarea:focus {
  outline: none;
  border-color: #cfd7de;
  box-shadow: 0 0 0 3px rgba(49, 85, 255, 0.08);
}
.combo-comment-btn {
  padding: 0.72rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: #15191d;
  border: 1px solid #15191d;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease;
  align-self: flex-start;
}
.combo-comment-btn:hover {
  background: #2a3036;
}
.combo-comment-btn:active {
  transform: translateY(0px);
}
.combo-comment-list {
  margin-top: 0;
  flex: 1;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding: 0.35rem 1.25rem 1.1rem;
}
.combo-comment-list > p {
  padding: 1rem 0;
  color: #6c7680;
  font-size: 0.9rem;
}
.combo-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(27, 51, 37, 0.06);
}
.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.comment-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.comment-content {
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}
.comment-author {
  font-weight: 700;
  color: #15191d;
  font-size: 0.84rem;
}
.comment-time {
  color: #7b848d;
  font-size: 0.78rem;
}
.comment-text {
  font-size: 0.9rem;
  line-height: 1.38;
  color: #15191d;
  margin-bottom: 0.42rem;
  word-wrap: break-word;
}
.comment-like-btn {
  border: none;
  background: transparent;
  color: #9aa3ab;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0;
}
.comment-actions {
  font-size: 0.82rem;
  color: #6f7780;
  font-weight: 600;
  transition: color 0.2s;
}
.comment-actions:hover {
  color: #15191d;
}
.reply-form {
  background: #f6f8fa;
  margin-top: 0.6rem;
  border-radius: 14px;
  padding: 0.7rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}
.reply-input,
.reply-textarea {
  border: 1px solid #dde3e8;
  border-radius: 12px;
  padding: 0.62rem 0.78rem;
  font-size: 0.84rem;
  background-color: #ffffff;
}
.reply-btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #15191d;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.reply-btn:hover {
  background: #2a3036;
}
.comment-replies {
  margin-top: 0.5rem;
  margin-left: 0.35rem;
  padding-left: 0.95rem;
  border-left: 1px solid rgba(21, 25, 29, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.comment-replies .combo-comment-item {
  padding: 0.75rem 0 0;
  border-bottom: none;
}
.comment-replies .comment-avatar {
  width: 36px;
  height: 36px;
}
.comment-replies .comment-author {
  font-size: 0.82rem;
}
.comment-replies .comment-text {
  font-size: 0.87rem;
  margin-bottom: 0.35rem;
}
/* CONTACT US BUTTON */
#contactUsBtn {
  padding: 0.95rem 1.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #143825;
  background: linear-gradient(145deg, rgba(255,255,255,0.66), rgba(225, 252, 234, 0.42));
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 20px 34px rgba(17, 64, 38, 0.14), inset 0 1px 0 rgba(255,255,255,0.74);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.3s ease, color 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: pulseGlow 3.2s infinite ease-in-out;
}
#contactUsBtn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(82,236,150,0.6), rgba(98,162,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
#contactUsBtn::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 55%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.44), transparent);
  transform: rotate(18deg);
  animation: glassDrift 5.5s ease-in-out infinite;
}
#contactUsBtn:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(213, 255, 228, 0.56));
  box-shadow: 0 24px 40px rgba(17, 64, 38, 0.18), inset 0 1px 0 rgba(255,255,255,0.78);
  transform: translateY(-2px) scale(1.02);
  animation-play-state: paused;
}
#contactUsBtn:active {
  transform: translateY(0px) scale(1);
  box-shadow: 0 2px 5px rgba(0, 86, 179, 0.3);
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 18px 32px rgba(17, 64, 38, 0.12), inset 0 1px 0 rgba(255,255,255,0.72); }
  50% { box-shadow: 0 22px 42px rgba(17, 64, 38, 0.2), inset 0 1px 0 rgba(255,255,255,0.82); }
}
/* Lightbox Form */
.lightbox-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}
.lightbox-form label {
  font-size: 0.72rem;
  color: #496757;
  margin-bottom: -0.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-form input[type="text"],
.lightbox-form input[type="tel"],
.lightbox-form input[type="email"],
.lightbox-form select,
.lightbox-form textarea {
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(241, 251, 245, 0.48));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 10px 24px rgba(18, 58, 39, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lightbox-form input[type="text"]:focus,
.lightbox-form input[type="tel"]:focus,
.lightbox-form input[type="email"]:focus,
.lightbox-form select:focus,
.lightbox-form textarea:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(72, 215, 138, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 3px rgba(72, 215, 138, 0.16), 0 18px 34px rgba(18, 58, 39, 0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(235, 255, 243, 0.7));
}
.lightbox-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #183726;
  cursor: pointer;
  padding-right: 3rem;
  background-image:
    linear-gradient(145deg, rgba(255,255,255,0.76), rgba(241, 251, 245, 0.48)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23183726' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, right 1rem center;
  background-size: auto, 18px;
}
.lightbox-form select option {
  color: #183726;
}
.lightbox-form textarea {
  resize: vertical;
  min-height: 110px;
}
.lightbox-form button[type="submit"] {
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #123623;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(219, 255, 229, 0.56));
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(17, 64, 38, 0.14), inset 0 1px 0 rgba(255,255,255,0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  align-self: center;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.lightbox-form button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(82,236,150,0.6), rgba(98,162,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.lightbox-form button[type="submit"]:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.84), rgba(208, 255, 222, 0.72));
  box-shadow: 0 24px 42px rgba(17, 64, 38, 0.18), inset 0 1px 0 rgba(255,255,255,0.82);
  transform: translateY(-2px);
}
.lightbox-form button[type="submit"]:active {
  transform: translateY(0px);
  box-shadow: 0 12px 22px rgba(17, 64, 38, 0.14);
}
.submit-message {
  display: none;
  text-align: center;
  margin-top: 1rem;
  color: #145330;
  font-weight: 700;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}
.influencer-selected-combo {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(229, 250, 237, 0.48));
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74), 0 12px 28px rgba(18, 58, 39, 0.08);
  color: #19422d;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.influencer-status-card,
.influencer-activation-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,0.82), rgba(235, 252, 241, 0.58));
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 20px 36px rgba(18, 58, 39, 0.1);
  position: relative;
  z-index: 1;
}
.receipt-lightbox-content {
  max-width: 820px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.4rem;
}
.influencer-activation-card {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.influencer-status-card[hidden],
.influencer-activation-card[hidden] {
  display: none !important;
}
.influencer-status-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4d7a61;
  margin-bottom: 0.75rem;
}
.influencer-status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(25, 53, 37, 0.08);
}
.influencer-status-row:last-of-type {
  border-bottom: none;
}
.influencer-status-row span {
  color: #607368;
  font-size: 0.86rem;
}
.influencer-status-row strong {
  color: #163b28;
  font-size: 0.92rem;
  text-align: right;
  line-height: 1.45;
  word-break: break-word;
}
.influencer-status-row.account-number strong {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}
.influencer-status-pill {
  margin-top: 0.95rem;
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  background: rgba(231, 247, 236, 0.9);
  border: 1px solid rgba(87, 174, 121, 0.18);
  color: #1c5034;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: center;
}
.influencer-status-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.influencer-status-actions .notice-modal-btn {
  flex: 1 1 180px;
}
.influencer-share-box {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(249, 252, 250, 0.96);
  border: 1px solid rgba(25, 53, 37, 0.08);
  color: #2a4c3b;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.receipt-poster {
  width: 100%;
  max-width: 760px;
  position: relative;
  color: white;
  padding: 18px 0 20px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(236, 216, 161, 0.18), transparent 24%),
    radial-gradient(circle at 84% 78%, rgba(236, 216, 161, 0.14), transparent 28%),
    linear-gradient(145deg, #041a14 0%, #083426 28%, #0d5b43 68%, #d0b466 120%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 24px 48px rgba(2, 10, 8, 0.38);
}
.receipt-poster::before,
.receipt-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.receipt-poster::before {
  background:
    linear-gradient(120deg, rgba(255,255,255,0.09), transparent 18%),
    linear-gradient(135deg, transparent 55%, rgba(236, 216, 161, 0.16) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 26px);
  mix-blend-mode: screen;
  opacity: 0.9;
}
.receipt-poster::after {
  inset: 12px;
  border: 1px solid rgba(236, 216, 161, 0.15);
  border-radius: 22px;
}
.receipt-top {
  text-align: center;
  position: relative;
  padding: 2px 18px 14px;
  z-index: 1;
}
.receipt-crest {
  width: 64px;
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.22));
}
.receipt-hero-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ecd8a1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,0.12), 0 10px 24px rgba(0,0,0,0.16);
}
.receipt-hero-sub {
  margin-top: 10px;
  font-size: clamp(1rem, 2.4vw, 1.16rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
}
.receipt-hero-mini {
  margin-top: 4px;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f0dfae;
}
.receipt-wrap {
  margin: 8px auto 18px;
  width: min(92%, 650px);
  position: relative;
  filter: drop-shadow(0 22px 38px rgba(0,0,0,0.22));
}
.receipt-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(236, 216, 161, 0.22);
  border-radius: 10px;
  pointer-events: none;
}
.zig,
.zig-bottom {
  height: 14px;
  background:
    linear-gradient(-45deg, transparent 7px, #f8f7f2 0) 0 0/14px 14px,
    linear-gradient(45deg, transparent 7px, #f8f7f2 0) 7px 0/14px 14px;
  position: relative;
  z-index: 2;
}
.receipt-paper {
  background:
    radial-gradient(circle at 84% 20%, rgba(255,255,255,0.96), transparent 26%),
    repeating-linear-gradient(90deg, rgba(12,92,67,0.018) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #fbfaf6 0%, #f4f2ec 100%);
  color: #081610;
  padding: 24px 24px 20px;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(14, 91, 67, 0.08);
  border-right: 1px solid rgba(14, 91, 67, 0.08);
}
.receipt-paper::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(14, 91, 67, 0.18);
  pointer-events: none;
}
.receipt-paper::after {
  content: "CERTIFIED";
  position: absolute;
  right: 34px;
  top: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  font-weight: 800;
  color: rgba(13, 91, 67, 0.12);
  transform: rotate(-90deg);
  transform-origin: top right;
}
.certificate-head {
  text-align: center;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(14, 91, 67, 0.18);
  margin-bottom: 18px;
}
.card-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  line-height: 1.05;
  color: #072118;
  font-weight: 700;
  text-transform: uppercase;
}
.card-subtitle {
  margin: 8px 0 0;
  font-size: clamp(0.92rem, 2.3vw, 1rem);
  color: #161616;
  font-weight: 500;
}
.paid-pill {
  width: 100%;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(90deg, #0a4a37 0%, #134f3d 40%, #1f2d27 74%, #e6c86d 100%);
  color: #ecd8a1;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 20px rgba(8, 22, 16, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.top-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.amount-box {
  text-align: center;
  padding-top: 6px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.amount-value {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #050505;
}
.mid-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  margin: 14px 0 14px;
  background: linear-gradient(90deg, #0b4f3a 0%, #264739 72%, #e2c56e 100%);
  box-shadow: 0 8px 18px rgba(8, 22, 16, 0.08);
  position: relative;
  min-height: 118px;
  text-align: center;
}
.info-box {
  padding: 18px 24px 16px;
  position: relative;
  color: white;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.info-label {
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  color: #f4f4f4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.info-value {
  font-size: clamp(1.18rem, 2.9vw, 1.7rem);
  line-height: 1.08;
  font-weight: 800;
  color: #f4df9a;
  text-align: center;
}
.info-value.one-line {
  white-space: nowrap;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.82fr 1fr;
  gap: 16px;
  align-items: end;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 91, 67, 0.18);
}
.stack {
  min-width: 0;
}
.small-label {
  display: block;
  font-size: clamp(0.84rem, 1.9vw, 0.96rem);
  margin-bottom: 3px;
  color: #0c3d2e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.small-value {
  font-size: clamp(0.86rem, 1.9vw, 0.96rem);
  line-height: 1.16;
  color: #101010;
  margin-bottom: 10px;
}
.divider-line {
  width: 100%;
  height: 0;
  border-top: 1px dashed #b9b9b9;
  margin: 8px 0 12px;
}
.ref-bold {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1;
  color: #0c3d2e;
}
.qr-col {
  text-align: center;
  justify-self: center;
}
.qr-caption {
  font-size: 0.72rem;
  line-height: 1.02;
  margin-bottom: 6px;
  color: #101010;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.receipt-id-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.42rem 0.7rem;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #c4c4c4;
  color: #0b3b2d;
  font-size: 0.86rem;
  font-weight: 800;
}
.qr-box {
  width: 100px;
  height: 100px;
  background: white;
  padding: 6px;
  border: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.influencer-receipt-qr {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
}
.authorized {
  text-align: center;
  border-left: 1px solid rgba(14, 91, 67, 0.18);
  padding-left: 10px;
}
.auth-label {
  font-size: clamp(0.88rem, 1.9vw, 1rem);
  font-weight: 900;
  margin-bottom: 8px;
  color: #111;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: radial-gradient(circle at 35% 30%, #54e042 0%, #2bb91e 72%, #15900d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.6rem;
  font-weight: 900;
  box-shadow: inset 0 -5px 10px rgba(0,0,0,0.12), 0 8px 18px rgba(48,195,35,0.22);
}
.auth-value {
  font-size: clamp(0.98rem, 2.5vw, 1.28rem);
  font-weight: 800;
  line-height: 1.02;
  color: #111;
  text-transform: uppercase;
}
.footer-bar {
  color: white;
  width: min(92%, 650px);
  margin: 0 auto;
  padding: 14px 18px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(4,39,31,0.12) 0%, rgba(3,22,17,0.34) 100%);
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(236, 216, 161, 0.12);
  border-top: none;
  backdrop-filter: blur(2px);
  position: relative;
  z-index: 1;
}
.footer-key {
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  font-weight: 900;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-val {
  font-size: clamp(0.9rem, 2.2vw, 0.98rem);
  line-height: 1.06;
  font-weight: 500;
  color: #f0dfae;
}
.receipt-modal-actions .notice-modal-btn {
  flex: 1 1 190px;
}
/* FOOTER */
.site-footer {
  width: 100%;
  max-width: 1400px;
  margin: 1.75rem auto 0;
  padding: 1.2rem 1.25rem 1rem;
  border-radius: 16px;
  background: #ffffff;
  color: #23362b;
  box-shadow: 0 8px 28px rgba(12, 36, 23, 0.08);
  border: 1px solid rgba(25, 53, 37, 0.08);
}
.footer-main {
  text-align: center;
}
.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #17271f;
  margin-bottom: 0.35rem;
}
.footer-copy {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64756b;
  max-width: 760px;
  margin: 0 auto;
}
.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.security-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7faf8;
  border: 1px solid rgba(25, 53, 37, 0.08);
}
.security-badge img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(25, 53, 37, 0.08);
}
.footer-bottom p {
  font-size: 0.76rem;
  color: #75867c;
}
/* --- UTILITY --- */
#candidateDataTable, #comboDataTable, #userDataTable, #loyalistDataTable {
  display: none;
}
/* --- SCROLLABLE SECTIONS ON MOBILE --- */
@media (max-width: 767px) {
  body {
    padding: 0.45rem;
  }
  html,
  body {
    overflow-x: hidden;
  }
  .header,
  .container,
  .site-footer,
  .selection-section,
  .results-section,
  .vote-section,
  .vote-form,
  .chart,
  .voted-combos,
  .extra-chart-container,
  .combo-grid,
  .candidate-list,
  .loyalist-combo-wrap,
  .loyalist-flex,
  .loyalist-row,
  .combo-comment-modal,
  .combo-comment-panel,
  .lightbox-content,
  .wiki-lightbox-content {
    min-width: 0;
    max-width: 100%;
  }
  #countdownTimer {
    top: 8px;
    left: 50%;
    right: auto;
    max-width: calc(100vw - 20px);
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }
  .container {
    padding: 0.6rem;
    border-radius: 16px;
    width: 100%;
    overflow-x: hidden;
  }
  .header {
    margin-bottom: 0.8rem;
    width: 100%;
    overflow-x: hidden;
  }
  .sub-heading {
    max-width: 100%;
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
  }
  .selection-box,
  .chart,
  .voted-combos,
  .extra-chart-container,
  .site-footer {
    border-radius: 18px;
  }
  .selection-box,
  .chart,
  .voted-combos,
  .extra-chart-container {
    padding: 0.7rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .selection-box h2 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  .candidate-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    align-items: stretch;
    justify-content: stretch;
    overflow-x: hidden;
  }
  .candidate-item {
    width: 100%;
    min-width: 0;
    min-height: 126px;
    padding: 0.35rem 0.25rem 0.4rem;
    border-radius: 10px;
  }
  .candidate-item::before,
  .candidate-item::after {
    width: 3px;
  }
  .candidate-photo {
    width: 50px;
    height: 50px;
    margin-bottom: 0.28rem;
  }
  .candidate-name {
    font-size: 0.67rem;
    line-height: 1.15;
    margin-bottom: 0.12rem;
  }
  .candidate-details {
    font-size: 0.58rem;
    line-height: 1.15;
    margin-bottom: 0.18rem;
  }
  .candidate-role-count {
    font-size: 0.54rem;
    margin-bottom: 0.22rem;
  }
  .like-container,
  .candidate-vote-chip {
    gap: 0.2rem;
    font-size: 0.63rem;
    padding: 0.22rem 0.42rem;
    border-radius: 999px;
  }
  .like-btn {
    font-size: 0.72rem;
  }
  .vote-section {
    padding: 0.85rem 0.7rem 0.95rem;
    border-radius: 18px;
    gap: 0.7rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .vote-subtitle {
    font-size: 0.76rem;
    margin-bottom: 0.25rem;
  }
  .vote-form {
    padding: 0.7rem;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .vote-form select,
  .vote-form input,
  .referral-inline {
    flex: 1 1 100%;
    min-width: 0;
  }
  #voterAge {
    max-width: none;
  }
  .vote-action {
    margin-top: 0.15rem;
  }
  .vote-button {
    width: 96px;
    height: 96px;
    font-size: 0.9rem;
  }
  .vote-tooltip {
    min-width: min(240px, calc(100vw - 32px));
    max-width: min(280px, calc(100vw - 32px));
    right: 50%;
  }
  .legend {
    font-size: 0.66rem;
    line-height: 1.5;
  }
  .chart h2,
  .voted-combos h2,
  .extra-chart-container h3 {
    font-size: 0.94rem;
    margin-bottom: 0.65rem;
  }
  .chart-bar {
    align-items: flex-start;
    gap: 0.35rem;
  }
  .bar-label,
  .bar-container {
    flex-basis: 100%;
  }
  .bar-label {
    white-space: normal;
  }
  .combo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
  }
  .combo-card {
    min-height: 148px;
    padding: 0.58rem;
  }
  .combo-top {
    gap: 0.32rem;
  }
  .combo-title {
    font-size: 0.73rem;
  }
  .combo-stats {
    gap: 0.5rem;
    font-size: 0.66rem;
  }
  #nigeriaMap {
    height: 280px;
  }
  .loyalist-combo-wrap {
    padding: 0.72rem;
    margin-bottom: 0.78rem;
    border-radius: 18px;
  }
  .loyalist-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .loyalist-images-col {
    flex-direction: row;
    min-width: 98px;
    gap: 0.28rem;
    flex-shrink: 0;
  }
  .loyalist-influencers-col {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.38rem;
  }
  .loyalist-combo-title,
  .loyalist-combo-wrap h4 {
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
  }
  .loyalist-square-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .loyalist-row {
    width: 100%;
    padding: 0.52rem 0.6rem;
    border-radius: 14px;
    margin-bottom: 0;
    overflow: hidden;
  }
  .loyalist-info {
    font-size: 0.74rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }
  .loyalist-total-link {
    font-size: 0.68rem;
    margin-top: 0.1rem;
  }
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-trust-points {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .combo-comment-modal {
    grid-template-columns: 1fr;
    height: calc(100vh - 0.75rem);
    min-height: auto;
    max-height: calc(100vh - 0.75rem);
    border-radius: 22px;
  }
  .combo-comment-media {
    min-height: auto;
    padding: 0.85rem 0.9rem 0.75rem;
    gap: 0.8rem;
  }
  .combo-comment-images {
    position: static;
    min-height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
  }
  .combo-modal-image {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
  }
  .combo-modal-image.primary {
    width: min(54%, 165px);
    border-radius: 22px;
  }
  .combo-modal-image.secondary {
    width: min(32%, 96px);
    border-radius: 18px;
  }
  .combo-modal-name,
  .combo-comment-title {
    font-size: 0.98rem;
  }
  .combo-modal-kicker {
    font-size: 0.62rem;
  }
  .combo-modal-stats span {
    font-size: 0.74rem;
    padding: 0.42rem 0.7rem;
  }
  .combo-comment-panel {
    padding: 0;
  }
  .combo-comment-topbar {
    padding: 0.85rem 0.9rem 0.75rem;
    min-width: 0;
  }
  .combo-comment-brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .combo-comment-brand-name {
    font-size: 0.92rem;
  }
  .combo-comment-brand-sub {
    font-size: 0.72rem;
  }
  .combo-comment-form {
    padding: 0.8rem 0.9rem 0.75rem;
    gap: 0.55rem;
  }
  .combo-comment-form input[type="text"],
  .combo-comment-form textarea {
    padding: 0.74rem 0.82rem;
    font-size: 0.86rem;
    border-radius: 12px;
  }
  .combo-comment-btn {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }
  .combo-comment-list {
    padding: 0.15rem 0.9rem 0.85rem;
    overflow-x: hidden;
  }
  .combo-comment-item {
    gap: 0.62rem;
    padding: 0.78rem 0;
  }
  .comment-avatar {
    width: 36px;
    height: 36px;
  }
  .comment-meta {
    gap: 0.3rem;
  }
  .comment-author {
    font-size: 0.8rem;
  }
  .comment-time {
    font-size: 0.72rem;
  }
  .comment-text {
    font-size: 0.83rem;
    line-height: 1.32;
  }
  .comment-replies {
    margin-left: 0.1rem;
    padding-left: 0.68rem;
  }
  .candidate-list,
  #chartBars,
  #loyalistCombosContainer,
  #comboGrid {
    max-height: 38vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0.5rem;
  }
  .candidate-list::-webkit-scrollbar,
  #chartBars::-webkit-scrollbar,
  #loyalistCombosContainer::-webkit-scrollbar,
  #comboGrid::-webkit-scrollbar {
    width: 6px;
  }
  .candidate-list::-webkit-scrollbar-thumb,
  #chartBars::-webkit-scrollbar-thumb,
  #loyalistCombosContainer::-webkit-scrollbar-thumb,
  #comboGrid::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
  }
  .candidate-list::-webkit-scrollbar-track,
  #chartBars::-webkit-scrollbar-track,
  #loyalistCombosContainer::-webkit-scrollbar-track,
  #comboGrid::-webkit-scrollbar-track {
    background-color: #f0f0f0;
  }
  #comboCommentList {
    max-height: none;
  }
  .selection-box .candidate-list {
    max-height: 40vh;
  }
  .lightbox-content,
  .wiki-lightbox-content {
    width: 100%;
    max-width: none;
    border-radius: 18px;
  }
  .lightbox-content {
    padding: 1rem 0.9rem 0.95rem;
  }
  .lightbox-form {
    min-width: 0;
  }
  .lightbox-form label,
  .lightbox-form input,
  .lightbox-form textarea,
  .lightbox-form select {
    min-width: 0;
    max-width: 100%;
  }
  .lightbox-overlay,
  .wiki-lightbox-overlay {
    padding: 0.45rem;
  }
  .wiki-lightbox-content {
    height: calc(100vh - 0.9rem);
    max-height: calc(100vh - 0.9rem);
  }
  .wiki-lightbox-close,
  .lightbox-close {
    top: 0.55rem;
    right: 0.55rem;
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 1rem;
  }
  .influencer-status-row {
    flex-direction: column;
    gap: 0.3rem;
  }
  .influencer-status-row strong {
    text-align: left;
  }
  .influencer-status-actions .notice-modal-btn {
    width: 100%;
    flex-basis: 100%;
  }
  .receipt-top {
    padding: 0 12px 10px;
  }
  .receipt-crest {
    width: 52px;
  }
  .receipt-hero-title {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }
  .receipt-wrap,
  .footer-bar {
    width: 96%;
  }
  .receipt-paper {
    padding: 18px 16px 16px;
  }
  .receipt-paper::before {
    inset: 10px;
  }
  .paid-pill {
    font-size: clamp(1.2rem, 5vw, 2rem);
    padding: 12px 14px;
  }
  .amount-value {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
  .info-value.one-line {
    white-space: normal;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .qr-col,
  .authorized {
    justify-self: start;
    text-align: left;
  }
  .qr-box {
    margin: 0;
  }
  .authorized {
    border-left: none;
    padding-left: 0;
  }
  .check {
    margin-left: 0;
  }
  .loyalist-modal {
    width: 100%;
    max-height: calc(100vh - 0.8rem);
    border-radius: 22px;
  }
  .loyalist-modal-overlay {
    padding: 0.4rem;
  }
  .loyalist-modal-preview {
    padding: 0.8rem 0.9rem;
    gap: 0.7rem;
  }
  .loyalist-modal-images {
    position: static;
    min-height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
  }
  .loyalist-modal-image {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
  }
  .loyalist-modal-image.primary {
    width: min(56%, 168px);
    border-radius: 20px;
  }
  .loyalist-modal-image.secondary {
    width: min(32%, 96px);
    border-radius: 18px;
  }
  .loyalist-modal-preview-copy h3 {
    font-size: 0.98rem;
  }
  .loyalist-modal-preview-copy p,
  .loyalist-modal-kicker {
    font-size: 0.72rem;
  }
  .loyalist-modal-header {
    padding: 0.9rem 0.95rem 0.8rem;
  }
  .loyalist-modal-header h4 {
    font-size: 0.92rem;
  }
  .loyalist-modal-list {
    padding: 0.65rem 0.85rem 0.95rem;
    overflow-x: hidden;
  }
  .loyalist-modal-row {
    padding: 0.72rem 0.78rem;
    gap: 0.7rem;
    border-radius: 16px;
  }
  .loyalist-modal-rank {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .loyalist-modal-name {
    font-size: 0.84rem;
  }
  .loyalist-modal-meta {
    gap: 0.3rem;
  }
  .loyalist-modal-city,
  .loyalist-modal-time {
    font-size: 0.72rem;
  }
  .loyalist-modal-note {
    font-size: 0.77rem;
  }
  .loyalist-modal-supporters {
    font-size: 0.76rem;
  }
  .loyalist-modal-share {
    font-size: 0.74rem;
    padding: 0.48rem 0.75rem;
  }
  .notice-modal {
    width: 100%;
    padding: 1.15rem 1rem 1rem;
    border-radius: 20px;
    max-height: 90vh;
  }
}
/* --- MEDIA QUERIES FOR LARGER SCREENS --- */
@media (min-width: 600px) {
  body {
    padding: 1.5rem;
  }
  .container {
    padding: 1.5rem;
    margin-top: 0;
  }
  .header img {
    max-width: 160px;
  }
  .main-heading {
    font-size: 2rem;
  }
  .sub-heading {
    font-size: 0.95rem;
  }
  .vote-form {
    padding: 1rem 1.35rem;
  }
  .bar-label {
    font-size: 0.7rem;
  }
  .vote-count-label {
    font-size: 0.65rem;
  }
  .combo-title {
    font-size: 0.9rem;
  }
  .loyalist-square-img {
    width: 60px; 
    height: 60px;
  }
  .loyalist-details li {
    font-size: 0.85rem;
  }
  #popularityPie {
    height: 400px;
  }
}
@media (max-width: 1199px) {
  .vote-section {
    align-items: stretch;
  }
  .vote-form {
    max-width: none;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .vote-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.1rem;
  }
  .vote-subtitle {
    grid-column: 1 / -1;
    margin-bottom: 0.15rem;
  }
  .vote-form {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: center;
  }
  .vote-form select,
  .vote-form input,
  .referral-inline {
    min-width: 0;
    width: 100%;
  }
  .referral-inline {
    grid-column: span 2;
  }
  #voterAge {
    max-width: none;
  }
  .vote-action {
    grid-column: 2;
    align-self: center;
    width: auto;
  }
  .vote-button {
    width: 104px;
    height: 104px;
  }
  .results-section {
    gap: 1rem;
  }
  .combo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  body {
    padding: 2rem;
  }
  .container {
    padding: 1rem 2rem 2rem;
  }
  .main-heading {
    font-size: 2.2rem;
  }
  .bar-label {
    width: 250px;
    font-size: 0.65rem;
  }
  .bar-container {
    width: 60%;
  }
  .vote-count-label {
    font-size: 0.6rem;
  }
}
/* 1) For small screens (mobile), keep scrollable with a visible scrollbar */
@media (max-width: 767px) {
  /* The bar chart container */
  #chartBars {
    max-height: 45vh;
    overflow-y: auto;
    padding-bottom: 1rem;
  }
  /* The top combo influencers container */
  #loyalistCombosContainer {
    max-height: 45vh;
    overflow-y: auto;
    padding-bottom: 1rem;
  }

  /* Scrollbar styling to ensure it's visible */
  #chartBars::-webkit-scrollbar,
  #loyalistCombosContainer::-webkit-scrollbar {
    width: 8px; /* Make it slightly wider */
  }
  #chartBars::-webkit-scrollbar-thumb,
  #loyalistCombosContainer::-webkit-scrollbar-thumb {
    background-color: #aaa;  /* Darker thumb color */
    border-radius: 4px;
  }
  #chartBars::-webkit-scrollbar-track,
  #loyalistCombosContainer::-webkit-scrollbar-track {
    background-color: #f0f0f0;
  }
}

/* 2) For larger screens (tablet & desktop), remove the scrolling constraint. */
@media (min-width: 768px) {
  #chartBars {
    max-height: none !important;   /* Override any earlier max-height */
    overflow-y: visible !important;
  }
  #loyalistCombosContainer {
    max-height: 760px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 600px) {
  .selection-section,
  .results-section,
  .vote-section,
  .chart,
  .voted-combos,
  .extra-chart-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .social-proof-toast {
    left: 10px;
    right: 10px;
    bottom: 12px;
    width: auto;
  }
  .loyalist-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .loyalist-images-col {
    width: 98px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.28rem;
  }

  .loyalist-images-col img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
  }

  .loyalist-influencers-col {
    flex-grow: 1;
    min-width: 0;
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .loyalist-influencers-col strong,
  .loyalist-influencers-col em {
    font-size: 0.72rem;
  }

  .loyalist-info {
    font-size: 0.72rem;
  }
  .loyalist-total-link {
    font-size: 0.7rem;
  }
  #popularityPie {
    height: 360px;
    max-height: none;
  }
}
@media (max-width: 480px) {
  .candidate-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .combo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .candidate-item,
  .combo-card {
    min-height: auto;
  }
  .combo-comment-section,
  .loyalist-modal-overlay,
  .lightbox-overlay,
  .wiki-lightbox-overlay,
  .notice-modal-overlay {
    padding: 0.45rem;
  }
  .combo-comment-modal {
    border-radius: 20px;
  }
  .combo-comment-topbar,
  .combo-comment-form,
  .combo-comment-list {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .combo-comment-item {
    gap: 0.65rem;
  }
  .comment-avatar {
    width: 38px;
    height: 38px;
  }
  .comment-like-btn {
    font-size: 1.25rem;
  }
  .security-badge {
    width: 42px;
    height: 42px;
  }
}

.pwa-update-toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 1012;
  width: min(380px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.46);
  background: linear-gradient(145deg, rgba(14, 63, 47, 0.96), rgba(8, 36, 27, 0.94));
  color: #f7faf8;
  box-shadow: 0 18px 34px rgba(6, 24, 18, 0.36);
}
.pwa-update-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}
.pwa-update-copy strong {
  font-size: 0.92rem;
}
.pwa-update-copy span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(247, 250, 248, 0.84);
}
.pwa-update-toast .notice-modal-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pwa-update-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
  }
}
