/* CatÃ¡logo unificado de jogos */
.games-catalog {
  scroll-margin-top: 7rem;
}

.games-catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.games-catalog-eyebrow {
  margin-bottom: 0.35rem;
  color: hsl(var(--primary));
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.games-catalog-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 750;
  line-height: 1.1;
}

.games-catalog-brand {
  color: #67b8ff;
  font-family: "Chelsea Market", cursive;
}

.games-catalog-brand strong {
  font-weight: 400;
  letter-spacing: 0;
}

.games-catalog-brand span {
  font-weight: 400;
  letter-spacing: 0;
}

.games-catalog-header p:last-child {
  margin-top: 0.55rem;
  color: rgb(var(--muted-foreground));
  font-size: 0.9rem;
}

.games-catalog-header p:last-child strong {
  color: #fff;
  font-weight: 600;
}

.games-platform-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: none;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.games-platform-tabs a {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  border-radius: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.games-platform-tabs a:hover {
  color: #fff;
}

.games-platform-tabs a.is-active {
  color: #fff;
  background: hsl(var(--primary) / 0.16);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.28);
}

.games-platform-tabs svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.games-catalog-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.games-filter-sidebar {
  position: sticky;
  top: 7rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-left: 0.35rem;
  scrollbar-width: none;
}

.games-filter-sidebar::-webkit-scrollbar {
  display: none;
}

.games-filter-sidebar details > summary {
  display: none;
}

.games-filter-content {
  padding-right: 0.25rem;
}

.games-filter-group {
  margin: 0;
  padding: 0 0 0.85rem;
  border: 0;
}

.games-filter-group + .games-filter-group {
  padding-top: 1rem;
}

.games-filter-group legend {
  width: 100%;
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.games-filter-option {
  min-height: 1.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 160ms ease;
}

.games-filter-option:hover,
.games-filter-option.is-selected {
  color: rgba(255, 255, 255, 0.95);
}

.games-filter-suboption {
  padding-left: 0.8rem;
}

.games-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.games-filter-check {
  width: 0.78rem;
  height: 0.78rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.18rem;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.games-filter-option.is-selected .games-filter-check {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  box-shadow: inset 0 0 0 2px rgb(var(--background));
}

.games-filter-timeline {
  --timeline-line: rgba(255, 255, 255, 0.14);
  --timeline-dot: #3a3a3a;
  --timeline-active: rgb(0 227 255);
}

.games-filter-timeline .games-filter-track {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.1rem 0.85rem 0.2rem 0.75rem;
  overflow: visible;
}

.games-filter-timeline .games-filter-track::before {
  content: "";
  position: absolute;
  left: calc(0.75rem + 3px);
  top: calc(0.1rem + 1.05rem);
  bottom: calc(0.2rem + 1.05rem);
  width: 1px;
  background: var(--timeline-line);
  pointer-events: none;
}

.games-filter-timeline .games-filter-option {
  position: relative;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.42rem 0 0.42rem 1.15rem;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  overflow: visible;
  transition: color 220ms ease;
}

.games-filter-timeline .games-filter-option > span:not(.games-filter-check) {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.games-filter-timeline .games-filter-option:hover {
  color: #fff;
}

.games-filter-timeline .games-filter-option:hover > span:not(.games-filter-check) {
  transform: translate(2px, -2px);
}

.games-filter-timeline .games-filter-option:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.55rem;
  right: 0.85rem;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.games-filter-timeline .games-filter-check {
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--timeline-dot);
  box-shadow: 0 0 0 3px rgb(var(--background));
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.games-filter-timeline .games-filter-option.is-selected {
  color: #fff;
}

.games-filter-timeline .games-filter-option.is-selected .games-filter-check {
  background: var(--timeline-active);
  box-shadow:
    0 0 0 3px rgb(var(--background)),
    0 0 10px rgb(0 227 255 / 0.65);
}

.games-filter-timeline .games-filter-suboption {
  padding-left: 1.2rem;
}

.games-filter-timeline .games-filter-suboption > span:last-child {
  padding-left: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
  .games-filter-timeline .games-filter-option > span:not(.games-filter-check) {
    transition: none;
  }
}

.games-filter-clear {
  width: 100%;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 650;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.games-genre-filters {
  display: flex;
  flex-direction: column;
}

.games-filter-loading {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  line-height: 1.45;
}

.games-filter-clear {
  border: 0;
  color: rgba(255, 255, 255, 0.46);
  background: transparent;
}

.games-filter-clear:hover {
  color: #fff;
}

.games-results-toolbar {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.games-sort-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.games-sort-dropdown {
  position: relative;
  z-index: 10;
  width: 9.5rem;
}

.games-sort-trigger {
  width: 100%;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  border: none;
  border-radius: 0.65rem;
  outline: none;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.7rem;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.games-sort-trigger:hover,
.games-sort-dropdown.is-open .games-sort-trigger {
  color: #fff;
  background: hsl(var(--primary) / 0.07);
  box-shadow: none;
}

.games-sort-trigger svg {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.games-sort-dropdown.is-open .games-sort-trigger svg {
  transform: rotate(180deg);
}

.games-sort-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: 100%;
  padding: 0.35rem;
  border: none;
  border-radius: 0.7rem;
  background: rgb(10 10 12 / 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.games-sort-menu[hidden] {
  display: none;
}

.games-sort-menu button {
  width: 100%;
  min-height: 2rem;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  font-size: 0.7rem;
  text-align: left;
  transition: color 140ms ease, background 140ms ease;
}

.games-sort-menu button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
}

.games-sort-menu button[aria-selected="true"] {
  color: #fff;
  background: hsl(var(--primary) / 0.16);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.games-grid-item {
  min-width: 0;
}

.games-grid-item[hidden] {
  display: none;
}

.games-catalog-results:has(.games-empty-state:not([hidden])) .games-grid {
  display: none;
}

.games-empty-state {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
}

.games-empty-state:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.games-empty-glow {
  position: absolute;
  left: 31rem;
  top: 52%;
  z-index: 0;
  width: 8.5rem;
  height: 8.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #4aa7ff;
  filter: blur(52px);
  opacity: 0.42;
  pointer-events: none;
}

.games-empty-scene {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  height: auto;
  margin-left: 8.5rem;
}

.games-empty-title {
  position: relative;
  z-index: 1;
  margin: -4rem 0 0 -12.5rem;
  color: #fff;
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-align: left;
  text-transform: uppercase;
}

.games-empty-title span {
  display: block;
}

.games-empty-highlight {
  display: inline-block !important;
  margin-top: 0.08em;
  margin-left: 3.5rem;
  padding: 0.06em 0.16em 0.02em;
  background: #2f8cff;
  color: #fff;
}

.games-empty-character {
  position: relative;
  z-index: 2;
  width: 32.5rem;
  max-width: 80vw;
  height: auto;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  transform: translateX(2.75rem);
}

.games-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.games-pagination[hidden] {
  display: none;
}

.games-pagination-button {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.games-pagination-button:hover:not(:disabled),
.games-pagination-button.is-active {
  border-color: hsl(var(--primary) / 0.5);
  color: #fff;
  background: hsl(var(--primary) / 0.18);
}

.games-pagination-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.games-pagination-ellipsis {
  padding-inline: 0.2rem;
  color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 1023px) {
  .games-catalog-layout {
    grid-template-columns: 1fr;
  }

  .games-filter-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .games-filter-sidebar details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
  }

  .games-filter-sidebar details > summary {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.85rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
  }

  .games-filter-sidebar details > summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .games-filter-sidebar details > summary::-webkit-details-marker {
    display: none;
  }

  .games-filter-sidebar details[open] .games-filter-chevron {
    transform: rotate(180deg);
  }

  .games-filter-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0.25rem 0.85rem 0.85rem;
  }

  .games-filter-group,
  .games-filter-group + .games-filter-group {
    padding: 0;
    border: 0;
  }

  .games-filter-clear {
    grid-column: 1 / -1;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .games-filter-content {
    grid-template-columns: 1fr;
  }

  .games-filter-clear {
    grid-column: auto;
  }

  .games-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .games-sort-control,
  .games-sort-dropdown,
  .games-platform-tabs {
    width: 100%;
  }

  .games-platform-tabs a {
    flex: 1;
    justify-content: center;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .games-empty-state {
    min-height: 20rem;
  }

  .games-empty-glow {
    left: 22rem;
    width: 7.5rem;
    height: 7.5rem;
    filter: blur(40px);
  }

  .games-empty-scene {
    margin-left: 4rem;
  }

  .games-empty-title {
    margin: -2.6rem 0 0 -8.4rem;
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  }

  .games-empty-character {
    width: 23.5rem;
    transform: translateX(1.5rem);
  }
}

.account-sidebar,
.account-order-card {
  border: none !important;
}

.account-nav-link.is-active {
  background: rgb(38 38 42);
  color: #fff;
}

.account-nav-link.is-active:hover {
  background: rgb(48 48 52);
}

.account-order-id {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.48rem 0.48rem 0.48rem 0.82rem;
  border: 1px solid rgb(255 255 255 / 0.04);
  border-radius: 0.6rem;
  background: rgb(8 8 10);
}

.account-order-id-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.account-order-id-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.4rem;
  background: rgb(255 255 255 / 0.04);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.account-order-id-copy:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.order-details-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.35rem;
  padding: 0 1.1rem;
  border: none;
  border-radius: 0.65rem;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 650;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.38);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.order-details-btn:hover {
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.48);
  transform: translateY(-1px);
}

#account-favorites-list.account-favorites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 640px) {
  #account-favorites-list.account-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.account-favorite-prices {
  margin-top: 0.1rem;
}

.account-favorite-prices .package-card-price {
  font-size: 1.15rem;
}

@media (min-width: 640px) {
  .account-favorite-prices .package-card-price {
    font-size: 1.25rem;
  }
}

.account-favorite-card {
  position: relative !important;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  border: none !important;
}

.account-favorite-title {
  padding-right: 2.75rem;
}

.account-favorite-view {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content;
  margin-top: 0.85rem;
}

.account-favorite-toggle {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 30 !important;
  margin: 0 !important;
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem;
  min-height: 2.15rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #f472b6 !important;
  box-shadow: 0 4px 10px rgba(244, 114, 182, 0.18) !important;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  transition: background 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.account-favorite-toggle:hover {
  filter: brightness(1.08);
  box-shadow: 0 5px 12px rgba(244, 114, 182, 0.24) !important;
}

.account-favorite-toggle svg,
.account-favorite-toggle i {
  width: 0.82rem !important;
  height: 0.82rem !important;
  color: #fff !important;
  fill: #fff !important;
  stroke-width: 2.2;
  pointer-events: none;
}

.account-favorite-toggle.is-off {
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgb(58 58 64) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  filter: none;
}

.account-favorite-toggle.is-off svg,
.account-favorite-toggle.is-off i {
  color: rgba(255, 255, 255, 0.78) !important;
  fill: transparent !important;
}

.account-favorite-toggle.is-popping {
  animation: favorite-round-pop 0.42s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.account-favorite-toggle.is-popping svg {
  animation: favorite-heart-pop 0.42s cubic-bezier(0.22, 1.2, 0.36, 1);
}

@keyframes favorite-round-pop {
  0% { transform: scale(1); }
  22% { transform: scale(0.9); }
  52% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes favorite-heart-pop {
  0% { transform: scale(1); }
  22% { transform: scale(0.86); }
  52% { transform: scale(1.12); }
  100% { transform: scale(1); }
}