:root{--accent:#22d3ee;}
@media only screen and (max-width: 500px) {
    .g-recaptcha {
        transform:scale(0.88);
        transform-origin:0 0;
    }
}

/* Globális vízszintes kifolyás elleni védelem */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

/* Extra biztosítás a hős szekcióra */
section.relative.overflow-hidden { max-width: 100vw; }



/* Loader stroke-rajzolás */
.loader-stroke {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: loader-dash 1.6s ease-out forwards;
}
.loader-stroke:nth-of-type(2) { animation-delay: .15s; }
.loader-stroke:nth-of-type(3) { animation-delay: .30s; }

@keyframes loader-dash {
  to { stroke-dashoffset: 0; }
}

/* Gear forgás */
.loader-gear { animation: loader-spin 1.2s linear infinite; transform-origin: center; }
@keyframes loader-spin {
  to { transform: translate(90px,30px) rotate(360deg); }
}

/* Reduced motion tiszteletben tartása */
@media (prefers-reduced-motion: reduce) {
  .loader-stroke { animation: none; stroke-dashoffset: 0; }
  .loader-gear { animation: none; }
}

/* Fokozatos elhalványítás eltüntetésnél */
#appLoader.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}


/* Fix header teljesítmény-hint */
#siteHeader { will-change: transform, backdrop-filter; }

/* Mobil nav kis átmenet */
#mobileNav { transition: opacity .2s ease; }
#mobileNav.hidden { opacity: 0; }

/* Integrations: <pre> világos témában legyen világos betűszín (kérés szerint) */
[data-theme="light"] #integrations pre {
  color: #f8fafc;               /* világos szöveg */
  border-color: rgba(15,23,42,.15);
  /* Ha világos a háttér és kevés a kontraszt, ezt vedd ki a kommentből: */
  /* background-color: #0f172a; */
}

/* Sötét témában marad kontrasztos */
[data-theme="dark"] #integrations pre {
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.08);
}


#integrations pre {
  white-space: pre-wrap;   /* megtartja a whitespace-t, de törhet sort */
  word-break: break-word;  /* hosszú tokenek is törhetnek */
  overflow-wrap: anywhere; /* vészhelyzetben bárhol törhet */
}


/* Modal görgetés barátságossága */
#versionModalContent {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#versionModal .page {
  max-width: none;
  margin: 0;
}



/* --- Shimmer button (belső span) – csak “glow”, a futó csík NINCS --- */
.btn-shimmer {
	position: relative;
	overflow: hidden;
	z-index: 0;
	will-change: transform, box-shadow;
	animation: btn-glow 2.8s ease-in-out infinite;
}

/* A balról-jobbra futó csík teljes tiltása */
.btn-shimmer .shine {
	display: none !important;
	animation: none !important;
	background: none !important;
	opacity: 0 !important;
}

@keyframes shine-move {
	from {
		transform: skewX(-20deg) translateX(0%);
	}

	to {
		transform: skewX(-20deg) translateX(360%);
	}
}

@keyframes btn-glow {

	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
	}

	50% {
		box-shadow: 0 0 24px 2px rgba(34, 211, 238, 0.35);
	}
}

/* világos téma kontraszt */
[data-theme="light"] .btn-shimmer {
	color: #0f172a;
	border-color: rgba(15, 23, 42, 0.18);
	background-color: rgba(15, 23, 42, 0.06);
}

/* motion-reduce esetén is marad a finom “glow”, a csík továbbra is tiltva */
@media (prefers-reduced-motion: reduce) {
	.btn-shimmer {
		animation: btn-glow 2.8s ease-in-out infinite !important;
	}

	.btn-shimmer .shine {
		display: none !important;
		animation: none !important;
		background: none !important;
		opacity: 0 !important;
	}
}



/* Fullscreen iframe modal (Perfex embed) */
#versionModalFrame.modal-frame{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

#versionModalLoader.modal-loader{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: rgba(226,232,240,0.9);
  background: rgba(2,6,23,0.35);
  z-index: 1;
}

#versionModalLoader.hidden{ display:none; }

/* Ensure modal close button is always above the iframe */
#closeVersionModal{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10050;
  pointer-events: auto;
}


/* Soft refresh bar should stay clickable above the iframe */
#versionModalRefreshBar{ pointer-events: auto; }
