/* ==========================================================================
   CheatBay — Main Stylesheet
   Organized for maintainability and future minification
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --primary-color: #ff00ac;
  --primary-hover: #d4008f;
  --secondary-color: #0366d6;
  --secondary-hover: #0275d8;

  --success-color: #28a745;
  --success-hover: #218838;
  --success-light: #def5e5;
  --success-text: #21bc53;

  --danger-color: #e43f51;
  --danger-light: #fbe2e5;

  --info-color: #005aff;
  --info-light: #d9e6ff;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-lighter: #fcfcfc;
  --bg-gray: #f6f8fa;
  --bg-blue-light: #f1f8ff;
  --bg-dark: #2a2a2a;

  /* Text */
  --text-color: #212529;
  --text-secondary: #586069;
  --text-muted: #6a737d;
  --text-light: #666666;
  --text-hint: #777777;
  --text-link: #0366d6;

  /* Borders */
  --border-color: #d1d5da;
  --border-light: #e1e4e8;
  --border-lighter: #eaecef;
  --border-lightest: #eeeeee;
  --border-blue: #c8e1ff;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 40px;

  /* Border Radius */
  --border-radius-sm: 3px;
  --border-radius: 0.25rem;
  --border-radius-lg: 10%;
  --border-radius-xl: 20%;
  --border-radius-round: 25%;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-xxl: 26px;
  --font-size-hero: 48px;
  --line-height-base: 1.5;
  --line-height-tight: 1.25;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  --shadow-md: 0 3px 12px rgba(27, 31, 35, 0.15);

  /* Transitions */
  --transition-fast: 0.1s ease-in-out;
  --transition-base: 0.2s ease;
  --transition-smooth: 0.15s ease-in-out;
  --transition-cubic: 250ms cubic-bezier(0.28, 0.05, 0.36, 1);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-popover: 500;
}

/* --------------------------------------------------------------------------
   2. Base / Reset
   -------------------------------------------------------------------------- */
* {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

*:focus {
  outline: 0 !important;
}

*:focus-visible {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--secondary-hover);
}

h5 {
  font-size: var(--font-size-base) !important;
}

ol {
  list-style-type: none;
  counter-reset: item;
  margin: 0;
  padding: 0;
}

ol > li {
  display: table;
  counter-increment: item;
  margin-bottom: 0.6em;
}

ol > li:before {
  content: counters(item, ".") ". ";
  display: table-cell;
  padding-right: 0.6em;
}

li ol > li {
  margin: 0;
}

li ol > li:before {
  content: counters(item, ".") " ";
}

table, th, td {
  position: relative;
}

/* --------------------------------------------------------------------------
   3. Layout & Containers
   -------------------------------------------------------------------------- */
.jumbotron {
  background-color: var(--bg-white);
}

.unique-color-dark {
  background-color: var(--bg-lighter);
}

.no-padding {
  padding: 0 !important;
}

.p-responsive {
  padding-right: var(--spacing-md) !important;
  padding-left: var(--spacing-md) !important;
}

@media (min-width: 544px) {
  .p-responsive {
    padding-right: var(--spacing-xxl) !important;
    padding-left: var(--spacing-xxl) !important;
  }
}

@media (min-width: 1012px) {
  .p-responsive {
    padding-right: var(--spacing-md) !important;
    padding-left: var(--spacing-md) !important;
  }
}

.fake-container {
  margin-left: 5%;
  margin-right: 5%;
}

.container-small,
.container-large {
  max-width: 100%;
}

@media (min-width: 768px) {
  .container-small { width: 1000px; }
  .container-large { width: 970px; }
}

@media (min-width: 992px) {
  .container-small { width: 1000px; }
  .container-large { width: 1170px; }
}

@media (min-width: 1200px) {
  .container-small { width: 1000px; }
  .container-large { width: 1500px; }
}

/* --------------------------------------------------------------------------
   4. Flexbox & Display Utilities
   -------------------------------------------------------------------------- */
.d-flex {
  display: flex !important;
}

.d-blockk {
  display: block !important;
}

.flex-auto {
  flex: auto !important;
}

.flex-items-center {
  align-items: center !important;
}

@media (min-width: 768px) {
  .d-md-flex {
    display: flex !important;
  }
}

/* --------------------------------------------------------------------------
   5. Typography Utilities
   -------------------------------------------------------------------------- */
.text-center,
.center-text,
.text-align-center {
  text-align: center !important;
}

@media (min-width: 768px) {
  .text-md-left {
    text-align: left !important;
  }
}

.text-black {
  color: black !important;
  font-weight: 600 !important;
}

.text-gray {
  color: var(--text-secondary) !important;
}

.text-gray-light {
  color: var(--text-muted) !important;
}

.text-bold {
  font-weight: 600 !important;
}

.text-normal {
  font-weight: 400 !important;
}

.text-sm,
.text-small {
  font-size: var(--font-size-sm) !important;
}

.text-mono {
  font-family: var(--font-mono) !important;
}

.dark-text {
  color: black;
}

.small-text {
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.f1 {
  font-size: var(--font-size-xxl) !important;
}

.f6 {
  font-size: var(--font-size-sm) !important;
}

.lead-mktg {
  font-size: 21px;
}

.h000-mktg {
  font-size: var(--font-size-hero) !important;
}

@media (min-width: 768px) {
  .h000-mktg {
    font-size: 64px !important;
  }
}

.h000-mktg, .h00-mktg, .h0-mktg, .h1-mktg,
.h2-mktg, .h3-mktg, .h4-mktg, .h5-mktg,
.h6-mktg, .lead-mktg {
  font-weight: 500;
}

.display-subtitle {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
}

.lh-condensed {
  line-height: var(--line-height-tight) !important;
}

/* --------------------------------------------------------------------------
   6. Sizing & Positioning Utilities
   -------------------------------------------------------------------------- */
.position-relative {
  position: relative !important;
}

.height-full {
  height: 100% !important;
}

.height-full svg,
.height-full img {
  height: 100% !important;
}

.width-full {
  width: 100% !important;
}

.width-full svg,
.width-full img {
  width: 100% !important;
}

.valign-middle {
  vertical-align: middle;
}

.no-wrap {
  white-space: nowrap;
}

.truncate-target,
.p-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. Border & Background Utilities
   -------------------------------------------------------------------------- */
.rounded-1 {
  border-radius: var(--border-radius-sm) !important;
}

.noborder,
.border-none {
  border: 0 !important;
}

.bg-gray-light {
  color: black;
  background-color: var(--bg-white) !important;
}

.baby-blue {
  background-color: var(--bg-blue-light);
  border-color: var(--border-blue);
}

@media (min-width: 768px) {
  .border-between > [class*='col-']:before {
    background: #e3e3e3;
    bottom: 0;
    content: " ";
    left: 0;
    position: absolute;
    width: 1px;
    top: 0;
  }

  .border-between > [class*='col-']:first-child:before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Navbar & Search
   -------------------------------------------------------------------------- */
.navbar-search {
  width: 350px;
  transition: width 0.4s ease-in-out;
}

.navbar-search:focus {
  width: 500px;
}

.navbar-avatar {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  border-radius: var(--border-radius-sm);
}

.navbar-avatar svg,
.navbar-avatar img {
  width: 24px !important;
  height: 24px !important;
  vertical-align: middle;
  border-radius: var(--border-radius-sm);
}

.has-search .form-control {
  padding-left: 2.375rem;
}

.has-search .form-control-feedback {
  position: absolute;
  z-index: var(--z-dropdown);
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  line-height: 2.375rem;
  text-align: center;
  pointer-events: none;
  color: #aaa;
}

.search-item {
  margin-top: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   9. Navigation (Tabs & Pills)
   -------------------------------------------------------------------------- */
.navlink {
  color: black;
  text-decoration: none;
  transition: color var(--transition-base);
}

.navlink:hover {
  color: #5e5e5e;
  text-decoration: none;
}

.nav-tabs {
  border-bottom: 0 !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: black;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link {
  color: var(--text-light);
}

.nav-pills {
  border-bottom: 1px solid lightgray !important;
}

.nav-pills .nav-link {
  border-radius: var(--border-radius);
  color: rgb(63, 63, 63) !important;
  padding: 0.8rem 1rem !important;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 2px solid #0b2e13 !important;
  font-weight: 600 !important;
  color: black !important;
  background-color: transparent !important;
  padding: 0.8rem 1rem !important;
}

/* --------------------------------------------------------------------------
   10. Buttons
   -------------------------------------------------------------------------- */
.button {
  outline: 0 !important;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-large-mktg {
  padding: 20px var(--spacing-xl);
  font-size: var(--font-size-md);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.btn-large-mktg:hover {
  transform: translateY(-1px);
}

.btn-large-mktg-social {
  padding: 13px var(--spacing-xl);
  font-size: var(--font-size-md);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.btn-large-mktg-social:hover {
  transform: translateY(-1px);
}

.btn-info.button-depressed,
.btn-info.button-depressed:active,
.btn-info.button-depressed:focus,
.btn-info.button-depressed.button-depressed:visited {
  color: white;
  font-weight: 600;
  transition: var(--transition-fast) cubic-bezier(0.23, 1, 0.32, 1);
  background-color: var(--success-color) !important;
  border-color: var(--success-color) !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.btn-info.button-depressed:hover {
  background-color: var(--success-hover) !important;
  border-color: #1e7e34 !important;
}

.btn-count {
  margin-left: -1px;
}

.pay-btn {
  display: inline-block;
  font-weight: 400;
  color: var(--text-color);
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: var(--line-height-base);
  border-radius: var(--border-radius);
  transition: color var(--transition-smooth), background-color var(--transition-smooth),
              border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.pay-btn:hover {
  opacity: 0.9;
}

.login-btn {
  width: 100%;
}

/* Social Buttons */
.btn-si {
  background-position: 1em;
  background-repeat: no-repeat;
  background-size: 2em;
}

.btn-github {
  background-color: var(--bg-dark);
  transition: background-color var(--transition-base);
}

.btn-github:hover {
  background-color: #444444;
}

.btn-github:active {
  background-color: #101010;
}

/* --------------------------------------------------------------------------
   11. Cards & Boxes
   -------------------------------------------------------------------------- */
.Box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  width: 100%;
}

.game-card {
  min-width: 9rem;
  max-width: 9rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.game-card .card-img-top {
  height: 12rem;
  object-fit: cover;
  object-position: center;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.game-card-body {
  min-height: 6rem;
  max-height: 6rem;
}

.card-header-readme {
  padding: 0.35rem 1.25rem !important;
}

.review-card {
  transition: box-shadow var(--transition-base);
}

.review-card:hover {
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   12. Badges & Pills
   -------------------------------------------------------------------------- */
/* GitHub-style pill badges for detection rates and achievements */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border-radius: 12px;
  white-space: nowrap;
  transition: all var(--transition-base);
}

/* Detection rate pill colors */
.badge-pill-clean {
  background-color: #2da44e;
  color: #ffffff;
}

.badge-pill-low {
  background-color: #1f883d;
  color: #ffffff;
}

.badge-pill-medium {
  background-color: #fb8500;
  color: #ffffff;
}

.badge-pill-high {
  background-color: #d1242f;
  color: #ffffff;
}

.badge-pill-unknown {
  background-color: #6e7781;
  color: #ffffff;
}

/* Achievement badges with high contrast */
.achievement-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin: 4px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid;
  background-color: #ffffff;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.achievement-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.achievement-badge i {
  margin-right: 6px;
  font-size: 16px;
}

/* Achievement badge color variants - high contrast on white */
.achievement-badge-gold {
  border-color: #d4af37;
  color: #856404;
  background: linear-gradient(135deg, #fef9e7 0%, #fff8dc 100%);
}

.achievement-badge-gold i {
  color: #d4af37;
}

.achievement-badge-silver {
  border-color: #c0c0c0;
  color: #383838;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.achievement-badge-silver i {
  color: #808080;
}

.achievement-badge-bronze {
  border-color: #cd7f32;
  color: #6b4423;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe4b3 100%);
}

.achievement-badge-bronze i {
  color: #cd7f32;
}

.achievement-badge-blue {
  border-color: #0366d6;
  color: #0a3069;
  background: linear-gradient(135deg, #ddf4ff 0%, #b6e3ff 100%);
}

.achievement-badge-blue i {
  color: #0969da;
}

.achievement-badge-green {
  border-color: #1a7f37;
  color: #0d4b21;
  background: linear-gradient(135deg, #dafbe1 0%, #b4f1c3 100%);
}

.achievement-badge-green i {
  color: #1a7f37;
}

.achievement-badge-purple {
  border-color: #8250df;
  color: #4c2889;
  background: linear-gradient(135deg, #fbefff 0%, #e4d9ff 100%);
}

.achievement-badge-purple i {
  color: #8250df;
}

.achievement-badge-red {
  border-color: #cf222e;
  color: #82071e;
  background: linear-gradient(135deg, #ffebe9 0%, #ffdbda 100%);
}

.achievement-badge-red i {
  color: #cf222e;
}

.achievement-badge-black {
  border-color: #1b1f23;
  color: #1b1f23;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);
}

.achievement-badge-black i {
  color: #1b1f23;
}

/* Badge container for profiles */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Existing badges */
.badge-special {
  display: inline-block;
  padding: 0.325rem 0.475rem;
  font-size: 75%;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.2em;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-cubic);
}

.badge-success-light {
  box-shadow: none;
  border-color: var(--success-light);
  background-color: var(--success-light);
  color: var(--success-text);
}

.badge-danger-light {
  box-shadow: none;
  border-color: var(--danger-light);
  background-color: var(--danger-light);
  color: var(--danger-color);
}

.badge-primary-light {
  box-shadow: none;
  border-color: var(--info-light);
  background-color: var(--info-light);
  color: var(--info-color);
}

.badge-success-outline {
  box-shadow: none;
  border: 1px solid var(--success-text);
  background-color: transparent;
  color: var(--success-text);
}

.badge-danger-outline {
  box-shadow: none;
  border: 1px solid var(--danger-color);
  background-color: transparent;
  color: var(--danger-color);
}

.badges {
  vertical-align: bottom;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   13. Labels & Tags
   -------------------------------------------------------------------------- */
.Label--outline {
  margin-top: -1px;
  margin-bottom: -1px;
  font-weight: 400;
  color: var(--text-secondary);
  background-color: initial;
  border: 1px solid rgba(27, 31, 35, 0.15);
  box-shadow: none;
  padding: var(--spacing-xs);
}

.Label--outline-green {
  color: var(--success-color);
  border: 1px solid #34d058;
  font-size: var(--font-size-sm);
  line-height: var(--font-size-sm);
  font-weight: 400;
  text-align: right;
}

.topic-tag {
  display: inline-block;
  padding: 0.3em 0.9em;
  margin: 0 0.5em 0.5em 0;
  white-space: nowrap;
  background-color: var(--bg-blue-light);
  border-radius: var(--border-radius-sm);
  color: var(--secondary-color);
  font-size: var(--font-size-sm) !important;
  transition: background-color var(--transition-base);
}

.topic-tag:hover {
  text-decoration: none;
  background-color: #def;
}

.topic-tag-nm {
  display: inline-block;
  padding: 0.3em 0.9em;
  margin: 0;
  white-space: nowrap;
  background-color: var(--bg-blue-light);
  border-radius: var(--border-radius-sm);
  color: var(--secondary-color);
  font-size: var(--font-size-sm) !important;
}

.tags-div {
  margin-bottom: -3px;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-signin {
  width: 100%;
  max-width: 470px;
  padding: 15px;
  margin: auto;
}

.form-label-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label-group > input,
.form-label-group > label {
  height: 3.125rem;
  padding: 0.75rem;
}

.form-label-group > label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  margin-bottom: 0;
  line-height: var(--line-height-base);
  color: var(--text-hint);
  pointer-events: none;
  cursor: text;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.form-label-group input::-webkit-input-placeholder { color: transparent; }
.form-label-group input:-ms-input-placeholder { color: transparent; }
.form-label-group input::-ms-input-placeholder { color: transparent; }
.form-label-group input::-moz-placeholder { color: transparent; }
.form-label-group input::placeholder { color: transparent; }

.form-label-group input:not(:placeholder-shown) {
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
}

.form-label-group input:not(:placeholder-shown) ~ label {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--text-hint);
}

/* Edge fallback */
@supports (-ms-ime-align: auto) {
  .form-label-group > label { display: none; }
  .form-label-group input::-ms-input-placeholder { color: var(--text-hint); }
}

/* IE fallback */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .form-label-group > label { display: none; }
  .form-label-group input:-ms-input-placeholder { color: var(--text-hint); }
}

.auth-form {
  width: 800px;
  margin: 0 auto;
}

.register-form {
  margin-top: 70px;
}

.register-title {
  text-align: center;
  font-size: 2rem;
}

.login-body {
  background-color: var(--bg-light);
}

.login-body label,
.login-body .requiredField,
.form-signin label,
.form-signin .requiredField,
.home-register-form label,
.home-register-form .requiredField,
form label,
form .requiredField,
.card label,
.card .requiredField {
  color: #212529 !important;
  font-weight: 500;
  display: block !important;
  margin-bottom: 0.5rem !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix cursor on number inputs */
input[type="number"] {
  cursor: text;
}

/* Footer "Sell your cheats" button improvements */
.footer .btn-outline-dark {
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-width: 2px;
}

.footer .btn-outline-dark:hover {
  background-color: #343a40;
  border-color: #343a40;
  color: #ffffff;
}

/* Make donate button filled by default */
.footer .btn-outline-warning,
.footer .btn-sm.btn-outline-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
  border-width: 2px;
  font-weight: 500;
}

.footer .btn-outline-warning:hover,
.footer .btn-sm.btn-outline-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
}

/* Footer links darker on white background */
.footer-links a {
  color: #555555;
  font-size: 1rem;
}

.footer-links a:hover {
  color: #000000;
  text-decoration: none;
}

/* Footer text sizing */
.footer h6 {
  font-size: 1.05rem;
  font-weight: 600;
}

.footer .text-small,
.footer small {
  font-size: 0.95rem !important;
}

.footer p {
  font-size: 0.95rem;
}

.home-register-form {
  color: #212529;
}

.home-register-form small,
.home-register-form .text-sm {
  color: #6c757d !important;
}

.home-register-form .form-text {
  display: none;
}

.home-register-form .requiredField {
  font-weight: 600;
}

.home-register-form .asteriskField {
  display: none;
}

.no-labels label {
  display: none;
}

/* Select2 overrides */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
}

.select2-container .select2-selection--single {
  height: 33.5px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5rem !important;
}

/* --------------------------------------------------------------------------
   15. Rating Stars
   -------------------------------------------------------------------------- */
.rating-select {
  unicode-bidi: bidi-override;
  direction: rtl;
  width: 10em;
}

.rating-select input {
  position: absolute;
  left: -999999px;
}

.rating-select label {
  display: inline-block;
  font-size: 0;
}

.rating-select > label:before {
  position: relative;
  font: 24px/1 FontAwesome;
  display: block;
  content: "\f005";
  color: rgb(255, 255, 255);
  background: -webkit-linear-gradient(-45deg, #c4c4c4 0%, #b3b3b3 100%);
  background: linear-gradient(-45deg, #c4c4c4 0%, #b3b3b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-select > label:hover:before,
.rating-select > label:hover ~ label:before,
.rating-select > label.selected:before,
.rating-select > label.selected ~ label:before {
  color: #000000;
  background: -webkit-linear-gradient(-45deg, #000000 0%, #000000 100%);
  background: linear-gradient(-45deg, #000000 0%, #000000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.starslink {
  color: #4e4e4e;
  text-decoration: none;
  transition: color var(--transition-base);
}

.starslink:hover {
  color: var(--secondary-hover);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   16. Spinner / Loading
   -------------------------------------------------------------------------- */
#spinner {
  width: 80px;
  height: 80px;
  border: 2px solid #f3f3f3;
  border-top: 3px solid #f25a41;
  border-radius: 100%;
  -webkit-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}

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

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

#indicator {
  display: none !important;
}

#indicator.show[style*='display: block'],
#indicator.show {
  display: flex !important;
}

/* --------------------------------------------------------------------------
   17. Profile & Avatars
   -------------------------------------------------------------------------- */
.profile-avatar,
.profile-avatar svg,
.profile-avatar img {
  width: 260px;
  height: 260px;
  display: inline-block;
  overflow: hidden;
  line-height: 1;
  vertical-align: middle;
  border: 1px solid var(--border-light);
  border-top-left-radius: var(--border-radius-sm);
  border-top-right-radius: var(--border-radius-sm);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.preview {
  width: 260px;
  height: 260px;
  overflow: hidden;
}

.profile-name {
  font-size: var(--font-size-xxl);
  line-height: 30px;
}

.profile-username {
  font-size: var(--font-size-lg);
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  color: var(--text-light);
}

.profile-details {
  font-size: var(--font-size-base);
  line-height: 21px;
}

.profile-pinned {
  font-size: var(--font-size-md);
  font-weight: 400;
  line-height: 24px;
}

.profile-number {
  font-size: 17px !important;
}

.profile-number-description {
  font-size: 13px !important;
  line-height: 17px !important;
}

.profile-listing-price {
  text-align: right;
  align-items: flex-end;
  float: right;
}

/* Avatar sizes */
.avatar-small svg,
.avatar-small img {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-lg);
}

.avatar-extra-small svg,
.avatar-extra-small img {
  width: 25px;
  height: 25px;
  border-radius: var(--border-radius-lg);
}

/* Avatar colors */
.svg-text-white { fill: white; }
.avatar.color-0 rect { fill: rgb(126, 87, 93); }
.avatar.color-1 rect { fill: brown; }
.avatar.color-2 rect { fill: darkred; }
.avatar.color-3 rect { fill: darkolivegreen; }
.avatar.color-4 rect { fill: darkslategrey; }
.avatar.color-5 rect { fill: darkseagreen; }
.avatar.color-6 rect { fill: darksalmon; }

/* --------------------------------------------------------------------------
   18. Listings & Hacks
   -------------------------------------------------------------------------- */
.listing-name {
  float: left;
}

.listing-avatar,
.listing-avatar svg,
.listing-avatar img {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-lg);
}

.listing-avatar-sm,
.listing-avatar-sm svg,
.listing-avatar-sm img {
  width: 25px;
  height: 25px;
  border-radius: var(--border-radius-lg);
}

.listing-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-lg);
}

.listing-image-lg {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-lg);
}

.list-game-cover {
  border-radius: var(--border-radius-xl);
  width: 60px;
  height: 60px;
  vertical-align: middle;
}

.hack-name {
  font-size: var(--font-size-md) !important;
  font-weight: 400 !important;
  margin-bottom: 10px;
}

.hack-head {
  font-size: 30px;
  color: black;
}

.hack-title {
  font-weight: 600 !important;
  font-size: var(--font-size-md) !important;
  line-height: 24px !important;
}

.hack-detail {
  font-size: var(--font-size-base) !important;
  line-height: 17.5px !important;
}

.hack-icon {
  float: left;
  vertical-align: middle;
}

.hack-icon svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: text-bottom;
}

.hack-icon svg path {
  fill: rgb(114, 114, 114) !important;
}

.active > .hack-icon svg path,
.dark.hack-icon svg path {
  fill: black !important;
}

.hack-image {
  float: left;
}

.path-seperator {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: grey;
}

.button-icon svg {
  width: 14px;
  height: 14px;
  vertical-align: text-bottom;
}

.new-hack-container {
  width: 400px;
  margin: 0 auto 0;
}

.update-hack-container {
  width: 400px;
  margin: 40px auto 0;
}

.update-readme-container {
  width: 700px;
  margin: 40px auto 0;
}

/* Repo/search list */
.repo-list,
.repo-list-item {
  position: relative;
}

.repo-list-item {
  padding-top: 30px;
  padding-bottom: 30px;
  list-style: none;
  border-bottom: 1px solid var(--border-lightest);
}

.search-results .repo-list-item {
  border-bottom: 0;
}

.list-style-none {
  list-style: none !important;
}

/* --------------------------------------------------------------------------
   19. Popovers
   -------------------------------------------------------------------------- */
.popover {
  min-width: 250px !important;
  z-index: var(--z-popover);
}

.popover-name {
  color: black;
  font-size: 15px;
  display: inline;
  margin-right: 2px;
}

.popover-username {
  color: grey;
  display: inline;
}

.popover-image {
  width: 70px;
  height: 70px;
  float: left;
  border-radius: var(--border-radius-lg);
  margin-right: 15px;
  margin-top: 3px;
  margin-bottom: 10px;
}

.popover-svg svg {
  width: 70px;
  height: 70px;
  float: left;
  border-radius: var(--border-radius-lg);
  margin-right: 15px;
  margin-top: 3px;
  margin-bottom: 10px;
}

.developer-name {
  font-size: 15px;
  display: inline;
  margin-right: 2px;
}

.developer-name:hover {
  text-decoration: underline !important;
  text-decoration-color: black !important;
}

/* --------------------------------------------------------------------------
   20. Select Menu
   -------------------------------------------------------------------------- */
.select-menu-modal {
  position: relative;
  width: 300px;
  margin-top: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background-color: var(--bg-white);
  background-clip: padding-box;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
}

.select-menu-divider,
.select-menu-header {
  padding: var(--spacing-sm) 10px;
  line-height: 16px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border-light);
}

.select-menu-list {
  position: relative;
  max-height: 400px;
  overflow: auto;
}

.select-menu-item {
  display: block;
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 30px;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background-color: var(--bg-white);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 1px solid var(--border-lighter);
  transition: background-color var(--transition-base);
}

.select-menu-item:hover {
  background-color: var(--bg-light);
}

/* --------------------------------------------------------------------------
   21. Subhead
   -------------------------------------------------------------------------- */
.Subhead-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  flex: 1 100%;
}

.Subhead-heading {
  font-size: var(--font-size-xl);
  font-weight: 400;
  flex: 1 1 auto;
}

.Subhead-heading-small {
  font-size: var(--font-size-lg);
  font-weight: 400;
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   22. Homepage & Marketing
   -------------------------------------------------------------------------- */
.homepage-banner {
  color: black;
}

.jumbotron-link {
  font-weight: 400;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.125);
}

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.page-footer a {
  color: black;
  font-style: oblique;
  transition: color var(--transition-base);
}

.page-footer a:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   24. Misc Components
   -------------------------------------------------------------------------- */
.p-icon {
  margin-left: -22px;
  margin-top: 0.25rem;
  float: left;
}

.time-td {
  text-align: right;
  vertical-align: bottom;
}

.table-nonfluid {
  width: auto !important;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both;
}

.nounderline {
  text-decoration: none !important;
}

.list-group-item.active {
  color: black !important;
  background: white;
  border-color: lightgray;
  border-left: 5px solid deeppink;
}

.powered__by__btcpayserver {
  display: none !important;
}

/* BTCPay form styles (moved from inline <style> in layout.html) */
.btcpay-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btcpay-form--inline {
  flex-direction: row;
}

.btcpay-form--block {
  flex-direction: column;
}

.btcpay-form--inline .submit {
  margin-left: 15px;
}

.btcpay-form--block select {
  margin-bottom: 10px;
}

.btcpay-form .btcpay-custom-container {
  text-align: center;
}

.btcpay-custom {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btcpay-form .plus-minus {
  cursor: pointer;
  font-size: 25px;
  line-height: 25px;
  background: #DFE0E1;
  height: 30px;
  width: 45px;
  border: none;
  border-radius: 60px;
  margin: auto 5px;
  display: inline-flex;
  justify-content: center;
}

.btcpay-form select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  color: currentColor;
  background: transparent;
  border: 1px solid transparent;
  display: block;
  padding: 1px;
  margin-left: auto;
  margin-right: auto;
  font-size: 11px;
  cursor: pointer;
}

.btcpay-form select:hover {
  border-color: #ccc;
}

.btcpay-form option {
  color: #000;
  background: rgba(0, 0, 0, .1);
}

.btcpay-input-price {
  -moz-appearance: textfield;
  border: none;
  box-shadow: none;
  text-align: center;
  font-size: 25px;
  margin: auto;
  border-radius: 5px;
  line-height: 35px;
  background: #fff;
}

.btcpay-input-price::-webkit-outer-spin-button,
.btcpay-input-price::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 543px) {
  .hide-sm {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .gutter-md-spacious {
    margin-right: -24px;
    margin-left: -24px;
  }

  .gutter-md-spacious > [class*=col-] {
    padding-right: var(--spacing-lg) !important;
    padding-left: var(--spacing-lg) !important;
  }
}

/* --------------------------------------------------------------------------
   25. Inline Style Replacements
   Classes to replace common inline styles found in templates
   -------------------------------------------------------------------------- */

/* Badge icon small (replaces inline font-size: 12px) */
.badge-icon-sm {
  font-size: 12px;
}

/* Review card header colors (replaces inline background-color) */
.review-header-undetected {
  background-color: #def5e5;
}

.review-header-detected {
  background-color: #fbe2e5;
}

/* Review status badge float */
.review-status-badge {
  float: right;
}

/* Review stars nowrap */
.review-stars {
  white-space: nowrap;
}

/* Game card width (replaces inline width: 9rem) */
.game-card {
  width: 9rem;
}

/* Messaging */
.chat-scroll {
  max-height: 500px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 75%;
}

/* Min-height containers */
.min-h-400 {
  min-height: 400px;
}

.min-h-500 {
  min-height: 500px;
}

/* Releases timeline */
.releases-timeline {
  display: flex !important;
}

.releases-date-col {
  display: flex;
  flex-direction: column;
  flex: 0 0 150px;
}

.releases-content {
  border-left: 1px solid rgb(160, 160, 160);
}

/* Review card headers */
.review-header-positive {
  background-color: var(--success-light);
}

.review-header-negative {
  background-color: var(--danger-light);
}

/* Truncated inline-block */
.inline-truncate {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-block {
  display: inline-block;
}

/* Float right badge */
.float-right-badge {
  float: right;
}

/* Hidden form element */
.d-none-form {
  display: none;
}

/* Platform icons */
.platform-icon {
  vertical-align: bottom;
  line-height: 18px;
}

/* Image preview */
.img-preview {
  max-width: 100%;
}

/* Dispute images */
.dispute-img {
  max-height: 200px;
}

.dispute-msg-img {
  max-height: 150px;
}

/* Heading center */
.heading-center {
  text-align: center;
}

/* Price nowrap */
.price-nowrap {
  white-space: nowrap;
}

/* BTCPay image */
.btcpay-img {
  width: 209px;
}

/* Sidebar sticky */
.sidebar-sticky {
  top: 80px;
}

/* API docs */
.api-version-badge {
  font-size: var(--font-size-sm);
}

.api-label {
  font-size: var(--font-size-xs);
  letter-spacing: 1px;
}

.api-endpoint {
  font-size: var(--font-size-md);
}

/* Footer HR */
.footer-hr {
  width: 60px;
}

/* BTCPay donate button */
.btcpay-donate-btn {
  min-width: 150px;
  width: 200px;
  min-height: 57px;
  border-radius: 4px;
  border-style: none;
  background-color: #0f3b21;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.btcpay-donate-btn:hover {
  background-color: #165a33;
}

.btcpay-donate-btn span {
  color: #fff;
}

/* Login logo */
.login-logo {
  border-radius: var(--border-radius-round);
}

/* Sale history alignment */
.text-right {
  text-align: right;
}

/* Seller badge */
.seller-badge-inline {
  font-size: 0.6em;
}

/* Hack base header */
.hack-base-header {
  border-bottom: 1px solid lightgray;
  background-color: var(--bg-lighter);
}

/* Archive icon margin */
.icon-mr {
  margin-right: 5px;
}

/* Nav auto margin top */
.mt-auto-nav {
  margin-top: auto;
}

/* Profile whitespace nowrap */
.ws-nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   26. Responsive Improvements
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  .navbar-search {
    width: 200px;
  }

  .navbar-search:focus {
    width: 250px;
  }

  .auth-form {
    width: 100%;
    padding: 0 var(--spacing-md);
  }

  .new-hack-container,
  .update-hack-container {
    width: 100%;
    padding: 0 var(--spacing-md);
  }

  .update-readme-container {
    width: 100%;
    padding: 0 var(--spacing-md);
  }

  .profile-avatar,
  .profile-avatar svg,
  .profile-avatar img,
  .preview {
    width: 180px;
    height: 180px;
  }

  .hack-head {
    font-size: 22px;
  }

  .h000-mktg {
    font-size: 32px !important;
  }

  .select-menu-modal {
    width: 100%;
    max-width: 300px;
  }

  .releases-date-col {
    flex: 0 0 100px;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .inline-truncate {
    max-width: 120px;
  }
}

@media (max-width: 767px) {
  .fake-container {
    margin-left: 2%;
    margin-right: 2%;
  }

  .game-card {
    min-width: 7rem;
    max-width: 7rem;
  }
}

/* --------------------------------------------------------------------------
   27. Hack Card Component
   -------------------------------------------------------------------------- */
.hack-card {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

.hack-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hack-card a {
  color: inherit;
  text-decoration: none;
}

.hack-card .card-footer {
  background-color: var(--bg-gray);
  border-top: 1px solid var(--border-lighter);
}

.hack-description-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Game detail cover */
.game-detail-cover {
  width: 120px;
  border-radius: 8px;
}

/* Nav active state */
.navbar .navlink.active,
.navbar .nav-link.active-nav {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Empty state improved */
.empty-state {
  padding: 3rem 1rem;
}

.empty-state i {
  color: var(--border-color);
  display: block;
  margin-bottom: 1rem;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page .error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--border-color);
  line-height: 1;
}

.error-page .error-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-page .error-actions {
  margin-top: 1.5rem;
}

.error-page .error-actions .btn {
  margin: 0.25rem;
}

/* Seller tier badges enhanced */
.seller-tier-new {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

/* --------------------------------------------------------------------------
   28. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  .navbar,
  .page-footer,
  .nav-pills,
  .nav-tabs,
  .btn,
  .pay-btn,
  #spinner {
    display: none !important;
  }

  .container-small,
  .container-large {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ===== Footer ===== */
.footer-links li { margin-bottom: 0.5rem; }

/* iPad view improvements */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Game cards - smaller on iPad */
  .game-card {
    max-width: 140px;
  }

  .game-card img {
    max-height: 190px;
    object-fit: cover;
  }

  /* Hack cards - control size */
  .col-auto {
    flex: 0 0 auto;
    max-width: 200px;
  }

  /* Footer columns better spacing */
  .footer .col-6,
  .footer .col-sm-6,
  .footer .col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .footer .col-lg-3,
  .footer .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
  }

  /* Center footer content on iPad */
  .footer .row {
    justify-content: center;
  }
}

/* ===== Toast overrides ===== */
.toast { min-width: 280px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ===== Back to top ===== */
#back-to-top { transition: opacity .3s; opacity: .8; }
#back-to-top:hover { opacity: 1; }

/* ===== Focus styles for accessibility ===== */
a:focus, button:focus, input:focus, select:focus, textarea:focus,
.btn:focus, .form-control:focus, .nav-link:focus, .list-group-item:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25) !important;
}

/* ===== Mobile: search filters collapse ===== */
@media (max-width: 991.98px) {
    .search-filters-collapse { display: none; }
    .search-filters-collapse.show { display: block; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
}

/* ===== Responsive tables ===== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Social login buttons */
.btn-social {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.btn-social:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

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

.social-login-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-login-section hr {
  margin: 1.5rem 0;
}

/* Hide breadcrumb position numbers - NUCLEAR OPTION */
.breadcrumb,
ol.breadcrumb,
.breadcrumb.bg-transparent,
nav ol.breadcrumb {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 1.5rem !important;
  padding-top: 0.75rem !important;
  counter-reset: none !important;
}

.breadcrumb-item,
ol.breadcrumb li,
.breadcrumb li,
li.breadcrumb-item {
  list-style: none !important;
  list-style-type: none !important;
  list-style-position: outside !important;
  display: inline-block !important;
  padding: 0.25rem 0 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/" !important;
  padding: 0 0.75rem;
  color: var(--text-muted);
}

.breadcrumb-item meta {
  display: none;
}

/* Ensure no counter/marker is displayed */
.breadcrumb-item::marker,
ol.breadcrumb li::marker,
.breadcrumb li::marker {
  content: "" !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Kill any counters */
.breadcrumb-item::before {
  content: none !important;
}

.breadcrumb-item:first-child::before {
  content: none !important;
}
