/* Advanced Elementor Buttons - Frontend Styles v2 */

.aeb-button-wrapper {
	display: inline-block;
	max-width: 100%;
	position: relative;
}

.aeb-button {
	--aeb-grad-1: #6a11cb;
	--aeb-grad-2: #2575fc;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: none;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	padding: 14px 30px;
	border-radius: 6px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease, background-color 0.3s ease;
	line-height: 1.2;
}

.aeb-button:focus,
.aeb-button:active {
	outline: none;
}

.aeb-button-inner {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.aeb-icon {
	display: inline-flex;
	color: inherit;
}

.aeb-icon svg,
.aeb-icon i {
	display: inline-block;
	transition: transform 0.3s ease;
	width: 1em;
	height: 1em;
	color: inherit;
	fill: currentColor;
}

/* -----------------------------------------
   TYPE: GRADIENT
----------------------------------------- */
.aeb-type-gradient {
	background: linear-gradient(135deg, var(--aeb-grad-1), var(--aeb-grad-2));
}

/* -----------------------------------------
   TYPE: ANIMATED (solid color base)
----------------------------------------- */
.aeb-type-animated {
	background: var(--aeb-grad-1);
}

/* -----------------------------------------
   TYPE: ICON
----------------------------------------- */
.aeb-type-icon {
	background: linear-gradient(135deg, var(--aeb-grad-1), var(--aeb-grad-2));
}

.aeb-type-icon.aeb-icon-only {
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 50%;
}

.aeb-type-icon.aeb-icon-only .aeb-icon {
	font-size: 20px;
}

/* -----------------------------------------
   TYPE: OUTLINE
----------------------------------------- */
.aeb-type-outline {
	background: transparent;
	border: 2px solid var(--aeb-grad-1);
	color: var(--aeb-grad-1);
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Default hover-fill so Outline buttons feel interactive even without
   the "Fill Background (on hover)" color being set manually */
.aeb-type-outline:hover {
	background: var(--aeb-grad-1);
	color: #ffffff;
}

/* -----------------------------------------
   TYPE: FAB (Floating Action Button)
----------------------------------------- */
.aeb-type-fab {
	background: linear-gradient(135deg, var(--aeb-grad-1), var(--aeb-grad-2));
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	position: fixed;
	z-index: 9999;
	border-radius: 999px;
	padding: 14px 26px;
}

.aeb-type-fab .aeb-icon {
	font-size: 18px;
}

/* Icon-only FAB becomes a perfect circle */
.aeb-type-fab.aeb-icon-only {
	width: 58px;
	height: 58px;
	padding: 0;
	border-radius: 50%;
}

.aeb-type-fab.aeb-icon-only .aeb-icon {
	font-size: 22px;
}

.aeb-fab-bottom-right { bottom: 24px; right: 24px; }
.aeb-fab-bottom-left  { bottom: 24px; left: 24px; }
.aeb-fab-top-right    { top: 24px; right: 24px; }
.aeb-fab-top-left     { top: 24px; left: 24px; }

/* -----------------------------------------
   TYPE: SOCIAL
----------------------------------------- */
.aeb-social-group {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.aeb-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: #ffffff;
	text-decoration: none;
	font-size: 18px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Force the icon glyph (font-icon <i> or Elementor's inline <svg>) to sit
   at a sane, proportional size instead of its raw native dimensions —
   without this, some icon SVGs (e.g. Facebook) render oversized and get
   clipped, looking like a broken/distorted shape. */
.aeb-social-icon i,
.aeb-social-icon svg {
	width: 0.85em !important;
	height: 0.85em !important;
	max-width: 0.85em;
	max-height: 0.85em;
	fill: currentColor;
	color: currentColor;
	display: inline-block;
	line-height: 1;
}

.aeb-social-icon:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* -----------------------------------------
   TYPE: DOWNLOAD / CTA presets
----------------------------------------- */
.aeb-type-download_cta.aeb-preset-download {
	background: linear-gradient(135deg, #11998e, #38ef7d);
}

.aeb-type-download_cta.aeb-preset-buy_now {
	background: linear-gradient(135deg, #f7971e, #ffd200);
	color: #1a1a1a;
}

.aeb-type-download_cta.aeb-preset-subscribe {
	background: linear-gradient(135deg, #654ea3, #eaafc8);
}

/* -----------------------------------------
   HOVER ANIMATIONS (CSS-based, GSAP-style feel)
----------------------------------------- */

/* Slide Fill */
.aeb-anim-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.2);
	transform: translateX(-100%);
	transition: transform 0.4s ease;
	z-index: 1;
}
.aeb-anim-slide:hover::before {
	transform: translateX(0);
}

/* Zoom */
.aeb-anim-zoom:hover {
	transform: scale(1.06);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Pulse Grow */
.aeb-anim-pulse-grow:hover {
	transform: scale(1.05);
	animation: aeb-pulse-grow 1.2s infinite;
}
@keyframes aeb-pulse-grow {
	0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15); }
	70%  { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Glow Pulse — uses a visible dark ring so it works on any page background
   (previous version used white-on-white which made it invisible) */
.aeb-anim-glow:hover {
	animation: aeb-glow-pulse 1.4s infinite;
}
@keyframes aeb-glow-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.35); }
	70%  { box-shadow: 0 0 0 16px rgba(0, 0, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Icon Bounce */
.aeb-anim-bounce:hover .aeb-icon {
	animation: aeb-bounce 0.6s ease;
}
@keyframes aeb-bounce {
	0%, 100% { transform: translateX(0); }
	50%      { transform: translateX(6px); }
}

/* Shine Sweep */
.aeb-anim-shine::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	transform: skewX(-20deg);
	z-index: 1;
	pointer-events: none;
}
.aeb-anim-shine:hover::after {
	animation: aeb-shine-sweep 0.8s ease forwards;
}
@keyframes aeb-shine-sweep {
	from { left: -75%; }
	to   { left: 125%; }
}

/* Flip */
.aeb-anim-flip {
	transition: transform 0.5s ease;
	transform-style: preserve-3d;
}
.aeb-anim-flip:hover {
	transform: rotateY(180deg);
}
.aeb-anim-flip:hover .aeb-button-inner {
	transform: rotateY(180deg);
}

/* -----------------------------------------
   TOOLTIP
   -----------------------------------------
   Rendered as a real sibling element inside the WRAPPER (not inside the
   button itself), because the button has `overflow: hidden` for its hover
   animations — anything positioned outside the button's own box (like a
   tooltip above it) would get clipped if it lived inside the button.
----------------------------------------- */
.aeb-tooltip-wrapper {
	position: relative;
	display: inline-block;
}

.aeb-tooltip-bubble {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #1a1a1a;
	color: #ffffff;
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 20;
}

.aeb-tooltip-wrapper:hover .aeb-tooltip-bubble {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Small arrow under the tooltip bubble, pointing at the button */
.aeb-tooltip-bubble::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1a1a1a;
}

/* -----------------------------------------
   POPUP MODAL
----------------------------------------- */
.aeb-popup-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
}
.aeb-popup-modal.aeb-popup-open {
	display: flex !important;
}
.aeb-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.aeb-popup-box {
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	padding: 32px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	z-index: 1;
}
.aeb-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #444;
}
.aeb-popup-title {
	margin: 0 0 12px;
	font-size: 20px;
}
.aeb-popup-content {
	margin: 0;
	font-size: 14px;
	color: #444;
}

/* -----------------------------------------
   RESPONSIVE
----------------------------------------- */
@media (max-width: 767px) {
	.aeb-button {
		padding: 12px 22px;
	}
}
