body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #212529;
  color: #f8f9fa;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Roboto', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.navbar-brand {
  font-weight: bold;
  color: #fff !important;
}
.navbar {
  background-color: #1d2124 !important;
  border-bottom: 2px solid #828282;
  box-shadow: 0 0 15px #828282;
}
.nav-link {
  color: #adb5bd !important;
  transition: border-color 0.3s, color 0.3s;
  border-bottom: 2px solid transparent;
}
.nav-link.active {
  color: #828282 !important;
  border-bottom: 2px solid #828282;
}
.nav-link:hover,
.nav-link.active {
  color: #f8f9fa !important;
}
.nav-divider {
  width: 2px;
  height: 40px;
  background-color: #828282;
  margin: 0 12px;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 767px) {
  .nav-divider {
    display: none;
  }
}
.card {
  background-color: #343a40;
  color: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.border-bottom {
  border-bottom: 1px solid #495057 !important;
}
.rainbow, .sigma, .rainbow2 {
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px #c8378d;
  -webkit-animation: hueanimation 3s infinite linear;
  color: rgb(255, 255, 0);
}
.rainbow {
  margin: 1rem;
  margin-top: -20px;
}
.rainbow { background-image: url(/assets/uploads/public/1.gif), linear-gradient(#ed11ff 100%, #fff); }
.sigma { background-image: url(/assets/uploads/public/2.gif), linear-gradient(#ed11ff 100%, #fff); }
.rainbow2 { background-image: url(/assets/uploads/public/1.gif), linear-gradient(#ed11ff 100%, #fff); }
.rainbow a, .sigma a, .rainbow2 a, .bug a {
  text-decoration: none !important;
}
@keyframes hueanimation {
  from { -webkit-filter: hue-rotate(0deg) }
  to { -webkit-filter: hue-rotate(360deg) }
}
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease-in-out;
}
.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.badge-primary    { background: linear-gradient(to right, #4e54c8, #8f94fb); color: #333; }
.badge-secondary  { background: linear-gradient(to right, #6c757d, #adb5bd); color: #333; }
.badge-success    { background: linear-gradient(to right, #28a745, #85dcb0); color: #333; }
.badge-danger     { background: linear-gradient(to right, #dc3545, #ff6f61); color: #333; }
.badge-warning    { background: linear-gradient(to right, #ffc107, #ffecb3); color: #333; }
.badge-info       { background: linear-gradient(to right, #17a2b8, #72d6f3); color: #333; }
.badge-xmr        { background: linear-gradient(to right, #ff6600, #4c4c4c); color: #333; }
.badge-light      { background: #f8f9fa; color: #333; box-shadow: inset 0 0 4px rgba(0,0,0,0.1); }
.badge-dark       { background: #343a40; color: #fff; }
.ad-banner {
  max-width: 370px;
  max-height: 90px;
  width: 100%;
  position: relative;
}
.ad-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ad-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
@media (max-width: 576px) {
  .ad-banner {
    max-width: 100%;
  }
}
textarea {
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  outline: none;
  border-color: #1d2124;
  box-shadow: 0 0 5px #1d2124;
  background-color: #1d2124;
  color: #fff;
  padding: 1rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  resize: none;
}
button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: white !important;
  box-shadow: none !important;
}
#content::placeholder,
#paste_title::placeholder {
  color: #f8f9fa;
  opacity: 0.7;
}
#content { height: 200px !important; }
.user-title-bar {
  background-color: rgba(33, 37, 41, 0.6);
  color: #fff;
  padding: 0.1rem 0.5rem;
  border: 1px solid #444;
  border-radius: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.1;
  text-align: center;
  user-select: none;
  box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.2);
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
}
@media (min-width: 768px) {
  .user-title-bar {
    font-size: 1rem;
    padding: 0.35rem 0.7rem;
  }
}
.award-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-items: center;
}
.award-box {
  background-color: #2c2f33;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-box img {
  max-width: 100%;
  max-height: 100%;
}
.award-box:hover {
  transform: scale(1.1);
  border-color: #666;
}
select.form-select.bg-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 4 5'%3E%3Cpath d='M2 0L0 2h4L2 0zm0 5L0 3h4L2 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem auto;
  border-color: white !important;
  box-shadow: none !important;
}
.tooltip .tooltip-inner {
  background-color: #000 !important;
  color: #fff !important;
  border-radius: 6px !important;
  border: 1px solid #000 !important;
  font-size: 0.9rem;
  padding: 6px 10px;
  white-space: nowrap;
  max-width: 90vw !important;
  text-overflow: ellipsis;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);}
}
.tooltip.bs-tooltip-end .tooltip-arrow::before { border-right-color: #000 !important; }
.tooltip.bs-tooltip-start .tooltip-arrow::before { border-left-color: #000 !important; }
.tooltip.bs-tooltip-top .tooltip-arrow::before { border-top-color: #000 !important; }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: #000 !important; }
.ad-info-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background-color: #fff;
  color: #828282;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 10;
}
@media (max-width: 480px) {
  .ad-info-btn {
    width: 14px;
    height: 14px;
    font-size: 12px;
    top: 4px;
    right: 4px;
  }
}
}
pre {
  scrollbar-width: thin;
  scrollbar-color: #888 #ccc;
}
pre::-webkit-scrollbar {
  width: 12px;
}
pre::-webkit-scrollbar-track {
  background: #212529;
}
pre::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}
pre::-webkit-scrollbar-thumb:hover {
  background: #555;
}