/* Success Modal */
.fr-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

.fr-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.fr-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	max-width: 400px;
	width: 90%;
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translate(-50%, -60%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

.fr-success-icon {
	margin: 0 auto 20px;
	width: 64px;
	height: 64px;
}

.fr-modal-content h2 {
	color: #1f2937;
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 12px;
}

.fr-modal-content p {
	color: #6b7280;
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 24px;
}

.fr-modal-btn {
	background: #10b981;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.fr-modal-btn:hover {
	background: #059669;
}

body.fr-modal-open {
	overflow: hidden;
}


.fr-locked-content,
.fr-partial-locked-content,
.fr-subscription-locked-content {
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	margin: 20px 0;
	position: relative;
}

.fr-locked-content::before {
	content: "🔒";
	font-size: 48px;
	display: block;
	margin-bottom: 15px;
	opacity: 0.7;
}

/* Lock Messages */
.fr-lock-message {
	font-size: 18px;
	color: #495057;
	margin-bottom: 20px;
	line-height: 1.5;
}


.fr-teaser-content {
	background: #fff;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 20px;
	text-align: left;
	border: 1px solid #dee2e6;
}

.fr-locked-section {
	background: linear-gradient(to bottom, rgba(248,249,250,0) 0%, rgba(248,249,250,1) 100%);
	padding: 20px;
	border-radius: 6px;
}

/* Purchase Options */
.fr-unlock-options {
	margin-top: 20px;
}

.fr-purchase-options {
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: center;
	margin-bottom: 20px;
}

/* Buttons */
.freedo-purchase-btn,
.freedo-subscribe-btn,
.freedo-btn-primary,
.freedo-btn-secondary {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 200px;
	text-align: center;
}

.freedo-purchase-btn,
.freedo-btn-primary {
	background: #007cba;
	color: #fff;
	box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.freedo-purchase-btn:hover,
.freedo-btn-primary:hover {
	background: #005a87;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
}

.freedo-subscribe-btn,
.freedo-btn-secondary {
	background: #6c757d;
	color: #fff;
	box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.fr-subscribe-btn:hover,
.fr-btn-secondary:hover {
	background: #545b62;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

.fr-purchase-btn:disabled,
.fr-subscribe-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Subscription Plans */
.fr-subscription-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.fr-subscription-plan {
	background: #fff;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 25px;
	text-align: center;
	transition: all 0.3s ease;
}

.fr-subscription-plan:hover {
	border-color: #007cba;
	box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
	transform: translateY(-2px);
}

.fr-subscription-plan h4 {
	margin: 0 0 10px 0;
	font-size: 20px;
	color: #212529;
}

.fr-plan-price {
	font-size: 24px;
	font-weight: bold;
	color: #007cba;
	margin-bottom: 15px;
}

/* Layout Variations */
.fr-layout-grid .fr-subscription-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.fr-layout-list .fr-subscription-plans {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.fr-layout-list .fr-subscription-plan {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	padding: 20px;
}

.fr-layout-list .fr-plan-price {
	margin: 0 20px 0 0;
}

/* User Dashboard */
.fr-user-dashboard {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
}

.fr-user-info {
	border-bottom: 1px solid #e9ecef;
	padding-bottom: 20px;
	margin-bottom: 20px;
}

.fr-user-info h3 {
	margin: 0 0 10px 0;
	color: #212529;
}

.fr-subscription-info,
.fr-recent-purchases {
	margin-bottom: 25px;
}

.fr-subscription-info h4,
.fr-recent-purchases h4 {
	margin: 0 0 15px 0;
	color: #495057;
	font-size: 18px;
}

.fr-recent-purchases ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fr-recent-purchases li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f8f9fa;
}

.fr-recent-purchases li:last-child {
	border-bottom: none;
}

.fr-purchase-item {
	font-weight: 500;
	color: #212529;
}

.fr-purchase-amount {
	color: #007cba;
	font-weight: 600;
}

.fr-purchase-date {
	color: #6c757d;
	font-size: 14px;
}

/* Processing States */
.fr-payment-processing {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	margin-top: 15px;
}

.fr-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #e9ecef;
	border-top: 2px solid #007cba;
	border-radius: 50%;
	animation: fr-spin 1s linear infinite;
}

@keyframes fr-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Status Messages */
.fr-already-purchased {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #c3e6cb;
	margin: 15px 0;
}

.fr-login-required {
	background: #fff3cd;
	color: #856404;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #ffeaa7;
	margin: 15px 0;
}

.fr-access-required {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #f5c6cb;
	margin: 15px 0;
}

/* Login Form */
.fr-login-form {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 25px;
	margin: 20px 0;
}

.fr-login-form form {
	max-width: 300px;
	margin: 0 auto;
}

.fr-login-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #495057;
}

.fr-login-form input[type="text"],
.fr-login-form input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 14px;
}

.fr-login-form input[type="submit"] {
	width: 100%;
	padding: 12px;
	background: #007cba;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.fr-login-form input[type="submit"]:hover {
	background: #005a87;
}

/* PayPal Container */
.fr-paypal-container {
	margin: 20px 0;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
	.fr-locked-content,
	.fr-partial-locked-content,
	.fr-subscription-locked-content {
		padding: 20px;
		margin: 15px 0;
	}

	.fr-subscription-plans {
		grid-template-columns: 1fr;
	}

	.fr-purchase-options {
		flex-direction: column;
	}

	.fr-purchase-btn,
	.fr-subscribe-btn {
		width: 100%;
		min-width: auto;
	}

	.fr-recent-purchases li {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}

	.fr-layout-list .fr-subscription-plan {
		flex-direction: column;
		text-align: center;
	}

	.fr-layout-list .fr-plan-price {
		margin: 10px 0;
	}

	/* Modal responsive */
	.fr-modal-container {
		width: 95%;
		margin: 20px;
	}

	.fr-modal-header,
	.fr-modal-body {
		padding: 20px;
	}

	.fr-modal-header {
		padding-bottom: 0;
	}

	.fr-auth-benefits ul {
		grid-template-columns: 1fr;
	}

	.fr-auth-btn {
		padding: 16px;
	}

	.fr-btn-text strong {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.fr-locked-content::before {
		font-size: 36px;
		margin-bottom: 10px;
	}

	.fr-lock-message {
		font-size: 16px;
	}

	.fr-purchase-btn,
	.fr-subscribe-btn {
		padding: 10px 20px;
		font-size: 14px;
	}

	.fr-user-dashboard {
		padding: 20px;
	}
}

/* Authentication Modal */
.fr-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	animation: fr-fadeIn 0.3s ease;
}

.fr-modal-container {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 480px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: fr-slideUp 0.3s ease;
}

.fr-modal-header {
	padding: 24px 24px 0 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 24px;
}

.fr-modal-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #1a202c;
}

.fr-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #a0aec0;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.fr-modal-close:hover {
	background: #f7fafc;
	color: #4a5568;
}

.fr-modal-body {
	padding: 0 24px 24px 24px;
}

.fr-auth-message {
	text-align: center;
	margin-bottom: 32px;
}

.fr-lock-icon {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.8;
}

.fr-auth-message p {
	font-size: 16px;
	color: #4a5568;
	line-height: 1.6;
	margin: 0;
}

.fr-auth-buttons {
	display: grid;
	gap: 16px;
	margin-bottom: 32px;
}

.fr-auth-btn {
	display: flex;
	align-items: center;
	padding: 20px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	background: #fff;
	position: relative;
	overflow: hidden;
}

.fr-auth-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	transition: left 0.5s ease;
}

.fr-auth-btn:hover::before {
	left: 100%;
}

.fr-login-btn {
	border-color: #007cba;
	background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.fr-login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 124, 186, 0.4);
}

.fr-signup-btn {
	border-color: #48bb78;
	background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.fr-signup-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.fr-signup-disabled {
	border-color: #e2e8f0;
	background: #f7fafc;
	color: #a0aec0;
	cursor: not-allowed;
}

.fr-signup-disabled:hover {
	transform: none;
	box-shadow: none;
}

.fr-btn-icon {
	font-size: 24px;
	margin-right: 16px;
	flex-shrink: 0;
}

.fr-btn-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.fr-btn-text strong {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 2px;
}

.fr-btn-text small {
	font-size: 14px;
	opacity: 0.9;
	font-weight: 400;
}

.fr-auth-benefits {
	background: #f7fafc;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
}

.fr-auth-benefits h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: #2d3748;
}

.fr-auth-benefits ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px;
}

.fr-auth-benefits li {
	font-size: 14px;
	color: #4a5568;
	text-align: left;
}

/* Modal Animations */
@keyframes fr-fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fr-slideUp {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Body class when modal is open */
.fr-modal-open {
	overflow: hidden;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.fr-locked-content,
	.fr-partial-locked-content,
	.fr-subscription-locked-content {
		background: #2d3748;
		border-color: #4a5568;
		color: #e2e8f0;
	}

	.fr-teaser-content {
		background: #1a202c;
		border-color: #4a5568;
		color: #e2e8f0;
	}

	.fr-subscription-plan {
		background: #2d3748;
		border-color: #4a5568;
		color: #e2e8f0;
	}

	.fr-user-dashboard {
		background: #2d3748;
		border-color: #4a5568;
		color: #e2e8f0;
	}

	.fr-login-form {
		background: #2d3748;
		border-color: #4a5568;
		color: #e2e8f0;
	}

	.fr-modal-container {
		background: #2d3748;
		color: #e2e8f0;
	}

	.fr-modal-header {
		border-bottom-color: #4a5568;
	}

	.fr-modal-header h3 {
		color: #e2e8f0;
	}

	.fr-auth-benefits {
		background: #1a202c;
	}

	.fr-auth-benefits h4 {
		color: #e2e8f0;
	}
}
