:root {
  --black: #000000;
  --black-2: #0a0a0a;
  --gray: #111111;
  --gray-2: #1a1a1a;
  --gray-3: #222222;
  --white: #ffffff;
  --white-2: #f5f5f7;
  --muted: #86868b;
  --radius: 18px;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);

  --grad-dark: linear-gradient(180deg, #000 0%, #0a0a0a 100%);

  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* ================================
   RESET
================================ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  background:
    radial-gradient(
      180px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.055) 20%,
      rgba(255, 255, 255, 0.018) 45%,
      transparent 72%
    ),
    radial-gradient(
      500px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.025),
      transparent 70%
    ),
    var(--black);
  background-attachment: fixed;
}

a {
  color: var(--white);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

#mouse-lightning {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ================================
   HEADER
================================ */

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--white);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}

.brand-text span {
  color: var(--white);
  font-weight: 400;
}

.store-nav {
  margin-bottom: 16px;
}

.nav {
  display: flex;
  gap: 1.2rem;
  margin-left: 1rem;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  transition: 0.2s;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.nav a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nav a:hover {
  opacity: 1;
  color: var(--white);
  border-color: var(--white);
}

.nav-icons,
.others-icons {
  filter: brightness(0) invert(1);
}

.others-icons {
  width: 21px;
  height: 21px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.2s;
}

.icon-btn:hover {
  background: var(--gray-2);
  border-color: var(--white);
  color: var(--white);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--white);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  min-width: 18px;
  text-align: center;
}

#user-area .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#user-area .pill .av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
}

#user-area .pill .admin-btn {
  margin-right: -0.1rem;
}

#user-area button {
  background: none;
  color: var(--muted);
  border: 0;
  cursor: pointer;
  font-size: 0.85rem;
}

#user-area button:hover {
  color: var(--white);
}

/* ================================
   GENERIC
================================ */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: 1.6rem;
  color: var(--white);
}

.muted {
  color: var(--muted);
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 2rem 0;
}

/* ================================
   BUTTONS
================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  background: var(--white);
  color: #000;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    filter 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.92);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.dark {
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: var(--white);
}

.btn-icon-search {
  filter: brightness(0) invert(1);
}
.explore-icon {
  width: 40px;
}
/* ================================
   INPUTS / FORMS
================================ */

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--gray);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

label {
  display: block;
  margin: 0.6rem 0 0.3rem;
  color: #d0d0d0;
  font-size: 0.85rem;
}

/* ================================
   HERO
================================ */

.hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 3rem;
  background:
    radial-gradient(
      600px 300px at 80% 30%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    var(--grad-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  background: linear-gradient(180deg, #fff 30%, #86868b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  color: #dcdcdc;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero .cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ================================
   HERO REVIEWS
================================ */

.hero-reviews {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.hero-reviews-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-review {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 1.8rem 2.1rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
}

.hero-review-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #000;
  background: linear-gradient(
    135deg,
    hsl(var(--h, 220) 75% 72%),
    hsl(calc(var(--h, 220) + 45) 70% 55%)
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.hero-review-user {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.hero-review-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-review-prod {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-review-stars .stars {
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

.hero-review-comment {
  margin: 0;
  color: #e9e9e9;
  font-size: 1.03rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-review .badge-verified {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Hero review buttons */

.hero-rv-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 0.18rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    opacity 0.2s;
  opacity: 0.85;
}

.hero-rv-btn:hover {
  background: var(--white);
  color: #000;
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

.hero-rv-btn.prev {
  left: 0.7rem;
}

.hero-rv-btn.next {
  right: 0.7rem;
}

/* Hero review dots */

.hero-reviews-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  z-index: 3;
}

.hero-reviews-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s;
  border: 0;
  padding: 0;
}

.hero-reviews-dots .dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-reviews-dots .dot.active {
  background: var(--white);
  transform: scale(1.35);
}

/* ================================
   GRIDS
================================ */

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid.games,
.grid.products {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.grid.cats {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.grid.reviews {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ================================
   CARDS
================================ */

.card {
  position: relative;
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-card);
}

.card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--gray-2) center/cover no-repeat;
  position: relative;
  flex-shrink: 0;
}

.card .thumb.placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.15);
  font-size: 3rem;
}

.card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card .title {
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.card .product-description {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card .price {
  margin: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 1.1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}

/* Card types */

.grid.games .card::before,
.grid.products .card::before,
.grid.cats .card::before {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.grid.games .card::before {
  content: "JOGO";
}

.grid.products .card::before {
  content: "PRODUTO";
}

.grid.cats .card::before {
  content: "CATEGORIA";
}

/* ================================
   PRODUCT CARDS
================================ */

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-price {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
  color: #22c55e;
  flex: 0 0 auto;
}

.product-sales {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  margin: 0;
  padding: 0;
  height: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.product-sales .others-icons {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Popular */

.popular-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 69, 0, 0.7);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow:
    0 0 8px rgba(255, 69, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* Prices */

.category-price,
.price {
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
  margin-top: 6px;
}

/* ================================
   ADMIN
================================ */

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tabs a {
  padding: 0.7rem 1rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 600;
}

.admin-tabs a.active,
.admin-tabs a:hover {
  color: var(--white);
  border-color: var(--white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--gray);
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card .l {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card .v {
  font-size: 1.8rem;
  color: var(--white);
  margin-top: 0.3rem;
  font-weight: 700;
}

/* ================================
   PRODUTOS ADMIN
================================ */

.product-navigation {
  margin: 20px 0;
}

/* Jogos */

.product-games-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.game-nav-item {
  flex: 0 0 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: var(--gray);
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.game-nav-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.game-nav-item.active {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 1px #ff3b3b;
  background: rgba(255, 255, 255, 0.08);
}

.game-nav-item img,
.game-nav-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.game-nav-placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  font-size: 22px;
  font-weight: 700;
}

.game-nav-item:first-child .game-nav-placeholder {
  background: rgba(255, 255, 255, 0.08);
}

.game-nav-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

/* Categorias */

.product-categories-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.category-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.category-nav-item.active {
  background: #ff3b3b;
  border-color: #ff3b3b;
  color: #fff;
}

.category-nav-item img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 6px;
}

/* Tabela */

.products-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.product-table-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.product-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-game-category {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.product-popular-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
  font-size: 11px;
  font-weight: 600;
}

.products-empty {
  padding: 40px !important;
  text-align: center;
  color: #888;
}

/* Formulário */

.new-product-details {
  margin-bottom: 20px;
}

.new-product-details summary {
  display: inline-flex;
  cursor: pointer;
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
  margin-top: 18px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-form-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Editar */

.product-edit-form {
  margin-bottom: 25px;
}

.product-edit-header,
.stock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.product-edit-header h2,
.stock-header h2 {
  margin: 3px 0 0;
}

.product-image-warning {
  font-size: 12px;
}

/* Estoque digital */

.stock-count {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

.digital-stock-form {
  max-width: 700px;
  margin: 18px 0;
}

.digital-stock-form textarea {
  margin: 8px 0 12px;
  resize: vertical;
}

.stock-available {
  color: #55d98a;
  font-size: 13px;
}

.digital-stock-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px;
  color: #888;
  text-align: center;
}

.digital-stock-empty > div {
  font-size: 30px;
  margin-bottom: 5px;
}

/* ================================
   REVIEWS
================================ */

.review-card {
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-card);
}

.review-card .who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-card .who .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-card .who .date {
  color: var(--muted);
  font-size: 0.72rem;
}

.review-card .comment {
  color: #d6d6d6;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
  flex: 1;
}

.review-card .prod {
  color: var(--muted);
  font-size: 0.75rem;
}

.stars {
  display: inline-flex;
  gap: 0.15rem;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.stars .on {
  color: #f5c518;
}

.stars .off {
  color: rgba(255, 255, 255, 0.18);
}

.badge-verified {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  background: rgba(76, 175, 80, 0.15);
  color: #8bc34a;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Review form */

.review-box {
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.review-box textarea {
  min-height: 90px;
  background: var(--gray-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  padding: 0.7rem;
  font-size: 0.9rem;
  resize: vertical;
}

.review-box select {
  background: var(--gray-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.stars-input {
  display: inline-flex;
  gap: 0.25rem;
}

.stars-input .star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
  padding: 0;
  transition:
    color 0.15s,
    transform 0.15s;
}

.stars-input .star:hover,
.stars-input .star.hover {
  color: #f5c518;
  transform: scale(1.15);
}

.stars-input .star.on {
  color: #f5c518;
}

.review-ok {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #8bc34a;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* ================================
   TERMOS
================================ */

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.4;
}

.terms-check input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--white);
}

.terms-link {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

.terms-page {
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  white-space: pre-wrap;
  line-height: 1.7;
  color: #e2e2e2;
  font-size: 0.95rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* ================================
   MODAL
================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.modal {
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.modal-body {
  color: #d6d6d6;
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-body strong {
  color: var(--white);
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.modal-actions .btn {
  justify-content: center;
  min-width: 130px;
}

#modal-cancel {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

#modal-cancel:hover {
  background: #fff;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 25px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

#modal-confirm {
  background: #151515;
  color: #aaa;
  border: 1px solid #292929;
}

#modal-confirm:hover {
  background: #1d1d1d;
  color: #fff;
  border-color: #3a3a3a;
}

/* ================================
   CONFIG
================================ */

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.config-grid input,
.config-grid select {
  background: var(--gray-2);
}

.cert-box {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1rem;
}

/* ================================
   AUTH
================================ */

.auth-wrap {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--gray);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.auth-wrap h1 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.3rem;
}

.auth-wrap p.sub {
  color: var(--muted);
  text-align: center;
  margin: 0 0 1.5rem;
}

.auth-wrap .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-wrap .alt {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-wrap .alt a {
  color: var(--white);
  font-weight: 600;
}

.discord-login {
  width: 48px !important;
  height: 48px;
  padding: 0 !important;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 28px rgba(255, 255, 255, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.auth-wrap .discord-login {
  display: flex;
  margin: 0.5rem auto 0;
}

.discord-login:hover {
  transform: translateY(-2px) scale(1.04);
  background: #fff;
  color: #000;
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.6),
    0 0 35px rgba(255, 255, 255, 0.3);
}

.discord-login:active {
  transform: scale(0.96);
}

.form-error {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffb4b4;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

/* ================================
   PRODUCT PAGE
================================ */

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-page .gallery {
  background: var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-page .gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-page .info h1 {
  margin-bottom: 0.5rem;
}

.product-page .info .price {
  font-size: 2rem;
  color: var(--white);
  margin: 1rem 0;
  font-weight: 700;
}

.product-page .info .desc {
  color: #d6d6d6;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ================================
   TABLES
================================ */

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

table.data th,
table.data td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

table.data th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

table.data tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.row-actions .btn {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

/* ================================
   TOAST
================================ */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-2);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-soft);
  transition: 0.25s;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 90vw;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.err {
  border-color: #ff4444;
}

.toast.action {
  pointer-events: auto;
}

.toast-btn {
  flex: 0 0 auto;
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9px;
  background: var(--white);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.15s,
    filter 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.toast-btn:hover {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.toast-btn:active {
  transform: scale(0.98);
}

/* ================================
   TOAST 2
================================ */

.toast2 {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 9999;

  width: 380px;
  max-width: calc(100vw - 2rem);

  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);

  padding: 1rem;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);

  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.toast2.show {
  opacity: 1;
  transform: translateY(0);
}

.toast2.hide {
  opacity: 0;
  transform: translateY(20px);
}

/* Conteúdo */

.toast2-content {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  padding-right: 1.5rem;
}

.toast2-image {
  width: 72px;
  height: 72px;

  object-fit: contain;
  border-radius: 8px;
}

/* Texto */

.toast2-info {
  min-width: 0;
}

.toast2-title {
  margin: 0;

  color: var(--white);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.toast2-message {
  margin: 0.4rem 0 0;

  color: var(--muted);

  font-size: 0.8rem;
  line-height: 1.45;
}

/* Botão */

.toast2-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  margin-top: 0.8rem;
  margin-left: 50px;
  padding: 0.5rem 0.75rem;

  background: var(--white);
  color: #000;

  border-radius: 8px;

  text-decoration: none;

  font-size: 0.75rem;
  font-weight: 700;

  transition: opacity 0.2s ease;
}

.toast2-button:hover {
  opacity: 0.8;
}

.toast2-button img {
  width: 16px;
  height: 16px;

  object-fit: contain;

}

/* Fechar */

.toast2-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;

  width: 26px;
  height: 26px;

  padding: 0;

  border: 0;
  border-radius: 7px;

  background: transparent;
  color: var(--muted);

  cursor: pointer;

  font-size: 1.1rem;
  line-height: 1;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.toast2-close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

/* Progresso */

.toast2-progress {
  height: 2px;

  margin-top: 1rem;

  overflow: hidden;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
}

.toast2-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--white);
  transform-origin: left;
  animation: toast2-progress var(--toast-duration) linear forwards;
}

@keyframes toast2-progress {
  to {
    transform: scaleX(0);
  }
}

/* Mobile */

@media (max-width: 500px) {
  .toast2 {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;

    width: auto;
    max-width: none;
  }
}
/* ================================
   CART
================================ */

.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--gray);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-summary {
  background: var(--gray);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cart-summary .total {
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 700;
}

/* ================================
   ORDERS
================================ */

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.orders-list {
  display: grid;
  gap: 0.6rem;
}

.order-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--gray);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
}

.order-card:hover {
  border-color: var(--white);
}

.order-card .price {
  color: var(--white);
  font-weight: 700;
}

.badge.status-pending,
.badge.status-paid,
.badge.status-delivered,
.badge.status-canceled {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge.status-pending {
  background: #3a3a3a;
  color: #ffd60a;
}

.badge.status-paid {
  background: #1a3a2e;
  color: #5dd6a3;
}

.badge.status-delivered {
  background: #1a2a3a;
  color: #7fb7ff;
}

.badge.status-canceled {
  background: #3a1a1a;
  color: #ff7878;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.order-items {
  display: grid;
  gap: 0.5rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  background: var(--gray);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================================
   PIX
================================ */

.pix-box {
  margin-top: 1.5rem;
  background: var(--gray);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.pix-qr {
  width: 240px;
  height: 240px;
  max-width: 220px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.8rem;
}

.pix-copy {
  width: 100%;
  min-height: 80px;
  height: 90px;
  background: #0a0a0a;
  color: #eee;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.6rem;
  font-family: monospace;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  resize: none;
}

/* ================================
   DELIVERIES
================================ */

.deliveries {
  display: grid;
  gap: 0.6rem;
}

.delivery {
  background: var(--gray);
  border: 1px solid rgba(93, 214, 163, 0.3);
  border-radius: 10px;
  padding: 1rem;
}

.delivery pre {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.6rem;
  color: #7ed957;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0.5rem 0 0;
}

/* ================================
   CHAT
================================ */

.chat-box {
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 500px;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.msg {
  max-width: 80%;
  background: var(--gray-2);
  padding: 0.6rem 0.9rem;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.msg.mine {
  align-self: flex-end;
  background: #2a2a2a;
  border-color: var(--white);
  border-radius: 14px 14px 4px 14px;
}

.msg.admin {
  border-color: #7fb7ff;
}

.msg .who {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.msg .body {
  white-space: pre-wrap;
  word-break: break-word;
}

.msg .time {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.3rem;
  text-align: right;
}

.msg .file {
  font-size: 0.85rem;
}

.msg-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.msg-form input {
  flex: 1;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.msg-img {
  max-width: 240px;
  max-height: 240px;
  border-radius: 8px;
  display: block;
  margin-top: 0.3rem;
  border: 1px solid #333;
}

.chart-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  overflow-x: auto;
}

/* ================================
   NOTIFICATIONS
================================ */

#notif-area {
  position: relative;
}

.notif-btn {
  position: relative;
  font-size: 1.1rem;
  cursor: pointer;
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--white);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
  min-width: 17px;
  text-align: center;
  animation: notif-pop 0.25s ease;
}

@keyframes notif-pop {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.notif-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  max-height: 420px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.notif-header button {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
}

.notif-header button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.notif-list {
  overflow-y: auto;
  flex: 1;
}

.notif-empty {
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.notif-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notif-item.read {
  opacity: 0.55;
}

.notif-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notif-text {
  font-size: 0.83rem;
  line-height: 1.4;
  font-weight: 600;
}

.notif-msg {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 0.2rem;
  word-break: break-word;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ================================
   EMPTY / FOOTER / PROFILE
================================ */

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty .big {
  font-size: 4rem;
  opacity: 0.3;
}

.crumbs {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.crumbs a {
  color: var(--white);
}

.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.footer-icons,
.profile-icons {
  filter: brightness(0) invert(1);
}

.footer-icons {
  width: 21px;
  height: 21px;
}

.profile-icons {
  width: 25px;
  height: 25px;
}

/* ================================
   SPINNER
================================ */

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: sp 1s linear infinite;
  margin: 2rem auto;
}

@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

/* ================================
   VIEW TRANSITIONS
================================ */

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 1s;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .grid.games,
  .grid.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-reviews {
    min-height: 210px;
  }

  .product-page {
    grid-template-columns: 1fr;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.8rem 1rem;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.6rem;
  }

  main {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1.2rem;
    border-radius: 16px;
  }
}

@media (max-width: 720px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .game-nav-item {
    flex-basis: 90px;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
  }

  .product-edit-header,
  .stock-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .grid.games,
  .grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .grid.games .card,
  .grid.products .card {
    min-width: 0;
  }

  .grid.games .card .body,
  .grid.products .card .body {
    padding: 0.75rem;
  }

  .grid.games .card .title,
  .grid.products .card .title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .grid.games .card .meta,
  .grid.products .card .meta {
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .grid.products .card .price {
    font-size: 1rem;
  }

  .grid.products .card .tag {
    font-size: 0.58rem;
    padding: 0.12rem 0.4rem;
  }
}
.admin-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.admin-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.admin-game-thumb {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray);
  overflow: hidden;
}

.admin-game-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.admin-game-thumb.placeholder > span {
  opacity: .35;
}

.admin-game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, .65);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .2s ease,
    visibility .2s ease;
}

.admin-game-card:hover .admin-game-overlay {
  opacity: 1;
  visibility: visible;
}

.admin-game-overlay .btn {
  cursor: pointer;
}

.admin-game-body {
  padding: 14px;
}

.admin-game-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.admin-game-meta {
  color: var(--muted);
  font-size: 12px;
}

.admin-game-slug {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
  opacity: .75;
}

.admin-game-order {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .admin-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .admin-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-games-grid {
    grid-template-columns: 1fr;
  }
}

.admin-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-category-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.admin-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.admin-category-thumb {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray);
  overflow: hidden;
}

.admin-category-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.admin-category-thumb.placeholder > span {
  opacity: .35;
}

.admin-category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, .65);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .2s ease,
    visibility .2s ease;
}

.admin-category-card:hover .admin-category-overlay {
  opacity: 1;
  visibility: visible;
}

.admin-category-overlay .btn {
  cursor: pointer;
}

.admin-category-body {
  padding: 14px;
}

.admin-category-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.admin-category-game {
  color: var(--muted);
  font-size: 12px;
}

.admin-category-order {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
  opacity: .75;
}

@media (max-width: 1000px) {
  .admin-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .admin-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-categories-grid {
    grid-template-columns: 1fr;
  }
}

.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 1.5rem;
}

.admin-product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.admin-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.admin-product-thumb {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray);
  overflow: hidden;
}

.admin-product-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.admin-product-thumb.placeholder span {
  opacity: .35;
}

.admin-product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  background: rgba(0,0,0,.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.admin-product-card:hover .admin-product-overlay {
  opacity: 1;
  visibility: visible;
}

.admin-product-body {
  padding: 14px;
}

.admin-product-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.admin-product-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.admin-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.admin-product-bottom strong {
  color: #22c55e;
  font-size: 18px;
}

.admin-product-bottom span {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1000px) {
  .admin-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .admin-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-products-grid {
    grid-template-columns: 1fr;
  }
}

