/* ⚠️ Alpha Test Banner */
.alpha-banner {
    background: var(--depe-red);
    border-bottom: 2px solid var(--depe-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 20px;
    width: 100%;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s ease-out;
}

.alpha-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.alpha-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.alpha-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.alpha-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--depe-black);
    text-align: center;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Remove margin adjustment since banner is now inside container */
.depe-container {
    margin-top: 0;
}

/* 🎯 Tutorial Modal - Responsive */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.tutorial-content {
    background: var(--depe-white);
    border: 3px solid var(--depe-black);
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.tutorial-header {
    background: var(--depe-red);
    color: var(--depe-black);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    border-bottom: 2px solid var(--depe-black);
}

.tutorial-logo {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 12px auto;
}

.tutorial-title {
    font-family: 'Bangers', cursive;
    font-weight: 700;
    font-size: 24px;
    margin: 0;
    color: var(--depe-black);
    letter-spacing: 1px;
}

.tutorial-body {
    padding: 32px 24px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tutorial-step {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.tutorial-step.active {
    display: flex;
}

.tutorial-icon-box {
    width: 80px;
    height: 80px;
    background: var(--depe-light-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid var(--depe-black);
}

.tutorial-step-icon {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
    color: var(--depe-black);
}

.tutorial-step-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--depe-black);
    margin: 0 0 12px 0;
}

.tutorial-step-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--depe-black);
    margin: 0 0 24px 0;
    line-height: 1.5;
    max-width: 300px;
}

.tutorial-step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.tutorial-note {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--depe-red);
    font-weight: 600;
    text-align: center;
    margin: 0;
    padding: 12px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--depe-red);
}

.tutorial-footer {
    padding: 20px;
    text-align: center;
    border-top: 2px solid var(--depe-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-nav-btn {
    background: var(--depe-white);
    color: var(--depe-black);
    border: 2px solid var(--depe-black);
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-nav-btn:hover {
    background: var(--depe-light-green);
    transform: translateY(-1px);
}

.tutorial-nav-btn:active {
    transform: translateY(0);
}

.tutorial-done-btn {
    background: var(--depe-green);
    color: var(--depe-black);
    border: 2px solid var(--depe-black);
    padding: 12px 32px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.tutorial-done-btn:hover {
    background: var(--depe-light-green);
    transform: translateY(-1px);
    box-shadow: 3px 3px 0px var(--depe-black);
}

.tutorial-done-btn:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0px var(--depe-black);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Hide tutorial modal when done */
.tutorial-modal.hidden {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .tutorial-modal {
        padding: 10px;
    }
    
    .tutorial-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .tutorial-title {
        font-size: 20px;
    }
    
    .tutorial-body {
        padding: 20px;
    }
    
    .tutorial-list li {
        font-size: 13px;
    }
}

/* 🐸🎩 DEPE Content Machine - Brand Styles */

/* DEPE Brand Color Variables */
:root {
  --depe-purple: #BB51DB;      /* Primary brand color - main background */
  --depe-green: #51DB8F;       /* Primary accent - hero title, buttons */
  --depe-red: #DB5F51;         /* Secondary accent - banner buttons */
  --depe-light-green: #94DB51; /* Light accent - lore section background */
  --depe-unfolding: #51C6DB;   /* Status color - unfolding milestone */
  --depe-black: #000000;       /* Text and borders */
  --depe-white: #FFFFFF;       /* Card backgrounds */
  --depe-orange: #FF8C42;      /* Milestone status - orange */
  
  /* Scrollbar Colors */
  --scrollbar-track: #C976E2;    /* Purple track */
  --scrollbar-thumb: #51DB8F;    /* Green thumb */
  --scrollbar-thumb-hover: #3bc97a; /* Darker green on hover */
}

/* Hide broken images but keep image frames visible */
img[src=""], img[src="undefined"], img:not([src]) {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

img[src=""].contest-image, img[src="undefined"].contest-image {
    background-color: rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%), 
                      linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%), 
                      linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

img[src=""].creator-avatar, img[src="undefined"].creator-avatar {
    background-color: rgba(0, 0, 0, 0.1);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

img[src=""].preview-image, img[src="undefined"].preview-image {
    background-color: rgba(0, 0, 0, 0.1);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21,15 16,10 5,21"></polyline></svg>');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Show images when they have real src */
img[src]:not([src=""]):not([src="undefined"]) {
    opacity: 1;
    background: none;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--depe-purple);
  color: var(--depe-black);
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* DEPE Container */
.depe-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* ===== SPLASH SCREEN STYLES ===== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--depe-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* DEPE Logo */
.splash-logo {
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(81, 219, 143, 0.2);
  transition: transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 
      -3px -3px 0 var(--depe-black),
      3px -3px 0 var(--depe-black),
      -3px 3px 0 var(--depe-black),
      3px 3px 0 var(--depe-black),
      0 0 20px var(--depe-green);
  }
  100% {
    text-shadow: 
      -3px -3px 0 var(--depe-black),
      3px -3px 0 var(--depe-black),
      -3px 3px 0 var(--depe-black),
      3px 3px 0 var(--depe-black),
      0 0 30px var(--depe-green),
      0 0 40px var(--depe-green);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100vw;
}

/* Page sections */
.page-section {
  width: 100%;
  max-width: 100vw;
  padding: 0;
  margin: 0;
}

/* Page content containers */
.search-page-container,
.leaderboard-page-container,
.contests-container,
.profile-page-container {
  padding: 20px 20px 100px 20px; /* Added bottom padding for navigation */
}

.app-placeholder {
  background-color: var(--depe-white);
  border: 3px solid var(--depe-black);
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 1);
  padding: 20px;
  text-align: center;
  margin: 10px;
}

.app-placeholder h2 {
  font-family: 'Bangers', cursive;
  font-size: 32px;
  color: var(--depe-green);
  text-shadow: 
    -2px -2px 0 var(--depe-black),
    2px -2px 0 var(--depe-black),
    -2px 2px 0 var(--depe-black),
    2px 2px 0 var(--depe-black);
  margin-bottom: 15px;
}

.app-placeholder p {
  font-size: 16px;
  color: var(--depe-black);
  font-weight: 500;
}

/* ===== HOME SCREEN STYLES ===== */
.home-screen {
  background-color: var(--depe-purple);
  padding: 0 0 80px 0; /* top: 0, right: 0, bottom: 80px, left: 0 */
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px 20px;
  background-color: var(--depe-purple);
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.center-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--depe-white);
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.token-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  min-width: 24px;
  min-height: 24px;
  display: block;
  position: relative;
  z-index: 1;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--depe-black);
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}


.stats {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--depe-white);
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid var(--depe-black);
}

.flame-icon {
  font-size: 16px;
}

.stat-number {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 14px;
}

/* Featured Contest Card */
.featured-contest-card {
  background-color: var(--depe-white);
  border: 3px solid var(--depe-black);
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 1);
  margin: 20px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.featured-contest-card:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 0 0 rgba(0, 0, 0, 1);
}

/* Smooth slider transitions */
.featured-contest-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-contest-card.sliding {
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: translateX(15px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Smooth content transitions */
.featured-contest-card .card-header,
.featured-contest-card .meme-image,
.featured-contest-card .contest-info {
  transition: opacity 0.3s ease;
}

.featured-contest-card.sliding .card-header,
.featured-contest-card.sliding .meme-image,
.featured-contest-card.sliding .contest-info {
  opacity: 0.8;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--depe-green);
  border-bottom: 2px solid var(--depe-black);
}

.contest-status {
  font-family: 'Bangers', cursive;
  font-size: 18px;
  color: var(--depe-black);
  text-shadow: 1px 1px 0 var(--depe-white);
}

.countdown-timer {
  font-weight: 600;
  color: var(--depe-white);
  font-size: 14px;
  background-color: var(--depe-red);
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid var(--depe-black);
  min-width: 50px;
  width: auto;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
  min-height: 24px;
  white-space: nowrap;
}

.meme-image {
  padding: 16px;
  position: relative;
}

.submission-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--depe-black);
}

.contest-title-overlay {
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px 16px 16px 16px;
  border-radius: 0 0 8px 8px;
}

.contest-creator-overlay {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.creator-avatar-overlay {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--depe-white);
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.creator-name-overlay {
  font-weight: 600;
  color: var(--depe-white);
  font-size: 14px;
  text-shadow: 1px 1px 0 var(--depe-black);
}

.contest-title-text {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--depe-white);
  text-shadow: 2px 2px 0 var(--depe-black);
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Contest title truncation for featured cards - 50 characters on PC */
.contest-title-text {
  max-width: 50ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
  overflow-wrap: normal;
}

.contest-card-title {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contest-title {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contest-info {
  padding: 5px 16px 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  min-width: 0;
  overflow: visible;
}

.contest-pool {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.pool-token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  min-width: 24px;
  min-height: 24px;
  display: block;
  position: relative;
  z-index: 1;
}

.pool-details {
  display: flex;
  flex-direction: column;
}

.pool-amount {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 14px;
  line-height: 1.2;
}

.pool-value {
  font-weight: 600;
  color: var(--depe-green);
  font-size: 12px;
  line-height: 1.2;
}

.contest-actions {
  display: flex;
  align-items: center;
}

.participate-btn {
  background-color: var(--depe-purple);
  color: var(--depe-white);
  border: none;
  border-right: 3px solid var(--depe-black);
  border-bottom: 3px solid var(--depe-black);
  box-shadow: 2px 2px 0px var(--depe-black);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.participate-btn:hover {
  box-shadow: 1px 1px 0px var(--depe-black);
  transform: translateY(1px);
}

.prize-section {
  padding: 0 16px 16px 16px;
  display: flex;
  justify-content: center;
}

.contest-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.prize-pool {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 12px;
}

.prize-value {
  font-weight: 600;
  color: var(--depe-green);
  font-size: 12px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--depe-white);
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.dot:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.dot.active {
  opacity: 1;
  background-color: var(--depe-green);
  transform: scale(1.2);
}

.dot.active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--depe-green);
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Contest Section */
.contest-section {
  padding: 0 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Bangers', cursive;
  font-size: 18px;
  color: var(--depe-white);
  text-shadow: none;
  text-decoration: none;
  text-transform: none;
  font-weight: normal;
  font-style: normal;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.view-all {
  color: var(--depe-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 8px;
  border: 2px solid var(--depe-white);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.view-all:hover {
  background-color: var(--depe-white);
  color: var(--depe-purple);
}

.contest-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.contest-gallery::-webkit-scrollbar {
  display: none; /* WebKit browsers */
}

.contest-item {
  flex-shrink: 0;
  width: 140px;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  position: relative;
}

.contest-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.contest-item .contest-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px;
}

.contest-header-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.contest-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--depe-black);
  flex: 1;
  line-height: 1.2;
}

.contest-pool-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--depe-green);
  margin: 4px 0;
  line-height: 1.2;
}

.contest-pool-amount {
  font-size: 10px;
  font-weight: 500;
  color: var(--depe-green);
  margin: 2px 0 0 18px;
  line-height: 1.2;
  text-align: left;
}

.contest-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--depe-black);
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Entry Card Upvotes */

.entry-upvotes {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid var(--depe-black);
  backdrop-filter: blur(4px);
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.entry-upvotes:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.upvote-icon {
  width: 12px;
  height: 12px;
  color: var(--depe-red);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.upvote-icon:hover {
  transform: scale(1.2);
}

.upvote-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--depe-black);
  font-family: 'Inter', sans-serif;
}

/* Upvote feedback animation */
.upvote-feedback {
  position: absolute;
  top: -25px;
  right: 0;
  color: var(--depe-green);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  animation: upvoteFloat 1.5s ease-out forwards;
  white-space: nowrap;
  z-index: 10;
}

@keyframes upvotePopup {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Contest Bottom Action Bar */
.contest-bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--depe-white);
  border-top: 3px solid var(--depe-black);
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  z-index: 1000;
}

.contest-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-action-btn.primary {
  background: var(--depe-green);
  color: var(--depe-black);
}

.contest-action-btn.primary:hover {
  background: var(--depe-light-green);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-action-btn.secondary {
  background-color: var(--depe-white);
  color: var(--depe-black);
}

.contest-action-btn.secondary:hover {
  background: var(--depe-purple);
  color: var(--depe-white);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.contest-action-btn:disabled:hover {
  transform: none;
  box-shadow: 2px 2px 0px var(--depe-black);
}

/* Fix mobile button text wrapping */
.contest-action-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .contest-action-btn {
    font-size: 13px;
    padding: 10px 12px;
    min-width: 0;
  }
  
  .contest-action-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .action-btn {
    font-size: 14px;
    padding: 12px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .action-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Handle longer button text on mobile */
  .contest-action-btn .action-text {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* More Info Button Styling */
.more-info-btn {
    background: rgba(255, 255, 255, 0.3);
    color: var(--depe-black);
    border: 1px solid var(--depe-black);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.more-info-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Info Popup Styling - Match existing modal design */
.info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.info-popup.show {
    display: flex;
}

.info-popup .modal-content {
    background-color: var(--depe-purple);
    border: 3px solid var(--depe-black);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--depe-black);
}

.popup-header h3 {
    margin: 0;
    color: var(--depe-black);
    font-size: 20px;
    font-family: 'Bangers', cursive;
    text-shadow: none;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.popup-content {
    padding: 20px;
}

.popup-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--depe-black);
    font-weight: 400;
}

/* Image Viewer Modal */
.image-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.image-viewer-content {
  width: 95%;
  height: 95%;
  max-width: 1200px;
  max-height: 800px;
  background: var(--depe-white);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--depe-black);
  background: var(--depe-green);
}

.image-viewer-title {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  color: var(--depe-black);
  margin: 0;
}

.image-viewer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.image-viewer-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.image-viewer-close svg {
  color: var(--depe-white);
  width: 24px;
  height: 24px;
}

.image-viewer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.image-viewer-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

.image-viewer-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.image-viewer-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.image-viewer-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.image-viewer-btn svg {
  color: var(--depe-white);
  width: 24px;
  height: 24px;
}

.image-viewer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 70%;
  overflow: hidden;
}

.viewer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-info {
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
}

.viewer-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin: 0 0 8px 0;
  transition: opacity 0.2s ease;
}

.viewer-description {
  color: var(--depe-gray);
  font-size: 14px;
  margin: 0 0 12px 0;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.viewer-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.viewer-stat {
  color: var(--depe-black);
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.viewer-heart-icon {
  width: 16px;
  height: 16px;
  color: var(--depe-red);
  fill: var(--depe-red);
  stroke: var(--depe-red);
  stroke-width: 2;
}

.image-viewer-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--depe-black);
  text-align: center;
  background: var(--depe-light-gray);
}

.image-counter {
  color: var(--depe-black);
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s ease;
}

/* Mobile responsive for image viewer */
@media (max-width: 768px) {
  .image-viewer-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .image-viewer-header {
    padding: 16px;
  }
  
  .image-viewer-title {
    font-size: 20px;
  }
  
  .image-viewer-main {
    padding: 16px;
  }
  
  .image-viewer-controls {
    padding: 0 16px;
  }
  
  .image-viewer-btn {
    width: 40px;
    height: 40px;
  }
  
  .image-viewer-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .viewer-title {
    font-size: 18px;
  }
  
  .viewer-stats {
    flex-direction: column;
    gap: 8px;
  }
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--depe-white);
  border-top: 3px solid var(--depe-black);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-item.active {
  background-color: var(--depe-purple);
}

.nav-item.active .nav-icon {
  color: var(--depe-white);
}

.nav-icon {
  font-size: 20px;
  display: block;
}

/* Create Button */
.create-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--depe-red);
  border: 3px solid var(--depe-black);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  transition: all 0.2s ease;
  z-index: 99;
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 1);
}

.create-icon {
  font-size: 20px;
  color: var(--depe-white);
}

/* ===== CONTEST CREATION PAGE STYLES ===== */
.contest-creation-page {
  background-color: var(--depe-purple);
  min-height: 100vh;
  padding: 0 20px 120px 20px; /* Increased bottom padding for bottom action bar */
  position: relative;
}

/* Creation Header */
.creation-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--depe-purple);
  border-bottom: 2px solid var(--depe-black);
  margin: 0 -20px 0 -20px;
  width: calc(100% + 40px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.back-icon {
  width: 20px;
  height: 20px;
  color: var(--depe-white);
}

/* Create Page Bottom Action Bar */
.create-bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--depe-white);
  border-top: 3px solid var(--depe-black);
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  z-index: 1000;
}

.create-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px var(--depe-black);
}

.create-action-btn.primary {
  background: var(--depe-green);
  color: var(--depe-black);
}

.create-action-btn.primary:hover {
  background: var(--depe-light-green);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px var(--depe-black);
}

.create-action-btn:disabled {
  background-color: var(--depe-light-gray);
  color: var(--depe-gray);
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0px var(--depe-black);
}

.create-action-btn:disabled:hover {
  background-color: var(--depe-light-gray);
  transform: none;
  box-shadow: 2px 2px 0px var(--depe-black);
}

.create-action-btn .action-icon {
  width: 16px;
  height: 16px;
}

.create-action-btn .action-text {
  font-weight: 600;
}

.home-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.home-icon {
  width: 20px;
  height: 20px;
  color: var(--depe-white);
}

.creation-title {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  color: var(--depe-black);
  text-shadow: 2px 2px 0 var(--depe-white);
  margin: 0;
  font-display: swap;
}

.submit-btn {
  background-color: var(--depe-green);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Ensure icon is visible during loading */
.submit-btn i {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.1s ease;
}

.submit-btn:hover {
  background-color: var(--depe-light-green);
  transform: translateY(-1px);
}

.submit-icon {
  width: 16px;
  height: 16px;
  color: var(--depe-black);
  flex-shrink: 0;
}

/* SVG icon specific styling */
.submit-btn svg {
  width: 16px;
  height: 16px;
  color: var(--depe-black);
  flex-shrink: 0;
}

/* Loading spinner animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.back-btn svg,
.upload-icon,
.share-btn svg {
  width: 16px;
  height: 16px;
  color: var(--depe-white);
  flex-shrink: 0;
}

.upload-icon {
  width: 24px;
  height: 24px;
}

/* Section Titles - Create Page Only */
.contest-creation-page .section-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin: 0 0 16px 0;
  padding: 0;
  text-align: left;
  text-shadow: none;
}

/* Upload Section */
.upload-section {
  padding: 20px 0;
  position: relative;
}

.upload-area {
  border: 3px dashed var(--depe-white);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.1);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-area:hover {
  border-color: var(--depe-green);
  background-color: rgba(81, 219, 143, 0.1);
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--depe-white);
  margin-bottom: 16px;
}

.upload-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--depe-white);
  margin: 0 0 8px 0;
}

.upload-subtext {
  font-size: 14px;
  color: var(--depe-white);
  opacity: 0.8;
  margin: 0;
}

/* Image Preview */
.image-preview {
  position: relative;
  margin: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--depe-black);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
  max-height: 200px; /* Match upload area height */
}

/* Removed duplicate preview-image rule - using the one in meme-preview section */

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
}

.meme-text-input {
  width: 100%;
  background: none;
  border: none;
  color: var(--depe-white);
  font-size: 20px;
  font-weight: 600;
  text-shadow: 2px 2px 0 var(--depe-black);
  outline: none;
  text-align: center;
}

.meme-text-input::placeholder {
  color: var(--depe-white);
  opacity: 0.7;
}

/* Text Customization */
.text-customization {
  padding: 20px;
  background-color: var(--depe-white);
  margin: 20px;
  border-radius: 12px;
  border: 3px solid var(--depe-black);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.customization-section {
  margin-bottom: 20px;
}

.customization-label {
  display: block;
  font-weight: 600;
  color: var(--depe-black);
  margin-bottom: 8px;
}

.customization-slider {
  width: 100%;
  margin-bottom: 8px;
}

#font-size-value {
  font-weight: 600;
  color: var(--depe-green);
}

.color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--depe-black);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.active {
  border-color: var(--depe-green);
  border-width: 3px;
}

/* Contest Selection */
.contest-selection {
  padding: 20px 0;
}

.selection-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-white);
  text-shadow: 2px 2px 0 var(--depe-black);
  margin: 0 0 16px 0;
}

.contest-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contest-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contest-option:hover {
  background-color: var(--depe-light-green);
}

.contest-option.active {
  background-color: var(--depe-green);
  border-color: var(--depe-black);
}

.option-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--depe-black);
}

.option-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.option-title {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 14px;
}

.option-status {
  font-size: 12px;
  color: var(--depe-red);
  font-weight: 500;
}

.option-check {
  width: 20px;
  height: 20px;
  color: var(--depe-black);
}

/* Contest Details */
.contest-details {
  padding: 0;
}

.input-section {
  margin-bottom: 24px;
}

.input-label {
  display: block;
  font-weight: 600;
  color: var(--depe-white);
  margin-bottom: 8px;
  font-size: 14px;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background-color: var(--depe-white);
  color: var(--depe-black);
  box-sizing: border-box;
}

.text-input:focus {
  outline: none;
  border-color: var(--depe-green);
  box-shadow: 0 0 0 2px rgba(81, 219, 143, 0.2);
}

.text-area {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background-color: var(--depe-white);
  color: var(--depe-black);
  box-sizing: border-box;
  min-height: 120px;
  resize: vertical;
}

.text-area:focus {
  outline: none;
  border-color: var(--depe-green);
  box-shadow: 0 0 0 2px rgba(81, 219, 143, 0.2);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--depe-white);
  opacity: 0.7;
  margin-top: 4px;
}

/* Duration Cards */
.duration-cards {
  display: flex;
  gap: 12px;
  margin: 12px 0 16px 0;
}

.duration-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 2px solid var(--depe-white);
  border-radius: 8px;
  background-color: var(--depe-purple);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.duration-card:hover {
  border-color: var(--depe-green);
  background-color: var(--depe-purple);
}

.duration-label {
  color: var(--depe-white);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.duration-value {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  opacity: 0.8;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  color: var(--depe-white);
  margin-left: 4px;
  vertical-align: middle;
}


/* Selection Modals */
.selection-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--depe-purple);
  border: 3px solid var(--depe-black);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--depe-black);
}

.modal-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin: 0;
  text-shadow: none;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.modal-close i,
.modal-close svg {
  color: var(--depe-white);
  width: 20px;
  height: 20px;
}

.modal-close svg {
  stroke: var(--depe-white);
}

.close-icon {
  width: 20px;
  height: 20px;
  color: var(--depe-white);
}

.modal-body {
  padding: 20px;
}

/* Vote Modal Styles */
.vote-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.vote-modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--depe-purple);
  border: 3px solid var(--depe-black);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.vote-info {
  margin-bottom: 24px;
}



.vote-amount-section {
  margin-bottom: 24px;
}

.vote-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-black);
  margin-bottom: 8px;
}

.vote-input-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--depe-black);
  z-index: 1;
}

.vote-amount-input {
  width: 100%;
  padding: 12px 12px 12px 32px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--depe-black);
  background: var(--depe-white);
}

.vote-amount-input:focus {
  outline: none;
  border-color: var(--depe-green);
}

.vote-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--depe-purple);
  border-radius: 6px;
  font-size: 14px;
}

.preview-label {
  color: var(--depe-white);
  font-weight: 500;
}

.preview-amount {
  color: var(--depe-white);
  font-weight: 700;
}

.selected-meme-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-meme-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--depe-black);
}

.selected-meme-details {
  flex: 1;
}

.selected-meme-author {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--depe-black);
  margin-bottom: 4px;
}

.selected-meme-upvotes {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--depe-black);
  opacity: 0.8;
}

/* Stake Modal Styles */
.stake-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.stake-modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--depe-purple);
  border: 3px solid var(--depe-black);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.stake-info {
  margin-bottom: 24px;
}


.stake-amount-section {
  margin-bottom: 24px;
}

.stake-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-white);
  margin-bottom: 8px;
}

.stake-input-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.stake-amount-input {
  width: 100%;
  padding: 12px 12px 12px 32px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--depe-black);
  background: var(--depe-white);
}

.stake-amount-input:focus {
  outline: none;
  border-color: var(--depe-green);
}

.stake-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--depe-purple);
  border-radius: 6px;
  font-size: 14px;
}

/* Modal Footer Buttons */
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 2px solid var(--depe-black);
  background: var(--depe-purple);
}

.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px var(--depe-black);
}

.modal-btn.primary {
  background: var(--depe-green);
  color: var(--depe-black);
}

.modal-btn.primary:hover {
  background: var(--depe-light-green);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px var(--depe-black);
}

.modal-btn.secondary {
  background: var(--depe-white);
  color: var(--depe-black);
}

.modal-btn.secondary:hover {
  background: var(--depe-purple);
  color: var(--depe-white);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px var(--depe-black);
}

/* Days Options */
.days-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.day-option {
  padding: 16px;
  border: 2px solid var(--depe-white);
  border-radius: 8px;
  background-color: transparent;
  color: var(--depe-white);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-option:hover {
  border-color: var(--depe-green);
  background-color: rgba(255, 255, 255, 0.1);
}

.day-option.active {
  background-color: var(--depe-green);
  color: var(--depe-black);
  border-color: var(--depe-green);
}

/* Time Picker */
.time-picker {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.time-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-label {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.time-input {
  padding: 12px;
  border: 2px solid var(--depe-white);
  border-radius: 8px;
  background-color: var(--depe-black);
  color: var(--depe-white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.time-input:focus {
  outline: none;
  border-color: var(--depe-green);
  background-color: var(--depe-black);
}

.time-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--depe-purple);
}

.preview-text {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.preview-description {
  color: var(--depe-white);
  font-size: 12px;
  opacity: 0.7;
  margin: 8px 0 0 0;
  text-align: center;
  line-height: 1.4;
}

.time-preview {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.preview-text {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.confirm-time-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-right: 3px solid var(--depe-black);
  border-bottom: 3px solid var(--depe-black);
  box-shadow: 2px 2px 0px var(--depe-black);
  border-radius: 8px;
  background-color: var(--depe-green);
  color: var(--depe-black);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-time-btn:hover {
  box-shadow: 1px 1px 0px var(--depe-black);
  transform: translateY(1px);
}

/* Error Message */
.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  background-color: var(--depe-red);
  border: 2px solid var(--depe-red);
  border-radius: 8px;
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
}

.error-icon {
  width: 16px;
  height: 16px;
  color: var(--depe-white);
  flex-shrink: 0;
}

.error-text {
  flex: 1;
}

/* ===== GLOBAL PAGE HEADER SYSTEM ===== */

/* Global page header - EXACT COPY of contest-header */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--depe-purple);
  border-bottom: 2px solid var(--depe-black);
  margin: 0;
}

/* Page logo - EXACT COPY of contest-logo */
.page-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Spacer for pages without share button */
.spacer {
  width: 40px; /* Same width as share button to maintain layout */
}

/* Page content - EXACT COPY of contest-content with top spacing */
.page-content {
  padding: 20px 20px 20px;
}

/* Contest Page Styles - now uses sticky header like other pages */
.contest-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--depe-purple);
  border-bottom: 2px solid var(--depe-black);
  margin: 0;
}

/* Contests Page Header */
.contests-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--depe-purple);
  border-bottom: 2px solid var(--depe-black);
}

/* Search Page Header - now uses global .page-header class */

.back-btn, .share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.back-btn:hover, .share-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.back-icon, .share-icon {
  width: 20px;
  height: 20px;
  color: var(--depe-white);
}

.contest-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contests-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-emoji {
  font-size: 24px;
}

.logo-text {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  color: var(--depe-black);
  text-shadow: 2px 2px 0 var(--depe-white);
  margin: 0;
  font-display: swap;
}

.contest-content {
  padding: 0 20px 20px;
}

.contest-image-section {
  position: relative;
  margin: 20px 0 40px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--depe-black);
}

.contest-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.contest-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
}

.contest-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-text {
  background-color: var(--depe-green);
  color: var(--depe-black);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 1px 1px 0 var(--depe-white);
}

.status-timer {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 16px;
}

/* Contest Page Status and Timer - Plain Bangers */
.contest-status-text {
  background-color: var(--depe-green);
  color: var(--depe-black);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Bangers', cursive;
  font-weight: normal;
  font-size: 14px;
  text-shadow: none;
}

.contest-timer-text {
  color: var(--depe-white);
  font-family: 'Bangers', cursive;
  font-weight: normal;
  font-size: 16px;
  text-shadow: none;
}

.contest-details {
  margin: 20px 0 0 0;
  padding-bottom: 0px; /* Space for fixed bottom action bar */
}

.contest-details .contest-title {
  font-family: 'Bangers', cursive;
  font-size: 28px;
  color: var(--depe-black);
  margin: 0 0 12px 0;
  text-shadow: none;
  /* No truncation - show full title */
  max-width: none;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contest-description {
  color: var(--depe-white);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  opacity: 0.9;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.contest-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--depe-white);
}

.creator-name {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 16px;
}

.contest-stats {
  display: flex;
  justify-content: space-around;
  background-color: var(--depe-purple);
  border: 2px solid var(--depe-white);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0 0 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Bangers', cursive;
  font-size: 24px;
  color: var(--depe-green);
  text-shadow: 1px 1px 0 var(--depe-black);
}

.stat-label {
  display: block;
  color: var(--depe-white);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.8;
}

.contest-timeline {
  background-color: var(--depe-purple);
  border: 2px solid var(--depe-white);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0 0 0;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--depe-white);
  flex-shrink: 0;
}

.timeline-item.active .timeline-dot {
  background-color: var(--depe-green);
  box-shadow: 0 0 0 3px var(--depe-white);
}

.timeline-content {
  flex: 1;
}

.timeline-phase {
  display: block;
  color: var(--depe-white);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-time {
  display: block;
  color: var(--depe-white);
  font-size: 14px;
  opacity: 0.8;
}

.contest-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--depe-white);
  border-radius: 12px;
  background-color: transparent;
  color: var(--depe-white);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn.primary {
  background-color: var(--depe-green);
  color: var(--depe-black);
}

.action-btn:hover {
  background-color: var(--depe-white);
  color: var(--depe-purple);
}

.action-btn.primary:hover {
  background-color: var(--depe-white);
  color: var(--depe-black);
}

.action-icon {
  width: 20px;
  height: 20px;
}

.recent-entries {
  margin: 40px 0 0 0;
  padding-bottom: 100px; /* Extra space for fixed bottom action bar */
}

.entries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Simple Search */
.simple-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.simple-search .search-icon {
  width: 24px;
  height: 24px;
  color: var(--depe-black);
  cursor: pointer;
  transition: color 0.2s ease;
}

.simple-search .search-icon:hover {
  color: var(--depe-green);
}

.simple-search input {
  width: 120px;
  padding: 6px 10px;
  border: 2px solid var(--depe-black);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: var(--depe-white);
  color: var(--depe-black);
}

.simple-search input:focus {
  outline: none;
  border-color: var(--depe-green);
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  color: var(--depe-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-icon:hover {
  color: var(--depe-green);
}

.view-dropdown {
  background: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 0px var(--depe-black);
  position: absolute;
  z-index: 100;
  min-width: 200px;
  width: 100%;
  max-width: 250px;
}

.view-dropdown .dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-black);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.view-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.view-dropdown .dropdown-item:hover {
  background: var(--depe-green);
  color: var(--depe-black);
}

.view-dropdown .dropdown-item.selected {
  background: var(--depe-light-green);
  color: var(--depe-black);
  font-weight: 700;
}

.selection-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--depe-green);
  border: 2px solid var(--depe-black);
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.check-icon {
  color: var(--depe-black);
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.selection-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--depe-white);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--depe-black);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.selection-btn:hover {
  background: var(--depe-green);
  color: var(--depe-black);
  border-color: var(--depe-green);
  transform: scale(1.02);
}

.btn-check-icon {
  width: 14px;
  height: 14px;
  color: var(--depe-black);
  display: none;
}

.finals-description {
  background: var(--depe-green);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
  box-shadow: 2px 2px 0px var(--depe-black);
}

.finals-description p {
  margin: 0 0 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--depe-black);
  line-height: 1.4;
}

.finals-description .pool-stats {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--depe-black);
}

.finals-description .pool-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.finals-description .pool-stat:last-child {
  margin-bottom: 0;
}

.finals-description .pool-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-black);
}

.finals-description .pool-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--depe-black);
}


.empty-state {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
  margin: 40px 0;
}

.empty-message {
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
}

.empty-time {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.entries-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin: 0;
  text-shadow: none;
}

/* Search Page Container - padding handled by page content containers rule above */

/* Search Bar Container */
.search-bar-container {
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.search-input-wrapper .search-icon {
  width: 20px;
  height: 20px;
  color: var(--depe-black);
  margin-right: 12px;
  background: none;
  border: none;
  padding: 0;
}

.search-input-wrapper .search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--depe-black);
  background: transparent;
  width: auto;
  padding: 0;
}

.search-input-wrapper .search-input::placeholder {
  color: #999;
}

.clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.clear-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.clear-icon {
  width: 16px;
  height: 16px;
  color: var(--depe-black);
}

/* Filter Toggle */
.filter-toggle {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-black);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 1);
}

.filter-btn.active {
  background-color: var(--depe-green);
  color: var(--depe-white);
}

.filter-icon {
  width: 16px;
  height: 16px;
}

.search-icon {
  width: 32px;
  height: 32px;
  color: var(--depe-black);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--depe-black);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover {
  color: var(--depe-green);
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.search-input {
  padding: 6px 10px;
  border: 2px solid var(--depe-black);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  background: var(--depe-white);
  color: var(--depe-black);
  outline: none;
  transition: border-color 0.2s ease;
  width: 150px;
}

.search-input:focus {
  border-color: var(--depe-green);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--depe-black);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
}

.entries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.entries-grid .empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.entry-card {
  position: relative;
  background-color: var(--depe-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}


.entry-card:hover {
  border-color: var(--depe-purple);
  transform: translateY(-2px);
}

/* Winner Tag Styles */
.winner-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--depe-green);
  color: var(--depe-black);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
  z-index: 10;
}

.winner-icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.winner-text {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.5px;
}

/* Video icon overlay to indicate video submissions */
.video-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--depe-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 0 rgba(255, 255, 255, 0.3);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.video-icon {
  width: 24px;
  height: 24px;
  stroke-width: 3;
  fill: var(--depe-white);
}

/* Vote Tag Styles */
.vote-tag {
  position: absolute;
  background: linear-gradient(135deg, var(--depe-blue), var(--depe-light-blue));
  color: var(--depe-white);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
  z-index: 10;
}

/* Vote tag positioning */
.vote-tag-default {
  top: 8px;
  left: 8px;
}

.vote-tag-first {
  top: 8px;
  left: 8px;
}

/* Stake Tag Styles */
.stake-tag {
  position: absolute;
  background: linear-gradient(135deg, var(--depe-purple), var(--depe-light-purple));
  color: var(--depe-white);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 1);
  z-index: 11;
}

/* Stake tag positioning */
.stake-tag-first {
  top: 8px;
  left: 8px;
}

.stake-tag-second {
  top: 32px;
  left: 8px;
}

.stake-tag::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  z-index: -1;
}

.stake-amount {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.vote-icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.vote-text {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.5px;
}

/* Ended Contest Info Styles */
.ended-contest-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.ended-contest-info:hover {
  background: rgba(255, 255, 255, 0.2);
}

.final-score {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.entry-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.entry-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-title {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--depe-white);
}

.entry-name {
  color: var(--depe-purple);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.entry-stats.live {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.entry-stat {
  background: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 80px;
}

.entry-stat-label {
  font-size: 12px;
  color: var(--depe-gray);
}

.entry-stat-value {
  font-family: 'Bangers', cursive;
  font-size: 18px;
  color: var(--depe-black);
}

.upvote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--depe-white);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--depe-purple);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.upvote-btn:hover {
  background: var(--depe-purple);
  color: var(--depe-white);
  border: 1px solid var(--depe-purple);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-heart-icon {
  width: 12px;
  height: 12px;
  color: var(--depe-red);
  transition: all 0.2s ease;
}

.btn-text {
  font-weight: 600;
}

/* Voting Modal */
.voting-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.voting-entry-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  margin-bottom: 12px;
}

.voting-entry-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.voting-entry-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voting-entry-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voting-entry-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--depe-black);
}

.voting-entry-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--depe-black);
  font-family: 'Inter', sans-serif;
}

.voting-stats {
  font-size: 11px;
  color: var(--depe-black);
  font-family: 'Inter', sans-serif;
}

.action-buttons {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* Entry actions stack and inline vote count to match app style */
.entry-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.vote-count-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 12px;
  background: var(--depe-white);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--depe-purple);
  cursor: default;
}

.vote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--depe-green);
  color: var(--depe-black);
  border: 2px solid var(--depe-black);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-bottom: 8px;
}

.vote-btn:hover {
  background: var(--depe-light-green);
  transform: translateY(-1px);
}

.voting-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--depe-purple);
  border: 2px solid var(--depe-white);
  border-radius: 8px;
  margin-bottom: 16px;
}

.cost-label {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
}

.cost-amount {
  color: var(--depe-white);
  font-weight: 700;
  font-size: 16px;
}

/* Staking Modal */
.staking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.staking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staking-form label {
  color: var(--depe-black);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.staking-form input {
  padding: 12px;
  border: 2px solid var(--depe-black);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: var(--depe-white);
  color: var(--depe-black);
}

.stake-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: #8B5CF6;
  color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.stake-btn:hover {
  background: #7C3AED;
  transform: translateY(-1px);
}

.staking-rewards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--depe-purple);
  border: 2px solid var(--depe-white);
  border-radius: 8px;
  margin-bottom: 16px;
}

.reward-label {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
}

.reward-amount {
  color: var(--depe-white);
  font-weight: 700;
  font-size: 16px;
}

/* Submission Modal */
.submission-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.submission-modal .modal-content {
  background-color: var(--depe-purple);
  border: 3px solid var(--depe-black);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Contest page upload section - using existing styles from create page */

/* Removed duplicate preview-image rule - using the one in meme-preview section */

.remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--depe-red);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-image:hover {
  background-color: var(--depe-white);
}

.remove-icon {
  width: 16px;
  height: 16px;
  color: var(--depe-white);
}

.remove-image:hover .remove-icon {
  color: var(--depe-red);
}

.submission-form {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--depe-white);
  border-radius: 8px;
  background-color: var(--depe-black);
  color: var(--depe-white);
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--depe-green);
  background-color: var(--depe-black);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.char-count {
  display: block;
  color: var(--depe-white);
  font-size: 12px;
  text-align: right;
  margin-top: 4px;
  opacity: 0.7;
}

.submit-meme-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: none;
  border-right: 3px solid var(--depe-black);
  border-bottom: 3px solid var(--depe-black);
  box-shadow: 2px 2px 0px var(--depe-black);
  border-radius: 8px;
  background-color: var(--depe-green);
  color: var(--depe-black);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-meme-btn:hover {
  box-shadow: 1px 1px 0px var(--depe-black);
  transform: translateY(1px);
}

.submit-meme-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-meme-btn:disabled:hover {
  box-shadow: 2px 2px 0px var(--depe-black);
  transform: none;
}

.submit-meme-btn .loading-spinner {
  animation: spin 1s linear infinite;
}

/* .submit-icon size handled by global rule above */



.total-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: var(--depe-purple);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  margin-top: 8px;
}

.total-label {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 14px;
}

.total-time {
  color: var(--depe-white);
  font-weight: 700;
  font-size: 16px;
}

/* Minimum Entries Section */
.min-entries-container {
  margin-top: 12px;
}

.min-entries-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.min-entries-input {
  width: 80px;
  padding: 12px 16px;
  border: 2px solid var(--depe-white);
  border-radius: 8px;
  background-color: var(--depe-black);
  color: var(--depe-white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.min-entries-input:focus {
  outline: none;
  border-color: var(--depe-green);
  background-color: var(--depe-black);
}

.min-entries-label {
  color: var(--depe-white);
  font-weight: 600;
  font-size: 16px;
}

.min-entries-help-text {
  color: var(--depe-white);
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
}

/* Pool Price Section */
.pool-price-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.pool-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  background-color: var(--depe-white);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.pool-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--depe-black);
  background: transparent;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.pool-input::placeholder {
  color: var(--depe-gray);
}

.pool-currency {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pool-value-display {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background-color: var(--depe-purple);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  color: var(--depe-white);
}

.pool-value-label {
  font-weight: 600;
  font-size: 14px;
}

.pool-value-amount {
  font-weight: 700;
  font-size: 16px;
}

.pool-help-text {
  font-size: 12px;
  color: var(--depe-gray);
  margin: 4px 0 0 0;
  font-style: italic;
}

.stake-limit-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  background-color: var(--depe-red);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--depe-black);
}

.stake-limit-error .error-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.stake-limit-error strong {
  font-weight: 700;
}

/* Custom Success/Error Messages */
.custom-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  animation: messageSlideDown 0.3s ease-out;
  max-width: 90%;
  width: 400px;
}

.message-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--depe-white);
  border: 3px solid var(--depe-black);
  border-radius: 12px;
  box-shadow: 4px 4px 0px var(--depe-black);
  font-family: 'Inter', sans-serif;
}

.message-content.success {
  background: var(--depe-green);
  color: var(--depe-black);
}

.message-content.error {
  background: var(--depe-red);
  color: var(--depe-black);
}

.message-content.warning {
  background: #FFE066;
  color: var(--depe-black);
  border-color: #FFA500;
}

.message-icon {
  flex-shrink: 0;
}

.success-icon {
  width: 24px;
  height: 24px;
  color: var(--depe-black);
  display: none;
}

.error-icon {
  width: 24px;
  height: 24px;
  color: var(--depe-black);
  display: none;
}

.loader-icon {
  width: 24px;
  height: 24px;
  color: var(--depe-black);
  display: none;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.message-content.success .success-icon {
  display: block;
}

.message-content.error .error-icon {
  display: block;
}

.message-content.info .loader-icon {
  display: block;
}

/* SVG-specific rules for Feather Icons */
.message-icon svg.success-icon {
  display: none;
}

.message-icon svg.error-icon {
  display: none;
}

.message-icon svg.loader-icon {
  display: none;
}

.message-content.success .message-icon svg.success-icon {
  display: block;
}

.message-content.error .message-icon svg.error-icon {
  display: block;
}

.message-content.info .message-icon svg.loader-icon {
  display: block;
}

.message-text {
  flex: 1;
}

.message-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.message-details {
  font-weight: 500;
  font-size: 14px;
  opacity: 0.9;
}

@keyframes messageSlideDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== MOBILE-ONLY DESIGN ===== */

/* Mobile-only - same design for all devices */
.logo-image {
  width: 100px;
  height: 100px;
}

.splash-screen {
  min-height: 100vh;
}

/* .main-content padding removed - handled by global rule above */

.app-placeholder {
  padding: 15px;
  margin: 10px;
}

.app-placeholder h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.app-placeholder p {
  font-size: 14px;
}

/* Voters List Modal Styles */
.voters-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.voters-modal .modal-content {
  background: var(--depe-white);
  border: 3px solid var(--depe-black);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.voters-modal .modal-header {
  padding: 20px;
  border-bottom: 2px solid var(--depe-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--depe-green);
}

.voters-modal .modal-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin: 0;
  letter-spacing: 1px;
}

.voters-modal .modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.voters-modal .modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.voters-modal .modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.voters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--depe-purple);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.voter-item:hover {
  border-color: var(--depe-green);
  transform: translateY(-1px);
}

.voter-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--depe-white);
}

.voter-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voter-username {
  font-weight: 600;
  color: var(--depe-white);
  font-size: 14px;
}

.voter-details {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--depe-white);
  opacity: 0.8;
}

.voter-amount {
  font-weight: 600;
  color: var(--depe-green);
}

.voter-time {
  font-size: 11px;
  opacity: 0.7;
}

/* Make vote count clickable */
.entry-upvotes {
  cursor: pointer;
  transition: all 0.2s ease;
}

.entry-upvotes:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.upvote-count {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  user-select: none;
}

.upvote-count:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Vote count button styling (for ended contests) */
.vote-count-btn {
  background: var(--depe-red);
  color: var(--depe-white);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.vote-count-btn:hover {
  background: #d32f2f;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 1);
}

.vote-count-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
}

/* Voters Modal Submission Header */
.submission-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: transparent;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.submission-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.submission-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.submission-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.author-name {
  color: var(--depe-black);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.submission-stats {
  color: var(--depe-green);
  font-weight: 600;
  font-size: 12px;
}

/* Contests Page Styles */
.contests-container {
  padding: 20px 20px 100px 20px; /* Added bottom padding for navigation */
}

.contests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.contest-item-large {
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contest-item-large:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 1);
}

.contest-img-large {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.contest-info-large {
  padding: 12px;
}

.contest-header-large {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.contest-avatar-large {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.contest-details-large {
  flex: 1;
  min-width: 0;
}

.contest-title-large {
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-black);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contest-creator-large {
  font-size: 11px;
  color: var(--depe-gray);
  display: block;
  margin-top: 2px;
}

.contest-stats-large {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-large {
  text-align: center;
  flex: 1;
}

.stat-value-large {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--depe-black);
}

.stat-label-large {
  display: block;
  font-size: 9px;
  color: var(--depe-gray);
  margin-top: 2px;
}

.contest-status-large {
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.contest-status-large.submission {
  background-color: var(--depe-yellow);
  color: var(--depe-black);
}

.contest-status-large.voting {
  background-color: var(--depe-green);
  color: var(--depe-black);
}

.contest-status-large.ended {
  background-color: var(--depe-gray);
  color: var(--depe-white);
}

.search-bar {
  padding: 0 20px;
  margin-top: 10px;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background-color: var(--depe-white);
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.search-bar input:focus {
  outline: none;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--depe-gray);
  font-size: 16px;
}

/* Responsive design for contests page */
@media (max-width: 768px) {
  .contests-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .contests-container {
    padding: 16px 16px 100px 16px; /* Added bottom padding for navigation */
  }
  
  .contest-item-large {
    font-size: 12px;
  }
  
  .contest-title-large {
    font-size: 14px;
  }
}

/* Search Page Styles */

.search-bar-container {
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.search-input-wrapper .search-icon {
  width: 20px;
  height: 20px;
  color: var(--depe-gray);
  margin-right: 12px;
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: transparent;
}

#search-input::placeholder {
  color: var(--depe-gray);
}

.clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.clear-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.clear-icon {
  width: 16px;
  height: 16px;
  color: var(--depe-gray);
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 80px; /* Added bottom padding to prevent cards kissing nav */
}

.search-result-item {
  display: flex;
  flex-direction: column;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.search-result-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.search-result-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
}


.search-result-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--depe-black);
}

.search-result-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-black);
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14ch;
}

.search-result-creator {
  font-size: 12px;
  color: #666;
  font-family: 'Inter', sans-serif;
}


.search-result-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.search-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.search-result-stat-value {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 12px;
}

.search-result-stat-label {
  color: #666;
  font-size: 10px;
}

.search-result-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
  width: 100%;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===== SKELETON LOADERS ===== */

/* Base skeleton animation */
@keyframes skeleton-loading {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Skeleton base styles */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

/* Skeleton variants */
.skeleton-text {
  height: 16px;
  margin: 4px 0;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-text.long {
  width: 100%;
}

.skeleton-title {
  height: 20px;
  width: 70%;
  margin-bottom: 8px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-image {
  width: 100%;
  height: 120px;
  border-radius: 8px;
}

.skeleton-image.large {
  height: 200px;
}

.skeleton-image.medium {
  height: 150px;
}

.skeleton-card {
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.skeleton-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.skeleton-contest-card {
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.skeleton-search-result {
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

/* Skeleton grid layouts */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Fade-in animation for loaded content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Loading state management */
.loaded {
  opacity: 1;
  pointer-events: auto;
}

.search-result-status.submission {
  background-color: #FFE066;
  color: var(--depe-black);
}

.search-result-status.voting {
  background-color: var(--depe-green);
  color: var(--depe-white);
}

.search-result-status.ended {
  background-color: #ccc;
  color: var(--depe-black);
}


/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.no-results-icon {
  width: 48px;
  height: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.no-results-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin-bottom: 8px;
}

.no-results-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
}

.time-remaining {
  font-size: 12px;
  color: var(--depe-gray);
  font-weight: 500;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.no-results-icon {
  width: 48px;
  height: 48px;
  color: var(--depe-gray);
  margin-bottom: 16px;
}

.no-results-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--depe-black);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.no-results-text {
  font-size: 14px;
  color: var(--depe-gray);
  font-family: 'Inter', sans-serif;
}

/* Responsive design for search page */
@media (max-width: 768px) {
  .search-page-container {
    padding: 16px 16px 100px 16px; /* Added bottom padding for navigation */
  }
  
  .search-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .search-result-item {
    padding: 8px;
  }
  
  .search-result-img {
    height: 100px;
  }
  
  .search-result-title {
    font-size: 12px;
  }
  
  
  .search-result-stats {
    font-size: 9px;
  }
  
  .status-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .time-remaining {
    font-size: 10px;
  }
}

/* Leaderboard Page Styles */

.leaderboard-page-container {
  padding: 20px;
  padding-bottom: 120px !important; /* Extra space for fixed bottom navigation */
}

/* Contests Page Styles */

#contests-page .page-content {
  padding-bottom: 120px !important; /* Extra space for fixed bottom navigation */
}

/* Profile Page Styles */
.profile-page-container {
  padding: 20px;
  padding-bottom: 20px;
}

/* Profile Stats Grid (now inside user card) */
.profile-user-card .profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-stat-card {
  background: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 2px 2px 0px var(--depe-black);
}

.profile-stat-value {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin-bottom: 4px;
}

.profile-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--depe-black);
  opacity: 0.7;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-stat-usd {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--depe-black);
  opacity: 0.6;
  font-weight: 500;
}

/* Profile User Section */
.profile-user-section {
  margin-bottom: 30px;
}

.profile-user-card {
  background: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.profile-user-card .profile-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.profile-stats-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 8px 0;
}

.profile-user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--depe-black);
  object-fit: cover;
}

.profile-user-info {
  flex: 1;
}

.profile-username {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  color: var(--depe-black);
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.profile-bio {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.profile-social {
  margin: 8px 0;
}

.profile-social-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #666;
  font-family: 'Inter', sans-serif;
}

.profile-followers,
.profile-following {
  font-weight: 500;
}

.profile-user-bio {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--depe-black);
  margin: 0;
  opacity: 0.8;
}


/* Profile Contest Sections */
.profile-contests-section {
  margin-bottom: 30px;
  padding-bottom: 40px;
}

/* Refund button styling */
.contest-refund-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: 2px solid var(--depe-black);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-refund-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    transform: translateY(-1px);
    box-shadow: 3px 3px 0px var(--depe-black);
}

.contest-refund-btn:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-refund-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-refund-btn:disabled:hover {
    transform: none;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-refund-btn.refunded {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

/* Contest creator reward button styling - match refund button design */
.contest-creator-reward-btn {
    background: linear-gradient(135deg, var(--depe-purple), var(--depe-light-purple));
    color: var(--depe-black);
    border: 2px solid var(--depe-black);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-creator-reward-btn:hover {
    background: linear-gradient(135deg, var(--depe-light-purple), var(--depe-purple));
    transform: translateY(-1px);
    box-shadow: 3px 3px 0px var(--depe-black);
}

.contest-creator-reward-btn:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-creator-reward-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-creator-reward-btn:disabled:hover {
    transform: none;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-creator-reward-btn.claimed {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

/* Contest claim button styling - match refund button design */
.contest-claim-btn {
    background: var(--depe-green);
    color: var(--depe-black);
    border: 2px solid var(--depe-black);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-claim-btn:hover {
    background: var(--depe-light-green);
    transform: translateY(-1px);
    box-shadow: 3px 3px 0px var(--depe-black);
}

.contest-claim-btn:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 2px 2px 0px var(--depe-black);
}

.contest-claim-btn:disabled:hover {
    transform: none;
    box-shadow: 2px 2px 0px var(--depe-black);
}

/* Refund button styling */
.contest-claim-btn.refund-btn {
    background: linear-gradient(135deg, var(--depe-orange), #ff8c42);
    color: var(--depe-white);
    border: 2px solid var(--depe-orange);
}

.contest-claim-btn.refund-btn:hover {
    background: linear-gradient(135deg, #ff8c42, var(--depe-orange));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.contest-claim-btn.refund-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2);
}

.contest-claim-btn.claimed {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.profile-section-title {
  font-family: 'Bangers', cursive;
  font-size: 18px;
  color: var(--depe-black);
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.profile-contests-grid {
  display: grid;
  gap: 12px;
}

/* Dynamic layout classes */
.profile-contests-grid.single-card {
  grid-template-columns: 1fr;
}

.profile-contests-grid.multiple-cards {
  grid-template-columns: repeat(2, 1fr);
}

.profile-contest-card {
  background: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-contest-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 rgba(0, 0, 0, 1);
}

.profile-contest-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.profile-contest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-contest-info {
  padding: 12px;
}

.profile-contest-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--depe-black);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.profile-contest-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.profile-contest-stat {
  text-align: center;
  flex: 1;
}

.profile-contest-stat-value {
  font-family: 'Bangers', cursive;
  font-size: 14px;
  color: var(--depe-black);
  display: block;
  margin-bottom: 2px;
}

.profile-contest-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--depe-black);
  opacity: 0.7;
  font-weight: 600;
}

.profile-contest-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.profile-contest-status.submission {
  background-color: var(--depe-green);
  color: var(--depe-white);
}

.profile-contest-status.voting {
  background-color: var(--depe-purple);
  color: var(--depe-white);
}

.profile-contest-status.ended {
  background-color: var(--depe-red);
  color: var(--depe-white);
}

.profile-contest-result {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}

.profile-contest-result.won {
  background-color: var(--depe-green);
  color: var(--depe-white);
}

.profile-contest-result.lost {
  background-color: var(--depe-red);
  color: var(--depe-white);
}

.profile-contest-result.pending {
  background-color: var(--depe-purple);
  color: var(--depe-white);
}

/* Leaderboard Section */
.leaderboard-section {
  margin-top: 20px;
}

/* Filter Toggle */
.filter-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  padding: 4px;
}

.filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: none;
  border-radius: 8px;
  background-color: var(--depe-purple);
  color: var(--depe-white);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: var(--depe-green);
  color: var(--depe-black);
}

.filter-btn:hover:not(.active) {
  background-color: var(--depe-purple);
  color: var(--depe-white);
}

.filter-icon {
  width: 16px;
  height: 16px;
}

/* Leaderboard Content */
.leaderboard-content {
  position: relative;
}

.leaderboard {
  display: none;
}

.leaderboard.active {
  display: block;
}

.leaderboard-section-header {
  text-align: left;
  margin-bottom: 20px;
}

.leaderboard-section-title {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: var(--depe-black);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

/* Leaderboard List */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 80px;
}

.leaderboard-list.hidden {
  display: none;
}

.leaderboard-list.visible {
  display: flex;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--depe-white);
  border: 2px solid var(--depe-black);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
}

.leaderboard-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

/* Leaderboard Rank */
.leaderboard-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--depe-green);
  border: 2px solid var(--depe-black);
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-number {
  font-family: 'Bangers', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--depe-black);
}

/* Leaderboard Avatar */
.leaderboard-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--depe-black);
  flex-shrink: 0;
}

/* Leaderboard Info */
.leaderboard-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leaderboard-username {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--depe-black);
  margin-top: 8px;
}

/* Leaderboard Stats */
.leaderboard-stats {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.leaderboard-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 0;
}

.leaderboard-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--depe-black);
}

.leaderboard-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--depe-black);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Results Row */
.search-results-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.search-result-item.empty {
  visibility: hidden;
}

/* Responsive Design for Leaderboard Page */
@media (max-width: 768px) {
  .leaderboard-page-container {
    padding: 16px;
    padding-bottom: 120px !important;
  }
  
  #contests-page .page-content {
    padding-bottom: 120px !important;
  }
  
  .leaderboard-title {
    font-size: 20px;
  }
  
  .filter-btn {
    padding: 10px 6px;
    font-size: 11px;
  }
  
  .filter-icon {
    width: 14px;
    height: 14px;
  }
  
  .leaderboard-item {
    padding: 12px;
    gap: 10px;
  }
  
  .leaderboard-avatar {
    width: 40px;
    height: 40px;
  }
  
  .leaderboard-rank {
    width: 28px;
    height: 28px;
  }
  
  .rank-number {
    font-size: 14px;
  }
  
  .leaderboard-username {
    font-size: 10px;
  }
  
  .leaderboard-stats {
    gap: 6px;
  }
  
  .leaderboard-stat-value {
    font-size: 12px;
  }
  
  .leaderboard-stat-label {
    font-size: 9px;
  }
}


/* Contest Progress Modal */
.contest-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.contest-progress-content {
    background: var(--depe-purple);
    border: 3px solid var(--depe-black);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
    position: relative;
}

.progress-icon {
    margin-bottom: 20px;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--depe-black);
    border-top: 4px solid var(--depe-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.check-icon {
    width: 40px;
    height: 40px;
    background: var(--depe-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkBounce 0.5s ease;
}

.error-icon {
    width: 40px;
    height: 40px;
    background: var(--depe-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkBounce 0.5s ease;
}

.check-icon i, .error-icon i {
    color: var(--depe-white);
    width: 24px;
    height: 24px;
}

.progress-title {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: var(--depe-black);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.progress-description {
    color: var(--depe-black);
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.8;
}

.progress-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.progress-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--depe-black);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px var(--depe-black);
    min-width: 120px;
}

.progress-button:hover {
    transform: translateY(-1px);
    box-shadow: 2px 2px 0px var(--depe-black);
}

.progress-button.done-btn {
    background-color: var(--depe-white);
    color: var(--depe-black);
}

.progress-button.done-btn:hover {
    background: var(--depe-purple);
    color: var(--depe-white);
}

.progress-button.view-btn {
    background: var(--depe-green);
    color: var(--depe-black);
}

.progress-button.view-btn:hover {
    background: var(--depe-light-green);
}

.progress-button i {
    width: 16px;
    height: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Meme preview with overlay styles */
.meme-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--depe-black);
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
    background: transparent;
}

.preview-image,
.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background: transparent;
}

/* Ensure contest preview images fill the container properly */
#contest-preview-img,
#contest-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background: transparent;
}

.change-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

.meme-preview:hover .change-image-overlay {
    opacity: 1;
}

.change-image-overlay .change-icon {
    width: 24px;
    height: 24px;
    color: var(--depe-white);
    margin-bottom: 8px;
}

.change-image-overlay .change-text {
    color: var(--depe-white);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-image:hover {
    background: rgba(0, 0, 0, 0.9);
}

.remove-image .remove-icon {
    width: 16px;
    height: 16px;
    color: var(--depe-white);
}

/* Profile Contest Cards - Additional Styles */
.contest-card-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.contest-card-image-container {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.contest-card-image img,
.contest-card-image-container img,
.contest-card-image-container video,
.contest-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contest-card-content {
  padding: 12px;
}

.contest-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--depe-black);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.contest-card-status {
  font-size: 11px;
  color: #666;
  margin: 0 0 8px 0;
  text-transform: capitalize;
}

.contest-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contest-card-pool,
.contest-card-contest,
.contest-card-date,
.contest-card-winnings {
  font-size: 11px;
  color: #888;
}

.contest-card-winnings strong {
  font-weight: bold;
  color: #000;
  font-size: 11px;
}

/* Empty state */
.profile-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  grid-column: 1 / -1; /* Span full width of grid */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--depe-black);
  margin: 0 0 8px 0;
}

.empty-state-text {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* Voting Chart Styles */
.voting-chart-container {
  background-color: var(--depe-white);
  border: 3px solid var(--depe-black);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  width: 100%;
  box-sizing: border-box;
  grid-column: 1 / -1; /* Span all columns in the grid */
}

.voting-chart-header {
  text-align: center;
  margin-bottom: 20px;
}

.voting-chart-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--depe-black);
  margin: 0 0 8px 0;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

.voting-conversion-rate {
  font-size: 14px;
  color: var(--depe-black);
  margin: 0;
  opacity: 0.7;
}

.voting-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.voting-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-label {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 16px;
}

.vote-count {
  font-size: 14px;
  color: var(--depe-black);
  opacity: 0.7;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.percentage {
  font-weight: 600;
  color: var(--depe-black);
  font-size: 14px;
  min-width: 40px;
  text-align: right;
}

.depe-amount {
  font-size: 14px;
  color: var(--depe-black);
  opacity: 0.8;
}

.total-votes {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--depe-black);
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Staking Chart Styles */
.total-votes-header {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--depe-black);
  margin: 8px 0 0 0;
}

.staking-chart {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  grid-column: 1 / -1; /* Span all columns in the grid */
  width: 100%;
  box-sizing: border-box;
}

.staking-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--depe-black);
  margin: 0 0 16px 0;
  text-align: center;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

.line-chart-container {
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  position: relative;
}

.y-axis-labels {
  position: absolute;
  right: 0;
  top: 0;
  height: 300px;
  width: 60px;
  pointer-events: none;
}

.y-label {
  position: absolute;
  right: 0;
  font-size: 12px;
  color: var(--depe-black);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-align: right;
  transform: translateY(-12px);
}

.line-chart {
  width: 100%;
  height: 300px;
  background: var(--depe-white);
}

.chart-label {
  font-size: 12px;
  fill: var(--depe-black);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.chart-label-right {
  font-size: 12px;
  fill: var(--depe-black);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

.legend-item span {
  font-size: 14px;
  color: var(--depe-black);
  font-weight: 500;
}
