/**
 * NexaShop VPN & Foreign IP Payment Gateway Guard - Responsive Styles
 * Supports Desktop, Laptop, Tablet (Centered Modal) & Mobile (Bottom Sheet)
 */

.nexashop-vpn-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(15, 23, 42, 0.68);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease;
	direction: rtl;
	font-family: inherit;
}

.nexashop-vpn-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.nexashop-vpn-modal-card {
	position: relative;
	width: 100%;
	max-width: 495px;
	background: #ffffff;
	border-radius: 26px;
	padding: 28px 26px 24px 26px;
	box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
	transform: translateY(24px) scale(0.96);
	transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
	max-height: 92vh;
	overflow-y: auto;
	text-align: right;
}

.nexashop-vpn-backdrop.is-open .nexashop-vpn-modal-card {
	transform: translateY(0) scale(1);
}

/* Shake animation when VPN is still on during re-check */
@keyframes nexashopVpnShake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-7px); }
	40%, 80% { transform: translateX(7px); }
}

.nexashop-vpn-modal-card.is-shaking {
	animation: nexashopVpnShake 0.45s ease;
}

/* Mobile Sheet Handle (Hidden on Desktop) */
.nexashop-vpn-sheet-handle {
	display: none;
	justify-content: center;
	margin-bottom: 12px;
}

.nexashop-vpn-sheet-handle span {
	width: 44px;
	height: 5px;
	border-radius: 10px;
	background: #cbd5e1;
}

/* Close Button */
.nexashop-vpn-close-btn {
	position: absolute;
	top: 18px;
	left: 18px;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.nexashop-vpn-close-btn:hover {
	background: #fee2e2;
	border-color: #fecaca;
	color: #ef4444;
	transform: rotate(90deg);
}

/* Hero Section */
.nexashop-vpn-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 18px;
}

.nexashop-vpn-icon-ring {
	position: relative;
	width: 74px;
	height: 74px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

@keyframes nexashopPulseRing {
	0% {
		transform: scale(0.88);
		opacity: 0.75;
	}
	70% {
		transform: scale(1.32);
		opacity: 0;
	}
	100% {
		transform: scale(1.32);
		opacity: 0;
	}
}

.nexashop-vpn-icon-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(239, 68, 68, 0.24);
	animation: nexashopPulseRing 2s infinite;
}

.nexashop-vpn-icon-circle {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 22px;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px -6px rgba(239, 68, 68, 0.45);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nexashop-vpn-modal-card.is-verified .nexashop-vpn-icon-circle {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.45);
}

.nexashop-vpn-modal-card.is-verified .nexashop-vpn-icon-pulse {
	background: rgba(16, 185, 129, 0.25);
}

.nexashop-vpn-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	font-size: 12px;
	font-weight: 800;
	padding: 5px 13px;
	border-radius: 99px;
	margin-bottom: 12px;
	transition: all 0.3s ease;
}

.nexashop-vpn-modal-card.is-verified .nexashop-vpn-status-pill {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #059669;
}

.nexashop-vpn-status-pill .status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.nexashop-vpn-modal-card.is-verified .nexashop-vpn-status-pill .status-dot {
	background: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.nexashop-vpn-title {
	font-size: 17.5px;
	font-weight: 800;
	line-height: 1.55;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.nexashop-vpn-subtitle {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
	color: #475569;
	margin: 0;
}

/* Live IP Comparison Bar */
.nexashop-vpn-ip-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 12px 15px;
	margin-bottom: 16px;
	gap: 10px;
}

.nexashop-vpn-ip-bar .ip-col {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
}

.nexashop-vpn-ip-bar .ip-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
}

.nexashop-vpn-ip-bar .ip-value {
	font-size: 12.5px;
	font-weight: 800;
	color: #dc2626;
}

.nexashop-vpn-ip-bar .ip-value.ip-iran {
	color: #059669;
}

.nexashop-vpn-ip-bar .ip-arrow {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Reasons List */
.nexashop-vpn-reasons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.nexashop-vpn-reason-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 15px;
	padding: 12px 14px;
}

.nexashop-vpn-reason-item .reason-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #fef3c7;
	color: #d97706;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.nexashop-vpn-reason-item .reason-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nexashop-vpn-reason-item .reason-body strong {
	font-size: 13px;
	font-weight: 800;
	color: #1e293b;
}

.nexashop-vpn-reason-item .reason-body p {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.65;
	color: #475569;
	margin: 0;
}

/* Feedback Box */
.nexashop-vpn-feedback {
	border-radius: 13px;
	padding: 11px 14px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 14px;
	text-align: center;
}

.nexashop-vpn-feedback.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.nexashop-vpn-feedback.is-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #047857;
}

/* Action Buttons */
.nexashop-vpn-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nexashop-vpn-btn-primary {
	width: 100%;
	min-height: 50px;
	border: none;
	border-radius: 15px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	font-family: inherit;
	padding: 12px 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	cursor: pointer;
	box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.42);
	transition: all 0.22s ease;
}

.nexashop-vpn-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.55);
}

.nexashop-vpn-btn-primary.is-loading {
	opacity: 0.82;
	pointer-events: none;
}

@keyframes nexashopSpin {
	100% { transform: rotate(-360deg); }
}

.nexashop-vpn-btn-primary.is-loading .icon-refresh {
	animation: nexashopSpin 0.9s linear infinite;
}

.nexashop-vpn-btn-secondary {
	width: 100%;
	min-height: 44px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
	color: #475569;
	font-size: 12.5px;
	font-weight: 700;
	font-family: inherit;
	padding: 10px 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nexashop-vpn-btn-secondary:hover {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #cbd5e1;
}

/* Mobile & Tablet Responsive Bottom-Sheet Layout */
@media (max-width: 640px) {
	.nexashop-vpn-backdrop {
		align-items: flex-end;
		padding: 0;
	}

	.nexashop-vpn-modal-card {
		max-width: 100%;
		border-radius: 26px 26px 0 0;
		padding: 14px 20px 26px 20px;
		transform: translateY(100%);
		max-height: 92vh;
	}

	.nexashop-vpn-backdrop.is-open .nexashop-vpn-modal-card {
		transform: translateY(0);
	}

	.nexashop-vpn-sheet-handle {
		display: flex;
	}

	.nexashop-vpn-close-btn {
		top: 14px;
		left: 16px;
		width: 34px;
		height: 34px;
	}

	.nexashop-vpn-title {
		font-size: 16px;
	}

	.nexashop-vpn-ip-bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		gap: 8px;
	}

	.nexashop-vpn-ip-bar .ip-arrow {
		margin: 0 auto;
		transform: rotate(-90deg);
	}

	.nexashop-vpn-btn-primary {
		font-size: 13.5px;
		min-height: 48px;
	}
}
