html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Hide all scrollbars but allow scrolling */
*::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}

* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.avatarContainer {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    justify-content: center; 
}

.thumbnail {
    display: inline-block;
    text-align: center;
    position: relative;
    padding: 12px 16px;
}
.avarageVote{
    margin-top: 10px;
    margin-bottom:10px;
    font-size: 40px;
    font-weight: bold;
    color: var(--pp-accent);
    padding: 10px;
    min-height: 50px;
}

/* Old button styles removed - replaced with modern versions below */

.navUserName {
    font-size: 18px;
    font-weight: 500;
    color: var(--pp-text);
    padding: 5px 12px;
    margin-right: 8px;
}


.button-50-l {
    appearance: button;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)) !important;
    border: 1.5px solid rgba(0,0,0,0.2) !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    box-sizing: border-box;
    color: var(--pp-text) !important;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin: 0 5px 7px 0;
    overflow: visible;
    padding: 8px 20px;
    text-align: center;
    text-transform: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.button-50-l:focus {
    text-decoration: none;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.2), 0 4px 16px rgba(0,0,0,0.1);
}

.button-50-l:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,1);
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.98)) !important;
    border-color: rgba(99,102,241,0.5) !important;
}

.button-50-l:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.button-50-l:not([disabled]):active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .button-50-l {
        padding: 10px 30px;
    }
}
.badge-soft {
    background-color: rgba(108,117,125,0.2) !important;
    color: var(--pp-text) !important;
    border: 1px solid var(--pp-card-border) !important;
}
/* Old vote styles removed - now using .chip styling below */
.share-tech-mono-regular {
    font-family: "Share Tech Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

ul {
    display: flex; 
    list-style: none; 
    padding: 0;
    margin: 0;
}

    ul li {
        position: relative;
        padding-left: 15px;
        margin-right: 20px;
        font-size: 17px;
        line-height: 1.5;
    }

        ul li:before {
            content: '\0023'; 
            position: absolute;
            left: 0;
            top: 0;
            font-size: 18px; 
            color: rgba(99,102,241,0.4); 
        }

.imageRotationBox {
    width: 300px;
    height: 300px;
    background-size: cover;
}

/* =============================
   Index Page Modern Styling
   ============================= */

/* Welcome Title */
.welcome-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, 
    rgba(99,102,241,1) 0%, 
    rgba(59,130,246,1) 50%, 
    rgba(99,102,241,1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  filter: drop-shadow(0 2px 4px rgba(99,102,241,0.2));
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

/* Index Page Cards */
.index-card.glass-card {
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.98) 0%, 
    rgba(255,255,255,0.95) 100%);
  border: 1px solid var(--pp-card-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 24px rgba(0,0,0,0.08),
    0 0 0 1px rgba(99,102,241,0.1) inset,
    0 2px 8px rgba(99,102,241,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.index-card.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99,102,241,0.05), 
    rgba(59,130,246,0.05),
    transparent);
  animation: shimmerCard 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerCard {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.index-card.glass-card:hover {
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.12),
    0 0 0 1px rgba(99,102,241,0.15) inset,
    0 4px 16px rgba(99,102,241,0.08);
  transform: translateY(-4px);
}

.how-it-works {
  margin-top: 2rem;
}

.how-it-works .section-title {
  background: linear-gradient(135deg, 
    rgba(99,102,241,1) 0%, 
    rgba(59,130,246,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  /* Fallback for browsers that don't support background-clip */
  color: #1f2937;
}

@supports not (-webkit-background-clip: text) {
  .how-it-works .section-title {
    color: #1f2937 !important;
    background: none;
    -webkit-text-fill-color: #1f2937;
  }
}

.how-it-works .section-text,
.how-it-works p {
  color: #4b5563 !important;
  opacity: 0.95 !important;
  text-shadow: none;
}

.how-it-works .feature-list,
.how-it-works .feature-list li {
  color: #4b5563 !important;
}

.how-it-works .feature-list li {
  opacity: 0.95 !important;
  text-shadow: none;
}

/* Modern Form Inputs */
.form-floating {
  position: relative;
}

.modern-input {
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.98) 0%, 
    rgba(248,250,252,0.98) 100%) !important;
  border: 1px solid var(--pp-card-border) !important;
  border-radius: 12px !important;
  color: var(--pp-text) !important;
  padding: 1.625rem 1.25rem 0.625rem 1.25rem !important;
  font-size: 1rem !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  height: calc(3.5rem + 2px);
}

.modern-input:focus {
  background: linear-gradient(180deg, 
    rgba(255,255,255,1) 0%, 
    rgba(255,255,255,0.98) 100%) !important;
  border-color: rgba(99,102,241,0.5) !important;
  box-shadow: 
    0 0 0 3px rgba(99,102,241,0.1),
    0 4px 16px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 0 1px rgba(99,102,241,0.2) !important;
  outline: none !important;
}

.modern-label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 1.25rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out, color 0.15s ease-in-out;
  color: var(--pp-text) !important;
  opacity: 0.65;
  font-weight: 500;
  z-index: 2;
}

.modern-input::placeholder {
  color: transparent;
}

.modern-input:focus ~ .modern-label,
.modern-input:not(:placeholder-shown) ~ .modern-label,
.modern-input.has-value ~ .modern-label {
  opacity: 1;
  transform: scale(0.85) translateY(-0.75rem) translateX(0.25rem);
  color: var(--pp-accent) !important;
  text-shadow: none;
}

.modern-input:not(:placeholder-shown):not(:focus):not(.has-value) ~ .modern-label,
.modern-input.has-value:not(:focus) ~ .modern-label {
  opacity: 0.7;
  transform: scale(0.85) translateY(-0.75rem) translateX(0.25rem);
  color: var(--pp-text) !important;
  text-shadow: none;
}

/* Avatar Pack Title */
.avatar-pack-title {
  color: var(--pp-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Index page icon selector */
.icon-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
   
}

.icon {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    border: 2px solid var(--pp-card-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-sizing: border-box;
    background: linear-gradient(180deg, 
      rgba(255,255,255,0.98) 0%, 
      rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
      0 2px 8px rgba(0,0,0,0.08),
      inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

.icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99,102,241,0.1), 
    rgba(59,130,246,0.1),
    transparent);
  transition: left 0.5s;
}

.icon:hover::before {
  left: 100%;
}

.icon img {
    width: 85px;
    height: 85px;
    transition: transform 0.3s ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    z-index: 1;
    position: relative;
}

.icon:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: rgba(99,102,241,0.5);
    box-shadow: 
      0 8px 24px rgba(99,102,241,0.15),
      0 0 0 1px rgba(99,102,241,0.2),
      inset 0 1px 0 rgba(255,255,255,1);
}

.icon:active {
    transform: translateY(-2px) scale(0.98);
}

.icon.selected {
    border: 2px solid rgba(99,102,241,0.6);
    box-shadow: 
      0 0 0 2px rgba(99,102,241,0.2),
      0 8px 24px rgba(99,102,241,0.2),
      0 4px 12px rgba(0,0,0,0.1),
      inset 0 1px 0 rgba(255,255,255,1);
    transform: scale(1.08);
    background: linear-gradient(180deg, 
      rgba(99,102,241,0.08) 0%, 
      rgba(59,130,246,0.06) 100%);
}

.icon.selected img {
  transform: scale(1.1);
}

.custom-icon {
    font-size: 1.1rem;
    color: var(--pp-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-icon:hover {
    color: var(--pp-accent-2);
    transform: scale(1.15);
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937 !important;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, 
    rgba(99,102,241,1) 0%, 
    rgba(59,130,246,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(99,102,241,0.2));
}

.how-it-works .section-title {
  background: linear-gradient(135deg, 
    rgba(99,102,241,1) 0%, 
    rgba(59,130,246,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-text {
  color: #4b5563 !important;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  color: #4b5563 !important;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  opacity: 0.95;
  transition: all 0.3s ease;
  text-shadow: none;
}

.feature-list li::before {
  content: '#';
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--pp-accent);
  font-weight: 700;
  font-size: 1.3rem;
  filter: drop-shadow(0 1px 2px rgba(99,102,241,0.3));
}

.feature-list li:hover {
  opacity: 1;
  transform: translateX(5px);
  color: var(--pp-accent) !important;
}

.feature-list a {
  color: var(--pp-accent-2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.feature-list a:hover {
  color: var(--pp-accent);
}

.feature-list .bi-github {
  font-size: 1.3rem;
  vertical-align: middle;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.feature-list a:hover .bi-github {
  transform: scale(1.2) rotate(15deg);
}

.tooltip-inner {
    background-color: rgba(99,102,241,0.95) !important;
    color: white !important;
    font-size: 14px;
    font-weight: bold;
}

.tooltip .arrow::before {
    border-top-color: rgba(99,102,241,0.95) !important;
}

/* =============================
   Modern theme + components
   ============================= */
:root {
  --pp-bg-start: #f8f9fa; /* light gray */
  --pp-bg-end: #ffffff;   /* white */
  --pp-card: rgba(255,255,255,0.95);
  --pp-card-border: rgba(0,0,0,0.08);
  --pp-text: #1f2937;     /* gray-800 */
  --pp-accent: #6366f1;   /* indigo-500 - professional blue */
  --pp-accent-2: #3b82f6; /* blue-500 */
  --pp-success: #10b981;
  --pp-danger: #ef4444;
}

body {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background: 
    /* Subtle gradient orbs for depth */
    radial-gradient(1400px 900px at 5% 10%, rgba(99,102,241,0.08), transparent 45%),
    radial-gradient(1300px 800px at 95% 20%, rgba(59,130,246,0.08), transparent 50%),
    radial-gradient(1100px 700px at 50% 90%, rgba(99,102,241,0.06), transparent 55%),
    /* Subtle grid pattern overlay */
    linear-gradient(rgba(99,102,241,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.02) 1px, transparent 1px),
    /* Professional light base gradient */
    linear-gradient(135deg, #f8f9fa 0%, #ffffff 25%, #f1f5f9 50%, #ffffff 75%, #f8f9fa 100%);
  background-size: 
    100% 100%,
    100% 100%,
    100% 100%,
    60px 60px,
    60px 60px,
    100% 400%;
  background-position:
    0% 0%,
    100% 0%,
    50% 100%,
    0 0,
    0 0,
    0% 0%;
  background-attachment: fixed;
  color: var(--pp-text);
  animation: bgShift 20s ease-in-out infinite;
  min-height: 100vh;
}

@keyframes bgShift {
  0%, 100% {
    background-position:
      0% 0%,
      100% 0%,
      50% 100%,
      0 0,
      0 0,
      0% 0%;
  }
  50% {
    background-position:
      10% 15%,
      90% 25%,
      45% 85%,
      30px 30px,
      30px 30px,
      0% 50%;
  }
}

/* Subtle professional overlay effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.01) 0px,
    rgba(0,0,0,0.01) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  overflow: hidden;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99,102,241,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: pulseOrbs 8s ease-in-out infinite;
  overflow: hidden;
}

@keyframes pulseOrbs {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Ensure content is above effects */
.container,
main {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
  flex: 1;
}

@media (max-width: 1400px) {
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Professional Header & Footer */
.navbar.bg-white,
.footer {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.98) 0%, 
    rgba(248,250,252,0.95) 50%, 
    rgba(255,255,255,0.98) 100%) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: none !important;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.08),
    0 0 0 1px rgba(0,0,0,0.04) inset;
  z-index: 100;
  box-sizing: border-box;
}

/* Center navbar and footer content */
.navbar .container,
.footer .container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 1400px) {
  .navbar .container,
  .footer .container {
    max-width: 100%;
  }
}

.navbar.bg-white::before,
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99,102,241,0.4), 
    rgba(59,130,246,0.4),
    rgba(99,102,241,0.4),
    transparent);
  animation: scanLine 3s linear infinite;
}

.footer::before {
  top: auto;
  bottom: 0;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.navbar.bg-white::after,
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(99,102,241,0.03) 0%, 
    rgba(59,130,246,0.03) 50%, 
    rgba(99,102,241,0.03) 100%);
  background-size: 200% 100%;
  animation: shimmerNav 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes shimmerNav {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.border-bottom,
.border-top {
  border: none !important;
  position: relative;
}

.border-bottom::after,
.border-top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99,102,241,0.3), 
    rgba(59,130,246,0.4),
    rgba(99,102,241,0.3),
    transparent);
  box-shadow: 0 1px 2px rgba(99,102,241,0.1);
}

.border-bottom::after {
  bottom: 0;
}

.border-top::after {
  top: 0;
}

/* Futuristic Navbar brand text */
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  background: linear-gradient(135deg, rgba(99,102,241,1) 0%, rgba(59,130,246,1) 50%, rgba(99,102,241,1) 100%);
  background-size: 100% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  filter: drop-shadow(0 2px 4px rgba(99,102,241,0.2));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.navbar-brand:hover {
  filter: drop-shadow(0 2px 6px rgba(99,102,241,0.3));
  transform: scale(1.05);
}

/* Deck layout */
.deck {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin: 20px auto 28px auto;
  max-width: 900px;
  padding: 0 12px;
}

@media (max-width: 576px) {
  .deck {
    gap: 10px;
    margin: 16px auto 24px auto;
  }
  
  .chip,
  .vote.chip {
    width: 64px;
    height: 64px;
    font-size: 1.3rem !important;
  }
}

/* Vote chip */
.chip,
.vote.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--pp-card-border) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)) !important;
  color: var(--pp-text) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-size: 1.5rem !important;
  font-weight: 600;
  text-shadow: none;
  margin: 0;
  overflow: hidden;
}

/* shimmer surface */
.chip::before,
.vote.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.18) 55%, transparent 100%);
  transform: skewX(-12deg);
  transition: left .45s ease;
  pointer-events: none;
}

.chip:hover,
.vote.chip:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,1);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.98)) !important;
  border-color: rgba(99,102,241,0.3) !important;
}

.chip:hover::before,
.vote.chip:hover::before {
  left: 120%;
}

.chip svg,
.vote.chip svg { 
  opacity: .95;
  width: 28px;
  height: 28px;
}

/* Highlighted Fibonacci button */
.voteHighlight,
.chip.voteHighlight {
  background: linear-gradient(180deg, rgba(99,102,241,0.15), rgba(99,102,241,0.1)) !important;
  color: var(--pp-accent) !important;
  border-color: rgba(99,102,241,0.5) !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2), 0 8px 24px rgba(99,102,241,0.15) !important;
  transform: scale(1.08);
}

/* Modern Reveal / Reset buttons */
.button-54,
.button-54-n {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.button-54::before,
.button-54-n::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.button-54:hover::before,
.button-54-n:hover::before {
  left: 100%;
}

/* Reveal Votes Button - Professional Blue theme */
.button-54 {
  background: linear-gradient(135deg, rgba(59,130,246,0.95) 0%, rgba(99,102,241,0.95) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3),
              0 0 20px rgba(59,130,246,0.1) inset,
              0 2px 4px rgba(0,0,0,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.button-54:hover {
  background: linear-gradient(135deg, rgba(59,130,246,1) 0%, rgba(99,102,241,1) 100%);
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(59,130,246,0.4),
              0 0 30px rgba(59,130,246,0.15) inset,
              0 4px 8px rgba(0,0,0,0.15),
              0 0 0 2px rgba(59,130,246,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.button-54:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(59,130,246,0.4),
              0 0 15px rgba(59,130,246,0.2) inset;
}

.button-54 svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.button-54:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* Reset Votes Button - Red theme */
.button-54-n {
  background: linear-gradient(135deg, rgba(239,68,68,0.95) 0%, rgba(220,38,38,0.95) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239,68,68,0.4),
              0 0 20px rgba(239,68,68,0.2) inset,
              0 2px 4px rgba(0,0,0,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.button-54-n:hover {
  background: linear-gradient(135deg, rgba(239,68,68,1) 0%, rgba(220,38,38,1) 100%);
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(239,68,68,0.6),
              0 0 30px rgba(239,68,68,0.4) inset,
              0 4px 8px rgba(0,0,0,0.3),
              0 0 0 2px rgba(239,68,68,0.5);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.button-54-n:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(239,68,68,0.5),
              0 0 15px rgba(239,68,68,0.3) inset;
}

.button-54-n svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.button-54-n:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

@media (min-width: 768px) {
  .button-54,
  .button-54-n {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* Average badge */
.avarageVote {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avarageVote .badge,
#avarageVoteBadge {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)) !important;
  border: 2px solid var(--pp-card-border) !important;
  color: var(--pp-accent) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  font-weight: 700;
}

/* Participants area */
.avatarContainer {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)) !important;
  border: 1px solid var(--pp-card-border) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.avatarContainer.bg-white {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)) !important;
}

.thumbnail img.img-thumbnail {
  border-radius: 14px;
  border: 2px solid var(--pp-card-border) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  object-fit: contain;
}

/* Multiavatar wrapper container - white background to match SVG */
.thumbnail .multiavatar-wrapper {
  border-radius: 14px;
  border: 2px solid var(--pp-card-border) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff !important;
}

.thumbnail .multiavatar-wrapper img.multiavatar-img {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnail .multiavatar-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.thumbnail img.img-thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.thumbnail p {
  color: var(--pp-text);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 8px !important;
  margin-bottom: 0;
}

.thumbnail .badge {
  position: absolute;
  top: -10px;             /* shift outward so it doesn't cover the avatar */
  right: -10px;           /* shift outward so it doesn't cover the avatar */
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)) !important;
  color: var(--pp-accent) !important;
  border: 2px solid rgba(99,102,241,0.5) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 700;
  text-shadow: none;
  /* Professional shadow */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.8) inset,
              0 2px 8px rgba(99,102,241,0.3),
              0 4px 12px rgba(0,0,0,0.15);
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.8) inset,
                0 2px 6px rgba(99,102,241,0.25),
                0 4px 10px rgba(0,0,0,0.12);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.9) inset,
                0 2px 10px rgba(99,102,241,0.4),
                0 6px 16px rgba(0,0,0,0.18);
  }
}

#reaction img { 
  border-radius: 16px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1px solid var(--pp-card-border);
}

/* Futuristic Footer */
.footer {
  position: relative;
  padding: 20px 0 !important;
  margin-top: auto; /* Sticks to bottom with flexbox */
  width: 100%;
}

.footer,
.footer a {
  color: var(--pp-text) !important;
  text-shadow: none;
}

.footer a {
  position: relative;
  transition: all 0.3s ease;
}

.footer a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(59,130,246,0.6), rgba(99,102,241,0.6));
  transition: width 0.3s ease;
  box-shadow: 0 1px 2px rgba(59,130,246,0.3);
}

.footer a:hover {
  color: var(--pp-accent) !important;
}

.footer a:hover::before {
  width: 100%;
}

.footer img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer img:hover {
  filter: drop-shadow(0 4px 8px rgba(99,102,241,0.3));
  transform: scale(1.1) rotate(5deg);
}

.footer .bi {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer .bi:hover {
  filter: drop-shadow(0 2px 4px rgba(99,102,241,0.4));
  transform: scale(1.2);
}

/* Footer row alignment */
.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
}

.footer .row .col {
  flex-shrink: 0;
}

.footer .row .col.col-8 {
  flex: 1 1 auto;
  min-width: 0;
}

.footer .row .col.col-4 {
  flex: 0 0 auto;
  min-width: fit-content;
  display: flex;
  align-items: center;
}

/* Buy Me a Coffee button styling */
.footer-bmc {
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  color: #2b2b2b !important;
  width: 100%;
}

.footer-bmc #bmc-wbtn {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-bmc #bmc-wbtn:hover {
  filter: drop-shadow(0 4px 8px rgba(99,102,241,0.2));
  transform: scale(1.05);
}

/* ============================================
   Mobile Responsive Improvements
   ============================================ */

/* Navbar buttons (left side after logo) */
.navbar-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 20px;
}

/* Navbar mobile improvements */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.3rem !important;
    letter-spacing: 0.5px;
  }
  
  .navbar .container {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .navbar-buttons {
    margin-left: 0;
    gap: 8px;
  }
  
  .navbar-right {
    gap: 8px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
    margin-left: auto;
  }
  
  .navUserName {
    font-size: 0.9rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  
  .button-50-l {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-buttons {
    gap: 6px;
    margin-left: 0;
  }
  
  .navbar-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-left: auto;
  }
  
  .navUserName {
    max-width: 100px;
    font-size: 0.8rem !important;
  }
  
  .button-50-l {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* Footer mobile improvements */
@media (max-width: 768px) {
  .footer {
    padding: 15px 0 !important;
  }
  
  .footer .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .footer .row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .footer .col {
    flex-shrink: 0;
  }
  
  .footer .col.col-8 {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .footer .col.col-4 {
    flex: 0 0 auto;
    min-width: fit-content;
    display: flex;
    align-items: center;
  }
  
  .footer-bmc {
    justify-content: flex-end !important;
    width: 100%;
  }
  
  .footer img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .footer {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 12px 0 !important;
    font-size: 0.75rem;
  }
  
  .footer img {
    width: 30px !important;
    height: 30px !important;
  }
  
  .footer .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .footer-bmc {
    justify-content: flex-end !important;
  }
  
  .footer-bmc #bmc-wbtn {
    transform: scale(0.9);
  }
}

/* Container and main mobile improvements */
@media (max-width: 768px) {
  .container,
  main {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  main {
    padding-bottom: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .container,
  main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  main {
    padding-bottom: 1rem !important;
  }
}

/* Index page mobile improvements */
@media (max-width: 768px) {
  .index-card.glass-card {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
  }
  
  .welcome-title {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.3rem !important;
  }
  
  .section-text {
    font-size: 0.95rem !important;
  }
  
  .modern-input {
    font-size: 1rem !important;
    padding: 16px 12px 8px 12px !important;
  }
  
  .modern-label {
    font-size: 0.9rem !important;
  }
  
  .icon-container {
    gap: 12px !important;
  }
  
  .icon {
    width: 60px !important;
    height: 60px !important;
  }
}

@media (max-width: 576px) {
  .index-card.glass-card {
    padding: 1rem !important;
    margin-bottom: 1rem;
    border-radius: 16px !important;
  }
  
  .welcome-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 1.1rem !important;
  }
  
  .section-text {
    font-size: 0.85rem !important;
  }
  
  .modern-input {
    font-size: 0.9rem !important;
    padding: 14px 10px 6px 10px !important;
  }
  
  .modern-label {
    font-size: 0.8rem !important;
  }
  
  .icon-container {
    gap: 10px !important;
  }
  
  .icon {
    width: 50px !important;
    height: 50px !important;
  }
  
  .feature-list {
    font-size: 0.85rem !important;
    padding-left: 1.2rem !important;
  }
}

/* Room page mobile improvements */
@media (max-width: 768px) {
  .avatarContainer {
    padding: 16px !important;
    gap: 12px !important;
  }
  
  .thumbnail {
    width: 80px !important;
    height: 80px !important;
  }
  
  .thumbnail img.img-thumbnail,
  .thumbnail .multiavatar-wrapper {
    width: 80px !important;
    height: 80px !important;
  }
  
  .button-54,
  .button-54-n {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
  
  #avarageVoteBadge {
    font-size: 1.1rem !important;
    padding: 8px 16px !important;
  }
}

@media (max-width: 576px) {
  .deck {
    gap: 8px !important;
    margin: 12px auto 20px auto !important;
  }
  
  .chip,
  .vote.chip {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.1rem !important;
  }
  
  .avatarContainer {
    padding: 12px !important;
    gap: 10px !important;
  }
  
  .thumbnail {
    width: 70px !important;
    height: 70px !important;
  }
  
  .thumbnail img.img-thumbnail,
  .thumbnail .multiavatar-wrapper {
    width: 70px !important;
    height: 70px !important;
  }
  
  .thumbnail .badge {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
    top: -8px !important;
    right: -8px !important;
  }
  
  .button-54,
  .button-54-n {
    padding: 8px 16px !important;
    font-size: 13px !important;
    gap: 6px;
  }
  
  .button-54 i,
  .button-54-n i {
    font-size: 14px !important;
  }
  
  #avarageVoteBadge {
    font-size: 1rem !important;
    padding: 6px 12px !important;
  }
}

/* Header mobile improvements */
@media (max-width: 768px) {
  .navbar.bg-white {
    margin-bottom: 1rem !important;
  }
  
  header {
    margin-bottom: 0.5rem;
  }
}

/* Ensure body flex layout works on mobile */
@media (max-width: 576px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  html {
    height: 100%;
  }
}

/* Button icon styling */
.button-50-l i {
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}

/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(180deg, rgba(99,102,241,0.95), rgba(59,130,246,0.95));
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4),
              0 4px 12px rgba(0,0,0,0.15);
  font-size: 15px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .copy-toast {
    bottom: 20px;
    padding: 12px 20px;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
  }
}