/* Next.js overrides to match legacy theme (must load last) */

/* Global page background (same asset + overlays on every route) */
html {
  min-height: 100%;
  background-color: var(--gt-bg, #0b0e13);
}

body {
  color: var(--gt-white, #ffffff) !important;
  background-color: var(--gt-bg, #0b0e13) !important;
  background-image:
    linear-gradient(180deg, rgba(11, 14, 19, 0.88), rgba(11, 14, 19, 0.94)),
    radial-gradient(900px 420px at 50% -15%, rgba(255, 8, 8, 0.16), transparent 55%),
    url("/assets/img/bg.jpg") !important;
  background-repeat: no-repeat !important;
  background-size: cover, cover, cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
}

@media (max-width: 991px) {
  body {
    background-attachment: scroll !important;
  }
}

/* Home hub: mobile-shell CSS uses opaque gradients on #sp-home-hub — they hide the global body background */
#sp-home-hub {
  background: transparent !important;
  overflow: visible !important;
}

#sp-home-hub.fix {
  overflow: visible !important;
}

/* Home landing: .fix clips flank PNGs + .gt-gallery-slider negative margins */
.sp-home-landing-sections > section.fix {
  overflow: visible !important;
}

/* Hub shortcuts → Squad up: light separation only */
#sp-home-hub .sp-home-landing-sections {
  margin-top: clamp(0.35rem, 1.2vw, 0.65rem);
}

#sp-home-hub .sp-home-landing-sections > section:first-child.section-padding {
  padding-top: 0 !important;
}

.sp-bank-card__corner-stack {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.sp-bank-card__corner-stack .sp-bank-card__corner-logo {
  position: static;
}

.sp-balance-visibility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.sp-balance-visibility-btn--corner {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.sp-balance-visibility-btn--corner i {
  font-size: 0.95rem;
}

.sp-balance-visibility-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--gt-white, #fff);
}

.sp-balance-visibility-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.25);
}

/* App mains with .fix — transparent decor extends past inner sections */
.sp-page-wallet.fix,
.sp-page-report.fix,
.sp-page-tournaments.fix,
.sp-page-tournament.fix {
  overflow: visible !important;
}

.card,
.card.mb-0 {
  background: var(--gt-bg-2, #1c1d20) !important;
  color: var(--gt-white, #ffffff) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
}

.card hr {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Tablet / iPad+: floating tab bar — wider on desktop than fit-content pill */
@media (min-width: 768px) {
  body.sp-mobile-nav-on {
    padding-bottom: calc(4.25rem + 24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sp-mobile-nav {
    display: flex !important;
    width: min(680px, calc(100% - 40px)) !important;
    max-width: calc(100% - 32px) !important;
    min-width: min(420px, calc(100% - 40px)) !important;
    left: 50% !important;
    right: unset !important;
    transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    justify-content: space-evenly !important;
    gap: 0.35rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.5rem !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  }

  .sp-mobile-nav a {
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 4.5rem;
    padding: 0.5rem 0.65rem 0.45rem !important;
    font-size: 11px !important;
  }

  .sp-mobile-nav a i {
    font-size: 1.35rem !important;
  }
}

@media (min-width: 1200px) {
  .sp-mobile-nav {
    width: min(820px, calc(100% - 48px)) !important;
    min-width: min(560px, calc(100% - 48px)) !important;
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
    gap: 0.5rem;
  }

  .sp-mobile-nav a {
    min-width: 5.5rem;
    padding: 0.55rem 0.85rem 0.5rem !important;
    font-size: 12px !important;
  }

  .sp-mobile-nav a i {
    font-size: 1.45rem !important;
  }
}

/* Account: space below absolute header (.section-padding top was overridden by inline paddingTop: 20) */
.sp-page-account {
  padding-top: clamp(96px, 10vw, 128px) !important;
}

.sp-page-account__title {
  margin: 0 0 10px;
}

/* Account: main card inner padding (Bootstrap .card has no horizontal padding) */
.sp-ac-main-card.card {
  padding: 18px 18px 22px !important;
}

@media (min-width: 768px) {
  .sp-ac-main-card.card {
    padding: 22px 26px 28px !important;
  }
}

/* Account: main may bleed for layout; card + wrap clip — decor stays inside wrap (no negative inset) */
.sp-page-account.fix {
  overflow: visible !important;
}

/* visible: dropdowns (portal) + footer actions must not clip; decor stays inside via positioned max sizes */
.sp-page-account .sp-ac-main-card.card {
  overflow: visible;
}

.sp-page-account .sp-ac-main-card .sp-form-codm-wrap {
  overflow: visible;
}

/* Settings: save row full width, never beside the currency column */
#sp-account-edit .sp-ac-actions {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  margin-top: 1.25rem !important;
  padding-bottom: 4px;
}

#sp-account-edit .sp-ac-actions > .gt-theme-btn,
#sp-account-edit .sp-ac-actions > a.gt-theme-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  justify-content: center;
}

@media (min-width: 768px) {
  #sp-account-edit .sp-ac-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }

  #sp-account-edit .sp-ac-actions > .gt-theme-btn,
  #sp-account-edit .sp-ac-actions > a.gt-theme-btn {
    width: auto;
    min-width: 160px !important;
  }
}

.sp-page-account .sp-ac-main-card .sp-form-codm-decor {
  bottom: 0;
  right: 0;
  left: auto;
  top: auto;
  width: min(52%, 292px);
  height: min(48vh, 400px);
  max-height: min(48vh, 92%);
  opacity: 0.19;
}

.sp-page-account .sp-ac-main-card .sp-form-codm-decor.sp-form-codm-decor--tall {
  height: min(54vh, 440px);
  max-height: min(54vh, 94%);
  opacity: 0.16;
}

.sp-ac-profile-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 0.75rem;
  align-items: start;
}

@media (min-width: 768px) {
  .sp-ac-profile-top {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 16px 20px;
    margin-bottom: 0.65rem;
  }
}

.sp-ac-profile-id {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sp-ac-profile-upload {
  min-width: 0;
}

.sp-ac-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .sp-ac-avatar-preview {
    width: 108px;
    height: 108px;
  }
}

.sp-ac-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-ac-avatar-placeholder {
  font-size: 2.25rem;
  opacity: 0.9;
}

.sp-ac-meta-line {
  margin-bottom: 0.85rem !important;
  margin-top: 0;
}

.sp-ac-form-grid {
  --bs-gutter-y: 0.85rem;
}

/* Account → My tournaments: list inside card */
.sp-ac-my-matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.sp-my-tournament-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.sp-my-tournament-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.sp-my-tournament-row:hover {
  border-color: rgba(255, 8, 8, 0.28);
  background: rgba(0, 0, 0, 0.3);
}

.sp-my-tournament-row__main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
}

.sp-my-tournament-row__main:hover {
  color: inherit;
}

.sp-my-tournament-row__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.sp-my-tournament-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-my-tournament-row__text {
  min-width: 0;
  flex: 1 1 auto;
}

.sp-my-tournament-row__title {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-my-tournament-row__meta {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-my-tournament-row__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.sp-my-tournament-row__btn.gt-theme-btn {
  padding: 0.4rem 0.78rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  min-height: 0 !important;
  line-height: 1.25;
  white-space: nowrap;
}

.sp-my-tournaments-compact-btn.gt-theme-btn {
  padding: 0.32rem 0.65rem !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  min-height: 0 !important;
}

@media (max-width: 575.98px) {
  .sp-my-tournament-row {
    flex-wrap: wrap;
  }

  .sp-my-tournament-row__main {
    flex: 1 1 100%;
  }

  .sp-my-tournament-row__cta {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

#sp-account-my-tournaments h4,
#sp-account-find h4,
#sp-account-organize h4 {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
}

#sp-account-edit .form-clt,
#sp-account-booking .form-clt,
#sp-account-organize .form-clt,
#sp-account-find .form-clt,
#sp-account-my-tournaments .form-clt,
#sp-report-form .form-clt,
#sp-wallet-convert .form-clt,
.sp-page-my-tournaments .form-clt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

#sp-account-edit .form-clt > span:first-of-type,
#sp-account-booking .form-clt > span:first-of-type,
#sp-account-organize .form-clt > span:first-of-type,
#sp-account-find .form-clt > span:first-of-type,
#sp-account-my-tournaments .form-clt > span:first-of-type,
#sp-report-form .form-clt > span:first-of-type,
#sp-wallet-convert .form-clt > span:first-of-type,
.sp-page-my-tournaments .form-clt > span:first-of-type {
  display: block;
  margin-bottom: 7px;
  padding-right: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

#sp-account-edit .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-booking .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-organize .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-find .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-my-tournaments .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-report-form .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-wallet-convert .form-clt input:not([type="checkbox"]):not([type="radio"]),
.sp-page-my-tournaments .form-clt input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
}

#sp-account-edit .form-clt input:focus,
#sp-account-booking .form-clt input:focus,
#sp-account-organize .form-clt input:focus,
#sp-account-find .form-clt input:focus,
#sp-account-my-tournaments .form-clt input:focus,
#sp-report-form .form-clt input:focus,
#sp-wallet-convert .form-clt input:focus,
.sp-page-my-tournaments .form-clt input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

#sp-account-edit .form-clt textarea,
#sp-report-form .form-clt textarea {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  resize: vertical;
}

#sp-account-edit .form-clt textarea:focus,
#sp-report-form .form-clt textarea:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

/* Account: sidebar sections */
.sp-ac-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 992px) {
  .sp-ac-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
}

.sp-ac-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(28, 29, 32, 0.65);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.sp-ac-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-ac-sidebar__toggle {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  min-width: 0 !important;
}

.sp-ac-sidebar__toggle i {
  font-size: 1.1rem;
}

.sp-ac-sidebar__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.sp-ac-sidebar__nav {
  display: grid;
  padding: 10px;
  gap: 8px;
}

.sp-ac-sidebar__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.sp-ac-sidebar__btn.is-active {
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.12);
}

.sp-ac-sidebar__btn i {
  opacity: 0.8;
}

.sp-ac-sidebar__signout {
  margin: 8px 10px 12px;
  width: calc(100% - 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 80, 80, 0.45);
  background: rgba(255, 8, 8, 0.08);
  color: #ffb4b4 !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .sp-ac-sidebar.is-collapsed .sp-ac-sidebar__nav {
    display: none;
  }
}

/* Header: constrain raster logo (replaces small SVG from theme) */
.header-1 .header-left .logo .header-logo img {
  height: auto !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain;
}

.sp-landing {
  padding-top: 14px;
  padding-bottom: 80px;
  min-height: 100vh;
  filter: none !important;
  backdrop-filter: none !important;
}

.sp-landing .sp-home-hub__container {
  padding-top: 0 !important;
}

.sp-landing-header .header-right {
  gap: 10px;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

.sp-landing-header .header-right .gt-theme-btn {
  min-width: 0;
  line-height: 1.1;
}

.sp-landing-header.header-1 {
  position: relative;
  top: auto;
  left: auto;
}

@media (max-width: 520px) {
  .sp-landing-header .header-main {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  .sp-landing-header .header-right {
    gap: 8px;
  }
  .sp-landing-header .header-right .gt-theme-btn {
    padding: 10px 14px;
  }
}

.sp-landing-hero {
  position: relative;
  min-height: clamp(200px, 22vw, 320px);
  margin: 6px 0 12px;
  border-radius: 18px;
  overflow: hidden;
  background-image: url("/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none !important;
  backdrop-filter: none !important;
}

.sp-landing-hero__soldier {
  position: absolute;
  left: 0;
  bottom: -22px;
  top: auto;
  width: min(32vw, 260px);
  max-width: 260px;
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

@media (max-width: 991px) {
  .sp-landing-hero__soldier {
    width: min(44vw, 230px);
    bottom: -18px;
    left: 0;
    opacity: 0.45;
  }
}

@media (max-width: 520px) {
  .sp-landing-hero__soldier {
    display: none;
  }
}

.offcanvas__logo img {
  height: auto !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
}

@media (max-width: 991px) {
  .header-1 .header-left .logo .header-logo img {
    max-height: 36px !important;
    max-width: 140px !important;
  }
}

/* Offcanvas: slide from RIGHT */
.offcanvas__info {
  left: auto !important;
  right: 0 !important;
  border-right: none !important;
  border-left: 2px solid var(--gt-theme, #ff0808) !important;
  transform: translateX(calc(100% + 80px)) !important;
  background: var(--gt-bg-2, #1c1d20) !important;
}

.offcanvas__info.info-open {
  transform: translateX(0) !important;
}

.offcanvas__wrapper .offcanvas__content .text {
  color: rgba(255, 255, 255, 0.78) !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact h4 {
  color: var(--gt-white, #fff) !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact ul li a {
  color: rgba(255, 255, 255, 0.88) !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact .social-icon a {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.sp-offcanvas-nav {
  display: grid;
  gap: 8px;
}

.sp-offcanvas-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--gt-white, #fff) !important;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.sp-offcanvas-nav__link i {
  color: var(--gt-theme, #ff0808);
}

.sp-header-icon-btn {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  color: inherit;
  line-height: 1;
}

.header-right-icon .sp-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.sidebar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove empty meanmenu bar if legacy scripts inject markup */
.mean-container .mean-bar:empty {
  display: none !important;
}

/* Closed menu / search layers: must not intercept vertical scroll touches (iOS) */
.offcanvas__overlay:not(.overlay-open) {
  pointer-events: none !important;
}

.search-popup:not(.active) {
  pointer-events: none !important;
}

/* Invite search: legacy focus used var(--gt-header) (#fff) → invisible on white input; body is also white !important */
.search-popup__form input[type="search"],
.search-popup__form input[type="text"] {
  color: #141414 !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #141414;
}

.search-popup__form input[type="search"]::placeholder,
.search-popup__form input[type="text"]::placeholder {
  color: #6b7280;
  opacity: 1;
}

.search-popup__form input[type="search"]:focus,
.search-popup__form input[type="text"]:focus {
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a;
}

/* Tournament / match detail — compact toolbar, no stretched thumbs, readable copy */
.sp-page-tournament {
  text-transform: none;
  padding-top: clamp(92px, 13vw, 128px) !important;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden;
}

@media (max-width: 991.98px) {
  .sp-page-tournament,
  .sp-page-tournaments {
    touch-action: pan-y pinch-zoom;
  }

  .sp-app__content {
    overflow: visible;
    min-height: 0;
  }
}

.sp-tournament-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  gap: 10px;
  margin: 0 0 1rem;
  width: 100%;
}

.sp-tournament-toolbar .sp-tournament-toolbar__btn {
  flex: 0 1 auto !important;
  align-self: center !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: calc(50% - 5px);
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}

.sp-tournament-statusline {
  margin: 0 0 0.75rem;
}

.sp-tournament-thumb-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.sp-tournament-thumb {
  width: 100%;
  height: auto;
  max-height: min(60vh, 520px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.sp-tournament-title {
  font-size: clamp(1.2rem, 4.2vw, 1.65rem);
  line-height: 1.25;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--gt-white, #fff);
}

.sp-tournament-meta {
  margin: 0 0 1.1rem;
  line-height: 1.55;
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.sp-tournament-actions {
  margin: 0 0 0.25rem;
}

.sp-tournament-actions--row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sp-tournament-join {
  min-width: 0 !important;
  width: 100%;
  max-width: 340px;
  padding: 14px 22px !important;
  font-size: 14px !important;
}

.sp-tournament-note,
.sp-tournament-msg {
  margin-top: 10px;
  line-height: 1.45;
  text-transform: none;
}

.sp-tournament-section {
  margin-top: 22px;
}

.sp-tournament-section__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.sp-tournament-section__text {
  line-height: 1.6;
  margin: 0;
  text-transform: none;
}

.sp-manage-lobby .sp-tournament-section .gt-theme-btn {
  padding: 0.3rem 0.6rem !important;
  font-size: 0.72rem !important;
  min-height: 0 !important;
  min-width: 0 !important;
  line-height: 1.25;
  letter-spacing: 0.05em;
  white-space: normal;
  text-align: center;
  max-width: min(100%, 280px);
}

@keyframes sp-room-status-cta-blink {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.9;
    filter: brightness(1.12);
  }
}

@keyframes sp-room-status-cta-glow-start {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45);
  }
  50% {
    box-shadow: 0 0 28px 8px rgba(25, 135, 84, 0.38);
  }
}

@keyframes sp-room-status-cta-glow-complete {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
  }
  50% {
    box-shadow: 0 0 32px 10px rgba(220, 53, 69, 0.42);
  }
}

.sp-room-status-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem !important;
  padding: 1.05rem 1.9rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  max-width: min(100%, 440px) !important;
  white-space: normal !important;
  text-align: center !important;
  animation: sp-room-status-cta-blink 1.45s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.sp-room-status-cta:not(:disabled):hover {
  transform: translateY(-2px);
}

.sp-room-status-cta:disabled {
  animation: none !important;
  box-shadow: none !important;
  opacity: 0.58;
}

.sp-room-status-cta--start {
  animation: sp-room-status-cta-blink 1.45s ease-in-out infinite, sp-room-status-cta-glow-start 1.85s ease-in-out infinite;
}

.sp-room-status-cta--complete {
  animation: sp-room-status-cta-blink 1.45s ease-in-out infinite, sp-room-status-cta-glow-complete 1.85s ease-in-out infinite;
}

.sp-manage-lobby .sp-tournament-section .gt-theme-btn.sp-room-status-cta {
  padding: 1.05rem 1.9rem !important;
  font-size: 0.82rem !important;
  min-height: 3.35rem !important;
  min-width: 0 !important;
  max-width: min(100%, 440px) !important;
}

@media (prefers-reduced-motion: reduce) {
  .sp-room-status-cta,
  .sp-room-status-cta--start,
  .sp-room-status-cta--complete {
    animation: none !important;
    box-shadow: none !important;
  }
}

.sp-tournament-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.sp-tournament-private__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

@media (min-width: 576px) {
  .sp-tournament-private__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sp-tournament-private__label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.sp-tournament-private__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gt-white, #fff);
}

.sp-tournament-join-reveal {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-organizer-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sp-organizer-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.sp-organizer-pick-card:hover:not(:disabled) {
  border-color: rgba(255, 8, 8, 0.45);
  background: rgba(255, 8, 8, 0.08);
}

.sp-organizer-pick-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-organizer-pick-card.is-picked {
  border-color: rgba(255, 8, 8, 0.65);
  background: rgba(255, 8, 8, 0.14);
}

.sp-organizer-pick-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
}

.sp-organizer-pick-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-organizer-pick-card__name {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
}

.sp-organizer-pick-card__tag {
  font-size: 0.65rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-tournament-roster {
  padding-left: 1.1rem;
  margin: 0;
  line-height: 1.55;
  text-transform: none;
}

/* Lobby roster: teams + slots (BR solo/duo/squad, multiplayer) */
.sp-lobby-roster__meta {
  line-height: 1.45;
  margin-top: 0;
}

.sp-lobby-roster__meta-sep {
  opacity: 0.65;
}

.sp-lobby-roster__cap-note {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.sp-lobby-roster__teams {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  /* grid-template-columns set inline from squad size (auto-fill) */
}

.sp-lobby-team {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  padding: 12px 14px 14px;
  min-width: 0;
}

.sp-lobby-team__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sp-lobby-team__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gt-white, #fff);
}

.sp-lobby-team__pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 8, 8, 0.16);
  border: 1px solid rgba(255, 8, 8, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

.sp-lobby-team__slots {
  display: grid;
  gap: 10px;
  min-width: 0;
  /* grid-template-columns: N equal columns set inline */
}

.sp-lobby-slot {
  border-radius: 12px;
  padding: 10px 10px 11px;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-lobby-slot--open {
  border-style: dashed;
  border-color: rgba(120, 220, 160, 0.35);
  background: rgba(80, 200, 120, 0.06);
}

.sp-lobby-slot--empty {
  justify-content: center;
  min-height: 4.25rem;
}

.sp-lobby-slot--empty .sp-lobby-slot__head {
  margin-bottom: 0;
  width: 100%;
}

.sp-lobby-slot--filled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.sp-lobby-slot--out {
  opacity: 0.48;
  border-style: dashed;
  background: rgba(0, 0, 0, 0.12);
}

.sp-lobby-slot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.sp-lobby-slot__spot-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sp-lobby-slot__badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  line-height: 1.2;
}

.sp-lobby-slot__badge--open {
  color: rgba(160, 245, 190, 0.95);
  background: rgba(60, 180, 100, 0.2);
  border: 1px solid rgba(100, 210, 140, 0.35);
}

.sp-lobby-slot__badge--you {
  color: #fff;
  background: rgba(255, 8, 8, 0.35);
  border: 1px solid rgba(255, 120, 120, 0.45);
}

.sp-lobby-slot__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.sp-lobby-slot__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-lobby-slot__avatar--ph {
  background: rgba(255, 255, 255, 0.08);
}

.sp-lobby-slot__text {
  min-width: 0;
  flex: 1;
}

.sp-lobby-slot__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gt-white, #fff);
  line-height: 1.25;
  word-break: break-word;
}

.sp-lobby-slot__codm {
  font-size: 0.72rem;
  margin-top: 4px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.sp-lobby-slot__codm--muted {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.sp-lobby-slot__available-msg,
.sp-lobby-slot__na-msg {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  margin-top: auto;
}

.sp-lobby-roster__pending {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-lobby-roster__pending-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
  color: rgba(255, 220, 160, 0.95);
}

.sp-lobby-roster__pending-list {
  padding: 0;
  margin: 0;
}

.sp-lobby-roster__pending-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  line-height: 1.4;
}

.sp-lobby-roster__pending-item:last-child {
  border-bottom: 0;
}

.sp-tournament-winners {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.sp-tournament-winners li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  text-transform: none;
}

.sp-tournament-winners__place {
  flex: 0 0 auto;
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: rgba(255, 8, 8, 0.18);
  border: 1px solid rgba(255, 8, 8, 0.35);
  color: var(--gt-white, #fff);
}

.sp-tournament-winners__name {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.sp-tournament-embed {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 180px;
  border: 0;
  border-radius: 12px;
  margin-top: 4px;
}

.sp-tournament-form-field {
  margin-top: 12px;
}

.sp-tournament-form-field:first-of-type {
  margin-top: 0;
}

.sp-tournament-form-field label {
  display: block;
  margin-bottom: 8px;
  text-transform: none;
}

.sp-tournament-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font-size: 14px;
  text-transform: none;
}

.sp-tournament-input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.12);
}

.sp-tournament-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 576px) {
  .sp-tournament-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wallet page — same bank card as home + card-bg art + corner logo */
.sp-page-wallet,
.sp-page-report {
  padding-top: clamp(92px, 12vw, 128px) !important;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

.sp-page-wallet .container {
  min-width: 0;
  max-width: 100%;
}

.sp-wallet-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.sp-wallet-page-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: 0.04em;
}

.sp-wallet-page-head__link {
  flex: 0 0 auto;
  min-width: 0 !important;
  padding: 10px 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.07em !important;
}

.sp-wallet-status {
  margin: 0 0 0.75rem;
}

.sp-wallet-balance-card {
  margin-bottom: 1.25rem;
}

/* /assets/img/new-transparent — balance + form backdrops */
.sp-new-transparent-decor {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  z-index: 0;
  opacity: 0.26;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}

.sp-bank-card > .sp-bank-card__new-decor.sp-new-transparent-decor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(58%, 300px);
  height: min(78%, 320px);
  opacity: 0.34;
  z-index: 0;
}

.sp-form-codm-wrap {
  position: relative;
  overflow: visible;
}

.sp-form-codm-wrap > *:not(.sp-new-transparent-decor) {
  position: relative;
  z-index: 1;
}

.sp-wallet-panel.sp-form-codm-wrap {
  min-height: 0;
}

.sp-form-codm-decor {
  width: min(56%, 300px);
  height: min(52vh, 400px);
  max-height: 90%;
  bottom: -14%;
  right: -8%;
  opacity: 0.2;
}

.sp-form-codm-decor--left {
  right: auto;
  left: -8%;
  transform: scaleX(-1);
}

.sp-form-codm-decor--tall {
  height: min(58vh, 460px);
  opacity: 0.17;
}

.sp-door__right.sp-form-codm-wrap {
  overflow: visible;
}

.sp-door__form-bg {
  width: min(100%, 400px);
  height: 78%;
  left: -22%;
  right: auto;
  bottom: -10%;
  opacity: 0.15;
  background-position: left bottom;
}

.sp-tournament-section.sp-form-codm-wrap {
  padding-bottom: 6px;
}

.sp-form-codm-decor--tournament {
  width: min(48%, 240px);
  height: 220px;
  bottom: -4%;
  right: -10%;
  opacity: 0.16;
}

.sp-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.sp-loading__bar {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sp-loading__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background-image: linear-gradient(to right, rgba(255, 8, 8, 0.1), rgba(255, 8, 8, 0.9), rgba(255, 8, 8, 0.1));
  animation: sp-loading-slide 1.25s ease-in-out infinite;
}

@keyframes sp-loading-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(420%);
  }
}

.sp-loading__text {
  font-size: 0.95rem;
}

.sp-tournaments-page-codm .sp-tournaments-page-decor {
  width: min(70%, 420px);
  height: min(50vh, 540px);
  bottom: -24%;
  right: -12%;
  opacity: 0.14;
}

.sp-bank-card.sp-bank-card--cardbg {
  background:
    linear-gradient(180deg, rgba(11, 14, 19, 0.68) 0%, rgba(11, 14, 19, 0.9) 100%),
    radial-gradient(720px 280px at 8% 0%, rgba(255, 8, 8, 0.22), transparent 58%),
    url("/assets/img/card-bg.jpg") center / cover no-repeat,
    var(--gt-bg-2, #1c1d20) !important;
}

.sp-bank-card.sp-bank-card--cardbg::before {
  opacity: 0.45;
}

.sp-bank-card__corner-logo {
  width: 92px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
}

@media (max-width: 400px) {
  .sp-bank-card__corner-stack {
    top: 10px;
    right: 10px;
    gap: 5px;
  }

  .sp-bank-card__corner-logo {
    width: 80px;
    max-height: 60px;
  }

  .sp-balance-visibility-btn--corner {
    width: 34px;
    height: 34px;
  }
}

.sp-bank-card__brand--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#wallet-deposit,
#wallet-withdraw,
#wallet-history {
  scroll-margin-top: 96px;
}

.sp-wallet-panel {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem !important;
}

.sp-wallet-panel__title {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-wallet-deposit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sp-wallet-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font-size: 14px;
  text-transform: none;
}

.sp-wallet-input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

.sp-wallet-deposit-btn {
  flex: 0 0 auto;
  min-width: 120px !important;
  padding: 12px 18px !important;
  font-size: 12px !important;
}

#sp-wallet-convert .sp-wallet-convert-actions {
  margin-top: 4px;
}

.sp-wallet-msg {
  margin: 10px 0 0;
  text-transform: none;
}

.sp-wallet-tx-list {
  display: grid;
  gap: 10px;
}

.sp-wallet-tx {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.sp-wallet-tx__main {
  min-width: 0;
  flex: 1 1 auto;
}

.sp-wallet-tx__type {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.sp-wallet-tx__meta {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sp-wallet-tx__amt {
  font-weight: 800;
  white-space: nowrap;
  color: var(--gt-white, #fff);
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
  text-align: right;
  padding-left: 10px;
  max-width: 100%;
}

a.sp-wallet-tx--link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.sp-wallet-tx--link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

a.sp-wallet-tx--link:focus-visible {
  outline: 2px solid rgba(255, 8, 8, 0.65);
  outline-offset: 2px;
}

.sp-wallet-tx-detail__summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  text-transform: none;
}

.sp-wallet-tx-detail__refs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
  text-transform: none;
}

.sp-wallet-tx-detail__cell {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.sp-wallet-tx-detail__cell--wide {
  grid-column: 1 / -1;
}

.sp-wallet-tx-detail__cell-k {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-wallet-tx-detail__cell-v {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

@media (max-width: 640px) {
  .sp-wallet-tx-detail__summary-grid {
    grid-template-columns: 1fr;
  }
}

.sp-wallet-tx-detail__amount {
  font-weight: 800;
}

.sp-wallet-tx-detail__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.sp-wallet-tx-detail__extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
  text-transform: none;
  align-items: start;
}

.sp-wallet-tx-detail__match {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.sp-wallet-tx-detail__match-title {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-wallet-tx-detail__match-name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gt-white, #fff);
  line-height: 1.25;
}

.sp-wallet-tx-detail__match-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: 0.5rem;
}

.sp-wallet-tx-detail__match-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.sp-wallet-tx-detail__match-k {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-wallet-tx-detail__match-v {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  word-break: break-word;
}

.sp-wallet-tx-detail__info {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.sp-wallet-tx-detail__info-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-wallet-tx-detail__info-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.sp-wallet-tx-detail__info-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.sp-wallet-tx-detail__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 0.5rem;
}

.sp-wallet-tx-detail__info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  align-items: stretch;
}

.sp-wallet-tx-detail__info-k {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sp-wallet-tx-detail__info-v {
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
  line-height: 1.3;
}

/* Tournaments list — filters, badges, hover row + Join */
.sp-page-tournaments {
  padding-top: clamp(92px, 12vw, 128px) !important;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

.sp-page-my-tournaments {
  padding-top: clamp(92px, 12vw, 128px) !important;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

.sp-page-my-tournaments.fix {
  overflow: visible !important;
}

.sp-page-my-tournaments .container {
  min-width: 0;
}

.sp-my-matches-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-my-matches-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.04em;
}

.sp-my-matches-filters {
  margin: 1rem 0 1.25rem;
}

.sp-my-matches-pagination {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 1.5rem;
}

.sp-my-matches-pagination__meta {
  text-align: center;
}

.sp-my-matches-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sp-my-matches-pagination__nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sp-my-matches-pagination__num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-my-matches-pagination__page.is-active {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.sp-my-matches-pagination__ellipsis {
  padding: 0 4px;
  user-select: none;
}

.sp-page-tournaments-inner {
  min-width: 0;
}

.sp-tournaments-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.04em;
}

.sp-tournaments-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .sp-tournaments-filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 28px;
  }
}

.sp-tournaments-filters__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sp-tournaments-filters__block--region {
  flex: 1 1 220px;
  max-width: min(100%, 420px);
}

.sp-tournaments-filters__region-select {
  width: 100%;
}

/* Searchable country (ISO2) picker */
.sp-country-combobox {
  position: relative;
  width: 100%;
}

.sp-country-combobox__input {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.sp-country-combobox__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  text-transform: none;
}

.sp-country-combobox__input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 8, 8, 0.12);
}

.sp-country-combobox__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10060;
  max-height: min(52vh, 320px);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gt-bg-2, #1c1d20);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  -webkit-overflow-scrolling: touch;
}

.sp-country-combobox__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.sp-country-combobox__opt:hover,
.sp-country-combobox__opt.is-active {
  background: rgba(255, 8, 8, 0.12);
  color: var(--gt-white, #fff);
}

.sp-country-combobox__flag {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
}

.sp-country-combobox__name {
  flex: 1 1 auto;
  min-width: 0;
}

.sp-country-combobox__code {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.sp-tournaments-filters__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-tournaments-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-tournaments-filter-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.sp-tournaments-filter-chip:hover {
  border-color: rgba(255, 8, 8, 0.45);
  color: var(--gt-white, #fff);
}

.sp-tournaments-filter-chip.is-active {
  border-color: rgba(255, 8, 8, 0.65);
  background: rgba(255, 8, 8, 0.14);
  color: var(--gt-white, #fff);
}

.sp-tournaments-status {
  margin: 0 0 12px;
}

.sp-tournaments-context-hint.card {
  padding: 1rem 1.15rem !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(28, 29, 32, 0.55) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.sp-tournaments-context-hint p:last-child {
  margin-bottom: 0 !important;
}

.sp-tournaments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-tournament-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(28, 29, 32, 0.75);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease;
}

.sp-tournament-card:hover {
  border-color: rgba(255, 8, 8, 0.38);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 8, 8, 0.12);
  transform: translateY(-2px);
}

.sp-tournament-card__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  text-decoration: none !important;
  color: inherit !important;
}

.sp-tournament-card__thumb-wrap {
  width: 112px;
  min-height: 100%;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}

@media (min-width: 576px) {
  .sp-tournament-card__thumb-wrap {
    width: 140px;
  }
}

.sp-tournament-card__thumb {
  width: 100%;
  height: 100%;
  min-height: 104px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sp-tournament-card__body {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.sp-tournament-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.2;
}

.sp-tournament-badge--upcoming {
  color: rgba(255, 220, 160, 0.95);
  border-color: rgba(255, 200, 120, 0.45);
  background: rgba(255, 160, 40, 0.1);
}

.sp-tournament-badge--live {
  color: #fff;
  border-color: rgba(255, 8, 8, 0.65);
  background: rgba(255, 8, 8, 0.22);
  box-shadow: 0 0 16px rgba(255, 8, 8, 0.2);
}

.sp-tournament-badge--started {
  color: #fff;
  border-color: rgba(255, 8, 8, 0.75);
  background: rgba(255, 8, 8, 0.22);
  box-shadow: 0 0 16px rgba(255, 8, 8, 0.25);
  animation: sp-tournament-started-blink 1.05s ease-in-out infinite;
}

@keyframes sp-tournament-started-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 14px rgba(255, 8, 8, 0.55);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 28px rgba(255, 40, 40, 0.95);
  }
}

.sp-tournament-badge--completed {
  color: rgba(180, 220, 200, 0.95);
  border-color: rgba(100, 200, 140, 0.35);
  background: rgba(60, 140, 100, 0.12);
}

.sp-tournament-badge--cancelled {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.sp-tournament-badge--muted {
  color: rgba(255, 255, 255, 0.65);
}

.sp-tournament-card__title {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.25;
}

.sp-tournament-card__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55) !important;
  text-transform: none;
  line-height: 1.45;
}

.sp-tournament-card__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.sp-tournament-card__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 104px !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap;
  border-radius: 12px !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

.sp-tournament-card .sp-tournament-card__btn.gt-theme-btn {
  width: 104px;
  max-width: 104px;
}

@media (max-width: 575.98px) {
  .sp-tournament-card {
    flex-direction: column;
  }

  .sp-tournament-card__main {
    flex-direction: column;
  }

  .sp-tournament-card__thumb-wrap {
    width: 100%;
    height: 140px;
  }

  .sp-tournament-card__thumb {
    min-height: 140px;
  }

  .sp-tournament-card__cta {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
  }

  .sp-tournament-card__btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .sp-tournament-card .sp-tournament-card__btn.gt-theme-btn {
    width: 100%;
    max-width: none;
  }
}

/* App modals (confirm / result) */
.sp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.sp-modal-backdrop--layer-top {
  z-index: 10060;
}

.sp-modal-sheet {
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gt-bg-2, #1c1d20);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* Paired transparent art in confirm/result modals: compact, fully inside the sheet (no overflow clip) */
.sp-modal-sheet .sp-form-codm-wrap {
  overflow: visible;
  padding: 0.25rem 0 96px;
  min-height: 0;
}

.sp-modal-sheet .sp-form-codm-wrap .sp-form-codm-decor.sp-form-codm-decor--tall {
  width: min(34%, 118px);
  height: 124px;
  max-height: 124px;
  bottom: 8px;
  opacity: 0.22;
  background-position: center bottom;
}

.sp-modal-sheet .sp-form-codm-wrap .sp-form-codm-decor.sp-form-codm-decor--tall:not(.sp-form-codm-decor--left) {
  right: 6%;
  left: auto;
}

.sp-modal-sheet .sp-form-codm-wrap .sp-form-codm-decor.sp-form-codm-decor--tall.sp-form-codm-decor--left {
  left: 6%;
  right: auto;
  bottom: 8px;
}

.sp-modal-sheet__title {
  margin: 0 0 0.75rem;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gt-white, #fff);
}

.sp-modal-sheet__body {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sp-modal-sheet__footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: stretch;
  align-items: stretch;
  flex-shrink: 0;
  margin-top: 1.15rem;
}

.sp-modal-sheet__footer > .gt-theme-btn,
.sp-modal-sheet__footer > a.gt-theme-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

.sp-modal-sheet__footer.sp-modal-sheet__footer--sm-actions {
  margin-top: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sp-modal-sheet__footer.sp-modal-sheet__footer--sm-actions > .gt-theme-btn,
.sp-modal-sheet__footer.sp-modal-sheet__footer--sm-actions > a.gt-theme-btn {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0 !important;
  padding: 8px 14px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.2 !important;
}

/* Create tournament: compact modal actions + form submit row */
.sp-modal-sheet__footer.sp-modal-sheet__footer--organize {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.sp-modal-sheet__footer.sp-modal-sheet__footer--organize > .gt-theme-btn,
.sp-modal-sheet__footer.sp-modal-sheet__footer--organize > a.gt-theme-btn {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0 !important;
  padding: 8px 14px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

#sp-account-organize .sp-ac-actions--organize-submit .gt-theme-btn,
#sp-account-organize .sp-ac-actions--organize-submit a.gt-theme-btn {
  min-height: 0 !important;
  padding: 10px 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.2 !important;
}

.sp-ac-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Header / offcanvas logo — ensure visible on dark bar */
.header-1 .header-left .logo .header-logo img,
.offcanvas__logo img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative;
  z-index: 2;
}

/* Page header tagline (formerly paired transparent artwork) */
.sp-codm-pair {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.sp-codm-pair--text-only .sp-codm-pair__caption {
  margin-top: 0;
}

.sp-codm-pair--text-only.sp-codm-pair--tall .sp-codm-pair__caption {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-codm-pair__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  flex-wrap: wrap;
  min-height: 0;
}

.sp-codm-pair__img {
  display: block;
  max-height: 220px;
  width: auto;
  max-width: min(48%, 280px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.sp-codm-pair--compact .sp-codm-pair__img {
  max-height: 150px;
  max-width: min(46%, 200px);
}

.sp-codm-pair--tall .sp-codm-pair__img {
  max-height: 280px;
}

.sp-codm-pair__caption {
  margin-top: 0.5rem;
}

.sp-door__left .sp-codm-pair {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.sp-tournament-codm-pair {
  margin-bottom: 1rem;
}

/* Themed dropdown (replaces native <select> list panel) */
.sp-theme-select {
  position: relative;
  width: 100%;
}

.sp-theme-select.is-disabled .sp-theme-select__trigger {
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-theme-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.sp-theme-select__trigger:hover:not(:disabled) {
  border-color: rgba(255, 8, 8, 0.45);
}

.sp-theme-select__trigger:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

.sp-theme-select__value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-theme-select__caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.sp-theme-select__list {
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--gt-bg-2, #1c1d20);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  max-height: min(280px, 52vh);
  overflow-y: auto;
}

.sp-theme-select__list--fixed {
  right: auto;
}

.sp-theme-select__list--portal {
  box-sizing: border-box;
}

.sp-theme-select__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.sp-theme-select__option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sp-theme-select__option.is-selected {
  background: rgba(255, 8, 8, 0.2);
  color: var(--gt-white, #fff);
}

.sp-theme-select--inline {
  width: auto;
  min-width: 7.5rem;
}

/* Organize — thumbnail upload strip */
.sp-organize-thumb {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 4px;
}

.sp-organize-thumb__preview {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sp-organize-thumb__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-organize-thumb__preview .fa-image {
  font-size: 1.75rem;
  opacity: 0.35;
}

.sp-organize-thumb__side {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.sp-organize-thumb__hint {
  margin: 0;
  line-height: 1.45;
}

.sp-organize-thumb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sp-organize-thumb__name {
  width: 100%;
  font-size: 0.78rem;
}

