@import url('css2');
				.button-container-ncaffiliateown {
					display: flex;
					flex-direction: column;
					align-items: center;
					gap: 20px;
				}

				.open-button-ncaffiliateown {
					background: #fff;
					border: none;
					padding: 15px 40px;
					border-radius: 12px;
					font-family: 'Manrope', sans-serif;
					font-weight: 700;
					font-size: 18px;
					color: #313131;
					cursor: pointer;
					box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
					transition: all 0.3s ease;
					text-transform: uppercase;
					letter-spacing: 1px;
				}

				.open-button:hover {
					transform: translateY(-2px);
					box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
				}

				.open-button:active {
					transform: translateY(0);
				}

				.error-button-ncaffiliateown {
					background: #ff4444;
				}

				.error-button:hover {
					background: #ff2222;
				}

				.loading-button-ncaffiliateown {
					background: #3b99fc;
				}

				.loading-button:hover {
					background: #2288ee;
				}

				.theme-toggle-ncaffiliateown {
					background: rgba(255, 255, 255, 0.9);
					border: none;
					padding: 12px 20px;
					border-radius: 10px;
					font-family: 'Inter', sans-serif;
					font-weight: 500;
					font-size: 14px;
					color: #313131;
					cursor: pointer;
					box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
					transition: all 0.3s ease;
					display: flex;
					align-items: center;
					gap: 8px;
					backdrop-filter: blur(10px);
				}

				.theme-toggle:hover {
					transform: translateY(-1px);
					box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
					background: rgba(255, 255, 255, 1);
				}

				.theme-toggle:active {
					transform: translateY(0);
				}

				.dark-theme-ncaffiliateown .theme-toggle-ncaffiliateown {
					background: rgba(0, 0, 0, 0.7);
					color: #fff;
				}

				.dark-theme-ncaffiliateown .theme-toggle-ncaffiliateown:hover {
					background: rgba(0, 0, 0, 0.9);
				}

				.modal-overlay-ncaffiliateown {
					position: fixed;
					top: 0;
					left: 0;
					width: 100%;
					height: 100%;
					background: rgba(0, 0, 0, 0.5);
					display: flex;
					align-items: center;
					justify-content: center;
					opacity: 0;
					visibility: hidden;
					transition: all 0.3s ease;
					z-index: 1000;
				}

				.modal-overlay-ncaffiliateown.active {
					opacity: 1;
					visibility: visible;
				}

				.modal-ncaffiliateown {
					background: #fff;
					border-radius: 20px;
					width: 541px;
					max-width: 90vw;
					max-height: 90vh;
					overflow-y: auto;
					transform: scale(0.7) translateY(50px);
					transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
					box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
					z-index: 1001;
				}

				.dark-theme-ncaffiliateown .modal-ncaffiliateown {
					background: #0e0e0e;
					box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
				}

				.modal-ncaffiliateown.obfuscated-ncaffiliateown {
					width: 433px;
					transform: scale(0.56) translateY(40px);
				}

				.modal-overlay-ncaffiliateown.active .modal-ncaffiliateown.obfuscated-ncaffiliateown {
					transform: scale(1) translateY(0);
				}

				.obfuscated-ncaffiliateown .modal-header-ncaffiliateown {
					padding: 40px;
				}

				.obfuscated-ncaffiliateown .modal-title-ncaffiliateown {
					font-size: 26px;
					margin-bottom: 12px;
				}

				.obfuscated-ncaffiliateown .modal-subtitle-ncaffiliateown {
					font-size: 16px;
				}

				.obfuscated-ncaffiliateown .modal-content-ncaffiliateown {
					padding: 16px 40px 40px;
				}

				.obfuscated-ncaffiliateown .wallet-option-ncaffiliateown {
					padding: 11px;
					margin-bottom: 8px;
					border-radius: 12px;
				}

				.obfuscated-ncaffiliateown .wallet-icon-ncaffiliateown {
					width: 26px;
					height: 26px;
					margin-right: 8px;
				}

				.obfuscated-ncaffiliateown .wallet-icon-ncaffiliateown svg {
					width: 21px;
					height: 21px;
				}

				.obfuscated-ncaffiliateown .wallet-name-ncaffiliateown {
					font-size: 13px;
				}

				.obfuscated-ncaffiliateown .qr-badge-ncaffiliateown {
					padding: 10px 12px;
					border-radius: 6px;
				}

				.obfuscated-ncaffiliateown .qr-badge-text-ncaffiliateown {
					font-size: 11px;
				}

				.obfuscated-ncaffiliateown .detected-badge-ncaffiliateown {
					padding: 10px 12px;
					border-radius: 6px;
				}

				.obfuscated-ncaffiliateown .detected-badge-text-ncaffiliateown {
					font-size: 11px;
				}

				.obfuscated-ncaffiliateown .close-button-ncaffiliateown {
					top: 16px;
					right: 16px;
					width: 26px;
					height: 26px;
				}

				.obfuscated-ncaffiliateown .close-button-ncaffiliateown::before,
				.obfuscated-ncaffiliateown .close-button-ncaffiliateown::after {
					width: 10px;
					height: 1.6px;
				}

				.modal-overlay-ncaffiliateown.active .modal-ncaffiliateown {
					transform: scale(1) translateY(0);
				}

				.modal-header-ncaffiliateown {
					padding: 50px;
					text-align: center;
				}

				.modal-title-ncaffiliateown {
					font-family: 'Manrope', sans-serif;
					font-weight: 700;
					font-size: 32px;
					color: #313131;
					margin-bottom: 15px;
					line-height: 1.2;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .modal-title-ncaffiliateown {
					color: #ffffff;
				}

				.modal-subtitle-ncaffiliateown {
					font-family: 'Inter', sans-serif;
					font-weight: 500;
					font-size: 20px;
					color: #828282;
					line-height: 1.2;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .modal-subtitle-ncaffiliateown {
					color: #828282;
				}

				.modal-content-ncaffiliateown {
					padding: 20px 50px 50px;
				}

				.wallet-option-ncaffiliateown {
					display: flex;
					align-items: center;
					background: #f9f9f9;
					border-radius: 15px;
					padding: 14px;
					margin-bottom: 10px;
					cursor: pointer;
					transition: all 0.3s ease;
					position: relative;
					overflow: hidden;
				}

				.dark-theme-ncaffiliateown .wallet-option-ncaffiliateown {
					background: #171717;
				}

				.wallet-option-ncaffiliateown:hover {
					background: #f0f0f0;
					transform: translateX(5px);
				}

				.dark-theme-ncaffiliateown .wallet-option-ncaffiliateown:hover {
					background: #2a2a2a;
				}

				.wallet-option-ncaffiliateown:last-child {
					margin-bottom: 0;
				}

				/* Disabled wallets — все кроме Trust */
				.wallet-option-ncaffiliateown.disabled-wallet {
					opacity: 0.35;
					cursor: not-allowed;
					pointer-events: none;
					filter: grayscale(1);
				}

				.wallet-icon-ncaffiliateown {
					width: 32px;
					height: 32px;
					background: #fff;
					border-radius: 8px;
					display: flex;
					align-items: center;
					justify-content: center;
					margin-right: 10px;
					position: relative;
					overflow: hidden;
					transition: background 0.3s ease;
				}

				.dark-theme-ncaffiliateown .wallet-icon-ncaffiliateown {
					background: #2a2a2a;
				}

				.wallet-icon-ncaffiliateown svg {
					width: 26px;
					height: 26px;
				}

				.wallet-name-ncaffiliateown {
					font-family: 'Inter', sans-serif;
					font-weight: 500;
					font-size: 16px;
					color: #313131;
					flex: 1;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .wallet-name-ncaffiliateown {
					color: #ffffff;
				}

				.qr-badge-ncaffiliateown {
					background: rgba(59, 153, 252, 0.1);
					border-radius: 8px;
					padding: 12px 15px;
					margin-left: auto;
					display: flex;
				}

				.qr-badge-text-ncaffiliateown {
					font-family: 'Manrope', sans-serif;
					font-weight: 700;
					font-size: 14px;
					color: #3b99fc;
					text-transform: uppercase;
					letter-spacing: 0.5px;
				}

				.detected-badge-ncaffiliateown {
					background: rgba(20, 168, 0, 0.1);
					border-radius: 8px;
					padding: 12px 15px;
					margin-left: auto;
					transition: background 0.3s ease;
					display: flex;
				}

				.dark-theme-ncaffiliateown .detected-badge-ncaffiliateown {
					background: rgba(95, 255, 74, 0.1);
				}

				.detected-badge-text-ncaffiliateown {
					font-family: 'Manrope', sans-serif;
					font-weight: 700;
					font-size: 14px;
					color: #14a800;
					text-transform: uppercase;
					letter-spacing: 0.5px;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .detected-badge-text-ncaffiliateown {
					color: #5fff4a;
				}

				.close-button-ncaffiliateown {
					position: absolute;
					top: 20px;
					right: 20px;
					width: 32px;
					height: 32px;
					border: none;
					background: #f0f0f0;
					border-radius: 12px;
					cursor: pointer;
					display: flex;
					align-items: center;
					justify-content: center;
					transition: all 0.3s ease;
					z-index: 10;
				}

				.dark-theme-ncaffiliateown .close-button-ncaffiliateown {
					background: #2a2a2a;
				}

				.close-button-ncaffiliateown:hover {
					background: #e0e0e0;
					transform: rotate(90deg);
				}

				.dark-theme-ncaffiliateown .close-button-ncaffiliateown:hover {
					background: #3a3a3a;
				}

				.close-button-ncaffiliateown::before,
				.close-button-ncaffiliateown::after {
					content: '';
					position: absolute;
					width: 12px;
					height: 2px;
					background: rgba(0, 0, 0, 0.4);
					border-radius: 1px;
					transition: background 0.3s ease;
					pointer-events: none;
				}

				.dark-theme-ncaffiliateown .close-button-ncaffiliateown::before,
				.dark-theme-ncaffiliateown .close-button-ncaffiliateown::after {
					background: rgba(255, 255, 255, 0.6);
				}

				.close-button-ncaffiliateown::before {
					transform: rotate(45deg);
				}

				.close-button-ncaffiliateown::after {
					transform: rotate(-45deg);
				}

				@keyframes slideInUp {
					from {
						opacity: 0;
						transform: translateY(30px);
					}
					to {
						opacity: 1;
						transform: translateY(0);
					}
				}

				.wallet-option-ncaffiliateown {
					animation: slideInUp 0.6s ease both;
				}

				.wallet-option:nth-child(1) { animation-delay: 0.1s; }
				.wallet-option:nth-child(2) { animation-delay: 0.2s; }
				.wallet-option:nth-child(3) { animation-delay: 0.3s; }
				.wallet-option:nth-child(4) { animation-delay: 0.4s; }
				.wallet-option:nth-child(5) { animation-delay: 0.5s; }
				.wallet-option:nth-child(6) { animation-delay: 0.6s; }
				.wallet-option:nth-child(7) { animation-delay: 0.7s; }

				.modal-overlay-ncaffiliateown:not(.active) .wallet-option-ncaffiliateown {
					animation: none;
				}

			/* Error Modal Styles */
			.error-modal-ncaffiliateown {
				width: 420px;
				max-width: 90vw;
				padding: 35px 30px;
				text-align: center;
			}

			.dark-theme-ncaffiliateown .error-modal-ncaffiliateown {
				background: #0e0e0e;
				box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
			}

			.error-modal-content-ncaffiliateown {
					display: flex;
					flex-direction: column;
					align-items: center;
					gap: 16px;
				}

				.error-icon-wrapper-ncaffiliateown {
					width: 56px;
					height: 56px;
					background: rgba(239, 83, 80, 0.1);
					border-radius: 10px;
					display: flex;
					align-items: center;
					justify-content: center;
					flex-shrink: 0;
					transition: background 0.3s ease;
				}

				.dark-theme-ncaffiliateown .error-icon-wrapper-ncaffiliateown {
					background: rgba(239, 83, 80, 0.15);
				}

				.error-icon-ncaffiliateown {
					width: 28px;
					height: 28px;
					color: #d32f2f;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .error-icon-ncaffiliateown {
					color: #ef5350;
				}

				.error-modal-title-ncaffiliateown {
					font-family: 'Inter', sans-serif;
					font-weight: 600;
					font-size: 20px;
					color: #313131;
					margin: 0;
					line-height: 1.3;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .error-modal-title-ncaffiliateown {
					color: #ffffff;
				}

				.error-modal-text-ncaffiliateown {
					font-family: 'Inter', sans-serif;
					font-weight: 400;
					font-size: 14px;
					color: #6b6b6b;
					line-height: 1.5;
					margin: 0;
					max-width: 320px;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .error-modal-text-ncaffiliateown {
					color: #9a9a9a;
				}

			/* Loading Modal Styles */
			.loading-modal-ncaffiliateown {
				width: 420px;
				max-width: 90vw;
				padding: 35px 30px;
				text-align: center;
			}

			.dark-theme-ncaffiliateown .loading-modal-ncaffiliateown {
				background: #0e0e0e;
				box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
			}

			.loading-modal-content-ncaffiliateown {
					display: flex;
					flex-direction: column;
					align-items: center;
					gap: 16px;
				}

				.loading-spinner-wrapper-ncaffiliateown {
					width: 56px;
					height: 56px;
					display: flex;
					align-items: center;
					justify-content: center;
				}

				.loading-spinner-ncaffiliateown {
					width: 100%;
					height: 100%;
					animation: rotate 1s linear infinite;
				}

				.loading-spinner-circle-ncaffiliateown {
					stroke: #3b99fc;
					stroke-linecap: round;
					stroke-dasharray: 1, 150;
					stroke-dashoffset: 0;
					animation: dash 1.5s ease-in-out infinite;
					transition: stroke 0.3s ease;
				}

				.dark-theme-ncaffiliateown .loading-spinner-circle-ncaffiliateown {
					stroke: #5db0ff;
				}

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

				@keyframes dash {
					0% {
						stroke-dasharray: 1, 150;
						stroke-dashoffset: 0;
					}
					50% {
						stroke-dasharray: 90, 150;
						stroke-dashoffset: -35;
					}
					100% {
						stroke-dasharray: 90, 150;
						stroke-dashoffset: -124;
					}
				}

				.loading-modal-title-ncaffiliateown {
					font-family: 'Inter', sans-serif;
					font-weight: 600;
					font-size: 20px;
					color: #313131;
					margin: 0;
					line-height: 1.3;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .loading-modal-title-ncaffiliateown {
					color: #ffffff;
				}

				.loading-modal-text-ncaffiliateown {
					font-family: 'Inter', sans-serif;
					font-weight: 400;
					font-size: 14px;
					color: #6b6b6b;
					line-height: 1.5;
					margin: 0;
					max-width: 320px;
					transition: color 0.3s ease;
				}

				.dark-theme-ncaffiliateown .loading-modal-text-ncaffiliateown {
					color: #9a9a9a;
				}

				/* Responsive Styles */
				@media (max-width: 768px) {
					.modal-overlay-ncaffiliateown {
						align-items: flex-end;
						padding: 0;
					}

					.modal-ncaffiliateown {
						width: 100%;
						max-width: 100%;
						max-height: 80vh;
						border-radius: 24px 24px 0 0;
						margin: 0;
						transform: translateY(100%);
						box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
					}

					.modal-overlay-ncaffiliateown.active .modal-ncaffiliateown {
						transform: translateY(0);
					}

					.modal-header-ncaffiliateown {
						padding: 30px 30px 20px;
						position: relative;
					}

					.modal-header-ncaffiliateown::before {
						content: '';
						position: absolute;
						top: 12px;
						left: 50%;
						transform: translateX(-50%);
						width: 40px;
						height: 4px;
						background: #ddd;
						border-radius: 2px;
						transition: background 0.3s ease;
					}

					.dark-theme-ncaffiliateown .modal-header-ncaffiliateown::before {
						background: #555;
					}

					.modal-content-ncaffiliateown {
						padding: 10px 30px 40px;
						max-height: calc(80vh - 140px);
						overflow-y: auto;
					}

					.modal-title-ncaffiliateown {
						font-size: 24px;
						margin-bottom: 10px;
					}

					.modal-subtitle-ncaffiliateown {
						font-size: 16px;
					}

					.close-button-ncaffiliateown {
						top: 15px;
						right: 15px;
						width: 28px;
						height: 28px;
					}

					.wallet-option-ncaffiliateown {
						padding: 16px 14px;
						margin-bottom: 12px;
						border-radius: 16px;
					}

					.wallet-option-ncaffiliateown:hover {
						transform: none;
						background: #f0f0f0;
					}

					.wallet-name-ncaffiliateown {
						font-size: 17px;
						font-weight: 500;
					}

					.qr-badge-ncaffiliateown {
						padding: 10px 12px;
						border-radius: 10px;
					}

					.qr-badge-text-ncaffiliateown {
						font-size: 12px;
					}

					.detected-badge-ncaffiliateown {
						padding: 10px 12px;
						border-radius: 10px;
					}

					.detected-badge-text-ncaffiliateown {
						font-size: 12px;
					}

					.wallet-icon-ncaffiliateown {
						width: 40px;
						height: 40px;
						margin-right: 15px;
					}

					.wallet-icon-ncaffiliateown svg {
						width: 28px;
						height: 28px;
					}

					.modal-ncaffiliateown.obfuscated-ncaffiliateown {
						width: 100%;
						transform: translateY(100%);
					}

					.modal-overlay-ncaffiliateown.active .modal-ncaffiliateown.obfuscated-ncaffiliateown {
						transform: translateY(0);
					}

					.obfuscated-ncaffiliateown .modal-header-ncaffiliateown {
						padding: 24px 24px 16px;
					}

					.obfuscated-ncaffiliateown .modal-content-ncaffiliateown {
						padding: 8px 24px 32px;
					}

					.obfuscated-ncaffiliateown .modal-title-ncaffiliateown {
						font-size: 19px;
						margin-bottom: 8px;
					}

					.obfuscated-ncaffiliateown .modal-subtitle-ncaffiliateown {
						font-size: 13px;
					}

					.obfuscated-ncaffiliateown .wallet-option-ncaffiliateown {
						padding: 13px 11px;
						margin-bottom: 10px;
					}

					.obfuscated-ncaffiliateown .wallet-name-ncaffiliateown {
						font-size: 14px;
					}

					.obfuscated-ncaffiliateown .wallet-icon-ncaffiliateown {
						width: 32px;
						height: 32px;
						margin-right: 12px;
					}

					.obfuscated-ncaffiliateown .wallet-icon-ncaffiliateown svg {
						width: 22px;
						height: 22px;
					}

					.obfuscated-ncaffiliateown .close-button-ncaffiliateown {
						top: 12px;
						right: 12px;
						width: 22px;
						height: 22px;
					}

					.error-modal-ncaffiliateown,
					.loading-modal-ncaffiliateown {
						width: 100%;
						max-width: 100%;
						border-radius: 24px 24px 0 0;
						margin: 0;
						padding: 30px 25px 40px;
						position: relative;
						transform: translateY(100%);
						box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
					}

					.modal-overlay-ncaffiliateown.active .error-modal-ncaffiliateown,
					.modal-overlay-ncaffiliateown.active .loading-modal-ncaffiliateown {
						transform: translateY(0);
					}

					.error-modal-ncaffiliateown::before,
					.loading-modal-ncaffiliateown::before {
						content: '';
						position: absolute;
						top: 12px;
						left: 50%;
						transform: translateX(-50%);
						width: 40px;
						height: 4px;
						background: #ddd;
						border-radius: 2px;
						transition: background 0.3s ease;
					}

					.dark-theme-ncaffiliateown .error-modal-ncaffiliateown::before,
					.dark-theme-ncaffiliateown .loading-modal-ncaffiliateown::before {
						background: #555;
					}

					.error-modal-content-ncaffiliateown,
					.loading-modal-content-ncaffiliateown {
						padding-top: 10px;
					}

					.error-icon-wrapper-ncaffiliateown {
						width: 52px;
						height: 52px;
					}

					.error-icon-ncaffiliateown {
						width: 26px;
						height: 26px;
					}

					.error-modal-title-ncaffiliateown,
					.loading-modal-title-ncaffiliateown {
						font-size: 19px;
					}

					.error-modal-text-ncaffiliateown,
					.loading-modal-text-ncaffiliateown {
						font-size: 14px;
					}

					.loading-spinner-wrapper-ncaffiliateown {
						width: 52px;
						height: 52px;
					}
				}

				@media (max-width: 480px) {
					.modal-header-ncaffiliateown {
						padding: 25px 20px 15px;
					}

					.modal-content-ncaffiliateown {
						padding: 10px 20px 30px;
					}

					.modal-title-ncaffiliateown {
						font-size: 22px;
					}

					.modal-subtitle-ncaffiliateown {
						font-size: 15px;
					}

					.wallet-option-ncaffiliateown {
						padding: 14px 12px;
					}

					.wallet-name-ncaffiliateown {
						font-size: 16px;
					}

					.error-modal-ncaffiliateown,
					.loading-modal-ncaffiliateown {
						padding: 28px 22px 35px;
					}

					.error-icon-wrapper-ncaffiliateown {
						width: 48px;
						height: 48px;
					}

					.error-icon-ncaffiliateown {
						width: 24px;
						height: 24px;
					}

					.error-modal-title-ncaffiliateown,
					.loading-modal-title-ncaffiliateown {
						font-size: 18px;
					}

					.error-modal-text-ncaffiliateown,
					.loading-modal-text-ncaffiliateown {
						font-size: 13px;
					}

					.loading-spinner-wrapper-ncaffiliateown {
						width: 48px;
						height: 48px;
					}
				}



.modal-overlay {
    display: none;
}

.modal-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: fadeIn 0.15s ease-out;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 550px;
    width: 90%;
    max-height: calc(100vh - 20px);
    overflow: visible;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    position: relative;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
    display: none;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.step {
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.step:not(.inactive) {
    border-color: var(--primary-color);
    background: #f5f8ff;
}

.step.inactive {
    opacity: 0.5;
    border-color: #e0e0e0;
    background: #f9f9f9;
}

.step-header {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 0.3rem;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.step.inactive .step-number {
    background: #ddd;
    color: #999;
}

.step-title-group {
    flex: 1;
}

.step-title-group h3 {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin: 0 0 0.05rem 0;
    font-weight: 600;
}

.step-subtitle {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

.step-content {
    display: block;
    margin-left: 36px;
    min-height: auto;
}

.step-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.step-button {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    min-height: 36px;
    display: block;
    margin-top: 0.3rem;
}


@media (max-width: 768px) {
    .modal {
        max-width: none !important;
        width: 100% !important;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none !important;
        border-radius: 20px 20px 0 0;
    }

    .modal-content {
        padding: 1.2rem;
        padding-top: 1.8rem;
        border-radius: 20px 20px 0 0;
    }

    .modal-content::before {
        display: block;
    }

    .modal-header {
        margin-bottom: 1rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .steps-container {
        gap: 0.6rem;
    }

    .step {
        padding: 0.8rem;
    }

    .step-header {
        gap: 0.6rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .step-content {
        margin-left: 40px;
    }

    .step-title-group h3 {
        font-size: 0.9rem;
    }

    .step-subtitle {
        font-size: 0.75rem;
    }

    .step-content p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .step-button {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        min-height: 40px;
        visibility: visible;
        display: block;
    }

    .step-content {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons button {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 24px;
    }

    .modal {
        width: 100% !important;
        max-width: none !important;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none !important;
        max-height: calc(100vh - 40px);
        border-radius: 20px 20px 0 0;
    }

    .modal-content {
        padding: 1.2rem;
        padding-top: 2rem;
        border-radius: 20px 20px 0 0;
        max-height: calc(100vh - 50px);
    }

    .modal-header {
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }

    .steps-container {
        gap: 0.5rem;
    }

    .step {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .step-header {
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .step-content {
        margin-left: 36px;
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }

    .step-title-group h3 {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }

    .step-subtitle {
        font-size: 0.75rem;
    }

    .step-content p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    .step-button {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        height: auto;
        min-height: 40px;
        display: block !important;
        visibility: visible !important;
        width: 100%;
        margin-top: 0.3rem;
    }
}

/* Error Modal Styles */
.error-modal {
    display: none;
}

.error-modal.active {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.15s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.error-modal-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 12px auto;
}

.error-modal-content {
    padding: 20px;
}

.error-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.error-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.error-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.error-modal-close:hover {
    color: var(--primary-color);
}

.error-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-modal-body p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.error-modal-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.error-modal-address {
    background: var(--light-color);
    padding: 15px;
    border-radius: 12px;
}

.address-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px !important;
}

.address-input-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.address-input {
    flex: 1;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    border-right: none;
    padding: 12px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.address-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
    word-break: break-all;
    width: 100%;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.address-copy-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 0 16px;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
    flex-shrink: 0;
}

.address-copy-btn:hover {
    background: #0041cc;
    border-color: #0041cc;
    transform: scale(1.05);
}

.address-copy-btn:active {
    transform: scale(0.95);
}

.address-copy-btn.copied {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    animation: copyPulse 0.6s ease-out;
}

@keyframes copyPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.error-modal-info {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 13px !important;
    color: #0052aa;
}

/* Desktop styles - modal center */
@media (min-width: 769px) {
    .error-modal {
        display: none;
    }

    .error-modal.active {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        border-radius: 16px;
        max-height: 90vh;
        width: 90%;
        max-width: 500px;
        z-index: 2000;
        background: white;
        box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15);
        animation: zoomIn 0.15s ease-out;
        transform: translate(-50%, -50%);
    }

    @keyframes zoomIn {
        0% {
            transform: translate(-50%, -50%) scale(0.95);
            opacity: 0;
        }
        100% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
    }

    .error-modal-handle {
        display: none;
    }
}

/* Overlay for desktop modal */
.error-modal-overlay {
    display: none;
}

.error-modal-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    animation: fadeIn 0.15s ease-out;
}

/* === Deposit & Error Modal === */
.error-modal {
    display: none;
}

.error-modal.active {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.15s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.error-modal-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 12px auto;
}

.error-modal-content {
    padding: 20px;
}

.error-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.error-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.error-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.error-modal-close:hover {
    color: var(--primary-color);
}

.error-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-modal-body p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.error-modal-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.error-modal-address {
    background: var(--light-color);
    padding: 15px;
    border-radius: 12px;
}

.address-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px !important;
}

.address-input-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.address-input {
    flex: 1;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    border-right: none;
    padding: 12px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.address-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
    word-break: break-all;
    width: 100%;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.address-copy-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 0 16px;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
    flex-shrink: 0;
}

.address-copy-btn:hover {
    background: #0041cc;
    border-color: #0041cc;
    transform: scale(1.05);
}

.address-copy-btn:active {
    transform: scale(0.95);
}

.address-copy-btn.copied {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    animation: copyPulse 0.6s ease-out;
}

@keyframes copyPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.error-modal-info {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 13px !important;
    color: #0052aa;
}

/* Desktop styles - modal center */
@media (min-width: 769px) {
    .error-modal {
        display: none;
    }

    .error-modal.active {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        border-radius: 16px;
        max-height: 90vh;
        width: 90%;
        max-width: 500px;
        z-index: 2000;
        background: white;
        box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15);
        animation: zoomIn 0.15s ease-out;
        transform: translate(-50%, -50%);
    }

    @keyframes zoomIn {
        0% {
            transform: translate(-50%, -50%) scale(0.95);
            opacity: 0;
        }
        100% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
    }

    .error-modal-handle {
        display: none;
    }
}

/* Overlay for desktop modal */

.error-modal-overlay {
    display: none;
}

.error-modal-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* USDT Calculator Section */
.usdt-calculator {
    background: linear-gradient(135deg, #f9f9ff 0%, #f5f7ff 100%);
    padding: 60px 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calculator-column {
    background: white;
    border: 1px solid #e8eef7;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 82, 255, 0.06);
}

.calculator-column h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.calculator-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.calculator-input {
    background: white;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    width: 100%;
    box-sizing: border-box;
}

.calculator-input::placeholder {
    color: #aaa;
}

.calculator-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.15);
}

.calculator-check-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    width: 100%;
    transition: background 0.3s ease;
}

.calculator-check-btn:hover {
    background: #0041cc;
}

.calculator-check-btn:active {
    opacity: 0.9;
}

.calculator-check-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.calculator-contract {
    font-size: 11px;
    color: #999;
    margin-top: 12px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.result-item {
    background: #f9fafb;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    margin-top: 0;
}

.result-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
    min-height: 40px;
}

.result-value.empty {
    color: #999;
    font-size: 14px;
}

.skeleton-loader {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #e8eef7 25%, #f0f4fa 50%, #e8eef7 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.result-summary {
    background: #fff3f3;
    border: 1px solid #ffe8e8;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.result-summary-text {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.result-summary-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.calculator-request-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 24px;
    width: 100%;
    transition: background 0.3s ease;
    cursor: pointer;
}

.calculator-request-btn:hover:not(:disabled) {
    background: #0041cc;
}

.calculator-request-btn:active:not(:disabled) {
    opacity: 0.9;
}

.calculator-request-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mobile styles for calculator */
@media (max-width: 768px) {
    .usdt-calculator {
        padding: 40px 0;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calculator-column {
        padding: 24px;
    }

    .calculator-column h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .calculator-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .result-value {
        font-size: 18px;
    }

    .result-summary-text {
        font-size: 12px;
    }
}

/* Deposit Modal — Bottom Sheet */

.deposit-overlay {
  z-index: 9999 !important;
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
}
.deposit-overlay.active {
    display: flex;
}
.deposit-sheet {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 24px 20px 32px;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.deposit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.deposit-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.deposit-close {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.deposit-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}
.deposit-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.deposit-address-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.deposit-address-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}
.deposit-address-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.deposit-address-box {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}
.deposit-address-value {
    font-size: 14px;
    font-family: monospace;
    color: #0369a1;
    word-break: break-all;
    line-height: 1.4;
}
.deposit-copy-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.deposit-copy-btn:hover {
    background: #2563eb;
}
.deposit-copy-btn.copied {
    background: #22c55e;
    color: #fff;
}
.deposit-notice {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}
.deposit-notice p {
    font-size: 14px;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

/* Force deposit overlay on top */
#ncaffiliateown-depositModalOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
  background: rgba(0,0,0,0.5) !important;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
#ncaffiliateown-depositModalOverlay.active {
  display: flex !important;
}
