body {

  margin: 0;

  font-family: Arial, sans-serif;

  background: #0b0b0f;

  color: #ffffff;

}

.test-realm-banner {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #5c1018;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #8b1a28;
}

.test-realm-banner a {
  color: #ffd4da;
  text-decoration: underline;
}

.test-realm-banner strong {
  letter-spacing: 0.06em;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 11, 15, 0.95);
  border-bottom: 1px solid #222;
  padding: 12px 16px;
  backdrop-filter: blur(8px);
  text-align: left;
  margin-bottom: 0;
}

.site-bar__home {
  display: inline-block;
  line-height: 0;
}

.site-bar__home:hover {
  opacity: 0.85;
}

.site-bar__logo {
  height: 72px;
  width: auto;
  max-width: 240px;
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin: 0;
}





.container {

  max-width: 900px;

  margin: 0 auto;

  padding: 40px 20px;

}







header:not(.site-bar) {

  text-align: center;

  margin-bottom: 40px;

}







.logo {

  width: 360px;

  max-width: 95%;

  display: block;

  margin: 0 auto 25px auto;

}

/* Prevent landing-page logo styles from affecting the top bar */
.site-bar .logo,
.site-bar__logo {
  width: auto;
  max-width: 240px;
  height: 72px;
  max-height: 72px;
  margin: 0;
}







h1 {

  font-size: 42px;

  letter-spacing: 2px;

  margin-bottom: 10px;

}







.tagline {

  color: #aaaaaa;

  font-size: 18px;

}



.slogan {

  color: #ffffff;

  font-weight: bold;

  letter-spacing: 2px;

}







.card {


  background: #15151d;


  padding: 25px;


  margin-bottom: 20px;


  border-radius: 10px;


}







.highlight {


  border-left: 4px solid #ff2d2d;


}







.button {


  display: inline-block;


  margin-top: 10px;


  padding: 12px 20px;


  background: #5865F2;


  color: white;


  text-decoration: none;


  border-radius: 6px;


  font-weight: bold;


}







.button:hover {


  opacity: 0.85;


}







.button.secondary {


  background: #ff2d2d;


}







footer {


  text-align: center;


  margin-top: 40px;


  color: #666;


  font-size: 12px;


}

.logo-small {
  width: 240px;
}

.join-card {
  padding: 30px;
}

.join-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  color: #e0e0e8;
}

.join-unified {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.join-unified__block h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.join-unified__block--qr {
  text-align: center;
}

.tbc-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #252530;
}

.tbc-subnav__link {
  color: #a8a8b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
}

.tbc-subnav__link:hover,
.tbc-subnav__link--active {
  color: #c9a227;
}

.tbd-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tbd-search-input {
  flex: 1 1 220px;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 1rem;
}

.tbd-search-select {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
}

.tbd-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.tbd-result h3 { margin-top: 0; }
.tbd-logo {
  display: block;
  max-width: 160px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem;
}
.tbd-meta { color: #c9a227; font-size: 0.9rem; margin: 0.25rem 0 0.5rem; }
.tbd-badge {
  font-size: 0.7rem;
  background: rgba(201, 162, 39, 0.2);
  color: #c9a227;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.join-panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.hint {
  color: #aaaaaa;
  line-height: 1.5;
}

.hint-small {
  font-size: 13px;
  margin-top: 12px;
}

.join-button {
  margin-top: 16px;
  font-size: 16px;
  padding: 14px 24px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.link-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #cccccc;
  word-break: break-all;
}

.button-copy {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
}

.button-copy:hover {
  background: #333;
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  margin: 16px 0 12px;
}

.qr-image {
  display: block;
  width: 256px;
  height: 256px;
}

.download-qr {
  margin-top: 0;
}

.join-steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.back-link {
  text-align: center;
  margin: 24px 0;
}

.back-link a {
  color: #5865F2;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .join-unified {
    grid-template-columns: 1fr;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Calendar ——— */

.container--wide {
  max-width: 1200px;
}

.cal-page-header {
  text-align: center;
  margin-bottom: 24px;
}

.cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.cal-nav__label {
  min-width: 160px;
  font-size: 18px;
}

.cal-nav__btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: bold;
}

.cal-nav__btn:hover {
  background: #333;
}

.cal-nav__btn--today {
  background: #5865F2;
  border-color: #5865F2;
}

.cal-nav__btn--today:hover {
  background: #4752c4;
}

.cal-status {
  text-align: center;
  opacity: 0.7;
  font-size: 13px;
  margin-top: 10px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.cal-head {
  background: #222;
  text-align: center;
  font-weight: bold;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 13px;
}

.cal-day {
  background: #15151d;
  border-radius: 8px;
  min-height: 130px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  border: 1px solid #222;
}

.cal-day--empty {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.cal-day--today {
  border-color: #5865F2;
  box-shadow: inset 0 0 0 1px #5865F2;
}

.cal-day__num,
.cal-day__open {
  font-weight: bold;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cal-day__open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
}

.cal-day__open:hover {
  color: #fff;
}

.cal-day__more {
  border: 0;
  background: transparent;
  color: #c9a227;
  font-size: 11px;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  padding: 2px 0 0;
}

.cal-day__count {
  background: #5865F2;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
}

.cal-day__events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 68px;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #000;
}

.event-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.event-card--activity .event-card__overlay,
.event-card--ride .event-card__overlay {
  background: linear-gradient(to bottom, rgba(80, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.event-card--event .event-card__overlay {
  background: linear-gradient(to bottom, rgba(30, 35, 100, 0.45) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.event-card__content {
  position: relative;
  z-index: 1;
  padding: 6px;
  color: #fff;
  font-size: 10px;
  line-height: 1.35;
  min-height: 68px;
  display: flex;
  flex-direction: column;
}

.event-card__title {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__sponsor {
  opacity: 0.9;
  font-size: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__details {
  margin-top: auto;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.event-card__details:hover {
  background: rgba(255, 255, 255, 0.28);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-panel {
  position: relative;
  background: #15151d;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  margin-bottom: 16px;
  padding-right: 28px;
}

.modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-badge--ride {
  background: #ff2d2d;
  color: #fff;
}

.modal-badge--event {
  background: #5865F2;
  color: #fff;
}

.modal-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.modal-sponsor {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

.modal-flyer {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.detail-list {
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
  font-size: 14px;
}

.detail-row dt {
  color: #888;
  font-weight: bold;
}

.detail-row dd {
  margin: 0;
  word-break: break-word;
}

.day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-list__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #101018;
  border: 1px solid #333;
  border-radius: 8px;
}

.day-list__item strong {
  display: block;
  margin-bottom: 4px;
}

.day-list__item span {
  color: #aaa;
  font-size: 13px;
}

.day-back {
  margin-top: 16px;
  background: transparent;
  border: 1px solid #5865F2;
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .cal-grid {
    gap: 4px;
  }

  .cal-day {
    min-height: 100px;
  }

  .cal-day__events {
    max-height: none;
  }

  .event-card {
    min-height: 58px;
  }

  .event-card__content {
    min-height: 58px;
  }
}

@media (max-width: 600px) {
  .cal-head {
    font-size: 11px;
    padding: 8px 2px;
  }

  .cal-day__num {
    font-size: 11px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Legal & policy pages */
.legal-nav {
  margin: 20px 0;
  padding: 16px;
  background: #15151c;
  border-radius: 8px;
  border: 1px solid #333;
}

.legal-nav a {
  display: block;
  color: #e63946;
  margin: 8px 0;
  text-decoration: underline;
}

.legal-hub-section {
  margin-bottom: 28px;
}

.legal-hub-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.doc-link {
  display: block;
  margin: 10px 0;
  padding: 12px 16px;
  background: #15151c;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.doc-link:hover {
  border-color: #e63946;
}

.doc-link small {
  display: block;
  color: #aaa;
  margin-top: 4px;
  font-size: 13px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid #333;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

/* ——— Destinations map ——— */

.container--map {
  max-width: 1200px;
}

#destinationsMap {
  height: min(70vh, 640px);
  width: 100%;
  border-radius: 10px;
  border: 1px solid #333;
  z-index: 1;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 16px 0;
  font-size: 14px;
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-pin__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #2ecc71;
  border: 2px solid #fff;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.map-pin__inner--gold {
  background: linear-gradient(135deg, #ffd700, #c9a227);
  color: #111;
  font-weight: bold;
  transform: rotate(-45deg);
}

.map-pin--rider .map-pin__inner span,
.map-pin--rider .map-pin__inner {
  transform: rotate(-45deg);
}

.map-pin__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.map-popup__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.map-popup__badge--rider { color: #2ecc71; }
.map-popup__badge--sponsored { color: #ffd700; }

.map-popup__meta {
  color: #888;
  font-size: 12px;
}

.map-status {
  color: #aaa;
  font-size: 14px;
  margin-top: 8px;
}

/* ——— Brand portal ——— */

.portal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.portal-tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #15151c;
  color: #ccc;
  cursor: pointer;
  font-weight: 600;
}

.portal-tab.is-active {
  border-color: #c9a227;
  color: #ffd700;
  background: #1a1810;
}

.portal-panel[hidden] {
  display: none !important;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}

.data-table th,
.data-table td {
  border: 1px solid #333;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #16161c;
  color: #c9a227;
}

.status-active { color: #2ecc71; font-weight: 600; }
.status-expired { color: #e74c3c; }
.status-pending { color: #f1c40f; }

.template-block {
  background: #0f0f14;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.template-block label {
  display: block;
  font-weight: 600;
  color: #c9a227;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.template-block textarea {
  width: 100%;
  min-height: 72px;
  background: #15151c;
  border: 1px solid #444;
  color: #eee;
  border-radius: 6px;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #222;
  color: #eee;
  cursor: pointer;
  font-size: 13px;
}

.btn-sm--gold {
  background: #c9a227;
  color: #111;
  border-color: #c9a227;
  font-weight: 600;
}

.poc-card {
  background: #0f0f14;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 14px;
  margin: 10px 0;
}

.poc-card h4 {
  margin: 0 0 4px;
  color: #ffd700;
}

.poc-card p {
  margin: 4px 0;
  font-size: 14px;
  color: #bbb;
}

.access-box {
  border: 1px dashed #555;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.access-box .button {
  margin-top: 12px;
}

.admin-hint {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}


.legal-table th {
  background: #15151c;
}

.mp-tabs, .mp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.mp-tabs[hidden] {
  display: none;
}

.mp-tab, .mp-select, .mp-search {
  background: #15151d;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  font: inherit;
  padding: 0.55rem 0.75rem;
}

.mp-tab--on {
  border-color: #c9a227;
  color: #c9a227;
}

.mp-search {
  flex: 1 1 12rem;
  min-width: 0;
}

.mp-page {
  max-width: 1360px;
}

.mp-searchbar { margin: 0.25rem 0 0.85rem; }

.mp-search {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font: inherit;
  padding: 0.75rem 0.9rem;
}

.mp-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.mp-body .mp-filters {
  display: block;
  margin: 0;
  padding: 0.85rem;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #15151d;
}

.mp-filters__head, .mp-results, .mp-price-row, .mp-card__flags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.mp-price-row input, .mp-results select {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font: inherit;
  padding: 0.45rem 0.5rem;
}

.mp-filter-label {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ddd;
}

.mp-textbtn {
  background: none;
  border: 0;
  color: #c9a227;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.mp-results { margin-bottom: 0.6rem; }
.mp-results label { display: flex; align-items: center; gap: 0.4rem; color: #aaa; }

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.mp-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #15151d;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #000;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.mp-card__photo {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #111;
}

.mp-detail-card {
  width: min(960px, 100%);
}

.mp-detail__photo {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.mp-card__placeholder, .mp-detail__placeholder {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 8rem;
  padding: 0.75rem;
  color: #aaa;
  font-size: 0.85rem;
  background: #1c1c24;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #000;
}

.mp-detail a {
  color: #f4f4f4;
  text-decoration: underline;
}

.mp-card__body, .mp-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem 1rem;
}

.mp-card__price, .mp-detail__price {
  color: #c9a227;
  font-weight: bold;
  margin: 0.15rem 0;
}

.mp-card__title {
  font-weight: bold;
  margin: 0;
}

.mp-card__meta, .mp-muted {
  color: #aaa;
  font-size: 0.85rem;
  margin: 0.15rem 0 0;
}

.mp-badge {
  display: inline-block;
  border: 1px solid #c9a227;
  color: #c9a227;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.45rem;
  margin-bottom: 0.35rem;
}

.mp-detail__photos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 100%;
}

.mp-app--detail #mp-filters,
.mp-app--detail #mp-filter-toggle,
.mp-app--detail .mp-results,
.mp-app--detail .mp-searchbar,
.mp-app--detail #mp-tabs,
.mp-app--detail #mp-cats {
  display: none;
}

.mp-app--detail .mp-body { grid-template-columns: 1fr; }

.mp-phone {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  user-select: text;
}

.mp-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.mp-cats[hidden] { display: none; }

.mp-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.mp-seller, .mp-disclaimer-block, .mp-about {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #000;
  border-radius: 8px;
  background: #15151d;
  padding: 1rem;
}

.mp-kicker {
  color: #aaa;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.mp-gallery__main {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #fff;
}

.mp-gallery__nav, .mp-thumbs, .mp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.mp-thumb {
  width: 72px;
  padding: 0;
  border: 2px solid #333;
  background: #111;
  cursor: pointer;
}

.mp-thumb--on { border-color: #c9a227; }

.mp-thumb img {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: cover;
}

.mp-contact, .mp-discord, .mp-whatsapp {
  display: inline-block;
  margin-top: 0.6rem;
  background: #c9a227;
  color: #111;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: bold;
  padding: 0.7rem 1rem;
  text-decoration: none;
  cursor: pointer;
}

.mp-discord, .mp-whatsapp {
  background: transparent;
  color: #f4f4f4;
  border: 1px solid #f4f4f4;
}

.mp-note, .mp-disclaimer-block p, .mp-about p {
  color: #ddd;
  line-height: 1.45;
}

.mp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}

.mp-specs dt { color: #888; font-size: 0.8rem; }
.mp-specs dd { margin: 0.1rem 0 0; }

.mp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mp-modal__card {
  width: min(640px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #15151d;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 1rem 1.1rem 1.2rem;
}

.mp-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.8rem 0;
}

.mp-about {
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border-color: #c9a227;
  background:
    radial-gradient(circle at 88% 42%, rgba(201, 162, 39, 0.28), transparent 28%),
    radial-gradient(circle at 96% 70%, rgba(80, 50, 10, 0.45), transparent 32%),
    #0c0c10;
}

.mp-about h2 {
  display: inline-block;
  border-bottom: 3px solid #c9a227;
  padding-bottom: 0.2rem;
  margin-bottom: 0.35rem;
}

.mp-about .mp-tab--on {
  border-color: #c9a227;
  color: #f4e2a4;
}

.mp-about__panel[hidden] { display: none; }

.mp-about__list {
  margin: 0.4rem 0 1rem;
  padding-left: 1.15rem;
  color: #ddd;
}

.mp-about__list li { margin: 0.45rem 0; }

.mp-about__back {
  margin: 1.2rem 0 0;
  text-align: center;
}

.mp-about__back a { color: #8eb4ff; }

@media (max-width: 800px) {
  .mp-detail-layout, .mp-specs { grid-template-columns: 1fr; }
  .mp-page { padding-left: 16px; padding-right: 16px; }
}

.mp-back {
  margin-bottom: 0.75rem;
}

@media (min-width: 801px) {
  #mp-filter-toggle { display: none; }
}

@media (max-width: 800px) {
  .mp-body { grid-template-columns: 1fr; }
  .mp-filters { display: none; }
  .mp-filters--open { display: block; }
}