/* ==========================================================================
   PXVERS Modal & Popup System - Glassmorphism, Responsive & Accessible CSS
   ========================================================================== */

/* 1. Body Scroll Lock */
body.pxv-modal-open {
	overflow: hidden !important;
	touch-action: none;
}

/* 2. Global Modal Overlay Backdrop */
.pxv-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(3, 5, 10, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 99990;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.pxv-modal-backdrop.is-active {
	opacity: 1;
	visibility: visible;
}

/* 3. Central Modal Shell */
.pxv-modal-dialog {
	background: linear-gradient(145deg, rgba(12, 17, 29, 0.98) 0%, rgba(6, 9, 16, 0.99) 100%);
	border: 1px solid rgba(0, 210, 255, 0.35);
	border-radius: 20px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 210, 255, 0.15);
	width: 100%;
	max-width: 680px;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	position: relative;
	transform: translateY(14px);
	opacity: 0;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
	outline: none;
	overflow: hidden;
	color: #ffffff;
}

.pxv-modal-backdrop.is-active .pxv-modal-dialog {
	transform: translateY(0);
	opacity: 1;
}

/* 4. Modal Header */
.pxv-modal-header {
	padding: 18px 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255, 255, 255, 0.02);
}

.pxv-modal-title-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pxv-modal-cat {
	font-family: var(--font-main, sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--accent-cyan, #00d2ff);
	text-transform: uppercase;
}

.pxv-modal-title {
	font-family: var(--font-main, sans-serif);
	font-size: 20px;
	font-weight: 800;
	color: #ffffff;
	margin: 0;
	line-height: 1.2;
}

.pxv-modal-close-btn {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #94a3b8;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
	flex-shrink: 0;
}

.pxv-modal-close-btn:hover,
.pxv-modal-close-btn:focus {
	background: rgba(239, 68, 68, 0.2);
	border-color: rgba(239, 68, 68, 0.5);
	color: #ffffff;
	outline: none;
}

/* 5. Modal Content Body (Scrollable) */
.pxv-modal-body {
	padding: 20px 24px;
	overflow-y: auto;
	flex: 1;
	font-family: var(--font-main, sans-serif);
	font-size: 13.5px;
	color: #cbd5e1;
	line-height: 1.6;
}

/* Custom Scrollbar for Modal Body */
.pxv-modal-body::-webkit-scrollbar {
	width: 6px;
}
.pxv-modal-body::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
}
.pxv-modal-body::-webkit-scrollbar-thumb {
	background: rgba(0, 210, 255, 0.3);
	border-radius: 3px;
}

/* 7-SECTION STRUCTURE STYLES */
.pxv-detail-sections {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pxv-detail-sec-card {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pxv-detail-sec-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-main, sans-serif);
	font-size: 13.5px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}

.pxv-detail-sec-head svg {
	color: #00d2ff;
	flex-shrink: 0;
}

.pxv-detail-sec-content {
	font-family: var(--font-main, sans-serif);
	font-size: 12.5px;
	color: #cbd5e1;
	line-height: 1.55;
}

.pxv-detail-sec-content ul {
	margin: 4px 0 0 0;
	padding-left: 16px;
}

.pxv-detail-sec-content ul li {
	margin-bottom: 4px;
}

/* Workflow Steps (Nasıl Çalışıyor?) */
.pxv-workflow-steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	margin-top: 8px;
}

.pxv-step-item {
	background: rgba(0, 210, 255, 0.04);
	border: 1px solid rgba(0, 210, 255, 0.12);
	border-radius: 8px;
	padding: 8px 6px;
	text-align: center;
}

.pxv-step-num {
	font-size: 10px;
	font-weight: 800;
	color: #00d2ff;
	margin-bottom: 2px;
}

.pxv-step-title {
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

/* Modal Info Summary Bar */
.pxv-modal-summary-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(0, 210, 255, 0.06);
	border: 1px solid rgba(0, 210, 255, 0.2);
	padding: 10px 16px;
	border-radius: 12px;
	margin-top: 14px;
}

.pxv-modal-summary-name {
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
}

.pxv-modal-summary-price {
	font-size: 15px;
	font-weight: 800;
	color: #00d2ff;
}

/* 6. Modal Footer / Action Group */
.pxv-modal-footer {
	padding: 14px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: rgba(0, 0, 0, 0.25);
}

.pxv-modal-footer-left {
	display: flex;
	flex-direction: column;
}

.pxv-modal-footer-pkg {
	font-size: 12px;
	color: #94a3b8;
}

.pxv-modal-footer-price {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
}

.btn-pxv-modal-wa {
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #ffffff;
	font-family: var(--font-main, sans-serif);
	font-weight: 700;
	font-size: 13.5px;
	padding: 10px 20px;
	border-radius: 25px;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
	transition: all 0.25s ease;
}

.btn-pxv-modal-wa:hover,
.btn-pxv-modal-wa:focus {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(37, 211, 102, 0.55);
	filter: brightness(1.1);
	outline: none;
}

.btn-pxv-modal-close {
	background: transparent;
	color: #94a3b8;
	font-family: var(--font-main, sans-serif);
	font-size: 13px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-pxv-modal-close:hover,
.btn-pxv-modal-close:focus {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.25);
	outline: none;
}

/* Home CTA & Exit Intent Popups */
.pxv-home-cta-card {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 380px;
	max-width: calc(100vw - 32px);
	background: linear-gradient(145deg, rgba(13, 19, 33, 0.97) 0%, rgba(6, 9, 16, 0.99) 100%);
	border: 1.5px solid rgba(0, 210, 255, 0.4);
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.2);
	z-index: 99980;
	transform: translateY(30px);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.pxv-home-cta-card.is-active {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.pxv-home-cta-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.pxv-home-cta-badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: #00d2ff;
	background: rgba(0, 210, 255, 0.1);
	padding: 3px 8px;
	border-radius: 12px;
	border: 1px solid rgba(0, 210, 255, 0.25);
}

.pxv-home-cta-title {
	font-size: 15px;
	font-weight: 800;
	color: #ffffff;
	margin: 8px 0 6px 0;
	line-height: 1.3;
}

.pxv-home-cta-desc {
	font-size: 12px;
	color: #94a3b8;
	margin: 0 0 14px 0;
	line-height: 1.45;
}

.pxv-home-cta-btns {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Exit Intent Modal Specifics */
.pxv-exit-intent-dialog {
	max-width: 540px;
	border-color: rgba(0, 210, 255, 0.5);
}

.pxv-exit-intent-body {
	text-align: center;
	padding: 24px;
}

.pxv-exit-intent-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(0, 210, 255, 0.1);
	border: 1px solid rgba(0, 210, 255, 0.3);
	color: #00d2ff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px auto;
}

.pxv-exit-intent-title {
	font-size: 19px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.pxv-exit-intent-desc {
	font-size: 13px;
	color: #94a3b8;
	margin-bottom: 18px;
}

/* Mobile Bottom Sheet */
.pxv-mobile-bottom-sheet {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	max-height: 35vh;
	background: linear-gradient(180deg, rgba(12, 17, 29, 0.98) 0%, rgba(6, 9, 16, 0.99) 100%);
	border-top: 1.5px solid rgba(0, 210, 255, 0.4);
	border-radius: 20px 20px 0 0;
	padding: 18px 18px 22px 18px;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.2);
	z-index: 99985;
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
	box-sizing: border-box;
}

.pxv-mobile-bottom-sheet.is-active {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.pxv-bottom-sheet-handle {
	width: 36px;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	margin: 0 auto 12px auto;
}

.pxv-bottom-sheet-title {
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	margin-bottom: 12px;
}

.pxv-bottom-sheet-btns {
	display: flex;
	gap: 8px;
}

.pxv-bottom-sheet-btns button,
.pxv-bottom-sheet-btns a {
	flex: 1;
	padding: 9px;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 18px;
	text-align: center;
	text-decoration: none;
}

/* ==========================================================================
   PXVERS GLOBAL CHATBOT FLOATING ROBOT & LIVE CHAT MODAL FORM
   ========================================================================== */

.pxv-global-chatbot-wrapper {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	pointer-events: none; /* Allows click through around elements */
}

.pxv-global-chatbot-wrapper > * {
	pointer-events: auto;
}

/* 1. Speech Bubble */
.pxv-chatbot-bubble {
	background: linear-gradient(135deg, rgba(12, 18, 32, 0.96) 0%, rgba(6, 10, 18, 0.98) 100%);
	border: 1.5px solid rgba(0, 210, 255, 0.4);
	border-radius: 16px 16px 4px 16px;
	padding: 12px 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.15);
	backdrop-filter: blur(12px);
	max-width: 230px;
	position: relative;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	animation: pxvBubbleFloat 4s ease-in-out infinite alternate;
}

@keyframes pxvBubbleFloat {
	0% { transform: translateY(0); }
	100% { transform: translateY(-4px); }
}

.pxv-bubble-close {
	position: absolute;
	top: 4px;
	right: 8px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 16px;
	cursor: pointer;
	line-height: 1;
	padding: 2px 4px;
	transition: color 0.2s ease;
}

.pxv-bubble-close:hover {
	color: #00d2ff;
}

.pxv-chatbot-bubble h3 {
	font-family: var(--font-main, sans-serif);
	font-size: 13px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 2px 0;
}

.pxv-chatbot-bubble p {
	font-family: var(--font-main, sans-serif);
	font-size: 11.5px;
	font-weight: 600;
	color: #cbd5e1;
	margin: 0;
	line-height: 1.4;
}

/* 2. Robot Mascot */
.pxv-robot-mascot {
	width: 76px;
	height: 76px;
	cursor: pointer;
	position: relative;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	animation: pxvRobotBreath 3.5s ease-in-out infinite alternate;
}

.pxv-robot-mascot:hover {
	transform: scale(1.08) translateY(-2px);
}

.pxv-robot-mascot:hover #pxvRobotHeadGroup {
	transform: rotate(4deg) translateY(-1px);
}

.pxv-robot-mascot:hover #pxvRobotArmRight {
	animation: pxvRobotWave 0.8s ease-in-out infinite alternate;
}

@keyframes pxvRobotBreath {
	0% { transform: translateY(0); }
	100% { transform: translateY(-5px); }
}

@keyframes pxvRobotWave {
	0% { transform: rotate(-25deg); }
	100% { transform: rotate(15deg); }
}

.pxv-robot-eye {
	animation: pxvRobotBlink 4s infinite;
	transform-origin: center;
}

@keyframes pxvRobotBlink {
	0%, 94%, 98%, 100% { transform: scaleY(1); }
	96% { transform: scaleY(0.1); }
}

.pxv-robot-antenna-tip {
	animation: pxvAntennaGlow 2s infinite alternate;
}

@keyframes pxvAntennaGlow {
	0% { fill: #00d2ff; }
	100% { fill: #1a68f8; }
}

/* 3. WhatsApp CTA Button Below Robot */
.btn-pxv-robot-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #ffffff;
	font-family: var(--font-main, sans-serif);
	font-size: 12px;
	font-weight: 800;
	padding: 10px 16px;
	border-radius: 20px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-pxv-robot-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* 4. Live Chat Form Modal Dialog */
.pxv-modal-chat-form {
	max-width: 440px;
	width: 90%;
	background: linear-gradient(145deg, rgba(10, 16, 28, 0.98) 0%, rgba(5, 8, 15, 0.99) 100%);
	border: 1.5px solid rgba(0, 210, 255, 0.4);
	border-radius: 24px;
	padding: 32px 28px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 210, 255, 0.2);
}

.pxv-modal-header-chat {
	text-align: center;
	margin-bottom: 22px;
}

.pxv-modal-robot-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono, monospace);
	font-size: 10.5px;
	font-weight: 800;
	color: #00d2ff;
	background: rgba(0, 210, 255, 0.08);
	border: 1px solid rgba(0, 210, 255, 0.25);
	padding: 4px 12px;
	border-radius: 14px;
	margin-bottom: 10px;
}

.pxv-modal-robot-badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #25D366;
	box-shadow: 0 0 6px #25D366;
}

.pxv-modal-header-chat h2 {
	font-family: var(--font-main, sans-serif);
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 6px 0;
}

.pxv-modal-header-chat p {
	font-size: 13px;
	color: #cbd5e1;
	margin: 0;
	line-height: 1.5;
}

.pxv-chat-form-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pxv-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pxv-form-group label {
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
}

.pxv-form-group label .req {
	color: #ef4444;
}

.pxv-form-group label .opt {
	font-size: 10.5px;
	color: #94a3b8;
	font-weight: 500;
}

.pxv-form-group input,
.pxv-form-group select,
.pxv-form-group textarea {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	padding: 10px 14px;
	font-family: var(--font-main, sans-serif);
	font-size: 13px;
	color: #ffffff;
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pxv-form-group select.pxv-custom-select {
	background-color: #060a12;
	color: #ffffff;
}

.pxv-form-group input:focus,
.pxv-form-group select:focus,
.pxv-form-group textarea:focus {
	border-color: #00d2ff;
	box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.pxv-field-error {
	font-size: 11px;
	color: #ef4444;
	font-weight: 700;
}

.pxv-chat-form-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.btn-pxv-submit-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #ffffff;
	font-family: var(--font-main, sans-serif);
	font-size: 14px;
	font-weight: 800;
	padding: 12px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
	transition: all 0.3s ease;
}

.btn-pxv-submit-wa:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 28px rgba(37, 211, 102, 0.6);
}

.btn-pxv-cancel {
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 6px;
	transition: color 0.2s ease;
}

.btn-pxv-cancel:hover {
	color: #ffffff;
}

/* Reduced Motion for Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
	.pxv-chatbot-bubble,
	.pxv-robot-mascot,
	.pxv-robot-eye,
	.pxv-robot-antenna-tip {
		animation: none !important;
	}
}

/* Mobile Responsiveness (<576px) */
@media (max-width: 576px) {
	.pxv-global-chatbot-wrapper {
		bottom: 16px;
		right: 16px;
	}
	.pxv-robot-mascot {
		width: 64px;
		height: 64px;
	}
	.pxv-robot-mascot svg {
		width: 64px;
		height: 64px;
	}
	.pxv-chatbot-bubble {
		max-width: 190px;
		padding: 10px 12px;
	}
	.pxv-chatbot-bubble h3 {
		font-size: 12px;
	}
	.pxv-chatbot-bubble p {
		font-size: 10.5px;
	}
	.btn-pxv-robot-cta {
		font-size: 11px;
		padding: 8px 12px;
	}
	.pxv-modal-chat-form {
		padding: 24px 18px;
	}
}


/* Responsive Breakpoints */
@media (max-width: 768px) {
	.pxv-modal-dialog {
		max-width: 95%;
		border-radius: 16px;
	}
	.pxv-modal-header {
		padding: 14px 16px;
	}
	.pxv-modal-body {
		padding: 14px 16px;
	}
	.pxv-modal-footer {
		padding: 12px 16px;
		flex-direction: column;
		gap: 8px;
		align-items: stretch;
	}
	.pxv-modal-footer-left {
		text-align: center;
	}
	.btn-pxv-modal-wa,
	.btn-pxv-modal-close {
		width: 100%;
		text-align: center;
	}
	.pxv-home-cta-card {
		right: 14px;
		left: 14px;
		width: auto;
		bottom: 14px;
	}
}
