/* Base Styles */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0f0f1b, #1a1a2e);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  background-attachment: fixed;
}

.container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
  padding: 3em 2em;
  animation: fadeIn 1s ease-in;
}

/* Glow Title */
.glow {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #c084fc;
  text-shadow: 0 0 20px #c084fc, 0 0 40px #7c3aed;
  letter-spacing: 1.5px;
  margin-bottom: 0.5em;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 20px #c084fc, 0 0 40px #7c3aed;
  }
  50% {
    text-shadow: 0 0 30px #d8b4fe, 0 0 60px #a855f7;
  }
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #ccc;
  margin-top: -1em;
  margin-bottom: 2em;
  text-shadow: 0 0 8px #7c3aed;
  letter-spacing: 0.5px;
  opacity: 0.85;
  animation: fadeIn 1.5s ease-in;
}

/* Navigation Buttons */
.nav {
  margin: 2em 0 3em;
}

.button {
  position: relative;
  text-decoration: none;
  margin: 0.5em;
  color: #fff;
  border: 2px solid #7c3aed;
  padding: 0.7em 1.6em;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font-size: 1em;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
  overflow: hidden;
  z-index: 0;

  display: inline-flex;              /* ✅ Fix alignment */
  align-items: center;              /* ✅ Center content vertically */
  justify-content: center;          /* ✅ Center content horizontally */
  height: 2.8em;                     /* ✅ Consistent height */
  line-height: 1.2em;
  vertical-align: middle;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 150%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(155, 93, 229, 0.3), transparent);
  transform: skewX(-30deg);
  transition: all 0.5s ease;
  z-index: -1;
}

.button:hover::before {
  left: 100%;
}

.button:hover,
.button.active {
  background-color: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 15px #7c3aed, 0 0 30px #c084fc;
}

/* Tabs */
.tab {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab.active {
  display: block;
}

/* Home Tab Feature Section */
.intro {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2em;
}

.highlight {
  color: #c084fc;
  font-weight: bold;
  text-shadow: 0 0 5px #7c3aed;
}

.features {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1em 1.5em;
  border-radius: 12px;
  width: 85%;
  max-width: 600px;
  font-size: 1.1em;
  display: flex;
  gap: 0.6em;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.02);
  background: rgba(155, 93, 229, 0.15);
  box-shadow: 0 0 16px #9b5de5;
}

/* List Styling */
ul {
  list-style-type: none;
  padding: 0;
  margin-top: 1.5em;
}

li {
  padding: 0.8em 1em;
  background: rgba(255, 255, 255, 0.05);
  margin: 0.7em auto;
  width: 85%;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
  font-size: 1rem;
  text-align: left;
}

li:hover {
  background: rgba(155, 93, 229, 0.2);
  transform: scale(1.02);
}

li code {
  color: #c084fc;
  font-weight: bold;
  font-size: 1.05em;
}

/* Search Bar */
.search-bar {
  padding: 0.6em 1em;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  border: none;
  margin: 1em 0 1.5em;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.search-bar::placeholder {
  color: #ccc;
}

/* Invite Section Button */
#invite a.button {
  font-size: 1.2em;
  padding: 0.9em 2.2em;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Glowing Background Particles */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: radial-gradient(circle, #9b5de5 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  filter: blur(80px);
}

.circle1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.circle2 {
  width: 300px;
  height: 300px;
  bottom: 15%;
  right: 10%;
  animation-delay: 4s;
}

.circle3 {
  width: 250px;
  height: 250px;
  top: 30%;
  left: 60%;
  animation-delay: 8s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.25;
  }
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -10;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #0f0f1b, #1a1a2e);
}

/* ─────────────── Responsive Layout ─────────────── */
@media screen and (max-width: 768px) {
  .glow {
    font-size: 2.2em;
  }

  .container {
    padding: 2em 1em;
  }

  .nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  }

  .feature-card {
    width: 95%;
    font-size: 1em;
  }

  .search-bar {
    width: 95%;
    font-size: 1em;
  }

  ul li {
    width: 95%;
    font-size: 0.95em;
  }

  #invite a.button {
    font-size: 1.1em;
    padding: 0.7em 1.5em;
  }
}

.wave-divider {
  width: 100%;
  line-height: 0;
  position: relative;
  margin-top: 4em;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
  transform: scaleY(1.2);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
}

/* Footer stays at bottom but never overlaps */
.site-footer {
  text-align: center;
  padding: 2em 1em;
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.03);
  color: #bbb;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -1px 8px rgba(155, 93, 229, 0.1);
}

.site-footer strong {
  color: #c084fc;
  text-shadow: 0 0 5px #7c3aed;
}

.bot-stats {
  margin-top: 3em;
}

.bot-stats h3 {
  margin-bottom: 1em;
  font-size: 1.4em;
  color: #c084fc;
  text-shadow: 0 0 10px #7c3aed;
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1em 2em;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  background: rgba(155, 93, 229, 0.08);
}

.stat-card .label {
  display: block;
  font-size: 0.9em;
  color: #aaa;
}

.stat-card .value {
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px #9b5de5;
}

.login-banner {
  margin-top: 0.5em;
  font-size: 1em;
  color: #ccc;
  text-align: center;
  animation: fadeIn 1s ease;
}

.login-banner a {
  color: #c084fc;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.login-banner a:hover {
  color: #fff;
}

.profile-card {
  margin: 2em auto;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(155, 93, 229, 0.2);
  color: #ddd;
  text-align: left;
}

.profile-card img {
  width: 64px;
  border-radius: 50%;
  margin-bottom: 1em;
  box-shadow: 0 0 10px #7c3aed;
}

.xp-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  height: 12px;
  margin: 0.5em 0 1em;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  box-shadow: 0 0 6px #c084fc;
  transition: width 1s ease-in-out;
  border-radius: 8px;
}

.inventory-list {
  margin-top: 0.5em;
  padding-left: 1.2em;
  color: #eee;
  font-size: 0.95em;
}

.crafting-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 2em;
  justify-content: center;
}

.ingredient-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8em 1.2em;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.1);
  font-size: 0.9em;
}

.recipe-panel {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.recipe-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(155, 93, 229, 0.15);
  color: #eee;
  font-size: 1em;
}

.crafting-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  margin-top: 1.2em;
  margin-bottom: -1em;
  font-size: 0.95em;
  color: #ccc;
  text-shadow: 0 0 4px #c084fc;
}

.crafting-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 8px #7c3aed;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .button {
  padding-right: 1.5em;
}

.dropdown-content {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  background-color: rgba(30, 30, 50, 0.95);
  border: 1px solid #7c3aed;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
  z-index: 10;
  transition: opacity 0.2s ease;
}

.dropdown-content button {
  background: none;
  color: #fff;
  border: none;
  text-align: left;
  padding: 0.75em 1em;
  width: 100%;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
}

.dropdown-content button:hover {
  background-color: rgba(124, 58, 237, 0.1);
}

.dropdown.open .dropdown-content {
  display: block;
}

.changelog-entry {
  background: rgba(255, 255, 255, 0.05);
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(155, 93, 229, 0.1);
  margin-bottom: 1.5em;
}

.changelog-entry h3 {
  color: #c084fc;
  text-shadow: 0 0 5px #7c3aed;
  margin-bottom: 0.5em;
}

.changelog-entry ul {
  padding-left: 1.2em;
  list-style: none;
}

.changelog-entry li::before {
  content: '•';
  margin-right: 0.5em;
  color: #7c3aed;
}

/* Stylish suggestion form layout */
.suggestion-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
}

.suggestion-form textarea {
  width: 80%;
  max-width: 600px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #8e44ec;
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  resize: vertical;
  box-shadow: 0 0 15px #8e44ec55;
  transition: border 0.3s ease;
}

.suggestion-form textarea:focus {
  border-color: #bd7eff;
  outline: none;
}

.suggestion-form button {
  background: #8e44ec;
  border: none;
  color: white;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #8e44ec88;
  transition: background 0.3s ease;
}

.suggestion-form button:hover {
  background: #a566ff;
}

#suggestions-list li {
  color: #ccc;
  text-align: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.03);
  margin: 10px auto;
  padding: 10px;
  border-radius: 10px;
  max-width: 600px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 16px;
  margin: 10px auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  max-width: 600px;
  box-shadow: 0 0 10px #8e44ec33;
  color: white;
}

.suggestion-item:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.vote-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vote-button {
  background: transparent;
  color: #aaa;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.vote-button:hover {
  color: #8e44ec;
}

.vote-count {
  font-weight: bold;
  font-size: 16px;
  color: #fff;
}

.suggestion-content {
  flex-grow: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
}

.vote-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  transition: background 0.3s ease;
}

.vote-icon {
  position: relative;
  background: none;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  color: white;
  z-index: 1;
  overflow: hidden;
}

.vote-icon:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  z-index: -1;
}

.vote-icon:hover {
  transform: scale(1.2);
}

.vote-score {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  min-width: 24px;
  text-align: center;
}

.arrow-icon {
  display: block;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vote-pill.voted-up {
  background-color: #7a5cff;
}

.vote-pill.voted-down {
  background-color: #ff4c4c;
}

.vote-pill.voted-up .vote-icon:first-child {
  color: white;
}

.vote-pill.voted-down .vote-icon:last-child {
  color: white;
}



.pagination-controls {
  margin-top: 20px;
  text-align: center;
}

.pagination-controls button {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: none;
  margin: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.pagination-controls button.active {
  background: #7a5cff;
  color: white;
}

.pagination-controls button:hover {
  background: #8e44ec;
}

.pagination-ellipsis {
  margin: 0 6px;
  color: #999;
  font-weight: bold;
}

.suggestion-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.suggestion-filters button {
  background: #1c1c1c;
  color: #eaeaea;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #7a5cff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s ease;
}

.suggestion-filters button:hover {
  background-color: #7a5cff;
  color: #ffffff;
  box-shadow: 0 0 8px #7a5cff;
}

.suggestion-filters button.active {
  background-color: #7a5cff;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px #7a5cff;
}

.reply-form {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #8245f7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 8px rgba(130, 69, 247, 0.3);
}

.reply-form textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 200px;
  padding: 8px 10px;
  background: #121221;
  border: 1px solid #8245f7;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.reply-form textarea::placeholder {
  color: #aaa;
}

.reply-form textarea:focus {
  outline: none;
  border-color: #b57fff;
  box-shadow: 0 0 6px #a46bff;
}

.reply-form button {
  align-self: flex-start;
  background: #8245f7;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.reply-form button:hover {
  background: #a46bff;
}

#toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-height: 40vh; /* prevent full-page stacking */
  overflow-y: hidden;  /* allow scrolling within if needed */

  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #2d2d4f;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(130, 69, 247, 0.5);
  animation: fadeInOut 3s ease forwards;
  text-align: center;
  pointer-events: auto;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px); }
}


@media screen and (max-width: 768px) {
  .glow {
    font-size: 2em;
    margin-bottom: 0.3em;
  }

  .subtitle {
    font-size: 1em;
    margin-top: -0.5em;
    margin-bottom: 1.5em;
  }

  .container {
    padding: 1.5em 1em;
  }

  .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
  }

  .button {
    flex: 1 1 45%;
    min-width: 130px;
    max-width: 180px;
    min-height: 48px;
  }

  .button:active {
  transform: scale(0.95);
}

  .feature-card {
    width: 95%;
    font-size: 1em;
  }

  .search-bar {
    width: 95%;
    font-size: 1em;
  }

  ul li {
    width: 95%;
    font-size: 0.95em;
  }

  #invite a.button {
    font-size: 1.1em;
    padding: 0.7em 1.5em;
  }
}

.crafting-controls select,
.crafting-controls input[type="number"] {
  width: 100%;
  max-width: 400px;
  padding: 0.6em 1em;
  margin: 0.8em 0;
  border: 1px solid #7c3aed;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1em;
  outline: none;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Override browser default select behavior */
.crafting-controls select {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #7c3aed;
  border-radius: 10px;
  font-family: Orbitron, sans-serif;
  font-size: 1em;
  padding: 0.6em 1em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
  outline: none;
  width: 100%;
  max-width: 400px;
  margin: 0.8em 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1em;
}

select option {
  background-color: #1a1a1a;
  color: #fff;
  font-family: Orbitron, sans-serif;
}

/* Compact number box */
.crafting-controls input[type="number"] {
  max-width: 100px;
  text-align: center;
}

.crafting-controls select:focus,
.crafting-controls input[type="number"]:focus {
  border-color: #c084fc;
  box-shadow: 0 0 18px #a855f7;
  background: rgba(255, 255, 255, 0.08);
}

/* Donate section */
#donateSection h2.glow {
  font-size: 2.5rem;
  color: #b56dff;
  text-shadow: 0 0 15px #b56dff;
  text-align: center;
  margin-bottom: 2rem;
}

.donate-box {
  background: rgba(20, 10, 40, 0.8);
  border: 1px solid #6c0ba9;
  border-radius: 16px;
  padding: 30px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  font-family: 'Orbitron', sans-serif;
  color: #eee;
  text-align: center;
}

.donate-box ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.donate-box li {
  background: #1a1a2f;
  margin: 15px 0;
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px solid #6c0ba9;
  font-size: 1rem;
}

.donate-box li img.qr-code {
  display: block;
  margin: 0 auto 12px;
  max-width: 160px;
  border-radius: 10px;
  box-shadow: 0 0 10px #6c0ba9;
  transition: transform 0.2s ease;
}

.qr-code:hover {
  transform: scale(1.05);
}

.donate-box a {
  color: #22fcb4;
  text-decoration: underline;
}

.donate-box p:last-child {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #ccc;
}

.qr-code {
  margin-top: 12px;
  max-width: 180px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px #6c0ba9;
  transition: transform 0.2s ease;
}
.qr-code + strong {
  display: block;
  margin-top: 12px;
  font-size: 1.05rem;
}

.qr-code:hover {
  transform: scale(1.05);
}

.delete-btn,
.force-delete-btn {
  background: #1a1a2f;
  color: #fff;
  border: 1px solid #6c0ba9;
  padding: 8px 16px;
  margin-top: 10px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.delete-btn:hover,
.force-delete-btn:hover {
  background: #6c0ba9;
  color: #fff;
  transform: scale(1.05);
}

.force-delete-btn {
  background: #330000;
  border-color: #ff3c3c;
}

.force-delete-btn:hover {
  background: #ff3c3c;
  color: white;
}


.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1b1b2f;
  border: 2px solid #914dff;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 15px #914dff;
  padding: 1em;
  margin: 0 auto;
  width: 50%;
  max-width: 90vw;
  box-sizing: border-box;
}

.modal-actions {
  margin-top: 20px;
}

.modal-actions .button {
  padding: 10px 18px;
  margin: 0 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.modal-actions .cancel {
  background: #7a003c;
}

.modal-actions .button:not(.cancel) {
  background: #00c080;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 400px) {
  body, html {
    font-size: 14px;
  }

  .button,
  .reply-form button {
    font-size: 0.85rem;
    padding: 0.5em 1em;
  }

  .vote-pill,
  .suggestion-item,
  .reply-form,
  .modal-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .feature-card,
  .search-bar,
  ul li {
    font-size: 0.9em;
    width: 100%;
  }

  .button {
    flex: 1 1 100%;
    min-width: unset;
  }

  .glow {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    max-width: 90vw;
    padding: 1em;
  }
}

body > * {
  max-width: 100vw;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  max-width: 100%;
}

.container,
.suggestion-item,
.pagination-controls,
.suggestion-filters,
.reply-form,
.dropdown-content {
  flex-wrap: wrap;
  justify-content: center;
  width: 80%;
  max-width: 100vw;
  overflow-x: hidden;
}

.button,
.delete-btn,
.force-delete-btn,
.reply-form button {
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  text-align: center;
  box-sizing: border-box;
}

h1, h2, h3, .glow, .subtitle {
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

input, textarea, select {
  max-width: 100%;
  box-sizing: border-box;
}

@supports not (width: 100dvw) {
  html, body {
    width: 100vw;
  }
}

html {
  scroll-behavior: smooth;
}