.fancybox-wrap {
	transition: none !important;
}

.fancybox-skin {
	transition: none !important;
}

.fancybox-inner {
	overflow: visible !important;
}

.fancybox-opened .fancybox-skin {
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.fancybox-overlay {
	background: rgba(0, 0, 0, 0.85);
}

.modal {
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px;
	max-width: 420px;
	width: 100%;
	border-radius: 16px;
	background-color: #1a1a1a;
	border: 1px solid #2a2a2a;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	overflow-x: hidden;
}

.modal .close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
	z-index: 10;
}

.modal .close-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.modal .close-btn .icon {
	width: 18px;
	height: 18px;
	fill: #808080;
	transition: fill 0.15s ease;
}

.modal .close-btn:hover .icon {
	fill: #ffffff;
}

.modal-body {
	display: flex;
	flex-direction: column;
	padding-bottom: 24px;
	border-bottom: 1px solid #2a2a2a;
}

.modal-body.no_bottom {
	padding-bottom: 0;
	border-bottom: none;
}

.modal .title {
	font-size: 22px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 20px;
}

.modal .row {
	margin-bottom: 12px;
}

.modal .row:last-of-type {
	margin-bottom: 0;
}

.modal .input,
.modal .textfield {
	display: block;
	width: 100%;
	height: 44px;
	padding: 0 16px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	color: #ffffff;
	background-color: #0d0d0d;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	transition: border-color 0.15s ease;
}

.modal .input:focus,
.modal .textfield:focus {
	outline: none;
	border-color: #e34449;
}

.modal .input::placeholder,
.modal .textfield::placeholder {
	color: #606060;
}

.modal .textarea {
	display: block;
	width: 100%;
	min-height: 100px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 400;
	color: #ffffff;
	background-color: #0d0d0d;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	resize: vertical;
	transition: border-color 0.15s ease;
}

.modal .textarea:focus {
	outline: none;
	border-color: #e34449;
}

.modal .textarea::placeholder {
	color: #606060;
}

.modal .field-error {
	font-size: 12px;
	color: #e34449;
	margin-top: 6px;
}

.modal .generic-error {
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #ffffff;
	background-color: rgba(227, 68, 73, 0.15);
	border: 1px solid rgba(227, 68, 73, 0.3);
	border-radius: 10px;
}

.modal .generic-error.hidden {
	display: none;
}

.modal-wrapper__space {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 20px 0;
}

.modal .checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
}

.modal .checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #e34449;
	cursor: pointer;
}

.modal .checkbox label {
	font-size: 14px;
	color: #a0a0a0;
	cursor: pointer;
}

.modal-link {
	font-size: 14px;
	color: #808080;
	text-decoration: none;
	transition: color 0.15s ease;
	cursor: pointer;
}

.modal-link:hover {
	color: #e34449;
}

.modal-link.custom {
	color: #a0a0a0;
}

.modal-wrapper__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background-color: #e34449;
	border: 2px solid #e34449;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.modal-wrapper__button:hover {
	background-color: #c73a3f;
	border-color: #c73a3f;
}

.modal-wrapper__button.border {
	background-color: transparent;
	border-color: #404040;
	color: #ffffff;
}

.modal-wrapper__button.border:hover {
	border-color: #e34449;
	color: #e34449;
}

.modal-wrapper__button[disabled] {
	opacity: 0.4;
	pointer-events: none;
}

.modal-submit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.modal-text {
	font-size: 13px;
	line-height: 1.5;
	color: #808080;
	text-align: center;
	margin-top: 16px;
}

.modal-text a {
	color: #e34449;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.modal-text a:hover {
	color: #ffffff;
}

.modal .success {
	text-align: center;
	padding: 24px;
}

.modal .success .title {
	font-size: 20px;
	font-weight: 600;
	color: #4ade80;
	margin-bottom: 12px;
}

.modal .captcha-control {
	margin-top: 20px;
}

.modal .captcha-control .image {
	margin-bottom: 16px;
}

.modal .captcha-control .image img {
	border-radius: 8px;
	margin-bottom: 12px;
}

.modal-description {
	font-size: 14px;
	line-height: 1.6;
	color: #a0a0a0;
	margin-bottom: 20px;
}

.payment-methods {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
}

.payment-method {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	color: #ffffff;
	text-decoration: none;
	background-color: transparent;
	border-radius: 12px;
	transition: background-color 0.15s ease;
}

.payment-method:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.payment-method.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.payment-method__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	flex-shrink: 0;
}

.payment-method__icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	transition: transform 0.15s ease;
}

.payment-method__icon--paypal {
	color: #009cde;
}

.payment-method__icon--card {
	color: #a0a0a0;
}

.payment-method__icon--crypto {
	color: #f7931a;
}

.payment-method__icon--telegram {
	color: #29b6f6;
}

.payment-method__icon--binance {
	color: #f0b90b;
}

.payment-method:hover .payment-method__icon svg {
	transform: scale(1.1);
}

.payment-method__name {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.payment-method__arrow {
	width: 16px;
	height: 16px;
	min-width: 16px;
	fill: none;
	stroke: #404040;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
	transition: stroke 0.15s ease, transform 0.15s ease;
}

.payment-method:hover .payment-method__arrow {
	stroke: #808080;
	transform: translateX(2px);
}

.premium-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 16px;
}

.premium-status__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #ffa80d 0%, #ff6b00 100%);
	border-radius: 16px;
}

.premium-status__icon svg {
	width: 32px;
	height: 32px;
	fill: #ffffff;
}

.premium-status__title {
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
}

.premium-status__text {
	font-size: 14px;
	line-height: 1.6;
	color: #a0a0a0;
	text-align: center;
	margin-bottom: 20px;
}

.premium-status__time {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	background-color: rgba(255, 168, 13, 0.1);
	border: 1px solid rgba(255, 168, 13, 0.3);
	border-radius: 10px;
	margin-bottom: 20px;
}

.premium-status__time svg {
	width: 18px;
	height: 18px;
	fill: #ffa80d;
	flex-shrink: 0;
}

.premium-status__time span {
	font-size: 14px;
	color: #a0a0a0;
}

.premium-status__time .premium-expiry {
	font-weight: 600;
	color: #ffa80d;
}

.premium-status__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 14px;
	color: #e34449;
	text-decoration: none;
	transition: color 0.15s ease;
}

.premium-status__link:hover {
	color: #ffffff;
}

.premium-status__link svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.modal-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.modal-premium .modal-wrapper {
	max-width: 400px;
	padding: 24px;
}

.modal-premium .modal-body {
	border-bottom: none;
	padding-bottom: 0;
}

.modal-premium .title {
	margin-bottom: 8px;
}

.modal-premium .modal-description {
	margin-bottom: 12px;
}

@media (max-width: 480px) {
	.modal-wrapper {
		margin: 16px;
		padding: 24px;
		max-width: calc(100% - 32px);
		border-radius: 12px;
	}

	.modal .title {
		font-size: 20px;
		padding-right: 32px;
	}

	.modal-wrapper__space {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.modal-wrapper__button {
		height: 44px;
		font-size: 14px;
	}

	.modal-premium .modal-wrapper {
		padding: 20px;
	}

	.premium-status__icon {
		width: 56px;
		height: 56px;
		border-radius: 14px;
	}

	.premium-status__icon svg {
		width: 28px !important;
		height: 28px !important;
	}
}
