/* --------------------------------------------------
   IMPORT PIXEL FONT
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* --------------------------------------------------
   ROOT VARIABLES
-------------------------------------------------- */
:root {
  /* 1) Overall page background (dusty navy/blue) */
  --bg-dark: #424A65;

  /* 2) Content boxes or panels (slightly lighter blue) */
  --bg-content: #50597A;

  /* 3) Primary text (light gray) */
  --text-primary: #E2E2E2;

  /* 4) Secondary text or placeholders (softer gray) */
  --text-secondary: #B4B4B4;

  /* 5) Accent color (warm orange) for primary buttons & highlights */
  --accent: #F2A24B;

  /* 6) Accent hover (darker orange for hover states) */
  --accent-hover: #D8873F;

  /* 7) “NEW” label or special highlight (slightly brighter orange) */
  --highlight: #FFB347;

  /* 8) Deep black for text shadows, outlines, or subtle contrasts */
  --black: #000000;

  /* Derived values for list items */
  --list-bg: var(--bg-dark);
  --list-text: var(--text-primary);
  --list-hover-bg: var(--bg-content);
}

/* --------------------------------------------------
   GLOBAL / BODY
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;

  /* PIXEL FONT STYLING */
  font-family: 'Press Start 2P', sans-serif;
  font-size: 12px;          /* Reduced base font size */
  line-height: 1.3;
  letter-spacing: 0.5px;     /* Tighter letter spacing */
  text-transform: uppercase;

  /* PIXEL-ART OUTLINE */
  text-shadow: 
    1px 1px 0 var(--black),
    -1px 1px 0 var(--black),
    1px -1px 0 var(--black),
    -1px -1px 0 var(--black);
}

/* --------------------------------------------------
   LINKS
-------------------------------------------------- */
a {
  color: #FEDCA8;
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.8); /* Strong glowing effect */
}



a:hover {
  color: #E69349; /* Slightly lighter blue on hover */
  text-decoration: underline; /* Add underline on hover */
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
header {
  text-align: center;
  margin: 10px 0;
}

header h1 {
  font-size: 2rem;          /* Reduced from 3rem */
  color: var(--accent);
  margin-bottom: 10px;
  text-shadow: 
    2px 2px 0 var(--black),
    -2px 2px 0 var(--black),
    2px -2px 0 var(--black),
    -2px -2px 0 var(--black);
}

header p {
  font-size: 0.8rem;        /* Smaller description text */
  color: var(--text-primary);
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn-icon-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  white-space: nowrap;
}

.btn-icon-content i {
  font-size: 0.95em;
  line-height: 1;
}

button,
.back-button {
  position: relative;
  overflow: hidden; /* Ensures the shine stays within the button */
  padding: 8px 16px;
  font-size: 0.9rem;
  margin: 5px;
  cursor: pointer;
  border-radius: 0;
  border: none;
  background-color: var(--accent);
  color: var(--black);
  text-shadow: none;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Add the shine effect */
button::before,
.back-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;button,
  .back-button {
    position: relative;
    overflow: hidden; /* Ensures the shine effect stays within the button */
    padding: 8px 16px;
    font-size: 0.9rem;
    margin: 5px;
    cursor: pointer;
    border-radius: 0;
    border: none;
    background-color: var(--accent);
    color: var(--black);
    text-shadow: none;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  }
  
  /* Shine Effect */
  button::before,
  .back-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%; /* Start way off-screen */
    width: 150%; /* Makes sure the shine fully covers the button */
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
  }
  
  /* Shine moves left to right on hover, then right to left when hover ends */
  button:hover::before,
  .back-button:hover::before {
    animation: shine-slide 1s forwards;
  }
  
  /* Define the shine animation */
  @keyframes shine-slide {
    0% {
      left: -150%;
    }
    50% {
      left: 100%;
    }
    100% {
      left: -150%;
    }
  }
  
  /* Hover effects */
  button:hover,
  .back-button:hover {
    background-color: #FF9334;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: transform 0.6s ease-in-out;
}

/* Shine moves left to right on hover */
button:hover::before,
.back-button:hover::before {
  transform: translateX(100%);
}

/* Shine moves back right to left on release */
button:active::before,
.back-button:active::before {
  transition: transform 0.3s ease-out;
  transform: translateX(-100%);
}

/* Hover Effects */
button:hover,
.back-button:hover {
  background-color: #FF9334;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------
   MOBILE RESPONSIVENESS for Home Page Buttons
-------------------------------------------------- */
/* This section restores the styling that made the home page buttons look nice on mobile devices */
@media (max-width: 600px) {
  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5px;
  }
  
  button {
    font-size: 0.8rem;
    margin: 5px 0;
    padding: 6px 10px;
    width: 85%;
    max-width: 250px;
  }
}

/* --------------------------------------------------
   CONTENT SECTIONS
-------------------------------------------------- */
#quickSteps {
  display: block;
}


.content {
  text-align: center;
  margin: 15px auto; /* Centering */
  padding: 20px;
  background-color: var(--bg-content); /* Ensure background is present */
  color: var(--text-primary);
  border-radius: 10px; /* Ensure rounded corners */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Add shadow to match */
  width: 90%;
  max-width: 600px;
  display: block; /* Make sure it's visible */
}



#landingPage {
  display: block; /* Visible by default */
}

.content h2 {
  font-size: 1.6rem !important;
}

.content ul {
  list-style-type: none;
  padding: 0;
}

.content ul li {
  font-size: 0.8rem !important;
  padding: 4px;
}



/* Section Title */
.section-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 0.3rem;
  text-align: center;
}

/* --------------------------------------------------
   INFO LIST
-------------------------------------------------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.icon {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

code {
  background-color: var(--black);
  color: var(--text-primary);
  padding: 0.05rem 0.2rem; /* Slimmer padding */
  border-radius: 2px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1;
  vertical-align: middle; /* Aligns better with surrounding text */
  position: relative;
  top: -2px; /* Moves it up slightly */
}



/* --------------------------------------------------
   ADMIN ITEM
-------------------------------------------------- */
.admin-item span {
  margin-right: 6px;
  font-weight: bold;
  color: var(--accent);
}

/* --------------------------------------------------
   LEADERBOARD
-------------------------------------------------- */
/* ------------------------- */
/* Generic Hover for Lower Ranks (4+) */
/* ------------------------- */
.leaderboard-item:not(:nth-child(-n+3)):hover {
  background-color: rgba(55, 60, 80, 1); /* Hover background only for lower ranks */
  transform: scale(1.02);               /* Subtle zoom effect */
}

/* ------------------------- */
/* Hover for Top 3 Items (Maintain Background) */
/* ------------------------- */
.leaderboard-item:nth-child(-n+3):hover {
  transform: scale(1.02);  /* Only scale, background remains unchanged */
}

/* ------------------------- */
/* User Link Styling */
/* ------------------------- */
.leaderboard-item a {
  color: #E0E0E0; /* Light gray for visibility */
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 10px;
  text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.9);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Link Hover Effect */
.leaderboard-item a:hover {
  color: #FFD700; /* Bright gold on hover */
  text-shadow: 7px 7px 11px rgba(0, 0, 0, 1);
}

/* ------------------------- */
/* Information Details */
/* ------------------------- */
.leaderboard-item span {
  font-size: 0.9rem;
  color: #f4f4f9;
  margin-left: 10px;
}

/* Ensure smooth transitions for all top-three effects */
.leaderboard-item:nth-child(-n+3) {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ------------------------- */
/* Top Three Items Styling */
/* ------------------------- */

/* 1st Place Styling */
.leaderboard-item:nth-child(1) {
  background-color: #ddbc00; /* Gold for 1st place */
  color: #000; /* Black text for contrast */
  font-weight: bold;
}

/* 1st Place Hover - Brighter Gold with Fun Effects */
.leaderboard-item:nth-child(1):hover {
  background-color: #ffd700; /* Brighter gold on hover */
  color: #000;
  transform: scale(1.03) rotate(1deg); /* Slightly larger & rotated */
  box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.5); /* Glowing gold shadow */
}

/* 2nd Place */
.leaderboard-item:nth-child(2) {
  background-color: #c0c0c0; /* Silver */
  color: #000;
  font-weight: bold;
}

/* 2nd Place Hover - Brighter Silver with Fun Effects */
.leaderboard-item:nth-child(2):hover {
  background-color: #dcdcdc; /* Brighter silver on hover */
  color: #000;
  transform: scale(1.03) rotate(-1deg); /* Slight scale & opposite rotation */
  box-shadow: 0 0 20px 5px rgba(220, 220, 220, 0.5); /* Glowing silver shadow */
}

/* 3rd Place */
.leaderboard-item:nth-child(3) {
  background-color: #cd7f32; /* Bronze */
  color: #000;
  font-weight: bold;
}

/* 3rd Place Hover - Brighter Bronze with Fun Effects */
.leaderboard-item:nth-child(3):hover {
  background-color: #e2a56d; /* Brighter bronze on hover */
  color: #000;
  transform: scale(1.03) rotate(1deg); /* Slight scale & rotation */
  box-shadow: 0 0 20px 5px rgba(226, 165, 109, 0.5); /* Glowing bronze shadow */
}


/* (Optional: Add a hover rule for 3rd place if needed) */

/* ------------------------- */
/* Responsive Design Adjustments */
/* ------------------------- */
@media (max-width: 600px) {
  .leaderboard-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .leaderboard-item span {
    margin-left: 0;
    margin-top: 5px;
  }
}


/* --------------------------------------------------
   REFRESH BUTTON
-------------------------------------------------- */
.refresh-button {
  display: inline-block;
  width: 130px;
  height: 35px;
  line-height: 35px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  background-color: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  margin: 0 auto 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.refresh-button:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   GENERAL LIST CONTAINERS
-------------------------------------------------- */
#leaderboardList,
.admin-list,
.giveaway-list,
.shop-list,
.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

/* --------------------------------------------------
   GENERAL ITEM STYLES
-------------------------------------------------- */
.leaderboard-item,
.admin-item,
.shop-item,
.giveaway-item,
.job-item,
.raffle-item {
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--list-bg);
  color: var(--list-text);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  word-break: break-word;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 500px;
  width: 100%;
}

.leaderboard-item:hover,
.admin-item:hover,
.shop-item:hover,
.giveaway-item:hover,
.job-item:hover {
  background-color: var(--list-hover-bg);
  transform: scale(1.02);
}


/* Slimmer Admin/Job Items */
.admin-item,
.job-item {
  padding: 4px 8px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  max-width: 380px;
  width: 85%;
  line-height: 1.2;
  border-radius: 4px;
}

.admin-item,
.job-list {
  gap: 4px;
  padding: 4px;
}

.admin-item p,
.job-item p {
  margin: 2px 0;
}

/* --------------------------------------------------
   ADMIN DASHBOARD
-------------------------------------------------- */
.admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 10px;
}

.admin-panel {
  background: var(--bg-content);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  width: min(700px, 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  margin: 0 auto 12px;
}

.admin-panel h3 {
  margin: 0 0 8px;
  text-align: center;
}

.admin-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.admin-actions input {
  width: min(520px, 70vw);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--bg-content);
  color: var(--text-primary);
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.65rem;
}

.admin-actions select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--bg-content);
  color: var(--text-primary);
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.65rem;
}

.admin-actions .small-input {
  width: min(180px, 35vw);
}

.admin-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--accent);
  color: var(--text-secondary);
  height: 20px;
  min-width: 80px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.6rem;
}

.admin-user-item {
  cursor: pointer;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.admin-user-details {
  min-width: 0;
  text-align: left;
}

.admin-user-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-user-meta,
.admin-user-wallet {
  color: var(--text-secondary);
  font-size: 0.62rem;
  line-height: 1.35;
  word-break: break-all;
}

.admin-user-x-link {
  color: var(--accent);
  text-decoration: none;
}

.admin-user-x-link:hover {
  color: var(--accent-hover);
}

.admin-user-actions {
  flex-shrink: 0;
}

.admin-copy-wallet-button {
  border: none;
  border-radius: 5px;
  background-color: var(--accent);
  color: var(--btn-text);
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.5rem;
  padding: 8px 10px;
  cursor: pointer;
}

.admin-copy-wallet-button:hover {
  background-color: var(--accent-hover);
}

.admin-holder-raw-modal {
  max-width: 780px;
  width: min(90vw, 780px);
}

.admin-holder-raw-text {
  width: 100%;
  min-height: 340px;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-content);
  color: var(--text-primary);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  resize: vertical;
  white-space: pre;
  overflow: auto;
}

/* --------------------------------------------------
   CHAT
-------------------------------------------------- */
.chat-messages {
  width: 100%;
  max-width: 700px;
  height: 280px;
  margin: 0 auto 10px;
  padding: 10px;
  background: var(--bg-content);
  border: 1px solid var(--accent);
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.chat-message {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: start;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 10px;
}

.chat-main {
  min-width: 0;
}

.chat-sidebar {
  background: var(--bg-content);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.6rem;
  color: var(--text-secondary);
  max-height: 320px;
  overflow-y: auto;
}

.chat-sidebar h3 {
  margin: 0 0 6px;
  text-align: left;
}

.chat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.chat-list li {
  padding: 4px 6px;
  margin-bottom: 4px;
  background: var(--bg-dark);
  border: 1px solid rgba(242, 162, 75, 0.35);
  border-radius: 6px;
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    max-height: none;
  }
}

.chat-message:last-child {
  border-bottom: none;
}

.chat-message.admin {
  color: var(--accent);
}

.chat-message.user {
  color: var(--text-primary);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.chat-input-row input {
  width: min(520px, 70vw);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--bg-content);
  color: var(--text-primary);
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.65rem;
}

.shop-instructions li {
  margin-left: 20px; /* Indents the list items */
  padding: 10px 0 !important; /* Adds spacing between items */
}


/* --------------------------------------------------
   GIVEAWAY ITEM
-------------------------------------------------- */
.giveaway-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.giveaway-name {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  margin: 4px 0;
  text-align: center;
  width: 100%;
  margin-top: -10px;
}

.giveaway-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
  text-align: left;
  margin-top: -8px;
}

/*.giveaway-content a {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  color: var(--list-text);
}*/

.giveaway-content p {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  flex: 1;
  text-align: left;
}

.giveaway-info {
  padding-top: 10px;
  
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .giveaway-content {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* --------------------------------------------------
   GLOW EFFECT FOR ENTERED GIVEAWAYS
-------------------------------------------------- */
.giveaway-item.glowing {
  border: 2px solid gold;
  box-shadow: 0 0 15px 5px rgba(255, 223, 0, 0.8);
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 5px 2px rgba(255, 223, 0, 0.5); }
  50% { box-shadow: 0 0 15px 5px rgba(255, 223, 0, 0.8); }
  100% { box-shadow: 0 0 5px 2px rgba(255, 223, 0, 0.5); }
}


/* --------------------------------------------------
   COUNTDOWN / TIMER
-------------------------------------------------- */
.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  width: 90%;
  max-width: 400px;
  margin: 10px auto;
  font-family: 'VT323';
  size:small;
}

.countdown-container h3 {
  font-family: 'Press Start 2P';
  size:small;
  margin: 0;
  color: var(--accent);
  text-align: center;
}

.countdown-timer {
  font-family: Courier, monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: #404A65; /* Extracted from image */
  background: linear-gradient(90deg, var(--text-primary), var(--accent));
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 0 8px rgba(242, 162, 75, 0.8);
  letter-spacing: 1px;
}




.countdown-container h3,
.countdown-timer {
  margin: 0.2rem 0;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(242, 162, 75, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(242, 162, 75, 1);
  }
}

/* ---------------------------------------------
   Daily Tasks Section - Smaller Text for Task List
--------------------------------------------- */
#dailyTasksList,
#dailyTasksList li,
#dailyTasksList li a,
#dailyTasksList li code,
#autoTasksList,
#autoTasksList li,
#autoTasksList li a,
#autoTasksList li code {
  font-size: 0.66rem !important;  /* Adjust the size as desired */
  line-height: 1.6 !important;   /* Optional: adjust line spacing if needed */
}

.daily-quest-progress-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(242, 162, 75, 0.3);
  border-radius: 8px;
  background: rgba(47, 53, 75, 0.4);
}

.daily-quest-progress-row.is-complete {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.08);
}

.daily-quest-progress-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.daily-quest-progress-check {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.daily-quest-progress-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.daily-quest-progress-count {
  min-width: 52px;
  text-align: right;
  font-size: 0.66rem;
  color: var(--accent);
  white-space: nowrap;
}

.other-quest-last-received {
  flex: 0 0 120px;
  max-width: 120px;
  text-align: right;
  font-size: 0.62rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: normal;
}

/* ---------------------------------------------
   Auto Quests Section Layout
--------------------------------------------- */
.auto-quests-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.auto-quests-box {
  background: var(--bg-content);
  border: 2px solid var(--bg-dark);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  min-width: 0;
}

.auto-quests-box h3 {
  margin-top: 0;
}

@media (min-width: 900px) {
  .auto-quests-wrapper {
    flex-direction: row;
    align-items: stretch;
  }

  .auto-quests-box {
    flex: 1 1 0;
  }
}

@media (max-width: 600px) {
  .other-quest-last-received {
    flex-basis: auto;
    max-width: none;
  }
}


/* Enhanced Console Styling */
.console-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Subtle gradient background */
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1c1f2a 100%);
  color: var(--text-primary);
  border: 2px solid var(--bg-content);
  border-radius: 6px;
  padding: 6px;
  margin: 10px auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  line-height: 1.3;
  box-shadow: 0 0 8px rgba(64, 74, 94, 0.6);
  /* Fade in new items if desired */
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column-reverse;
}

.console-box::-webkit-scrollbar {
  width: 6px;
}

.console-box::-webkit-scrollbar-track {
  background: var(--black);
}

.console-box::-webkit-scrollbar-thumb {
  background: var(--bg-content);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.console-box::-webkit-scrollbar-thumb:hover {
  background: #3B455E;
}

.console-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.log-item {
  padding: 3px 4px;
  border-bottom: 1px solid rgba(226, 226, 226, 0.3);
  background: rgba(80, 89, 122, 0.1);
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
  overflow-x: hidden;
  border-radius: 3px;
  text-align: left;
  /* Transition for hover */
  transition: background-color 0.3s ease;
}

.log-item:hover {
  background-color: rgba(130, 140, 180, 0.15);
}

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .console-box {
    width: 95%;
    max-width: 100%;
    min-height: 250px;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 10px;
    padding: 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
    text-align: left;
    line-height: 1.4;
    display: block;
  }

  .log-item {
    font-size: 10px;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
    text-align: left;
    padding: 6px;
  }

  .console-box::-webkit-scrollbar {
    width: 4px;
  }

  /* Prevents page-wide horizontal scrolling */
  body {
    overflow-x: hidden;
  }
}

.raffle-item-wrapper {
  display: flex;
  justify-content: center; /* ✅ Centers horizontally */
  width: 100%;
}
/* Adjust text */
.raffle-item span {
  text-align: center;
  display: block;
  padding: 5px 0;
  line-height: 1.4;
}
/* Hover effects */
.raffle-item:hover {
  background-color: var(--list-hover-bg);
  transform: scale(1.02);
}


/*------------------------------- User Info --------------------------------*/


@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

#voltMenu {
  font-family: 'Press Start 2P', sans-serif; /* Retro Pixel Font */
  text-align: center;
  min-width: 180px; /* Prevents weird wrapping */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Subtle Glow */
}

#userButtons {
  z-index: 30;
}

.user-action-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-dark);
  object-fit: cover;
  align-self: flex-end;
}

#voltBalance {
  display: block; /* Ensures it's on a new line */
  margin-top: 5px;
  text-shadow: 0px 0px 6px rgba(0, 255, 0, 0.8); /* Softer Green Glow */
}

.glow-text {
  text-shadow: 0px 0px 6px rgba(0, 255, 0, 0.8), 
               0px 0px 12px rgba(0, 255, 0, 0.6);
}

.muted {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

#userProfileSolarianValue {
  margin-bottom: 8px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  text-align: left;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-dark);
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.profile-header-text h2 {
  margin: 0;
}

.profile-tag {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.user-profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.user-profile-detail-card {
  padding: 14px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-dark);
  box-shadow: 1px 1px 0 var(--black);
}

.user-profile-detail-label {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.user-profile-detail-value {
  color: var(--text-primary);
  font-size: 0.7rem;
  line-height: 1.6;
  word-break: break-word;
}

.edit-profile-modal-box {
  width: min(520px, 92vw);
  max-width: min(520px, 92vw);
  text-align: left;
}

.edit-profile-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.edit-profile-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.edit-profile-control {
  width: 100%;
  padding: 10px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  color: var(--text-primary);
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.7rem;
  line-height: 1.5;
  text-transform: none;
  box-shadow: 1px 1px 0 var(--black);
}

.edit-profile-textarea {
  min-height: 96px;
  resize: vertical;
}

.inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-avatar {
  width: 48px;
  height: 48px;
}

.inventory-header-text h2 {
  margin: 0;
}

.profile-fields {
  display: grid;
  gap: 8px;
  margin: 12px 0 8px;
  text-align: left;
}

.profile-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.profile-status {
  margin: 8px 0 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.profile-input {
  width: 100%;
  padding: 8px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  color: var(--text-primary);
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  box-shadow: 1px 1px 0 var(--black);
}

.profile-input:read-only {
  opacity: 0.7;
}


#userProfileSection {
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--bg-content);
  border-radius: 10px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.member-map-shell {
  width: 100%;
  margin-top: 16px;
}

.member-map-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.member-map-toolbar .btn {
  min-width: 180px;
}

.member-map-canvas {
  position: relative;
  width: 100%;
  height: clamp(420px, 65vh, 720px);
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #0d4c6a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.member-map-canvas .leaflet-container {
  background: #0d4c6a;
}

.member-map-pin {
  width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: filter 0.2s ease;
}

.member-map-pin:hover,
.leaflet-marker-icon.member-map-pin:hover {
  filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.9));
  outline: none;
}

.member-map-pin-avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-dark);
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.35);
}

.member-map-pin:hover .member-map-pin-avatar,
.member-map-pin:focus-visible .member-map-pin-avatar {
  border-color: #fff3b0;
  box-shadow:
    0 0 0 3px rgba(255, 204, 0, 0.35),
    0 0 14px rgba(255, 204, 0, 0.9);
}

.member-map-pin:hover .member-map-pin-stem,
.member-map-pin:focus-visible .member-map-pin-stem {
  background: #fff3b0;
}

.member-map-pin-stem {
  display: block;
  width: 4px;
  height: 16px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--accent);
}

.member-map-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 320px;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: rgba(15, 23, 42, 0.94);
  color: var(--text-primary);
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.member-map-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.member-map-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.member-map-card-name {
  margin: 0 0 4px;
  font-size: 0.8rem;
}

.member-map-card-location {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.member-map-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.member-map-canvas .leaflet-control-zoom a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  background: var(--accent);
  color: var(--black);
  border: 1px solid var(--black);
  box-shadow: none;
}

.member-map-canvas .leaflet-control-zoom a:hover {
  background: #ff9334;
  transform: none;
}

.member-map-canvas .leaflet-control-attribution {
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
}

.member-map-status {
  margin: 12px 0 0;
}

#mapSection {
  width: min(92vw, 1100px);
  max-width: 1100px;
}

.member-map-shell.is-fullscreen-fallback {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding: 16px;
  background: rgba(7, 12, 22, 0.96);
}

.member-map-shell.is-fullscreen-fallback .member-map-toolbar {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.member-map-shell.is-fullscreen-fallback .member-map-canvas {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border-radius: 16px;
}

.member-map-shell.is-fullscreen-fallback .member-map-status {
  flex: 0 0 auto;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .member-map-toolbar {
    justify-content: stretch;
  }

  .member-map-toolbar .btn {
    width: 100%;
    min-width: 0;
  }

  .member-map-shell.is-fullscreen-fallback {
    padding: 10px;
  }
}

.holdings-section-list {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}

.holdings-column {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 16px;
  margin-top: 12px;
  justify-content: center;
}

.holding-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  background: var(--bg-dark);
  box-shadow: 1px 1px 0 var(--black);
}

.holding-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: #2f354b;
  object-fit: cover;
}

.holding-meta {
  display: grid;
  gap: 4px;
}


.holding-subtitle {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.holding-mint {
  font-size: 0.6rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.holding-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.holding-attr {
  font-size: 0.55rem;
  padding: 4px 6px;
  background: var(--bg-content);
  border: 1px solid var(--accent);
  border-radius: 4px;
}

.title-section {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 0;
  background: var(--bg-dark);
  box-shadow: 1px 1px 0 var(--black);
  max-height: 520px;
  overflow: hidden;
  width: 100%;
}

.title-summary {
  cursor: pointer;
  padding: 10px 10px;
  background-color: var(--bg-content);
  border-bottom: 2px solid var(--accent);
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
  list-style: none;
  position: sticky;
  top: 0;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  box-shadow: none;
  isolation: isolate;
}

.title-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--bg-content);
  border-radius: 6px 6px 0 0;
  z-index: -1;
}

.title-section > .title-summary + .holdings-grid {
  padding: 10px;
}

.title-summary::-webkit-details-marker {
  display: none;
}

.title-summary::after {
  content: "▼";
  margin-left: auto;
}

.title-section[open] > .title-summary::after {
  content: "▲";
}

.title-section[open] {
  overflow: auto;
}

.holding-details {
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--bg-content);
  padding: 6px;
}

.holding-summary {
  cursor: pointer;
  list-style: none;
  padding: 6px;
}

.holding-summary::-webkit-details-marker {
  display: none;
}

.holding-summary::after {
  content: "▼";
  float: right;
}

.holding-details[open] > .holding-summary::after {
  content: "▲";
}

.empty-state {
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-dark);
  border: 2px dashed var(--accent);
  text-align: center;
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  #userProfileSection {
    padding: 16px;
  }

  .holdings-section-list {
    flex-direction: column;
    align-items: center;
  }

  .holdings-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    justify-items: center;
  }

  .holding-image {
    min-height: 160px;
  }

  .holding-card {
    width: 100%;
    max-width: 220px;
  }

  #userButtons {
    position: static !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    max-width: 420px;
    margin: 10px auto 0;
    gap: 6px;
    padding: 6px;
    background: var(--bg-content);
    border: 1px solid var(--accent);
    border-radius: 8px;
  }

  .user-action-avatar {
    align-self: center;
  }

  #userButtons button {
    width: auto !important;
    min-width: 90px;
    height: 22px !important;
    line-height: 22px !important;
    padding: 0 8px !important;
  }

  #voltMenuContainer {
    position: static;
    width: 100%;
    margin: 8px auto 0;
    justify-content: center;
  }

  #voltMenu {
    width: min(90vw, 320px);
  }

  #closeSolariansButton {
    align-self: center;
    width: min(260px, 90%);
  }

  .solarian-mosaic-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    grid-auto-rows: 64px;
  }

  .solarian-mosaic-grid.mosaic-count-1,
  .solarian-mosaic-grid.mosaic-count-2,
  .solarian-mosaic-grid.mosaic-count-3 {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    grid-auto-rows: minmax(130px, 1fr);
  }

  .solarian-mosaic-grid.mosaic-count-10 {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-auto-rows: 100px;
  }
}

.solarian-mosaic {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.85);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hidden,
.mosaic-hidden,
.solarian-mosaic.mosaic-hidden {
  display: none;
}

.solarian-mosaic-inner {
  width: min(1100px, 96vw);
  height: min(80vh, 900px);
  background: var(--bg-content);
  border: 2px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.solarian-mosaic-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  grid-auto-rows: 70px;
  gap: 2px;
  overflow: auto;
  padding: 2px;
  background: var(--bg-dark);
  border-radius: 6px;
}

.solarian-mosaic-grid.mosaic-count-1,
.solarian-mosaic-grid.mosaic-count-2,
.solarian-mosaic-grid.mosaic-count-3 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: minmax(160px, 1fr);
  gap: 10px;
  justify-content: center;
  align-content: center;
  padding: 12px;
}

.solarian-mosaic-grid.mosaic-count-10 {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-auto-rows: 120px;
  gap: 6px;
  padding: 8px;
}

.solarian-mosaic-grid.mosaic-count-20 {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  grid-auto-rows: 90px;
  gap: 4px;
  padding: 6px;
}

.solarian-mosaic-grid img,
.solarian-mosaic-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-dark);
}

.solarian-mosaic-image.is-loading {
  background:
    linear-gradient(90deg, #2f354b 0%, #3d4664 50%, #2f354b 100%);
  background-size: 200% 100%;
  animation: solarian-tile-loading 1.2s ease-in-out infinite;
}

.solarian-mosaic-image.is-error {
  background: #2f354b;
  border: 1px solid rgba(242, 162, 75, 0.25);
}

@keyframes solarian-tile-loading {
  0% {
    background-position: 200% 0;
  }

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

/* --------------------------------------------------
   INVENTORY PAGE FIXES
-------------------------------------------------- */
#inventorySection {
  text-align: center;
  width: 100%;
  max-width: 600px; /* Matches other content boxes */
  margin: 0 auto;
  padding: 20px;
  background-color: var(--bg-content);
  border-radius: 10px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.inventory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Ensures inventory items are properly centered */
.inventory-item {
  background-color: var(--bg-dark); /* Matches other panels */
  border: none !important; /* Removes unwanted border */
  padding: 12px;
  margin: 10px auto; /* Centering */
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
}

.inventory-item:hover {
  background-color: var(--bg-content);
  transform: scale(1.02);
}

/* Centers the item title */
.inventory-item h3 {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Properly formats item descriptions */
.inventory-item p {
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.4;
}

/* No Items Message */
.no-items {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 10px;
}

/* =====================================
   Purchase Confirmation Modal
====================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  background: var(--bg-content);
  color: var(--text-primary);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  max-width: 400px;
}

.redeem-modal-box {
  max-width: min(520px, 92vw);
}

.redeem-wallet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.redeem-wallet-input {
  width: 100%;
  padding: 8px;
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.2;
  resize: none;
  word-break: break-all;
  white-space: pre-wrap;
  min-height: 46px;
}

.redeem-wallet-input.is-readonly {
  cursor: copy;
}

.redeem-wallet-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.redeem-wallet-edit:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.redeem-wallet-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-height: 0.9rem;
  margin-top: 4px;
}

.wallet-address-preserve-case {
  text-transform: none;
  word-break: break-all;
}

.admin-redemption-copyable {
  cursor: pointer;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.confirm-button,
.cancel-button {
  padding: 8px 16px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

.confirm-button {
  background-color: var(--accent);
  color: var(--black);
}

.cancel-button {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

.confirm-button:hover {
  background-color: var(--accent-hover);
}

.cancel-button:hover {
  background-color: var(--list-hover-bg);
}

/* ------------------------------
   Job Submission Modal
------------------------------ */
#jobSubmissionModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal Content - Light Gray Box */
#jobSubmissionModal .modal-content {
  background: var(--bg-content); /* Light gray box */
  color: var(--text-primary);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.6);
  max-width: 450px;
  width: 90%;
}

/* Title */
#jobSubmissionModal h2 {
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px black;
}

/* Labels */
#jobSubmissionModal label {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: left;
  margin: 10px 0 5px;
}

/* Inputs */
#jobSubmissionModal textarea,
#jobSubmissionModal input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--text-secondary);
  background: #1C1E29;
  color: var(--text-primary);
  border-radius: 5px;
  font-size: 0.9rem;
}

/* ------------------------------
   Drag & Drop Upload Area
------------------------------ */
#dropArea {
  border: 2px dashed var(--text-secondary);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.1); /* Light gray box effect */
  border-radius: 5px;
}

#dropArea:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ------------------------------
   Image Preview (Hidden by Default)
------------------------------ */
#imagePreviewContainer {
  display: none;
  text-align: center;
  margin-top: 10px;
}

#imagePreview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 5px;
  border: 1px solid var(--text-secondary);
  display: none; /* Ensures it only appears when an image is uploaded */
}

/* Remove Button */
#removeImage {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none; /* Hidden by default */
}

#removeImage:hover {
  background: var(--accent-hover);
}

/* ------------------------------
   Buttons
------------------------------ */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

#cancelSubmissionButton,
#sendSubmissionButton {
  padding: 10px 18px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

#sendSubmissionButton {
  background-color: var(--accent);
  color: var(--black);
}

#cancelSubmissionButton {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

#sendSubmissionButton:hover {
  background-color: var(--accent-hover);
}

#cancelSubmissionButton:hover {
  background-color: var(--list-hover-bg);
}


/* --------------------------------------------------
   CUSTOM ALERT STYLING
-------------------------------------------------- */
.custom-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--highlight);
  color: var(--black);
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  text-shadow: 1px 1px 2px var(--black);
}

/* Animation to slide in */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Animation to slide out */
@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background-color: #537ADE;
  font-size: 0.5rem;
  color: var(--text-primary);
  text-align: center;
  padding: 0.8rem 0;
  width: 100%;
  
  display: flex;
  flex-direction: column;
  margin-top: auto; /* Pushes the footer down */
}

footer p {
  margin: 0.3rem 0;
}

footer p strong {
  color: var(--accent);
}

/* --------------------------------------------------
   HOME PAGE POLISH
-------------------------------------------------- */
body {
  padding: 92px 0 24px;
}

header {
  width: min(94vw, 1220px);
  margin: 18px 0 12px;
  padding: 0;
}

header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.05;
}

#loginModal {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(36, 42, 61, 0.92);
  border-bottom: 1px solid rgba(242, 162, 75, 0.35);
  backdrop-filter: blur(8px);
  z-index: 50;
}

#loginModal > div {
  width: min(1180px, 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(80, 89, 122, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

#loginForm {
  flex: 1 1 760px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 10px 14px;
}

#loginForm label {
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

#loginForm input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.72rem;
  text-transform: none;
  text-shadow: none;
  color: var(--black);
}

#loginForm input::placeholder {
  text-transform: none;
}

#loginForm button,
#userButtons button,
#landingPage .btn {
  margin: 0;
}

#loginForm button {
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border: 2px solid rgba(0, 0, 0, 0.22);
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#voltMenuContainer {
  position: absolute;
  top: 20px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: auto;
  margin-left: 0;
}

#voltMenu {
  width: min(100%, 280px);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(20, 24, 37, 0.95);
}

.content {
  width: 90%;
}

#landingPage {
  width: min(92vw, 1220px);
  max-width: 1220px;
  padding: 30px 28px 34px;
  border-radius: 22px;
}

.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 34px;
}

#landingPage .btn {
  width: 220px;
  min-height: 64px;
  padding: 14px 18px;
  border: none;
  background: var(--accent);
  box-shadow: 0 6px 0 rgba(67, 73, 99, 0.95), 0 10px 16px rgba(0, 0, 0, 0.16);
}

#landingPage .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(67, 73, 99, 0.95), 0 12px 18px rgba(0, 0, 0, 0.18);
}

.quick-steps {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0;
}

.quick-steps h2 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3.8vw, 3rem) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

.quick-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.quick-steps-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(0.78rem, 1.3vw, 0.98rem) !important;
  line-height: 1.45;
}

.quick-steps-list li::before {
  content: "•";
  display: block;
  text-align: center;
  transform: translateY(0.02em);
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: none;
  color: var(--text-primary);
}

.logged-in-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1180px, 100%);
  min-height: 136px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.logged-in-mode {
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  padding: 0 16px !important;
  justify-content: center !important;
  pointer-events: none;
}

.logged-in-mode > .logged-in-header {
  pointer-events: auto;
}

.logged-in-mode + header {
  margin-top: 42px;
}

.logged-in-header #userButtons {
  position: static !important;
  top: auto !important;
  right: auto !important;
  order: 2;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: min(100%, 760px);
  margin: 12px auto 0;
}

.logged-in-header .user-action-avatar {
  align-self: center;
}

.logged-in-header #voltMenuContainer {
  order: 1;
  position: static;
  display: flex;
  justify-content: center;
  transform: none;
  width: 100%;
  margin: 8px auto 0;
  z-index: auto;
}

.logged-in-header #voltMenu {
  width: max-content;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  margin: 0 auto;
}

.logged-in-header #questStatusValue {
  margin-top: 6px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  #landingPage {
    padding: 26px 20px 30px;
  }

  .dashboard-nav {
    gap: 12px 16px;
  }

  .logged-in-header {
    min-height: 144px;
  }

  .logged-in-header #voltMenu {
    width: max-content;
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 276px;
  }

  #loginForm {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #loginForm label {
    grid-column: auto;
    margin-top: 2px;
  }

  #loginForm input,
  #loginForm button {
    width: 100%;
  }

  #loginForm button {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  header {
    width: min(calc(100% - 20px), 420px);
    margin: 8px auto 12px;
    padding: 0 8px;
  }

  #loginModal {
    padding: 10px 12px;
  }

  #loginModal > div {
    padding: 12px;
    border-radius: 16px;
  }

  #landingPage {
    width: calc(100% - 20px);
    padding: 22px 12px 26px;
    border-radius: 16px;
  }

  .dashboard-nav {
    gap: 10px;
    margin-bottom: 28px;
  }

  #landingPage .btn {
    width: 100%;
    max-width: 230px;
    min-height: 56px;
    padding: 12px 10px;
    font-size: 0.74rem;
  }

  .quick-steps h2 {
    margin-bottom: 20px;
  }

  .quick-steps-list {
    gap: 14px;
  }

  .quick-steps-list li {
    grid-template-columns: 14px minmax(0, 1fr);
    column-gap: 10px;
    width: 100%;
    font-size: 0.68rem !important;
    line-height: 1.5;
  }

  .quick-steps-list li::before {
    font-size: 0.95rem;
  }

  .logged-in-header {
    width: 100%;
    min-height: 0;
    gap: 8px;
  }

  .logged-in-mode {
    position: static !important;
    inset: auto !important;
    justify-content: center !important;
    padding: 8px 0 0 !important;
    pointer-events: auto;
  }

  .logged-in-mode > .logged-in-header {
    width: min(calc(100% - 20px), 320px);
    margin: 0 auto;
  }

  .logged-in-header #userButtons {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .logged-in-header .user-action-avatar {
    align-self: center;
  }

  .logged-in-header #userButtons button {
    width: auto !important;
    min-width: 90px;
    height: 22px !important;
    line-height: 22px !important;
    padding: 0 8px !important;
  }

  .logged-in-header #voltMenuContainer {
    position: static;
    display: flex;
    transform: none;
    width: 100%;
    justify-content: center;
    margin: 4px auto 0;
  }

  .logged-in-header #voltMenu {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 760px) {
  body:has(.logged-in-mode) {
    padding-top: 24px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .logged-in-mode > .logged-in-header {
    width: min(calc(100% - 40px), 360px);
  }

  .logged-in-header #userButtons {
    width: min(100%, 340px);
  }

  .logged-in-header #voltMenu {
    width: min(100%, 340px);
  }

  header {
    width: min(calc(100% - 40px), 520px);
  }

  header h1 {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
  }
}

@media (max-width: 900px) {
  header h1 {
    font-size: clamp(1.6rem, 6vw, 2.6rem);
    text-align: center;
  }
}

@media (max-width: 760px) {
  header h1 {
    display: block;
    line-height: 1.15;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 292px;
  }

  .dashboard-nav {
    flex-direction: column;
    align-items: center;
  }

  #landingPage .btn {
    min-height: 54px;
  }

  header h1 {
    font-size: clamp(1.55rem, 10vw, 2.3rem);
  }
}

@media (max-width: 480px) {
  body:has(.logged-in-mode) {
    padding-top: 24px;
  }
}

@media (max-width: 360px) {
  .logged-in-mode > .logged-in-header {
    width: min(calc(100% - 10px), 290px);
  }

  .logged-in-header #userButtons {
    width: min(100%, 280px);
    gap: 5px !important;
  }

  .logged-in-header #userButtons button {
    min-width: 84px;
    font-size: 0.62rem;
  }

  .logged-in-header #voltMenu {
    width: min(100%, 280px);
  }

  #landingPage {
    width: calc(100% - 10px);
    padding-left: 10px;
    padding-right: 10px;
  }
}
