/* LarosStore light theme v2026-08-24f — loader + lang lock + turnstile */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

:root {
  --bg: #eef3f5;
  --bg-elev: #ffffff;
  --bg-soft: #e4ecef;
  --line: rgba(15, 40, 48, 0.1);
  --line-strong: rgba(15, 40, 48, 0.16);
  --text: #132025;
  --mute: #5a6b73;
  --accent: #0c8a97;
  --accent-2: #0a6f7a;
  --accent-soft: rgba(12, 138, 151, 0.1);
  --sale: #d63b3b;
  --hot: #c98918;
  --discord: #5865f2;
  --nav: 88px;
  --max: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(19, 45, 55, 0.1);
  --shadow-sm: 0 8px 24px rgba(19, 45, 55, 0.07);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-d: "Sora", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 480px at 90% -5%, rgba(12, 138, 151, 0.14), transparent 55%),
    radial-gradient(ellipse 700px 400px at -10% 40%, rgba(10, 111, 122, 0.08), transparent 50%),
    radial-gradient(ellipse 500px 300px at 50% 100%, rgba(12, 138, 151, 0.06), transparent 60%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 35%, #e8f0f2 100%);
  background-attachment: fixed;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main,
.page > .wrap,
.page > section {
  overflow-x: clip;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(12, 138, 151, 0.16), transparent 60%),
    #f4f8f9;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-inner {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.site-loader-inner img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.site-loader-inner strong {
  font-family: var(--font-d);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.site-loader-inner strong span {
  color: var(--accent);
}

.site-loader-bar {
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: rgba(12, 138, 151, 0.15);
  overflow: hidden;
}

.site-loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14a3b1, var(--accent));
  animation: loaderBar 1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes loaderBar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0.7rem 0 0;
  background: transparent;
  overflow: visible;
}

.site-header.nav-open {
  z-index: 400;
}

.nav-shell {
  position: relative;
  width: min(100% - 2rem, calc(var(--max) + 1.5rem));
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 40, 48, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 32px rgba(19, 45, 55, 0.06);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: visible;
}

.site-header.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 40, 48, 0.1);
  box-shadow: 0 14px 36px rgba(19, 45, 55, 0.1);
}

.nav-inner {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-word {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-word span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 2.75rem;
  overflow: visible;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(12, 138, 151, 0.07);
}

.nav-links a.active {
  color: var(--accent-2);
  background: rgba(12, 138, 151, 0.12);
}

.nav-dropdown {
  position: relative;
  z-index: 1;
}

.nav-details {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-toggle::-webkit-details-marker {
  display: none;
}

.nav-dropdown-toggle::marker {
  content: "";
  display: none;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s;
}

.nav-dropdown-toggle:hover,
.nav-details[open] > .nav-dropdown-toggle {
  color: var(--text);
  background: rgba(12, 138, 151, 0.07);
}

.nav-dropdown.is-active .nav-dropdown-toggle {
  color: var(--accent-2);
  background: rgba(12, 138, 151, 0.12);
}

.nav-details[open] > .nav-dropdown-toggle::after {
  transform: rotate(-135deg) translateY(1px);
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 168px;
  border: 1px solid rgba(12, 138, 151, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(19, 45, 55, 0.14);
  display: none;
  z-index: 500;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 1.15rem;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(12, 138, 151, 0.14);
  border-top: 1px solid rgba(12, 138, 151, 0.14);
  transform: rotate(45deg);
}

.nav-dropdown-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown-link:hover {
  background: rgba(12, 138, 151, 0.08);
  color: var(--accent-2);
}

.nav-dropdown-link.active {
  background: rgba(12, 138, 151, 0.12);
  color: var(--accent-2);
}

.nav-details[open] > .nav-dropdown-menu {
  display: block;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.lang-btn {
  min-width: 36px;
  padding: 0.32rem 0.5rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.lang-btn.active {
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 1px 3px rgba(19, 45, 55, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  place-items: center;
  gap: 5px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.55rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(165deg, #14a3b1, var(--accent) 40%, var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(12, 138, 151, 0.32);
}

.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(12, 138, 151, 0.38);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: rgba(12, 138, 151, 0.35);
  color: var(--accent-2);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  box-shadow: none;
}

.btn-discord:hover {
  filter: brightness(1.06);
}

.btn-discord svg {
  width: 16px;
  height: 16px;
}

.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

.btn-with-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav));
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 75% 35%, rgba(12, 138, 151, 0.18), transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 75%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 45%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
  padding: 3.5rem 0 5.5rem;
}

.hero-copy {
  max-width: 36rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-d);
  font-size: clamp(3rem, 7.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--text);
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-d);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #2a3a41;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 1.85rem;
  color: var(--mute);
  font-size: 1.08rem;
  max-width: 30rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  width: min(92%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 138, 151, 0.22), transparent 68%);
  filter: blur(4px);
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-logo-big {
  position: relative;
  width: min(78%, 380px);
  filter: drop-shadow(0 28px 50px rgba(12, 138, 151, 0.28));
  animation: floatLogo 5.5s ease-in-out infinite;
  user-select: none;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

.hero-marquee {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 2;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-d);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 138, 151, 0.22);
}

.marquee-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* —— Sections —— */
.section {
  padding: 4.25rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-d);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--mute);
  max-width: 38rem;
  font-size: 1.02rem;
}

.page-hero {
  position: relative;
  padding: 2.25rem 0 0.15rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 138, 151, 0.07), transparent 48%),
    radial-gradient(ellipse 45% 70% at 90% 10%, rgba(12, 138, 151, 0.1), transparent 55%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
  color: var(--text);
}

.page-hero p {
  margin: 0;
  color: var(--mute);
  max-width: 36rem;
  font-size: 1.02rem;
}

.section--tight {
  padding-top: 1.35rem;
}

/* —— Catalog —— */
.catalog-shell {
  display: grid;
  gap: 1.35rem;
}

.catalog-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.catalog-toolbar .search-wrap {
  flex: 1;
  min-width: min(100%, 220px);
}

.cat-rail {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.cat-rail-btn {
  flex: 0 0 auto;
  padding: 0.7rem 0.95rem;
  color: var(--mute);
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.cat-rail-btn:hover {
  color: var(--text);
}

.cat-rail-btn.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  display: block;
}

.search-wrap svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  stroke: var(--mute);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.search-wrap .search {
  width: 100%;
  padding-left: 2.55rem;
}

/* —— Categories —— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cat-card:hover {
  background: #fff;
  border-color: rgba(12, 138, 151, 0.22);
  transform: translateY(-2px);
}

.cat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.2s;
}

.cat-card:hover .cat-icon {
  transform: scale(1.05);
}

.cat-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-card strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.cat-desc {
  display: block;
  color: var(--mute);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* —— Products —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
}

.product.no-lang .product-media-inner {
  filter: blur(5px);
  opacity: 0.55;
}

.product.no-lang .product-actions .btn {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.product-lang-block {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(247, 250, 251, 0.2);
  pointer-events: none;
}

.product-lang-block span {
  max-width: 12rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(19, 32, 37, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(19, 45, 55, 0.25);
}

.product:hover {
  border-color: rgba(12, 138, 151, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product.is-hot {
  border-color: rgba(12, 138, 151, 0.42);
  box-shadow:
    0 0 0 1px rgba(12, 138, 151, 0.16),
    0 12px 32px rgba(12, 138, 151, 0.12),
    var(--shadow-sm);
  animation: hotPulse 2.8s ease-in-out infinite;
}

.product.is-hot:hover {
  border-color: rgba(12, 138, 151, 0.58);
  box-shadow:
    0 0 0 1px rgba(12, 138, 151, 0.28),
    0 18px 40px rgba(12, 138, 151, 0.16),
    var(--shadow);
}

@keyframes hotPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(12, 138, 151, 0.14),
      0 12px 28px rgba(12, 138, 151, 0.1),
      var(--shadow-sm);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(12, 138, 151, 0.24),
      0 14px 36px rgba(12, 138, 151, 0.16),
      var(--shadow-sm);
  }
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #dce8eb, #eef4f6);
  overflow: hidden;
  line-height: 0;
}

.product-media-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-media-inner > .product-img,
.product-media-inner > .glyph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.55));
  pointer-events: none;
  z-index: 1;
}

.product-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product:hover .product-img {
  transform: scale(1.06);
}

.glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(12, 138, 151, 0.45);
  background:
    radial-gradient(circle at 30% 20%, rgba(12, 138, 151, 0.12), transparent 50%),
    linear-gradient(145deg, #e2eef1, #f4f8f9);
}

.product-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.product-badge.free {
  background: var(--accent);
  color: #fff;
}

.product-badge.hot {
  background: linear-gradient(135deg, #e8a820, #c98918 55%, #a86f0f);
  color: #fff;
  animation: hotBadge 1.8s ease-in-out infinite;
}

@keyframes hotBadge {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.12);
    transform: scale(1.04);
  }
}

.product-badge.sale {
  background: var(--sale);
  color: #fff;
}

.product-views {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.product-views svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.05rem 1.1rem 1.15rem;
  gap: 0.35rem;
}

.product-game {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 0;
  min-height: 2.75em;
  line-height: 1.375;
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-desc {
  margin: 0.55rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(12, 138, 151, 0.09), rgba(12, 138, 151, 0.02));
  color: #3d4f56;
  font-size: 0.84rem;
  line-height: 1.5;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.product.is-hot .product-desc {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(12, 138, 151, 0.1), rgba(12, 138, 151, 0.02));
}

.product-body > p:not(.product-desc) {
  margin: 0;
  color: var(--mute);
  font-size: 0.84rem;
  flex: 1;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.price {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--text);
}

.price s {
  display: block;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.product-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-stat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* —— Modal —— */
.code-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(19, 32, 37, 0.45);
  backdrop-filter: blur(8px);
}

.code-modal[hidden] {
  display: none !important;
}

.code-modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 1.65rem 1.45rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.code-modal-card h3 {
  font-family: var(--font-d);
  font-size: 1.2rem;
  padding-right: 2rem;
  margin: 0;
}

.code-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.code-modal-lead,
.code-modal-help,
.code-modal-error {
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.code-modal-error {
  color: var(--sale);
}

.code-modal-label {
  display: grid;
  gap: 0.4rem;
}

.code-modal-label-text {
  font-size: 0.85rem;
  color: var(--mute);
}

.code-modal-input {
  width: 100%;
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 138, 151, 0.35);
  background: var(--accent-soft);
  color: var(--accent-2);
}

.code-modal-input:focus {
  outline: 2px solid rgba(12, 138, 151, 0.35);
  outline-offset: 1px;
}

.code-turnstile {
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.code-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.code-modal-actions .btn {
  flex: 1;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 0.55rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--mute);
  border: 1px dashed rgba(12, 138, 151, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(12, 138, 151, 0.08), transparent 70%),
    #fff;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.empty-state-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state strong {
  display: block;
  color: var(--text);
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 700;
}

.empty-state span {
  display: block;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* —— Filters (legacy chip fallback) —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 600;
}

.chip.active {
  color: var(--accent-2);
  background: rgba(12, 138, 151, 0.12);
  border-color: transparent;
}

.toolbar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.search,
.select {
  min-height: 46px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search {
  flex: 1;
  min-width: 180px;
}

.select {
  min-width: 170px;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  appearance: none;
}

.search:focus,
.select:focus {
  border-color: rgba(12, 138, 151, 0.45);
  box-shadow: 0 0 0 3px rgba(12, 138, 151, 0.12);
}

/* —— Why / CTA —— */
.why-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.why-item {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.why-item:hover {
  border-color: rgba(12, 138, 151, 0.28);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.why-item .num {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-d);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.why-item p {
  margin: 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.55rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 138, 151, 0.2);
  background:
    linear-gradient(120deg, rgba(12, 138, 151, 0.12), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 138, 151, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-d);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: var(--mute);
}

.site-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.site-stat {
  position: relative;
  overflow: hidden;
  padding: 1.45rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(12, 138, 151, 0.18);
  background:
    linear-gradient(145deg, rgba(12, 138, 151, 0.1), transparent 55%),
    #fff;
  text-align: center;
}

.site-stat::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 138, 151, 0.18), transparent 70%);
  animation: statGlow 3.2s ease-in-out infinite;
  pointer-events: none;
}

.site-stat:nth-child(2) {
  border-color: rgba(88, 101, 242, 0.2);
  background:
    linear-gradient(145deg, rgba(88, 101, 242, 0.1), transparent 55%),
    #fff;
}

.site-stat:nth-child(2)::before {
  background: radial-gradient(circle, rgba(88, 101, 242, 0.18), transparent 70%);
}

@keyframes statGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.site-stat-value {
  position: relative;
  display: block;
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.site-stat:nth-child(2) .site-stat-value {
  color: #4a57d8;
}

.site-stat-label {
  position: relative;
  display: block;
  margin-top: 0.45rem;
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.refs-block {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.refs-title {
  margin: 0 0 1.35rem;
  text-align: center;
  font-family: var(--font-d);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.ref-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 1.15rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(19, 45, 55, 0.08);
  background: #fff;
  box-shadow: 0 1px 0 rgba(19, 45, 55, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ref-card:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 138, 151, 0.22);
  box-shadow: 0 10px 24px rgba(19, 45, 55, 0.06);
}

.ref-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  text-align: center;
}

.ref-logo-wrap {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.ref-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ref-logo-fallback {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(12, 138, 151, 0.12), rgba(12, 138, 151, 0.04));
  color: var(--accent);
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 700;
}

.ref-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #2b3a40;
}

@media (max-width: 1100px) {
  .refs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .refs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .refs-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .ref-card {
    flex: 0 0 min(72vw, 220px);
    scroll-snap-align: start;
  }
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 0;
  border-top: none;
  background: transparent;
}

.site-footer > .wrap {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 2rem 1.75rem 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(12, 138, 151, 0.14);
  background:
    linear-gradient(145deg, rgba(12, 138, 151, 0.1) 0%, transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f3f8f9 100%);
  box-shadow: 0 24px 60px rgba(19, 45, 55, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-d);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(12, 138, 151, 0.22);
}

.footer-brand span span {
  color: var(--accent);
}

.footer-tagline {
  margin: 0 0 1.15rem;
  color: var(--mute);
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-links a:hover {
  color: var(--accent-2);
  border-color: rgba(12, 138, 151, 0.35);
  background: var(--accent-soft);
}

.footer-aside-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-perks {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-perks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.perk-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.perk-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-discord {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.82rem;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  padding: 0.9rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(12, 138, 151, 0.25);
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}

/* —— Scrollbar —— */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #e8eef0;
}

::-webkit-scrollbar-thumb {
  background: #8bb8bf;
  border-radius: 999px;
  border: 2px solid #e8eef0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #8bb8bf #e8eef0;
}

/* —— Responsive —— */
@media (max-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    display: none;
    z-index: 60;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: rgba(12, 138, 151, 0.04);
    padding: 0.3rem;
    margin-top: 0.35rem;
    border-radius: 12px;
    display: none;
    min-width: 0;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-details[open] > .nav-dropdown-menu {
    display: block;
  }

  .nav-actions {
    margin-left: 0;
  }

  .nav-actions .btn-discord span {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.25rem 0 4.75rem;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
    margin: 0 auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stage {
    order: -1;
    min-height: 220px;
  }

  .hero-logo-big {
    width: min(58%, 250px);
  }

  .section-head.row {
    flex-direction: column;
    align-items: flex-start;
  }

  .why-strip {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .footer-panel {
    flex-direction: column;
  }

  .footer-stats {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .wrap,
  .nav-inner,
  .hero-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .nav-actions .lang-switch {
    display: none;
  }

  .cat-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .product-actions {
    justify-content: stretch;
  }

  .product-actions .btn {
    flex: 1;
  }

  .toolbar,
  .catalog-toolbar {
    flex-direction: column;
  }

  .search,
  .select {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Site giriş Turnstile koruması */
body.gate-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #f7fafb;
  color: var(--ink, #132025);
  font-family: var(--font, system-ui, sans-serif);
}

.gate-card {
  width: min(100%, 34rem);
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(19, 45, 55, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(19, 45, 55, 0.08);
}

.gate-lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(12, 138, 151, 0.08);
}

.gate-lang-btn {
  min-width: 2.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted, #5f747c);
  text-decoration: none;
}

.gate-lang-btn.active {
  background: #fff;
  color: var(--teal, #0c8a97);
  box-shadow: 0 2px 8px rgba(19, 45, 55, 0.08);
}

.gate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.gate-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.gate-brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.gate-card h1 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.gate-lead {
  margin: 0 0 0.65rem;
  color: var(--muted, #5f747c);
  font-size: 0.95rem;
  line-height: 1.55;
}

.gate-turnstile {
  display: flex;
  justify-content: center;
  min-height: 72px;
  margin: 1.25rem 0 0.75rem;
}

.gate-status {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--teal, #0c8a97);
}

.gate-status.is-error {
  color: #b42318;
}

.gate-powered {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(95, 116, 124, 0.75);
}

/* Wiki */
.wiki-ms-icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.wiki-hero {
  padding: 1.5rem 0 0.5rem;
}

.wiki-hero h1 {
  margin: 0.35rem 0 0;
}

.wiki-index-grid {
  margin-top: 0.5rem;
}

.wiki-card-foot {
  justify-content: flex-end;
}

.wiki-shell[hidden],
#wiki-index-grid[hidden] {
  display: none !important;
}

.wiki-empty-state-block {
  grid-column: 1 / -1;
}

.wiki-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.wiki-back-link:hover {
  color: var(--accent);
}

.wiki-section {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.wiki-shell {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.wiki-sidebar {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.wiki-sidebar-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fafb);
}

.wiki-sidebar-head img {
  width: 28px;
  height: 28px;
}

.wiki-sidebar-head strong {
  font-size: 0.92rem;
}

.wiki-sidebar-nav {
  padding: 0.65rem 0.35rem 0.85rem;
}

.wiki-tree,
.wiki-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-tree-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.55rem 0.42rem 0;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
}

.wiki-tree-link:hover {
  background: rgba(12, 138, 151, 0.08);
  color: var(--accent);
}

.wiki-tree-item.is-active > .wiki-tree-link {
  background: rgba(12, 138, 151, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.wiki-tree-toggle {
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.wiki-tree-chevron {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.wiki-tree-item.is-open > .wiki-tree-link .wiki-tree-chevron {
  transform: rotate(45deg);
}

.wiki-tree-spacer {
  width: 1.35rem;
  flex: 0 0 auto;
}

.wiki-tree-item:not(.is-open) > .wiki-tree {
  display: none;
}

.wiki-main {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}

.wiki-article-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fafcfd);
}

.wiki-article-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.wiki-content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wiki-content-head-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.wiki-content-cover {
  margin: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: linear-gradient(145deg, #dce8eb, #eef4f6);
  line-height: 0;
}

.wiki-content-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.wiki-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 138, 151, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.wiki-views svg {
  width: 16px;
  height: 16px;
}

.wiki-content-head h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.wiki-content-icon {
  font-size: 1.8rem;
  color: var(--accent);
}

.wiki-content-body {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.96rem;
  word-wrap: break-word;
}

.wiki-content-body > :first-child {
  margin-top: 0;
}

.wiki-content-body > :last-child {
  margin-bottom: 0;
}

.wiki-content-body h1,
.wiki-content-body h2,
.wiki-content-body h3 {
  margin: 1.35rem 0 0.65rem;
  font-family: var(--font-d);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wiki-content-body h1 { font-size: 1.45rem; }
.wiki-content-body h2 { font-size: 1.2rem; }
.wiki-content-body h3 { font-size: 1.05rem; }

.wiki-content-body p,
.wiki-content-body ul,
.wiki-content-body ol {
  margin: 0.75rem 0;
}

.wiki-content-body ul,
.wiki-content-body ol {
  padding-left: 1.35rem;
}

.wiki-content-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wiki-content-body a:hover {
  color: var(--accent-2);
}

.wiki-content-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.wiki-content-body img.wiki-img-zoomable,
.wiki-content-cover img.wiki-img-zoomable {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wiki-content-body img.wiki-img-zoomable:hover,
.wiki-content-cover img.wiki-img-zoomable:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 28px rgba(19, 45, 55, 0.12);
}

.wiki-content-body img[data-wiki-w="45%"] { width: 45%; }
.wiki-content-body img[data-wiki-w="65%"] { width: 65%; }
.wiki-content-body img[data-wiki-w="85%"] { width: 85%; }
.wiki-content-body img[data-wiki-w="100%"] { width: 100%; }

body.wiki-lightbox-open {
  overflow: hidden;
}

.wiki-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(10, 18, 22, 0.72);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.wiki-lightbox[hidden] {
  display: none !important;
}

.wiki-lightbox-img {
  max-width: min(1100px, 96vw);
  max-height: min(90vh, 920px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #0b1216;
  cursor: default;
}

.wiki-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wiki-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.wiki-content-body blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(12, 138, 151, 0.45);
  border-radius: 0 10px 10px 0;
  background: rgba(12, 138, 151, 0.06);
  color: var(--mute);
}

.wiki-content-body .ql-align-center,
.wiki-content-body [style*="text-align: center"],
.wiki-content-body [style*="text-align:center"] {
  text-align: center;
}

.wiki-content-body .ql-align-right,
.wiki-content-body [style*="text-align: right"],
.wiki-content-body [style*="text-align:right"] {
  text-align: right;
}

.wiki-content-body .ql-align-justify,
.wiki-content-body [style*="text-align: justify"],
.wiki-content-body [style*="text-align:justify"] {
  text-align: justify;
}

.wiki-content-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(12, 138, 151, 0.08);
  font-size: 0.92em;
}

.wiki-content-body pre {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  overflow: auto;
  border-radius: 10px;
  background: #132d37;
  color: #e8f4f6;
  font-size: 0.88rem;
  line-height: 1.55;
}

.wiki-content-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.wiki-content-body table,
.wiki-content-body .wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.wiki-content-body table th,
.wiki-content-body table td,
.wiki-content-body .wiki-table th,
.wiki-content-body .wiki-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.wiki-content-body table th,
.wiki-content-body .wiki-table th {
  background: #f3f7f8;
  font-weight: 700;
  color: var(--text);
}

.wiki-content-body table tr:nth-child(even) td,
.wiki-content-body .wiki-table tr:nth-child(even) td {
  background: rgba(12, 138, 151, 0.03);
}

.wiki-content-body iframe.ql-video,
.wiki-content-body .wiki-video-embed iframe,
.wiki-content-body iframe[src*="youtube.com/embed"],
.wiki-content-body iframe[src*="streamable.com/e/"] {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 100%;
  margin: 1rem 0;
  border: 0;
  border-radius: 12px;
  background: #0b1216;
  box-shadow: 0 8px 24px rgba(19, 45, 55, 0.1);
}

.wiki-empty,
.wiki-empty-state,
.wiki-muted {
  color: var(--muted);
}

.wiki-empty-state h1 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .wiki-shell {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
    max-height: none;
  }
}
