:root {
  --bg: #06070a;
  --card: #0b0d12;
  --ink: #f7f7fb;
  --muted: #989eaa;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #9f62ff;
  --button-dark: #11141c;
  --ok: #26e69a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(159, 98, 255, 0.22) 0%, transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(38, 230, 154, 0.14) 0%, transparent 34%),
    linear-gradient(180deg, #07090f 0%, #06070a 68%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

a,
button,
input,
label {
  touch-action: manipulation;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d1118;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  margin-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9f62ff, #7f44de);
  box-shadow: 0 0 0 5px rgba(159, 98, 255, 0.2);
}

.topbar-links {
  display: inline-flex;
  gap: 8px;
}

.topbar-links a {
  text-decoration: none;
  font-weight: 700;
  color: #ced3df;
  font-size: 0.9rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: #161c28;
}

.card,
.item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.card {
  max-width: 440px;
  padding: 16px;
}

label {
  display: block;
  font-weight: 700;
  margin-top: 10px;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #2a3140;
  border-radius: 10px;
  padding: 10px;
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink);
  background: #0f141f;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #8a4dff, var(--accent));
  color: white;
  font-weight: 800;
  margin-top: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.ghost {
  background: #171d2a;
  color: #e2e7f4;
  margin-top: 0;
}

button:active {
  transform: none;
}

.status {
  min-height: 20px;
  color: #a7421d;
  font-weight: 700;
}

.status.info {
  color: var(--muted);
}

.hidden {
  display: none;
}

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

.sub {
  margin: 4px 0 0;
  color: var(--muted);
}

.head-actions {
  display: flex;
  gap: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #0d121b, #0a0f17);
}

.stat-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-value {
  margin: 2px 0 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.search-wrap {
  flex: 1;
  margin-top: 0;
}

.search-wrap span {
  display: inline-block;
  margin-bottom: 6px;
}

.list {
  display: grid;
  gap: 12px;
}

.item {
  padding: 12px;
}

.item h3 {
  margin-top: 0;
}

.meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.photos {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.photos a {
  text-decoration: none;
}

.photos img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: opacity 0.15s;
}

.photos a.lightbox-trigger {
  cursor: zoom-in;
}

.photos a.lightbox-trigger:hover img {
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 4px 8px;
}

.lightbox-close:hover {
  opacity: 1;
}

@media (min-width: 760px) {
  .shell {
    padding: 22px;
  }

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

  .photos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 8px 10px;
  }

  .topbar-links a {
    font-size: 0.82rem;
    padding: 6px 8px;
  }

  .head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (hover: hover) and (pointer: fine) {
  button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(17, 39, 62, 0.12);
  }
}

/* Variant badges */
.variant-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.variant-24x7gym {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.variant-fitomat {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}
