/* ═══ VARIABLES ═══════════════════════════════════════════════════════════ */
:root {
  --void:     #020208;
  --deep:     #0a0a14;
  --surface:  #12121f;
  --card:     #1a1a2e;
  --border:   #252545;
  --border-h: #3a3a6a;

  --purple:   #84cc16;
  --purple-d: #65a30d;
  --cyan:     #a3e635;
  --green:    #22c55e;
  --pink:     #ec4899;
  --gold:     #f59e0b;

  --text:     #f0f0ff;
  --muted:    #8888bb;
  --hint:     #4a4a7a;

  --gp: 0 0 20px rgba(132,204,22,.55), 0 0 60px rgba(132,204,22,.20);
  --gc: 0 0 20px rgba(163,230,53,.55), 0 0 60px rgba(163,230,53,.20);

  --fd: 'Orbitron', monospace;
  --fb: 'Exo 2', sans-serif;

  --header-h: 62px;
  --max-w: 1240px;
}

/* ═══ RESET & BASE ════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--fb); }
ul { list-style: none; }

/* ═══ CUSTOM CURSOR ═══════════════════════════════════════════════════════ */
.cursor-ring {
  position: fixed; width: 28px; height: 28px;
  border: 2px solid var(--cyan); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, border-color .2s, background .2s;
  mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed; width: 5px; height: 5px;
  background: var(--cyan); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
body.hov .cursor-ring {
  width: 50px; height: 50px;
  border-color: var(--purple);
  background: rgba(132,204,22,.1);
}

/* ═══ STARFIELD ═══════════════════════════════════════════════════════════ */
.starfield {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ═══ UFO ═════════════════════════════════════════════════════════════════ */
.ufo-wrap {
  position: fixed; z-index: 2;
  pointer-events: none;
  animation: ufo-fly 22s linear infinite;
}
.ufo-1 { top: 12vh; }
.ufo-2 { top: 58vh; animation-duration: 32s; animation-delay: -14s; }
@keyframes ufo-fly {
  0%   { left: -150px; opacity: 0; }
  4%   { opacity: .9; }
  95%  { opacity: .9; }
  100% { left: calc(100vw + 150px); opacity: 0; }
}
.ufo-body { animation: ufo-bob 2.6s ease-in-out infinite; }
@keyframes ufo-bob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-14px) rotate(2deg); }
}
.ufo-beam {
  position: absolute; bottom: -48px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 56px;
  background: linear-gradient(to bottom, rgba(163,230,53,.7), transparent);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  animation: beam-pulse 1.9s ease-in-out infinite;
}
.ufo-beam--sm { width: 18px; height: 38px; }
@keyframes beam-pulse {
  0%,100% { opacity: .3; transform: translateX(-50%) scaleY(1); }
  50%     { opacity: .9; transform: translateX(-50%) scaleY(1.2); }
}

/* ═══ ALIEN PEEK ══════════════════════════════════════════════════════════ */
.alien-peek {
  position: fixed; bottom: -155px; right: 24px; z-index: 20;
  pointer-events: none;
  transition: bottom .7s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 0 28px rgba(163,230,53,.4));
}
.alien-peek.show { bottom: -4px; }
.alien-peek svg { animation: alien-wobble 3s ease-in-out infinite; }
@keyframes alien-wobble {
  0%,100% { transform: rotate(-4deg); }
  50%     { transform: rotate(4deg); }
}
.eye-glow { animation: eye-blink 4s ease-in-out infinite; }
@keyframes eye-blink {
  0%,89%,100% { opacity: .75; }
  95% { opacity: 0; }
}

/* ═══ HEADER ══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2,2,8,.88);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(132,204,22,.2);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.logo {
  font-family: var(--fd); font-size: 1.2rem; font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.logo:hover { filter: drop-shadow(0 0 14px var(--purple)); }
.logo-x { -webkit-text-fill-color: var(--purple); }

.nav-desktop {
  display: flex; gap: 20px; align-items: center;
  margin-left: auto;
}
.nav-link {
  font-size: .82rem; font-weight: 500; color: var(--muted);
  letter-spacing: .8px; transition: color .2s;
  padding: 4px 0;
}
.nav-link:hover, .nav-link--active {
  color: var(--cyan);
  text-shadow: var(--gc);
}

.header-right {
  display: flex; align-items: center; gap: 10px;
  margin-left: 20px;
}
.tg-header-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-d));
  color: #fff; border: none; border-radius: 24px;
  padding: 8px 18px; font-size: .78rem;
  font-family: var(--fd); font-weight: 600;
  letter-spacing: 1px;
  box-shadow: var(--gp);
  transition: transform .2s;
}
.tg-header-btn:hover { transform: scale(1.06); }

.icon-btn {
  background: none; border: none; font-size: 1.1rem;
  color: var(--muted); padding: 6px; transition: color .2s;
}
.icon-btn:hover { color: var(--cyan); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: all .25s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-search { display: none; }

.nav-mobile {
  background: rgba(10,10,20,.98);
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
}
.nav-mobile-link {
  display: block; padding: 11px 0;
  font-size: .95rem; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s;
}
.nav-mobile-link:hover { color: var(--cyan); }
.nav-mobile-link:last-child { border-bottom: none; }

/* ═══ HERO ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 30% 50%, rgba(132,204,22,.1), transparent),
    radial-gradient(ellipse 50% 60% at 72% 40%, rgba(163,230,53,.07), transparent);
}
.hero-eyebrow {
  font-family: var(--fd); font-size: .7rem;
  color: var(--cyan); letter-spacing: 5px; text-transform: uppercase;
  margin-bottom: 18px;
  animation: fade-up .8s ease both;
}
.hero-title {
  font-family: var(--fd);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 900; line-height: 1; letter-spacing: -1px;
  animation: fade-up .8s ease .1s both;
}
.hero-line1 { color: var(--text); }
.hero-x {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px var(--purple));
}
.hero-line2 { color: var(--cyan); }
.hero-sub {
  font-size: 1.1rem; color: var(--muted); margin-top: 20px;
  letter-spacing: 1px;
  animation: fade-up .8s ease .2s both;
}
.hero-stats {
  display: flex; gap: 48px; margin-top: 40px;
  animation: fade-up .8s ease .3s both;
}
.hero-stat { text-align: center; }
.stat-num {
  font-family: var(--fd); font-size: 2.2rem; font-weight: 900;
  display: block; line-height: 1.1; margin-bottom: 4px;
}
.stat-num--purple { color: var(--purple); text-shadow: var(--gp); }
.stat-num--cyan   { color: var(--cyan);   text-shadow: var(--gc); }
.stat-num--gold   { color: var(--gold); }
.stat-label {
  font-size: .72rem; color: var(--hint);
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-btns {
  display: flex; gap: 16px; margin-top: 44px;
  flex-wrap: wrap; justify-content: center;
  animation: fade-up .8s ease .4s both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ BUTTONS ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; padding: 13px 26px;
  font-size: .92rem; font-family: var(--fd);
  font-weight: 600; letter-spacing: 1px;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-d));
  color: #fff;
  box-shadow: var(--gp);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(132,204,22,.65), 0 0 90px rgba(132,204,22,.25);
}
.btn--outline {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn--outline:hover {
  background: rgba(163,230,53,.1);
  box-shadow: var(--gc);
  transform: translateY(-3px);
}
.btn--full { width: 100%; justify-content: center; }

/* ═══ DIVIDERS & LAYOUT ═══════════════════════════════════════════════════ */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
}
.section-wrap {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 64px 24px;
}
.section-label {
  font-family: var(--fd); font-size: .65rem;
  color: var(--purple); letter-spacing: 5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700; margin-bottom: 36px; color: var(--text);
}
.section-more { text-align: center; margin-top: 44px; }

/* ═══ CARDS GRID ══════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.cards-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.cards-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.cards-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ═══ CARD ════════════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  opacity: 0; transform: translateY(32px);
}
.card.revealed {
  opacity: 1; transform: translateY(0);
}
.card:hover {
  transform: translateY(-9px) scale(1.02) !important;
  border-color: var(--purple);
  box-shadow:
    0 14px 44px rgba(0,0,0,.6),
    0 0 0 1px rgba(132,204,22,.35),
    0 0 38px rgba(132,204,22,.2);
}
.card--verified:hover {
  border-color: var(--cyan);
  box-shadow:
    0 14px 44px rgba(0,0,0,.6),
    0 0 0 1px rgba(163,230,53,.35),
    0 0 38px rgba(163,230,53,.2);
}
.card--pinned {
  border-color: rgba(245,158,11,.4);
  animation: pin-pulse 3s ease-in-out infinite;
}
@keyframes pin-pulse {
  0%,100% { box-shadow: 0 0 14px rgba(245,158,11,.2); }
  50%     { box-shadow: 0 0 36px rgba(245,158,11,.5); }
}

/* Card background */
.card-bg {
  height: 155px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-bg-placeholder { font-size: 3.6rem; }
.card-photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-photo { transform: scale(1.09); }
.card-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,10,20,.92));
}

/* Card badges */
.card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 5px; flex-wrap: wrap; z-index: 1;
}
.badge {
  font-size: .62rem; font-weight: 700; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 20px;
  font-family: var(--fd);
}
.badge--new      { background: var(--green); color: #fff; animation: badge-blink 1.5s ease-in-out infinite; }
.badge--pin      { background: var(--gold); color: #000; }
.badge--verified { background: rgba(163,230,53,.15); color: var(--cyan); border: 1px solid var(--cyan); }
@keyframes badge-blink { 0%,100%{opacity:1} 50%{opacity:.65} }

/* Card body */
.card-body { padding: 15px; }
.card-title {
  font-family: var(--fd); font-size: .9rem; font-weight: 700;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.card-category {
  font-size: .68rem; color: var(--purple);
  background: rgba(132,204,22,.1);
  border: 1px solid rgba(132,204,22,.2);
  border-radius: 20px; padding: 2px 9px;
  display: inline-block; margin-bottom: 9px;
}
.card-desc {
  font-size: .8rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.55; margin-bottom: 10px;
}

/* Mini products in card */
.card-products {
  border-top: 1px solid var(--border);
  margin-top: 8px; padding-top: 8px;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
}
.product-row {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: .73rem;
}
.product-name {
  color: var(--muted); display: flex;
  align-items: center; gap: 5px;
}
.product-price { color: var(--cyan); font-weight: 600; font-size: .68rem; }

/* Card footer */
.card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
}
.card-username { font-size: .72rem; color: var(--hint); }
.card-rating   { display: flex; gap: 8px; }
.rating-likes   { font-size: .8rem; font-weight: 600; color: var(--green); }
.rating-dislikes{ font-size: .8rem; font-weight: 600; color: var(--pink); }

/* Rating bar */
.rating-bar {
  margin-top: 7px;
  height: 4px; background: rgba(255,255,255,.05);
  border-radius: 4px; overflow: hidden;
}
.rating-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .6s ease;
}
.card-views { font-size: .68rem; color: var(--hint); margin-top: 5px; }

/* ═══ CATALOG PAGE ════════════════════════════════════════════════════════ */
.catalog-header { margin-bottom: 28px; }
.catalog-filters { margin-bottom: 32px; }
.search-wrap { position: relative; max-width: 480px; margin-bottom: 16px; }
.search-wrap--lg { max-width: 640px; margin: 0 auto 24px; }
.search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); pointer-events: none; font-size: 1rem;
}
.search-input {
  width: 100%; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 18px 13px 44px;
  color: var(--text); font-size: .92rem; font-family: var(--fb);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(132,204,22,.15);
}
.search-input--lg { padding: 15px 110px 15px 48px; font-size: 1rem; }
.search-submit {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--purple); color: #fff; border: none; border-radius: 10px;
  padding: 7px 16px; font-size: .82rem; font-family: var(--fd);
  font-weight: 600; letter-spacing: .5px;
  transition: background .2s;
}
.search-submit:hover { background: var(--purple-d); }

.filter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-select {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px;
  color: var(--text); font-size: .85rem; font-family: var(--fb);
  outline: none; cursor: pointer;
  transition: border-color .2s;
}
.filter-select:focus { border-color: var(--purple); }

.loading-spinner {
  display: flex; justify-content: center; padding: 20px 0;
}
.loading-spinner.htmx-indicator { display: none; }
.loading-spinner.htmx-indicator.htmx-request { display: flex; }
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(132,204,22,.2);
  border-top-color: var(--purple);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.catalog-count {
  font-size: .85rem; color: var(--muted);
  margin-bottom: 24px;
}
.catalog-count strong { color: var(--text); }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 24px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-title { font-family: var(--fd); font-size: 1.2rem; margin-bottom: 8px; }
.empty-sub { color: var(--muted); font-size: .9rem; }

/* ═══ PAGINATION ══════════════════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 44px; flex-wrap: wrap;
}
.page-btn {
  display: inline-flex; align-items: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: .85rem; font-family: var(--fd);
  font-weight: 600; cursor: pointer;
  transition: all .2s; text-align: center; justify-content: center;
}
.page-btn:hover {
  border-color: var(--purple); color: var(--purple);
  background: rgba(132,204,22,.08);
}
.page-btn--active {
  background: var(--purple); border-color: var(--purple);
  color: #fff; box-shadow: var(--gp);
}
.page-ellipsis { color: var(--hint); font-size: .9rem; padding: 0 4px; }

/* ═══ DETAIL PAGE ══════════════════════════════════════════════════════════ */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.crumb { font-size: .82rem; color: var(--muted); transition: color .2s; }
.crumb:hover { color: var(--cyan); }
.crumb--current { color: var(--text); }
.crumb-sep { color: var(--hint); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px; margin-bottom: 52px;
  align-items: start;
}
.detail-media {}
.detail-photo {
  width: 100%; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--border);
  max-height: 440px;
}
.detail-photo-placeholder {
  width: 100%; border-radius: 16px;
  background: linear-gradient(135deg, var(--card), var(--surface));
  border: 1px solid var(--border);
  height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}

.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-title {
  font-family: var(--fd); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; margin-bottom: 16px; color: var(--text);
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 24px;
}
.meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--muted);
}
.meta-icon { font-size: .9rem; }
.meta-link { color: var(--cyan); transition: text-shadow .2s; }
.meta-link:hover { text-shadow: var(--gc); }

.detail-divider {
  height: 1px; background: var(--border);
  margin: 20px 0;
}
.detail-section { margin-bottom: 20px; }
.detail-section-title {
  font-family: var(--fd); font-size: .85rem; font-weight: 700;
  color: var(--muted); letter-spacing: 1px;
  margin-bottom: 10px;
}
.detail-desc { font-size: .92rem; color: var(--text); line-height: 1.7; }

.detail-rating { margin-bottom: 20px; }
.rating-numbers { display: flex; gap: 20px; margin-bottom: 10px; }
.rating-big {
  font-family: var(--fd); font-size: 1.6rem; font-weight: 900;
}
.rating-big--likes   { color: var(--green); }
.rating-big--dislikes{ color: var(--pink); }
.rating-bar--lg { height: 6px; border-radius: 6px; }
.rating-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.detail-cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.copy-link-btn {
  background: none; border: 1px solid var(--border);
  color: var(--muted); border-radius: 10px;
  padding: 9px 16px; font-size: .82rem; font-family: var(--fb);
  transition: all .2s; width: 100%;
}
.copy-link-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* Products section */
.products-section { margin-bottom: 52px; }
.products-title {
  font-family: var(--fd); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.products-count {
  font-size: .72rem; color: var(--muted); font-weight: 400;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.product-card {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px;
  transition: border-color .2s;
}
.product-card:hover { border-color: var(--purple); }
.product-card-name {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text);
}
.product-emoji { font-size: 1.2rem; }
.product-card-price {
  color: var(--cyan); font-weight: 600;
  font-size: .82rem; white-space: nowrap;
}

/* Related section */
.related-section { margin-bottom: 40px; }
.related-title {
  font-family: var(--fd); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 24px;
}
.detail-back { margin-top: 40px; }
.back-link { color: var(--muted); font-size: .9rem; transition: color .2s; }
.back-link:hover { color: var(--cyan); }

/* ═══ SEARCH PAGE ══════════════════════════════════════════════════════════ */
.search-page {}
.search-form { margin-bottom: 32px; }
.search-meta { font-size: .9rem; color: var(--muted); margin-bottom: 28px; }
.search-meta strong { color: var(--text); }
.search-hint { font-size: .9rem; color: var(--hint); }

/* ═══ STATIC PAGE ══════════════════════════════════════════════════════════ */
.static-content {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  font-size: .95rem; line-height: 1.8; color: var(--text);
  margin-bottom: 32px;
}
.static-content b, .static-content strong { color: var(--cyan); }
.static-content a { color: var(--purple); text-decoration: underline; }

/* ═══ CTA BAND ═════════════════════════════════════════════════════════════ */
.cta-band {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(132,204,22,.09), rgba(163,230,53,.04));
  border-top: 1px solid rgba(132,204,22,.18);
  border-bottom: 1px solid rgba(132,204,22,.18);
  padding: 72px 24px; text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-alien { font-size: 3.5rem; margin-bottom: 16px; }
.cta-title {
  font-family: var(--fd); font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700; margin-bottom: 12px;
}
.cta-sub { color: var(--muted); margin-bottom: 28px; font-size: .95rem; }

/* ═══ FOOTER ═══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 1;
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 44px 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: var(--fd); font-size: 1.4rem; font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 20px; display: block;
}
.footer-nav {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 16px;
}
.footer-nav a {
  font-size: .82rem; color: var(--muted); transition: color .2s;
}
.footer-nav a:hover { color: var(--cyan); }
.footer-copy { font-size: .75rem; color: var(--hint); }

/* ═══ FLOATING TG BUTTON ══════════════════════════════════════════════════ */
.ftg-btn {
  position: fixed; bottom: 20px; right: 22px; z-index: 30;
  background: #229ED9; color: #fff;
  border-radius: 50px; padding: 12px 20px;
  font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(34,158,217,.4);
  transition: transform .2s, box-shadow .2s, opacity .3s;
  animation: float-btn 3s ease-in-out infinite;
  font-family: var(--fd); letter-spacing: .5px;
}
.ftg-btn:hover {
  box-shadow: 0 8px 32px rgba(34,158,217,.65);
  transform: scale(1.05) !important;
}
@keyframes float-btn {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* ═══ ERROR PAGES ══════════════════════════════════════════════════════════ */
.error-page { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.error-inner { max-width: 480px; margin: 0 auto; }
.error-code {
  font-family: var(--fd); font-size: 8rem; font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 16px;
  filter: drop-shadow(0 0 30px var(--purple));
}
.error-title { font-family: var(--fd); font-size: 1.5rem; margin-bottom: 10px; }
.error-sub   { color: var(--muted); margin-bottom: 28px; }

/* ═══ SCROLL REVEAL ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(32px);
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

/* ═══ SCANLINE OVERLAY ════════════════════════════════════════════════════ */
body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.022) 3px, rgba(0,0,0,.022) 4px
  );
}

/* ═══ RESPONSIVE ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-photo, .detail-photo-placeholder { max-height: 280px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-ring, .cursor-dot { display: none; }

  .nav-desktop { display: none; }
  .burger { display: flex; }
  .mobile-search { display: flex; }

  .hero { min-height: 80vh; padding: 60px 20px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.6rem; }

  .hero-btns .btn { padding: 12px 20px; font-size: .85rem; }

  .section-wrap { padding: 44px 20px; }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--4, .cards-grid--3 { grid-template-columns: 1fr; }

  .filter-row { flex-direction: column; }
  .filter-select { width: 100%; }

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

  .ftg-btn { bottom: 12px; right: 14px; padding: 10px 16px; font-size: .78rem; }

  .pagination .page-btn:not(:first-child):not(:last-child):not(.page-btn--active) {
    display: none;
  }
}


/* ═══ CARD: title row + mini rating (Patch v6) ═══════════════════════════ */
.card-bg-link { display: block; cursor: pointer; }
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.card-title-link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
.card-title-link:hover .card-title { color: var(--purple); }
.card-title-link .card-title { margin-bottom: 0; }

.card-rating-mini { display: flex; gap: 6px; flex-shrink: 0; }
.rating-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255,255,255,.04);
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.rating-mini--like {
  color: var(--green);
  border-color: rgba(34,197,94,.25);
}
.rating-mini--like:hover {
  background: rgba(34,197,94,.15);
  border-color: var(--green);
  transform: translateY(-1px);
}
.rating-mini--dislike {
  color: var(--pink);
  border-color: rgba(236,72,153,.25);
}
.rating-mini--dislike:hover {
  background: rgba(236,72,153,.15);
  border-color: var(--pink);
  transform: translateY(-1px);
}
.rating-mini span { font-feature-settings: 'tnum'; }

.card-city {
  background: rgba(163,230,53,.08);
  border-color: rgba(163,230,53,.2);
  color: var(--cyan);
  margin-left: 4px;
}
.card-open-btn {
  font-size: .72rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(132,204,22,.3);
  border-radius: 999px;
  background: rgba(132,204,22,.06);
  transition: all .2s;
  white-space: nowrap;
}
.card-open-btn:hover {
  background: rgba(132,204,22,.18);
  border-color: var(--purple);
  transform: translateX(2px);
}

a.card-username:hover { color: var(--cyan); }


/* Patch v7 — clickable rating-big on detail page */
.rating-big--clickable {
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center;
}
.rating-big--clickable:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}
.rating-big--likes.rating-big--clickable:hover    { text-shadow: 0 0 16px var(--green); }
.rating-big--dislikes.rating-big--clickable:hover { text-shadow: 0 0 16px var(--pink); }
